[Ffmpeg-devel] [PATCH] Add moving images feature to imlib2vhook

Víctor Paesa wzrlpy
Mon Nov 6 19:41:28 CET 2006


Hi,
>> Hi,
>>
>> On 11/3/06, V?ctor Paesa <wzrlpy at arsystel.com> wrote:
>>> > Hi
>>> >
>>> > On Thu, Nov 02, 2006 at 11:11:33PM +0100, V?ctor Paesa wrote:
>>> >
>>> > may i suggest that you use libavcodec/eval.c for calculating the
>>> position
>>> > based on the frame number, that way a simple -x 100+5.3*n will work
>>> and
>>> > less sane things like -x 100+100*sin(n/100) will work too
>>> >
>>>
>>> Brilliant idea, it makes possible to do nice "natural" movements,
>>> rising sun, flying birds, parabolics, ... :-)
>>>
>>> I'll try it, so far I've seen an example of using eval at the rate
>>> control
>>> code, but would it be possible that some knowlegeable person add some
>>> Doxigen comments to eval.h ?
>>
>> Should be done now, thanks to Michael.
>
> Great, thanks.
>

Here is the revised patch:

You may test it with a bulb flying in a Lissajous pattern:

ffmpeg -i input.avi -vhook \
'vhook/imlib2.dll
-x W*(0.5+0.25*sin(N/47*PI))-w/2
-y H*(0.5+0.50*cos(N/97*PI))-h/2
-i /usr/share/imlib2/data/images/bulb.png'
-acodec copy -sameq output.avi


Regards,
V?ctor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.vhook.imlib2.5.diff
Type: application/octet-stream
Size: 9882 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061106/65656fdf/attachment.obj>



More information about the ffmpeg-devel mailing list