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


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.

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.