aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2012-01-10 11:47:46 +0100
committerClément Bœsch <ubitux@gmail.com>2012-02-02 14:31:17 +0100
commitd055c3286c979095650453f08a4d69fb6d995f92 (patch)
treee2f1953a90d8f63f9b2213594fc961175ddd0879 /doc/filters.texi
parentb90d79ec1f2115ed583399739fd37a97d74f9a64 (diff)
downloadffmpeg-d055c3286c979095650453f08a4d69fb6d995f92.tar.gz
doc: document amerge filter as an alternative for the -map_channel limitation.
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index c6bcf0bdcd..1f3522e08d 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -189,6 +189,23 @@ Example: merge two mono files into a stereo stream:
amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge
@end example
+If you need to do multiple merges (for instance multiple mono audio streams in
+a single video media), you can do:
+@example
+ffmpeg -f lavfi -i "
+amovie=input.mkv:si=0 [a0];
+amovie=input.mkv:si=1 [a1];
+amovie=input.mkv:si=2 [a2];
+amovie=input.mkv:si=3 [a3];
+amovie=input.mkv:si=4 [a4];
+amovie=input.mkv:si=5 [a5];
+[a0][a1] amerge [x0];
+[x0][a2] amerge [x1];
+[x1][a3] amerge [x2];
+[x2][a4] amerge [x3];
+[x3][a5] amerge" -c:a pcm_s16le output.mkv
+@end example
+
@section anull
Pass the audio source unchanged to the output.