From e48f83fe47a302674295117ee2281cdfb49e88a9 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Tue, 7 Aug 2007 02:43:50 +0000 Subject: [PATCH] Remove duplication of imlib2 vhook documentation. It is more complete at doc/hooks.texi Originally committed as revision 9976 to svn://svn.ffmpeg.org/ffmpeg/trunk --- vhook/imlib2.c | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) diff --git a/vhook/imlib2.c b/vhook/imlib2.c index 425179b..b85dc87 100644 --- a/vhook/imlib2.c +++ b/vhook/imlib2.c @@ -2,60 +2,6 @@ * imlib2 based hook * Copyright (c) 2002 Philip Gladstone * - * This module implements a text overlay for a video image. Currently it - * supports a fixed overlay or reading the text from a file. The string - * is passed through strftime so that it is easy to imprint the date and - * time onto the image. - * - * You may also overlay an image (even semi-transparent) like TV stations do. - * You may move either the text or the image around your video to create - * scrolling credits, for example. - * - * Text fonts are being looked for in FONTPATH - * - * Options: - * - * -C The filename to read RGB color names from - * Defaults if none specified: - * /usr/share/X11/rgb.txt - * /usr/lib/X11/rgb.txt - * -c The color of the text - * -F The font face and size - * -t The text - * -f The filename to read text from - * -x X coordinate of text or image - * -y Y coordinate of text or image - * -i The filename to read a image from - * -R Value for R color - * -G Value for G color - * -B Value for B color - * -A Value for Alpha channel - * - * Expressions are functions of: - * N // frame number (starting at zero) - * H // frame height - * W // frame width - * h // image height - * w // image width - * X // previous x - * Y // previous y - * - - Examples: - - FONTPATH="/cygdrive/c/WINDOWS/Fonts/" - FONTPATH="$FONTPATH:/usr/share/imlib2/data/fonts/" - FONTPATH="$FONTPATH:/usr/X11R6/lib/X11/fonts/TTF/" - export FONTPATH - - 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 - - ffmpeg -i input.avi -vhook \ - 'vhook/imlib2.dll -c red -F Vera.ttf/20 -x 150+0.5*N -y 70+0.25*N -t Hello' - -acodec copy -sameq output.avi - * This module is very much intended as an example of what could be done. * * One caution is that this is an expensive process -- in particular the -- 2.7.4