How do you convert an entire directory with ffmpeg?

前端 未结 26 2619
长发绾君心
长发绾君心 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

    A one-line bash script would be easy to do - replace *.avi with your filetype:

    for i in *.avi; do ffmpeg -i "$i" -qscale 0 "$(basename "$i" .avi)".mov  ; done
    

提交回复
热议问题