I try to multiplex the video track and one audio track from the same mkv file
I used following command:
mkvmerge -o output.mkv -d 0 Video.mkv -a 1 Video.mkv
But every track also mix in together, I only want track 0 and Track 1 though
The official document says -d means selected video track, -a means selected audio track
Is there any lines I am not entering correctly here ?
+ Reply to Thread
Results 1 to 5 of 5
Last edited by khv742; 10th Sep 2021 at 23:16.
If you want to do it via the command line then these examples may help.
If you have other tracks in a video - subtitles, chapters, etc., then the track numbers will change.
You can get the track numbers using MediaInfo. Mostly.
If the languages for the audio and subtitle tracks are undefined then it's trial and error to get the correct combination.
If you have 1 video with 3 audio tracks.
The video and audio track 1
mkvmerge.exe --output Video-New.mkv --audio-tracks 1 Video-c.mkv --track-order 0:0,0:1
mkvmerge.exe --output Video-New.mkv --audio-tracks 2 Video-c.mkv --track-order 0:0,0:2
mkvmerge.exe --output Video-New.mkv --audio-tracks 3 Video-c.mkv --track-order 0:0,0:3
mkvmerge.exe --output Video-New.mkv --no-audio Video-a.mp4 --no-video Video-b.mp4 --track-order 0:0,1:1
mkvmerge.exe --output Video-New.mkv --audio-tracks 1 --language 1:en Video-c.mkv --track-order 0:0,0:1
Again, it's better to use MKVtoolnixGUI
After playing with some combination, I got it working now