


After hours of searching online, it appears this should copy all streams ( as shown in example 4 here): ffmpeg -i in.mp4 -map 0 -c copy out.mp4 I'm having trouble getting ffmpeg to copy all audio streams from a. You may want to read through and experiment with the man page instructions on man ffmpeg-filters to understand just what level of complexity you're getting into for naming channels and expected output. (and keep the video stream), you can use the following command:įfmpeg -i input.mkv -filter_complex " amerge" -c:a pcm_s16le -c:v copy output.mkv With 2 mono audio streams into one single stereo channel audio stream

For example, if you need to merge a media (here input.mkv) If you need this feature, a possible workaround is to use the amergeįilter. Splitting a stereo stream into two single channel mono streams is Two separate mono streams into a single stereo stream. It is therefore not currently possible, for example, to turn (from the same or different files) and merge them into a single output Pick multiple input audio channels contained in different streams Note that currently each output stream can only contain channels fromĪ single input stream you can't for example use "-map_channel" to OK, I read pretty deep into the ffmpeg man page and found this which should be useful: In full line it might look like: ffmpeg -i in.mp4 -c copy -map 0 out.mp4įor more info see the documentation on stream selection and the -map option. The correct syntax is: ffmpeg -i in.mp4 -vcodec copy -c:a copy -map 0:0 -map 0:1 -map 0:2 out.mp4įFmpeg have option to map all streams to output, you have to use option -map 0 to map all streams from input to output. I managed to find the correct syntax from this ticket.

Apparently this is a popular question, so I'm posting my solution as an answer (was previously a comment reply) so that others can see.
