From 41e4c556e93156cab184e5af9b246a4cf07c54ab Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Sat, 16 Jun 2007 22:28:10 +0000 Subject: Add expression evaluation parameters for colors in imlib2 vhook Originally committed as revision 9342 to svn://svn.ffmpeg.org/ffmpeg/trunk --- doc/hooks.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/hooks.texi') diff --git a/doc/hooks.texi b/doc/hooks.texi index ea1051ca97..a92edc4a55 100644 --- a/doc/hooks.texi +++ b/doc/hooks.texi @@ -150,6 +150,14 @@ Usage examples: This example does the same as the one above, but specifies an rgb.txt file to be used, which has a custom made color in it. + # Variable colors + ffmpeg -i input.avi -vhook \ + 'vhook/imlib2.so -t Hello -R abs(255*sin(N/47*PI)) -G abs(255*sin(N/47*PI)) -B abs(255*sin(N/47*PI))' \ + -sameq output.avi + + In this example, the color for the text goes up and down from black to + white. + # scrolling credits from a graphics file ffmpeg -sameq -i input.avi \ -vhook 'vhook/imlib2.so -x 0 -y -1.0*N -i credits.png' output.avi -- cgit v1.2.3