summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-11-06 21:28:05 +0100
committerNicolas George <nicolas.george@normalesup.org>2011-12-31 16:25:11 +0100
commit4962edf88926ae2b06260eb50dbc96dcd4199784 (patch)
tree656dc821a6a32091b3fec6f907860d06a00a70bd /doc
parente90a69e9550800728f36efc3ea804ccd8d1d8380 (diff)
downloadffmpeg-streaming-4962edf88926ae2b06260eb50dbc96dcd4199784.zip
ffmpeg-streaming-4962edf88926ae2b06260eb50dbc96dcd4199784.tar.gz
lavfi: add amerge audio filter.
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 487ec21..3109d0d 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -156,6 +156,39 @@ aformat=u8\\,s16:mono:packed
aformat=s16:mono\\,stereo:all
@end example
+@section amerge
+
+Merge two audio streams into a single multi-channel stream.
+
+This filter does not need any argument.
+
+If the channel layouts of the inputs are disjoint, and therefore compatible,
+the channel layout of the output will be set accordingly and the channels
+will be reordered as necessary. If the channel layouts of the inputs are not
+disjoint, the output will have all the channels of the first input then all
+the channels of the second input, in that order, and the channel layout of
+the output will be the default value corresponding to the total number of
+channels.
+
+For example, if the first input is in 2.1 (FL+FR+LF) and the second input
+is FC+BL+BR, then the output will be in 5.1, with the channels in the
+following order: a1, a2, b1, a3, b2, b3 (a1 is the first channel of the
+first input, b1 is the first channel of the second input).
+
+On the other hand, if both input are in stereo, the output channels will be
+in the default order: a1, a2, b1, b2, and the channel layout will be
+arbitrarily set to 4.0, which may or may not be the expected value.
+
+Both inputs must have the same sample rate, format and packing.
+
+If inputs do not have the same duration, the output will stop with the
+shortest.
+
+Example: merge two mono files into a stereo stream:
+@example
+amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge
+@end example
+
@section anull
Pass the audio source unchanged to the output.
OpenPOWER on IntegriCloud