[FFmpeg-devel] [PATCH] Removed -padtop,right,bottom,left,color options; added comments to ffmpeg doc

Howard Chu hyc
Mon Jul 5 00:16:47 CEST 2010


Stefano Sabatini wrote:
> On date Sunday 2010-07-04 22:45:27 +0200, Michael Niedermayer encoded:
>> On Sun, Jul 04, 2010 at 01:24:53PM +0200, Stefano Sabatini wrote:
>>> On date Sunday 2010-07-04 12:53:34 +0200, Stefano Sabatini encoded:
>>> [...]
>>>> As for the pad, check attached. Another possibility would be to retain
>>>> the -pad option entries, and state that they've been removed, but I
>>>> prefer somehow this variant.
>>>
>>> Changed my mind again, should save some time to users updating their
>>> ffmpeg and trying to figure out why their scripts fail. Anyway at some
>>> point we'll have to remove both -pad* and -crop* options.

Along the lines of video geometry, I've been wanting to add an option to 
automatically rescale while preserving aspect ratio. Unless I missed something 
obvious, it doesn't appear like there's a simple option for this at present.

E.g., I want to rescale arbitrary videos to fit on the 480x320 display of my 
phone. If I only specify the frame size, then videos are stretched/distorted 
to fit that size, losing the aspect ratio. I think I can force the aspect 
ratio so this doesn't happen, but that requires that I know the aspect ratio 
of the input in advance.

If I have a 4:3 512x384 video, I want it dropped down to e.g. 432x320. (Or 
something...) 16:9 512x288 -> 480x272. Something that's already small enough 
should pass thru unchanged, e.g. 416x224. So some kind of "shrink if needed" 
or "shrink to fit" option. Any suggestions on what to call this option?

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/



More information about the ffmpeg-devel mailing list