Commit 7dd29fb6 authored by Stefano Sabatini's avatar Stefano Sabatini

drawtext: extend/clarify examples in the filter description

parent 7e3373d2
...@@ -464,12 +464,22 @@ Default value is 4. ...@@ -464,12 +464,22 @@ Default value is 4.
For example the command: For example the command:
@example @example
drawtext="fontfile=FreeSerif.ttf: text='Test Text': x=100: y=50: fontsize=24: fontcolor=yellow@@0.2: boxcolor=red@@0.2: box=1" drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'"
@end example @end example
will draw 'Test Text' with font FreeSerif of size 24 at position will draw "Test Text" with font FreeSerif, using the default values
(100,50), text color is yellow, and draw a red box around text. Both for the optional parameters.
the text and the box have an opacity of 20%.
The command:
@example
drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text':\
x=100: y=50: fontsize=24: fontcolor=yellow@@0.2: box=1: boxcolor=red@@0.2"
@end example
will draw 'Test Text' with font FreeSerif of size 24 at position x=100
and y=50 (counting from the top-left corner of the screen), text is
yellow with a red box around it. Both the text and the box have an
opacity of 20%.
Note that the double quotes are not necessary if spaces are not used Note that the double quotes are not necessary if spaces are not used
within the parameter list. within the parameter list.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment