<p>There are several ways to do that. The simplest, but not the best would be to run some sort of remuxing twice, each time taking just a single audio track. But since there is no re-encoding the speed will go down since the computer is forced to read the whole file twice (or more times if you have more audio tracks).</p>

<p>To accomplish the task with a single read using libav (ffmpeg will probably be the same):</p>

<pre><code>avconv -i in.mkv -map 0:0 -map 0:1 -c:a copy -c:v copy out1.mkv -map 0:0 -map 0:2 -c:a copy -c:v copy out2.mkv
</code></pre>

<p>It is probably also possible to do that with gstreamer.</p>

CC BY-SA 3.0
2013-11-12T13:24:01.367Z
2013-11-12T20:36:28.510Z
2013-11-12T20:36:28.510Z
v010dya
<p>Suppose that we have one video file in.mkv, which has two audio tracks, what is the most direct way to remux it into two separate mkv files with just one audio track?</p>

<p>Two streams is an example, the technique should work with 100 audio streams.</p>

<file-formats><performance>
How to make a multi-audio video into several video files with one audio track each?
v010dya
# How to make a multi-audio video into several video files with one audio track each?

(Asked by: username_0 on 2013-11-12)

Suppose that we have one video file in.mkv, which has two audio tracks, what is the most direct way to remux it into two separate mkv files with just one audio track?

Two streams is an example, the technique should work with 100 audio streams.

**Tags:** file-formats, performance


---

## 1 answers

### Answer by username_0 on 2013-11-12. Score: 0 | Accepted answer

There are several ways to do that. The simplest, but not the best would be to run some sort of remuxing twice, each time taking just a single audio track. But since there is no re-encoding the speed will go down since the computer is forced to read the whole file twice (or more times if you have more audio tracks).
To accomplish the task with a single read using libav (ffmpeg will probably be the same):
avconv -i in.mkv -map 0:0 -map 0:1 -c:a copy -c:v copy out1.mkv -map 0:0 -map 0:2 -c:a copy -c:v copy out2.mkv

It is probably also possible to do that with gstreamer.


---

