diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-06-16 22:28:10 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-06-16 22:28:10 +0000 |
commit | 41e4c556e93156cab184e5af9b246a4cf07c54ab (patch) | |
tree | d9c6c90faec6f0f5c1441607d7d1a98eccebe5fc /doc | |
parent | b41c1db38def6c16a164d92a9fd55af2155fff5c (diff) | |
download | ffmpeg-41e4c556e93156cab184e5af9b246a4cf07c54ab.tar.gz |
Add expression evaluation parameters for colors in imlib2 vhook
Originally committed as revision 9342 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hooks.texi | 8 |
1 files changed, 8 insertions, 0 deletions
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 |