diff options
author | Nicolas George <george@nsup.org> | 2014-04-03 15:42:22 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-04-10 12:52:19 +0200 |
commit | ad8159e0fe2bfc1c34739f0956ce464f9859b5a7 (patch) | |
tree | 982dee742b1d859cd1628fef94cb75fd9221dc4f /doc/filters.texi | |
parent | f6774f905fb3cfdc319523ac640be30b14c1bc55 (diff) | |
download | ffmpeg-streaming-ad8159e0fe2bfc1c34739f0956ce464f9859b5a7.zip ffmpeg-streaming-ad8159e0fe2bfc1c34739f0956ce464f9859b5a7.tar.gz |
libavfilter: Add asettb filter for setting timebase for audio
Ported asettb (including the sr option for audio sample rate) from FFmpeg,
and copied/modified the existing settb documentation for asettb.
Signed-off-by: Katerina Barone-Adesi <katerinab+libav@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index f986623..c34aef2 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -260,6 +260,47 @@ asetpts=expr=N/SR/TB asetpts='(RTCTIME - RTCSTART) / (TB * 1000000)" @end example +@section asettb + +Set the timebase to use for the output frames timestamps. +It is mainly useful for testing timebase configuration. + +This filter accepts the following parameters: + +@table @option + +@item expr +The expression which is evaluated into the output timebase. + +@end table + +The expression can contain the constants @var{PI}, @var{E}, @var{PHI}, @var{AVTB} (the +default timebase), @var{intb} (the input timebase), and @var{sr} (the sample rate, +audio only). + +The default value for the input is @var{intb}. + +Some examples: + +@example +# Set the timebase to 1/25: +settb=1/25 + +# Set the timebase to 1/10: +settb=0.1 + +# Set the timebase to 1001/1000: +settb=1+0.001 + +# Set the timebase to 2*intb: +settb=2*intb + +# Set the default timebase value: +settb=AVTB + +# Set the timebase to twice the sample rate: +asettb=sr*2 +@end example @section ashowinfo |