How do you convert an entire directory with ffmpeg?

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

    For giggles, here's solution in fish-shell:

    for i in *.avi; ffmpeg -i "$i" (string split -r -m1 . $i)[1]".mp4"; end
    

提交回复
热议问题