[FFmpeg-user] Can I do scaling better?

Phil Rhodes phil_rhodes at rocketmail.com
Fri Feb 14 13:48:07 CET 2014


> -vf "scale=iw*sar:ih,

> scale='if(gt(iw,ih),min(1920,iw),-1)':'if(gt(iw,ih),-1,min(1080,ih))'"


Surely this would be enormously easier with a less primitive scripting language?

I'd do it in Javascript, for which various commandline interpreters exist, but anything better than a linux shell script would at least be more readable. Of course this may all be part of a much larger script, or whatever.

P


More information about the ffmpeg-user mailing list