[FFmpeg-user] watermark text with background at the bottom center of video

davidjesse davidjesse091 at aol.com
Fri Jul 22 02:58:10 EEST 2016


I think the best way would be to draw the box first with the drawbox filer
and then write text over it.

I was able to draw a box with the following filter 

drawbox=x=10:y=10:w=100:h=100:color=pink at 0.5:t=max

But I get the following errors when I change the x and y params

 drawbox="x=(w-text_w)/2:y=(h-text_h):w=3000:h=10:color=black at 1:t=max"


[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_w)/2'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_h)'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_w)/2'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_h)'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_w)/2'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_h)'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_w)/2'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_h)'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_w)/2'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_h)'
[Parsed_drawbox_0 @ 0x9fd7a0] [Eval @ 0x7ffcafc98720] Undefined constant or
missing '(' in 'text_w)/2'
[Parsed_drawbox_0 @ 0x9fd7a0] Error when evaluating the expression
'(w-text_w)/2'.
[Parsed_drawbox_0 @ 0x9fd7a0] Failed to configure input pad on
Parsed_drawbox_0
Error opening filters!





--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/watermark-text-with-background-at-the-bottom-center-of-video-tp4676802p4676810.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list