summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-05-30 13:59:30 +0200
committerAnton Khirnov <anton@khirnov.net>2012-06-12 21:38:59 +0200
commitd6251368772a170987387bdc508433c8fcf54cda (patch)
tree9930e4822f037661607d6fa01ae5ebf907c92069 /doc
parent4795362660a526a38a7a60f06826bce97a092b59 (diff)
downloadffmpeg-streaming-d6251368772a170987387bdc508433c8fcf54cda.zip
ffmpeg-streaming-d6251368772a170987387bdc508433c8fcf54cda.tar.gz
lavfi: add channelsplit audio filter.
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 0179682..f17dad8 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -207,6 +207,31 @@ Maximum compensation in samples per second.
@end table
+@section channelsplit
+Split each channel in input audio stream into a separate output stream.
+
+This filter accepts the following named parameters:
+@table @option
+@item channel_layout
+Channel layout of the input stream. Default is "stereo".
+@end table
+
+For example, assuming a stereo input MP3 file
+@example
+avconv -i in.mp3 -filter_complex channelsplit out.mkv
+@end example
+will create an output Matroska file with two audio streams, one containing only
+the left channel and the other the right channel.
+
+To split a 5.1 WAV file into per-channel files
+@example
+avconv -i in.wav -filter_complex
+'channelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR]'
+-map '[FL]' front_left.wav -map '[FR]' front_right.wav -map '[FC]'
+front_center.wav -map '[LFE]' lfe.wav -map '[SL]' side_left.wav -map '[SR]'
+side_right.wav
+@end example
+
@section resample
Convert the audio sample format, sample rate and channel layout. This filter is
not meant to be used directly, it is inserted automatically by libavfilter
OpenPOWER on IntegriCloud