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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityFrom 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?
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:
y=ih-h
To place the box 10 pixels above the bottom:
y=ih-h-10
See the FFmpeg drawbox video filter documentation for more options.