[FFmpeg-user] Bash Script for Batch Converting Audio in MKVs to FLAC

Moritz Barsnick barsnick at gmx.net
Sun Oct 21 02:31:33 EEST 2018

On Sat, Oct 20, 2018 at 23:26:29 +0200, Moritz Barsnick wrote:
> $ mkdir flac
> $ for infile in *.mkv; do outfile=flac/${infile%.mkv}'(flac)'.mkv; echo ffmpeg -i "$infile" -c:v copy -c:s copy -c:a flac "$outfile"; done

I failed to mention: This is bash syntax. zsh may or may not be
different. Other shells may need other "magic" for converting the file


More information about the ffmpeg-user mailing list