diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2014-07-17 12:44:36 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2014-07-17 12:44:36 +0200 |
commit | 3babbf3bf4c672624d992622cb94856c2ed95bfb (patch) | |
tree | 330c1c1657b8e2ab78049715d954260d08a4b358 | |
parent | e9ff5df0b53076636082412f06bdd3b6aaa2b607 (diff) | |
download | ffmpeg-3babbf3bf4c672624d992622cb94856c2ed95bfb.tar.gz |
doc/filters/drawtext: simplify example, use clip() eval function
-rw-r--r-- | doc/filters.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 54d6549454..8cde2775a6 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -4032,7 +4032,7 @@ DS=1.0 # display start DE=10.0 # display end FID=1.5 # fade in duration FOD=5 # fade out duration -ffplay -f lavfi "color,drawtext=text=TEST:fontsize=50:fontfile=FreeSerif.ttf:fontcolor_expr=ff0000%@{eif\\\\: max(0\\, min(255\\, 255*(1*between(t\\, $DS + $FID\\, $DE - $FOD) + ((t - $DS)/$FID)*between(t\\, $DS\\, $DS + $FID) + (-(t - $DE)/$FOD)*between(t\\, $DE - $FOD\\, $DE) ) )) \\\\: x\\\\: 2 @}" +ffplay -f lavfi "color,drawtext=text=TEST:fontsize=50:fontfile=FreeSerif.ttf:fontcolor_expr=ff0000%@{eif\\\\: clip(255*(1*between(t\\, $DS + $FID\\, $DE - $FOD) + ((t - $DS)/$FID)*between(t\\, $DS\\, $DS + $FID) + (-(t - $DE)/$FOD)*between(t\\, $DE - $FOD\\, $DE) )\\, 0\\, 255) \\\\: x\\\\: 2 @}" @end example @end itemize |