[FFmpeg-user] 回复: how to equal ratio scale the video
Werner Robitza
werner.robitza at gmail.com
Thu Jan 2 11:43:17 CET 2014
On Thu, Jan 2, 2014 at 11:32 AM, (忍)不轻云 <449127727 at qq.com> wrote:
> source file is 1360x768
>
>
> if(gt(a,16/9),1280,trunc(oh*a*2)/2)':'if(gt(a,16/9),trunc(ow/a/2)*2,720) the result is 1275x720.
Two problems:
* 1280, trunc(oh…) does not make sense. You should use "ow" here as I
previously mentioned.
* trunc(oh*a*2)/2 will probably result in an odd number. Try
trunc(ow*a/2)*2 instead.
Please don't top-post on this list.
More information about the ffmpeg-user
mailing list