Maintaining aspect ratio with FFmpeg

前端 未结 8 1344
悲&欢浪女
悲&欢浪女 2021-01-29 22:39

I need to convert a bunch of video files using FFmpeg. I run a Bash file that converts all the files nicely, however there is a problem if a file converted is not in 16:9 format

8条回答
  •  梦毁少年i
    2021-01-29 22:55

    Use force_original_aspect_ratio, from the ffmpeg trac:

    ffmpeg -i input.mp4 -vf scale=720:400:force_original_aspect_ratio=decrease output.mp4
    

提交回复
热议问题