doc/filters: add example for drawtext fontsize expr

Expressions for option fontsize of video filter drawtext have been
supported since commit 6442e4ab3c.

Signed-off-by: Andrei Rybak <rybak.a.v@gmail.com>
Revised-by: Gyan Doshi <ffmpeg@gyani.pro>
This commit is contained in:
Andrei Rybak 2020-09-03 00:57:17 +02:00 committed by Gyan Doshi
parent 7b1ed4b53a
commit 5de8e897b1

View File

@ -10233,6 +10233,12 @@ Use fontconfig to set the font. Note that the colons need to be escaped.
drawtext='fontfile=Linux Libertine O-40\:style=Semibold:text=FFmpeg'
@end example
@item
Draw "Test Text" with font size dependent on height of the video.
@example
drawtext="text='Test Text': fontsize=h/30: x=(w-text_w)/2: y=(h-text_h*2)"
@end example
@item
Print the date of a real-time encoding (see strftime(3)):
@example