7

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

12

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

y=ih-h

To place the box 10 pixels above the bottom:

drawbox 10 px above bottom

y=ih-h-10

See the FFmpeg drawbox video filter documentation for more options.

1
  • 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 .