Log in

View Full Version : MKVMerge Batch Remuxing


asoksevil
5th April 2012, 12:04
Hey guys!

I have many many MKV videos in which I just want to keep one video track, one audio track and one subtitles track in order to be played in my Panasonic G30.

Is there any script for MKVMerge? I'm tired of doing it manually one by one.

Thanks!

sneaker_ger
5th April 2012, 12:48
It's difficult, because mkvmerge copies tracks by "Track ID"s. When the Track IDs of all the tracks you want to copy are the same, it's easy.
http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge.html

asoksevil
5th April 2012, 13:22
Thanks for your fast reply!

I found out that almost every video I have they follow the track's ID I want. This means that I just want the audio track ID 1 and the subs track ID 1.

I just checked that link, but I'm pretty newbie into MKVMerge and all its command so I don't really understand how can I create an script.

Can you copy me the genuine script for remuxing videos presetting the audio track id 1 and sub track id 1?

Thanks!

sneaker_ger
5th April 2012, 13:32
That's not how it works. In recent mkvmerge versions TrackIDs are unique, start at 0 and increment by +1. Two tracks cannot have the same TrackID, even if they are of a different kind (video/audio/subtitle).
You can look up the TrackIDs with "mkvmerge -i file.mkv".