How do you convert an entire directory with ffmpeg?

前端 未结 26 2085
长发绾君心
长发绾君心 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 04:50

    Previous answer will only create 1 output file called out.mov. To make a separate output file for each old movie, try this.

    for i in *.avi;
      do name=`echo "$i" | cut -d'.' -f1`
      echo "$name"
      ffmpeg -i "$i" "${name}.mov"
    done
    

提交回复
热议问题