diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-12 09:22:32 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-12 09:22:32 +0000 |
commit | 68b79bfc482fe09faf259153920718261950a637 (patch) | |
tree | 09850f51ca61ce96ebd70655bb9b6851071c7ddb /doc/filters.texi | |
parent | 16134b7c4041406e288c652596acbc872367fae1 (diff) | |
download | ffmpeg-68b79bfc482fe09faf259153920718261950a637.tar.gz |
Implement cropdetect filter.
Originally committed as revision 25447 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index e85e9effec..c9a6b21a4b 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -190,6 +190,41 @@ crop=in_w-100:in_h-100:100:100 "crop=in_w/2:in_h/2:y:10+10*sin(n/10)" @end example +@section cropdetect + +Auto-detect crop size. + +Calculate necessary cropping parameters and prints the recommended +parameters through the logging system. The detected dimensions +correspond to the non-black area of the input video. + +It accepts the syntax: +@example +cropdetect[=@var{limit}:@var{round}[:@var{reset}]] +@end example + +@table @option + +@item limit +Threshold, which can be optionally specified from nothing (0) to +everything (255), defaults to 24. + +@item round +Value which the width/height should be divisible by, defaults to +16. The offset is automatically adjusted to center the video. Use 2 to +get only even dimensions (needed for 4:2:2 video). 16 is best when +encoding to most video codecs. + +@item reset +Counter that determines after how many frames cropdetect will reset +the previously detected largest video area and start over to detect +the current optimal crop area. Defaults to 0. + +This can be useful when channel logos distort the video area. 0 +indicates never reset and return the largest area encountered during +playback. +@end table + @section drawbox Draw a colored box on the input image. |