Message ID | 20200902225717.223162-1-rybak.a.v@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avfilter/vf_drawtext: document expr for fontsize | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
On 03-09-2020 04:27 am, Andrei Rybak wrote: > Expressions for parameter fontsize of video filter drawtext have been > supported since commit 6442e4ab3c (avfilter/vf_drawtext: added expr > evaluation to drawtext fontsize, 2017-04-18). > > Add an example of using such expressions to documentation. Revised and applied as 5de8e897b1585fce973214532cf06cd98750f715 Thanks, Gyan
diff --git a/doc/filters.texi b/doc/filters.texi index fb8757ff8f..ec386a6c55 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 +@item +Draw "Test Text" of 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
Expressions for parameter fontsize of video filter drawtext have been supported since commit 6442e4ab3c (avfilter/vf_drawtext: added expr evaluation to drawtext fontsize, 2017-04-18). Add an example of using such expressions to documentation. Signed-off-by: Andrei Rybak <rybak.a.v@gmail.com> --- doc/filters.texi | 6 ++++++ 1 file changed, 6 insertions(+)