Reputation: 1603
Is it possible to draw a text above the specified coordinates? Example i want to write "Hello" at coordinate (100,100). By default ffmpeg draws the text in top to bottom manner, i.e , Starting point would be 100,100 and will draw downwards. Can it be drawn in a bottom up manner? (Start upwards from 100,100). Thanks
Upvotes: 0
Views: 1869
Reputation: 93058
Make use of the rendered text width and height variables
ffmpeg -i in.mp4 -vf drawtext=x=100-tw:y=100-th out.mp4
Here, (100,100), measured from the top-left, will be the lower-right corner of the drawn text.
To just keep it bottom-aligned but from L-to-R
ffmpeg -i in.mp4 -vf drawtext=x=100:y=100-th out.mp4
Upvotes: 1