e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
Posted: Mon Nov 05, 2018 10:57 pm Post subject: 2 nice examples of converting video or audio with parallel |
|
|
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 |
_________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|