How do you convert an entire directory with ffmpeg?

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

    I needed all the videos to use the same codec for merging purposes
    so this conversion is mp4 to mp4
    it's in zsh but should easily be convertible to bash

    for S (*.mp4) { ffmpeg -i $S -c:v libx264 -r 30  new$S }
    

提交回复
热议问题