aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLou Logan <lou@lrcd.com>2016-02-11 15:44:40 -0900
committerLou Logan <lou@lrcd.com>2016-02-12 09:58:11 -0900
commit0b0121d7f2093367798216a37506dbd053073a60 (patch)
tree62bf8be773ba754bbd9dbf44f98e25be8578ac7e /doc
parentf0a8212436c47afca997c4ce3af2da09cc30a4e4 (diff)
downloadffmpeg-0b0121d7f2093367798216a37506dbd053073a60.tar.gz
doc/filters: add geq diagonal split screen example
Also remove similar but confusing and less useful example. Based on geq expression by Patrick Race <raceink at gmail>. Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 35f5050bfc..b7762101a6 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -7478,12 +7478,9 @@ geq=lum=255*gauss((X/W-0.5)*3)*gauss((Y/H-0.5)*3)/gauss(0)/gauss(0),format=gray
@end example
@item
-Create a linear gradient to use as a mask for another filter, then
-compose with @ref{overlay}. In this example the video will gradually
-become more blurry from the top to the bottom of the y-axis as defined
-by the linear gradient:
+Diagonal split screen to compare filter effect:
@example
-ffmpeg -i input.mp4 -filter_complex "geq=lum=255*(Y/H),format=gray[grad];[0:v]boxblur=4[blur];[blur][grad]alphamerge[alpha];[0:v][alpha]overlay" output.mp4
+ffmpeg -i input -filter_complex "[0:v]geq=lum=if(gt(X\,Y*(W/H))\,255),format=gray[alpha];[0:v][alpha]alphamerge,curves=preset=color_negative[filtered];[0:v][filtered]overlay" output
@end example
@end itemize