summaryrefslogtreecommitdiff
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-12 18:40:20 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-12 18:40:20 +0000
commit94498ec98a9f0807b0d418beb5f6a0c76318d074 (patch)
treea3128da5452650781d1ee2f2bc50e221703d3392 /doc/filters.texi
parent387b4ac993528d6e25b3d6fe49d5d360b8e62e98 (diff)
Extend buffer source to accept the time base for the output PTS.
Originally committed as revision 25451 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi16
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index c9a6b21a4b..49f87cff36 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -611,7 +611,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{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den}
All the parameters need to be explicitely defined.
@@ -628,19 +628,23 @@ A string representing the pixel format of the buffered video frames.
It may be a number corresponding to a pixel format, or a pixel format
name.
+@item timebase_num, timebase_den
+Specify numerator and denomitor of the timebase assumed by the
+timestamps of the buffered frames.
@end table
For example:
@example
-buffer=320:240:yuv410p
+buffer=320:240:yuv410p:1:24
@end example
will instruct the source to accept video frames with size 320x240 and
-with format "yuv410p". 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:
+with format "yuv410p" and assuming 1/24 as the timestamps timebase.
+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:
@example
-buffer=320:240:6
+buffer=320:240:6:1:24
@end example
@section color