[FFmpeg-user] Drawtext filter

Stefano Sabatini stefano.sabatini-lala at poste.it
Sun Mar 27 19:03:52 CEST 2011


On date Sunday 2011-03-27 16:44:38 +0100, Sebastian Arcus encoded:
> 
> 
> On 03/27/2011 09:23 AM, Stefano Sabatini wrote:
> >On date Saturday 2011-03-26 22:35:20 +0000, Sebastian Arcus encoded:
> >>Thanks Stefano. Any idea if the problem with the background colour
> >>option not having any effect has been solved? I tried it a while ago
> >>(about October-November 2010) - and the option to set a background
> >>colour for the text was not working at the time.
> >
> >Try it and report in case of problem.
> 
> 
> I have also just tried to use the "\%S" string in the "text"
> argument for drawtext, in order to introduce updating time stamp
> ('S' standing in for seconds, I believe) - and this results in a
> segmentation fault. I tried it few months ago - and it used to work.
> Something must have changed in the meanwhile.
> 
> Here is the command:
>   ffmpeg -fflags +genpts -t 600 -f mjpeg -r 5 -s 640x480 \
>     -i http://localhost:8080/?action=stream -vcodec mpeg4 \
>     -vf drawtext="fontfile=mitra.ttf:x=40:y=430: \
>     text='\%S test': \
>     fontcolor=0xFFFFFFFF:fontsize=22: \
>     shadowcolor=0x000000EE:shadowx=2:shadowy=2" \
>     -b 1000000 -r 5 /var/myapp/test.avi

Please update again, it should be fixed now (togheter with some errors
in the manual).
-- 
ffmpeg-user random tip #13
Have you ever *seen* ffmpeg?
find ~/src/ffmpeg/ -type f | xargs cat | ffmpeg -s qcif \ 
    -f rawvideo -i - -y ff.mpeg


More information about the ffmpeg-user mailing list