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

Stefano Sabatini stefano.sabatini-lala
Tue Jul 6 17:57:54 CEST 2010

On date Tuesday 2010-07-06 08:54:57 -0700, Howard Chu encoded:
> Stefano Sabatini wrote:
> >On date Sunday 2010-07-04 15:16:47 -0700, Howard Chu encoded:
> >>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?
> >
> >This can be achieved making parametric the values for the scale and
> >pad filters.
> >
> >This should be rather simple to implement (and there is already a
> >patch for the scale filter), patches for that are welcome.
> Can you point me to the scale filter patch you're talking about?


FFmpeg = Foolish and Fabulous Mega Prodigious Empowered Geek

More information about the ffmpeg-devel mailing list