[FFmpeg-user] Drawtext filter
Sebastian Arcus
shop at open-t.co.uk
Sun Mar 27 17:44:38 CEST 2011
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
Sebastian
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list