【问题标题】:height not divisible ffmpeg [duplicate]高度不可整除ffmpeg [重复]
【发布时间】:2018-09-27 13:04:24
【问题描述】:

问题是当我尝试缩放视频并保持纵横比时

ffmpeg -i in.mp4 -vf scale=240:-1 out.mp4

我也尝试过 -s 240x135 但总是同样的错误..

height not divisible by 2 (240x135)

但是如果我尝试 240x180 它可以工作,问题是因为我需要保持纵横比,因为我需要 scale=240:-1

错误我有什么

height not divisible by 2 (240x135)

Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

【问题讨论】:

    标签: ffmpeg


    【解决方案1】:

    使用-vf scale=240:-2 -2 作为值可确保高度为偶数,因此可被 2 整除。

    【讨论】:

      猜你喜欢
      • 2014-01-17
      • 2020-07-28
      • 1970-01-01
      • 1970-01-01
      • 2017-09-05
      相关资源
      最近更新 更多