GNU parallel, to run commands on all cores, and for its filename pattern substitution.
For example: ls *.flac | parallel ffmpeg -i {} {.}.mp3 encodes a directory of FLAC files to MP3. parallel -a <(ls *.flac) -a <(ls *.mp3) --xapply copytags {1} {2} then copies each FLAC file’s metadata to the corresponding MP3 file (which ffmpeg already does, just to illustrate the --xapply option).
GNU parallel, to run commands on all cores, and for its filename pattern substitution.
For example:
ls *.flac | parallel ffmpeg -i {} {.}.mp3
encodes a directory of FLAC files to MP3.parallel -a <(ls *.flac) -a <(ls *.mp3) --xapply copytags {1} {2}
then copies each FLAC file’s metadata to the corresponding MP3 file (which ffmpeg already does, just to illustrate the--xapply
option).edit:
copytags
is https://github.com/DarwinAwardWinner/copytags if that’s useful for anyone.