Revision 94498ec9 doc/filters.texi

View differences:

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

  
613 613
It accepts the following parameters:
614
@var{width}:@var{height}:@var{pix_fmt_string}
614
@var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den}
615 615

  
616 616
All the parameters need to be explicitely defined.
617 617

  
......
628 628
It may be a number corresponding to a pixel format, or a pixel format
629 629
name.
630 630

  
631
@item timebase_num, timebase_den
632
Specify numerator and denomitor of the timebase assumed by the
633
timestamps of the buffered frames.
631 634
@end table
632 635

  
633 636
For example:
634 637
@example
635
buffer=320:240:yuv410p
638
buffer=320:240:yuv410p:1:24
636 639
@end example
637 640

  
638 641
will instruct the source to accept video frames with size 320x240 and
639
with format "yuv410p". Since the pixel format with name "yuv410p"
640
corresponds to the number 6 (check the enum PixelFormat definition in
641
@file{libavutil/pixfmt.h}), this example corresponds to:
642
with format "yuv410p" and assuming 1/24 as the timestamps timebase.
643
Since the pixel format with name "yuv410p" corresponds to the number 6
644
(check the enum PixelFormat definition in @file{libavutil/pixfmt.h}),
645
this example corresponds to:
642 646
@example
643
buffer=320:240:6
647
buffer=320:240:6:1:24
644 648
@end example
645 649

  
646 650
@section color

Also available in: Unified diff