diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-07-04 11:35:39 +0300 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-09-16 20:44:27 +0200 |
commit | 37cc443c83589b172a0cbc807e05059e3ce4582b (patch) | |
tree | d32466e2882c7b6e466ea0a61bbc4ddd646adcf3 /doc | |
parent | 553c5e9f234d062d921a4150b64ffd9b19c05135 (diff) | |
download | ffmpeg-37cc443c83589b172a0cbc807e05059e3ce4582b.tar.gz |
lavfi: add audio convert filter
Add aconvert filter to perform sample format, channel layout, and
packing format conversion.
The aconvert code depends on audio conversion code in libavcodec, so
this requires a dependency on libavcodec.
Based on previous work by S.N. Hemanth Meenakshisundaram and Mina Nagy
Zaki, performed for the GSoC 2010 and 2011.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 85e28b2b26..d411d52a14 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -99,6 +99,42 @@ build. Below is a description of the currently available audio filters. +@section aconvert + +Convert the input audio format to the specified formats. + +The filter accepts a string of the form: +"@var{sample_format}:@var{channel_layout}:@var{packing_format}". + +@var{sample_format} specifies the sample format, and can be a string or +the corresponding numeric value defined in @file{libavutil/samplefmt.h}. + +@var{channel_layout} specifies the channel layout, and can be a string +or the corresponding numer value defined in @file{libavutil/chlayout.h}. + +@var{packing_format} specifies the type of packing in output, can be one +of "planar" or "packed", or the corresponding numeric values "0" or "1". + +The special parameter "auto", signifies that the filter will +automatically select the output format depending on the output filter. + +Some examples follow. + +@itemize +@item +Convert input to unsigned 8-bit, stereo, packed: +@example +aconvert=u8:stereo:packed +@end example + +@item +Convert input to unsigned 8-bit, automatically select out channel layout +and packing format: +@example +aconvert=u8:auto:auto +@end example +@end itemize + @section aformat Convert the input audio to one of the specified formats. The framework will |