[FFmpeg-user] 回复: how to equal ratio scale the video

(忍)不轻云 449127727 at qq.com
Thu Jan 2 11:32:20 CET 2014


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.


the ffmpeg can't scale to 1275x720.


what happend and how to solved this question?


thank you Werner Robitza




------------------ 原始邮件 ------------------
发件人: "Werner Robitza";<werner.robitza at gmail.com>;
发送时间: 2014年1月2日(星期四) 晚上6:19
收件人: "FFmpeg user questions"<ffmpeg-user at ffmpeg.org>; 

主题: Re: [FFmpeg-user] how to equal ratio scale the video



On Thu, Jan 2, 2014 at 9:59 AM, (忍)不轻云 <449127727 at qq.com> wrote:
> if(gt(a,16/9),1280,trunc(oh*a*2)/2)':'if(gt(a,16/9),trunc(ow/a/2)*2,720)

I could be mistaken since you haven't described what you want to
accomplish, but 1280 is the width, so you need:

1280,trunc(ow*a*2)/2

Likewise, for the second part:

trunc(oh/a/2)*2,720)
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list