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:[email protected]: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@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. _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
