[FFmpeg-soc] ffmpeg-soc and drawtext filter

Sebastian shop at open-t.co.uk
Fri Nov 12 19:04:15 CET 2010


Hi all,

I'm trying to use the drawtext filter to overlay some text on recorded 
footage. I've compiled and installed ffmpeg-soc/libavfilter from svn 
repository. I have:

FFmpeg version SVN-r25657, Copyright (c) 2000-2010 the FFmpeg developers
   built on Nov 11 2010 23:05:59 with gcc 4.4.4
   configuration: --prefix=/usr --enable-shared --enable-static 
--enable-nonfree --enable-gpl --enable-libfreetype --enable-swscale 
--disable-ffserver --enable-libvpx --enable-libx264 --enable-avfilter 
--enable-libopenjpeg


I'm using the following command line:

  ffmpeg -fflags +genpts -f mjpeg -r 5 -s 640x480 \
  -i http://localhost:8081/?action=stream \
  -vcodec mpeg4 -b 1000000 -r 5  \
  -vf drawtext="fontfile='/usr/share/font/TTF/LiberationSansRegular.ttf' \
  :fontsize=18:fgcolor=0xFFFFFF:bgcolor=0x333333:x=10:y=5 \
  :text='camera 1  |  \%H\:\%M\:\%S  |  \%d-\%m-\%Y'" \
   /home/cctv/test-overlay.avi

Ignore the backslash on the next line - this is from my email software.

The overlay does appear in the recorded footage - but the problem I have 
is that "bgcolor" doesn't seem to work. There is simply no background 
for the overlay. Whatever value I put there - it has no effect 
whatsoever. "fgcolor" does work, however. Also - the command doesn't 
spew any errors.

Is this by design (i.e. - am I missing something in my syntax) - or is 
it a bug? Should I file a bug report somewhere?

Sebastian


More information about the FFmpeg-soc mailing list