[FFmpeg-devel] [PATCH] vf_drawtext: make x and y options parametric

Michael Niedermayer michaelni at gmx.at
Wed Sep 21 16:51:11 CEST 2011


On Wed, Sep 21, 2011 at 02:51:16PM +0200, Stefano Sabatini wrote:
> On date Tuesday 2011-09-20 21:44:46 +0200, Michael Niedermayer encoded:
> > On Tue, Sep 20, 2011 at 08:30:46PM +0200, Stefano Sabatini wrote:
> > > Address trac issue #378.
> > > ---
> > >  doc/filters.texi          |   68 ++++++++++++++++++++-
> > >  libavfilter/vf_drawtext.c |  143 ++++++++++++++++++++++++++++++++++++++++-----
> > >  2 files changed, 191 insertions(+), 20 deletions(-)
> > 
> > ok, but please check that changing them through stdin in ffmpeg still
> > works
> 
> Can you suggest a way to test it? That's all but obvious (and should
> be documented in case this is meant to be non only an "experimental"
> feature).

try something like:

echo -e 'Call 2 reinit fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf:text=W old:fontcolor=white\nCall 5 reinit fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf:text="Hallo Woldäüö߀":fontcolor=white'
(i copy and pasted above from log so it should work)

and pipe this into a ffmpeg with a drawtext filter.

it should shedule reinits of it with the given parameters at
seconds 2 and 5

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110921/8f2338bd/attachment.asc>


More information about the ffmpeg-devel mailing list