5

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:color=red@0.5

But how can I draw the box at the bottom?

1 Answer 1

10

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.