[FFmpeg-user] Drawtext text placement problems
nicolas.george at normalesup.org
Thu Jan 17 12:09:41 CET 2013
Le septidi 27 nivôse, an CCXXI, Malcom Moody a écrit :
> I know FFmpeg cannot right justify text, but is there a way to obtain the
> pixel length of the string so I can give the position where the line of
> text should start?
The answer to your question is in the documentation:
main input width and height
rendered text width and height
There are even examples doing almost what you want:
# Draw a single green letter "g", at the center of the input video. The
# glyph baseline is placed at half screen height.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-user