FFmpeg 1.1.16
Since* 0.7
#

Draw a colored box on the input image.

The filter accepts parameters as a list of key=value pairs, separated by ":".

The description of the accepted parameters follows.

x, y

Specify the top left corner coordinates of the box. Default to 0.

width, w, height, h

Specify the width and height of the box, if 0 they are interpreted as the input width and height. Default to 0.

color, c

Specify the color of the box to write, it can be the name of a color (case insensitive match) or a 0xRRGGBB[AA] sequence. If the special value invert is used, the box edge color is the same as the video with inverted luma.

thickness, t

Set the thickness of the box edge. Default value is 4.

If the key of the first options is omitted, the arguments are interpreted according to the following syntax:

drawbox=x:y:width:height:color:thickness

Some examples follow: