How do you convert an entire directory with ffmpeg?

前端 未结 26 2152
长发绾君心
长发绾君心 2020-11-22 04:33

How do you convert an entire directory/folder with ffmpeg via command line or with a batch script?

26条回答
  •  后悔当初
    2020-11-22 05:04

    for i in *.flac;
      do name=`echo "${i%.*}"`;
      echo $name;
      ffmpeg -i "${i}" -ab 320k -map_metadata 0 -id3v2_version 3 "${name}".mp3;
    done
    

    Batch process flac files into mp3 (safe for file names with spaces) using [1] [2]

提交回复
热议问题