
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:

For any others that are interested, the correct syntax is:įfmpeg -i in.mp4 -vcodec copy -c:a copy -map 0 out.mp4 Statistics: 153350 bytes read, 2 seeksĮdit 2 (solved): I managed to find the correct syntax from this ticket.

Out.mp4 (which should be identical to in.mp4) contains only 2 streams:įFmpeg does appear to correctly identify all 3 streams, but doesn't copy all of them over.

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.
