Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 nice examples of converting video or audio with parallel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 355
Location: Inner Space

PostPosted: Mon Nov 05, 2018 10:57 pm    Post subject: 2 nice examples of converting video or audio with parallel Reply with quote

many source mages have tried and many failed to create a parallel computation.
as a last resort you can still hook up parallel to single threaded processes.
this works best with # of files greater than number of your CPUs and there is no advantage when you run this just on one file.

Code:
#convert all wavs to mp3 in folder with parallel
find . -name '*.wav' | parallel lame -V2 {} -o {}.mp3


Code:
#convert all mkv in current folder to videocodec:xvid/audiocodec:mp3 avi. xvid bitrate 1MB/s. mp3 quality -V2
parallel -j4 ffmpeg -i {} -b:v 1M -vcodec libxvid -acodec libmp3lame -q:a 2 {.}.avi ::: ./*.mkv

_________________
((O.o))
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum