diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-11 23:50:21 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-11 23:50:21 +0000 |
commit | c3eabb7d2f0729cd35a58a2de71005f8fc933a09 (patch) | |
tree | a6182a93ebbc99f016dbbfbeac2315d788b870a5 /doc/libavfilter.texi | |
parent | ba11257e48ca547d747d3b0640a8022daa4f66ac (diff) | |
download | ffmpeg-c3eabb7d2f0729cd35a58a2de71005f8fc933a09.tar.gz |
Add scale filter.
Originally committed as revision 20519 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/libavfilter.texi')
-rw-r--r-- | doc/libavfilter.texi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/libavfilter.texi b/doc/libavfilter.texi index 3073b8a1f7..17f731ba87 100644 --- a/doc/libavfilter.texi +++ b/doc/libavfilter.texi @@ -164,6 +164,31 @@ not specified it will use the default value of 16. Adding this in the beginning of filter chains should make filtering faster due to better use of the memory cache. +@section scale + +Scale the input video to width:height and/or convert the image format. + +For example the command: + +@example +./ffmpeg -i in.avi -vfilters "scale=200:100" out.avi +@end example + +will scale the input video to a size of 200x100. + +If the input image format is different from the format requested by +the next filter, the scale filter will convert the input to the +requested format. + +If the value for ``width'' or ``height'' is 0, the respective input +size is used for the output. + +If the value for ``width'' or ``height'' is -1, the scale filter will +use, for the respective output size, a value that maintains the aspect +ratio of the input image. + +The default value of ``width'' and ``height'' is 0. + @section vflip Flip the input video vertically. |