aboutsummaryrefslogtreecommitdiffstats
path: root/doc/libavfilter.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-10-21 20:57:30 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-10-21 20:57:30 +0000
commit190c166960b88f1b27932e1f274dd494862e8449 (patch)
tree53f8afd16ea216e451a4635ede5af84e4b2040c7 /doc/libavfilter.texi
parent9abba21ad3474ff5c49dd5cf17facc8330386a95 (diff)
downloadffmpeg-190c166960b88f1b27932e1f274dd494862e8449.tar.gz
Add video crop filter.
Originally committed as revision 20342 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/libavfilter.texi')
-rw-r--r--doc/libavfilter.texi31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/libavfilter.texi b/doc/libavfilter.texi
index f8189f1c38..7253abfa0f 100644
--- a/doc/libavfilter.texi
+++ b/doc/libavfilter.texi
@@ -84,4 +84,35 @@ Below is a description of the currently available video filters.
Pass the source unchanged to the output.
+@section crop
+
+Crop the input video to x:y:width:height.
+
+@example
+./ffmpeg -i in.avi -vfilters "crop=0:0:0:240" out.avi
+@end example
+
+``x'' and ``y'' specify the position of the top-left corner of the
+output (non-cropped) area.
+
+The default value of ``x'' and ``y'' is 0.
+
+The ``w'' and ``h'' parameters specify the width and height of the
+output (non-cropped) area.
+
+A value of 0 is interpreted as the maximum possible size contained in
+the area delimited by the top-left corner at position x:y.
+
+For example the parameters:
+
+@example
+"crop=100:100:0:0"
+@end example
+
+will delimit the rectangle with the top-left corner placed at position
+100:100 and the right-bottom corner corresponding to the right-bottom
+corner of the input image.
+
+The default value of ``w'' and ``h'' is 0.
+
@bye