[FFmpeg-devel] [PATCH] libavfilter-soc: Make the overlay filter able to align to opposite edges

Martin Storsjö martin
Mon May 11 23:35:30 CEST 2009


Hi Stefano,

On Sun, 10 May 2009, Stefano Sabatini wrote:

> What about some flags like:
> align=bottom+right?

Hmm, that at least looks better than my proposal :-)

> Also what about to make x and y parametric, for example they could
> take as parameters the input width, height, and the overlay width and
> height, that would greatly improve flexibility.
> 
> Check the vf_pad.c which I recently posted to see how you can
> implement it (it also requires the av_set_options_string() patch which
> is still pending).

Thanks! This looks like a really good idea. A new patch is attached, which 
uses ff_eval2 to parse the x and y offset parameters. This looks like a 
much more flexible approach, giving the user possibility to align the 
overlay in much more ways.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libavfilter-soc-overlay-param-eval.patch
Type: text/x-diff
Size: 3097 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090512/c35026a8/attachment.patch>



More information about the ffmpeg-devel mailing list