diff options
author | Mulvya <mulvya@gmail.com> | 2016-04-03 14:27:01 +0530 |
---|---|---|
committer | Lou Logan <lou@lrcd.com> | 2016-04-07 09:40:36 -0800 |
commit | b7a776aa7bb6efe8a757ab899fb5046bee1120f0 (patch) | |
tree | ce3ae944e4da327499e925b6b1c5d87058925f3a /doc/filters.texi | |
parent | 3a9611d623fe2b3496885feec4aa4c661b163110 (diff) | |
download | ffmpeg-b7a776aa7bb6efe8a757ab899fb5046bee1120f0.tar.gz |
doc/filters: add drawtext example
Show example which draws text at a random position, and switches positions every 30 seconds
Signed-off-by: Mulvya <mulvya@gmail.com>
Signed-off-by: Lou Logan <lou@lrcd.com>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 0b2a9b6bbd..82be06d225 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -6557,6 +6557,12 @@ drawtext="fontsize=30:fontfile=FreeSerif.ttf:text='hello world':x=(w-text_w)/2:y @end example @item +Show the text at a random position, switching to a new position every 30 seconds: +@example +drawtext="fontsize=30:fontfile=FreeSerif.ttf:text='hello world':x=if(eq(mod(t\,30)\,0)\,rand(0\,(w-text_w))\,x):y=if(eq(mod(t\,30)\,0)\,rand(0\,(h-text_h))\,y)" +@end example + +@item Show a text line sliding from right to left in the last row of the video frame. The file @file{LONG_LINE} is assumed to contain a single line with no newlines. |