diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-25 03:14:01 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-25 03:14:01 +0400 |
commit | 2bc05d35470d5a18f9c6d2d10be9c1c8ddc2f634 (patch) | |
tree | c861f42870be72be249487c5b9f5b6e65bc9f143 /doc | |
parent | d66a546f77391cbac6e0453f4d76791ed94a61a2 (diff) |
Change the syntax of the crop filter from x:y:w:h to w:h:x:y.
Slightly more intuitive and required by a pending changes for making
the filter parametric.
Originally committed as revision 25184 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ffmpeg-doc.texi | 8 | ||||
-rw-r--r-- | doc/filters.texi | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/doc/ffmpeg-doc.texi b/doc/ffmpeg-doc.texi index d9c5c14242..e43e87ea0a 100644 --- a/doc/ffmpeg-doc.texi +++ b/doc/ffmpeg-doc.texi @@ -226,13 +226,13 @@ The following abbreviations are recognized: @item -aspect @var{aspect} Set aspect ratio (4:3, 16:9 or 1.3333, 1.7777). -@item -croptop @var{size} (deprecated - use -vf crop=x:y:width:height instead) +@item -croptop @var{size} (deprecated - use the crop filter instead) Set top crop band size (in pixels). -@item -cropbottom @var{size} (deprecated - use -vf crop=x:y:width:height instead) +@item -cropbottom @var{size} (deprecated - use the crop filter instead) Set bottom crop band size (in pixels). -@item -cropleft @var{size} (deprecated - use -vf crop=x:y:width:height instead) +@item -cropleft @var{size} (deprecated - use the crop filter instead) Set left crop band size (in pixels). -@item -cropright @var{size} (deprecated - use -vf crop=x:y:width:height instead) +@item -cropright @var{size} (deprecated - use the crop filter instead) Set right crop band size (in pixels). @item -padtop @var{size} @item -padbottom @var{size} diff --git a/doc/filters.texi b/doc/filters.texi index 2309c56ac6..f934082d9a 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -26,27 +26,27 @@ Below is a description of the currently available video filters. @section crop -Crop the input video to @var{x}:@var{y}:@var{width}:@var{height}. +Crop the input video to @var{width}:@var{height}:@var{x}:@var{y}. @example -./ffmpeg -i in.avi -vf "crop=0:0:0:240" out.avi +./ffmpeg -i in.avi -vf "crop=0:240:0:0" out.avi @end example -@var{x} and @var{y} specify the position of the top-left corner of the -output (non-cropped) area. - -The default value of @var{x} and @var{y} is 0. - The @var{width} and @var{height} 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. +@var{x} and @var{y} specify the position of the top-left corner of the +output (non-cropped) area. + +The default value of @var{x} and @var{y} is 0. + For example the parameters: @example -"crop=100:100:0:0" +"crop=0:0:100:100" @end example will delimit the rectangle with the top-left corner placed at position |