gpt4 book ai didi

ffmpeg - FFMPEG 选项 scale=-1 和 scale=-2

转载 作者:行者123 更新时间:2023-12-04 23:18:49 27 4
gpt4 key购买 nike

我尝试转换视频并使用 scale=-1:720 调整其大小,但出现错误“宽度不能被 2 整除”。我解决了这个问题:scale=-2:720。
之间有什么区别

scale=-1:720
scale=-2:720

最佳答案

它在 the documentation :

If one and only one of the values is -n with n >= 1, the scale filter will use a value that maintains the aspect ratio of the input image, calculated from the other specified dimension. After that it will, however, make sure that the calculated dimension is divisible by n and adjust the value if necessary.

关于ffmpeg - FFMPEG 选项 scale=-1 和 scale=-2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71092347/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com