[FFmpeg-cvslog] doc/filters: add example for drawtext fontsize expr

Andrei Rybak git at videolan.org
Thu Sep 3 08:40:38 EEST 2020


ffmpeg | branch: master | Andrei Rybak <rybak.a.v at gmail.com> | Thu Sep  3 00:57:17 2020 +0200| [5de8e897b1585fce973214532cf06cd98750f715] | committer: Gyan Doshi

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 at gmail.com>
Revised-by: Gyan Doshi <ffmpeg at gyani.pro>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5de8e897b1585fce973214532cf06cd98750f715
---

 doc/filters.texi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/filters.texi b/doc/filters.texi
index fb8757ff8f..5dc85ae09f 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -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
 
+ at item
+Draw "Test Text" with font size dependent on height of the video.
+ at example
+drawtext="text='Test Text': fontsize=h/30: x=(w-text_w)/2: y=(h-text_h*2)"
+ at end example
+
 @item
 Print the date of a real-time encoding (see strftime(3)):
 @example



More information about the ffmpeg-cvslog mailing list