Revision 7b3ea550 doc/filters.texi

View differences:

doc/filters.texi
1014 1014
through the interface defined in @file{libavfilter/vsrc_buffer.h}.
1015 1015

  
1016 1016
It accepts the following parameters:
1017
@var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den}
1017
@var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den}:@var{sample_aspect_ratio_num}:@var{sample_aspect_ratio.den}
1018 1018

  
1019 1019
All the parameters need to be explicitely defined.
1020 1020

  
......
1033 1033
@item timebase_num, timebase_den
1034 1034
Specify numerator and denomitor of the timebase assumed by the
1035 1035
timestamps of the buffered frames.
1036

  
1037
@item sample_aspect_ratio.num, sample_aspect_ratio.den
1038
Specify numerator and denominator of the sample aspect ratio assumed
1039
by the video frames.
1036 1040
@end table
1037 1041

  
1038 1042
For example:
1039 1043
@example
1040
buffer=320:240:yuv410p:1:24
1044
buffer=320:240:yuv410p:1:24:1:1
1041 1045
@end example
1042 1046

  
1043 1047
will instruct the source to accept video frames with size 320x240 and
1044
with format "yuv410p" and assuming 1/24 as the timestamps timebase.
1048
with format "yuv410p", assuming 1/24 as the timestamps timebase and
1049
square pixels (1:1 sample aspect ratio).
1045 1050
Since the pixel format with name "yuv410p" corresponds to the number 6
1046 1051
(check the enum PixelFormat definition in @file{libavutil/pixfmt.h}),
1047 1052
this example corresponds to:

Also available in: Unified diff