From the docs it's pretty straight forward how to create a box at the top with the y=0

drawbox=x=10:y=0:w=200:h=60:[email protected]

But how can I draw the box at the bottom?

1 Answer 1


You can reference both the height of the input (ih), and the height of the box (h). This allows more flexible placement; especially if your inputs vary in size.

To place the box directly on the bottom:

drawbox on bottom


To place the box 10 pixels above the bottom:

drawbox 10 px above bottom


See the FFmpeg drawbox video filter documentation for more options.

  • I needed thickness=fill too.
    – Pysis
    May 18, 2023 at 4:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .