diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-01-31 20:48:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-31 21:32:06 +0100 |
commit | 7b3ea5507cd79d7e80cb435fda20e70f90e18663 (patch) | |
tree | 212f3f588acbca910e82e124b7e024727be28186 /doc/filters.texi | |
parent | 14b171cd71f2b5f1cc66e4df89c2692f68ac098b (diff) | |
download | ffmpeg-7b3ea5507cd79d7e80cb435fda20e70f90e18663.tar.gz |
Add sample_aspect_ratio fields to vsrc_buffer arguments.
This fixes aspect handling in ffmpeg
This is based on a patch by baptiste
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 3842886521..ccddc33ff0 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1014,7 +1014,7 @@ This source is mainly intended for a programmatic use, in particular through the interface defined in @file{libavfilter/vsrc_buffer.h}. It accepts the following parameters: -@var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den} +@var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den}:@var{sample_aspect_ratio_num}:@var{sample_aspect_ratio.den} All the parameters need to be explicitely defined. @@ -1033,15 +1033,20 @@ name. @item timebase_num, timebase_den Specify numerator and denomitor of the timebase assumed by the timestamps of the buffered frames. + +@item sample_aspect_ratio.num, sample_aspect_ratio.den +Specify numerator and denominator of the sample aspect ratio assumed +by the video frames. @end table For example: @example -buffer=320:240:yuv410p:1:24 +buffer=320:240:yuv410p:1:24:1:1 @end example will instruct the source to accept video frames with size 320x240 and -with format "yuv410p" and assuming 1/24 as the timestamps timebase. +with format "yuv410p", assuming 1/24 as the timestamps timebase and +square pixels (1:1 sample aspect ratio). Since the pixel format with name "yuv410p" corresponds to the number 6 (check the enum PixelFormat definition in @file{libavutil/pixfmt.h}), this example corresponds to: |