From fb604ae8500d4ee7de6af61387c11618b3dea25b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 6 May 2012 09:00:53 +0200 Subject: lavfi: add aformat filter Based on a patch by Mina Nagy Zaki --- doc/filters.texi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'doc') diff --git a/doc/filters.texi b/doc/filters.texi index 0314bfaf20..f066657add 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -107,6 +107,32 @@ build. Below is a description of the currently available audio filters. +@section aformat + +Convert the input audio to one of the specified formats. The framework will +negotiate the most appropriate format to minimize conversions. + +The filter accepts the following named parameters: +@table @option + +@item sample_fmts +A comma-separated list of requested sample formats. + +@item sample_rates +A comma-separated list of requested sample rates. + +@item channel_layouts +A comma-separated list of requested channel layouts. + +@end table + +If a parameter is omitted, all values are allowed. + +For example to force the output to either unsigned 8-bit or signed 16-bit stereo: +@example +aformat=sample_fmts\=u8\,s16:channel_layouts\=stereo +@end example + @section anull Pass the audio source unchanged to the output. -- cgit v1.2.1