View Full Version : Batch demux and remux of mkv?
jp80
22nd December 2004, 00:02
Hi,
I wish to demux and remux a lot of video in mkv to change the default language and subs settings so that japanese dub and english sub is chosen on play.
The problem is it takes a lot of time to do it manually, so I wonder if there is a way to do it automatically, even only by remuxing from demuxed video and audio files?
gircobain
22nd December 2004, 00:12
Run mmg.exe, open the first file, set it up to do with you want it to and copy the command line
From there you should be able to modify the command line to run mkvmerge.exe on each file in a DOS batch file
jp80
22nd December 2004, 01:29
tx for your answer, it lead me to discover you could use job queue in mmg which is what I needed!
jp80
22nd December 2004, 02:10
Well I just tried the output files after having set the default audio and subs I wanted for their jobs in the queue, but when I played them they were still the same as before :( ...
celtic_druid
22nd December 2004, 04:34
Well you could use something like:
for %%f in (*.mkv) DO (mkvextract.exe tracks "%%f" 1:"%%~nf.avi" 3:"%%~nf.ogg" 4:"%%~nf.srt")
to extract and then a similar line to remux, or something like the above directly with mmg and the mkv file.
Mosu
22nd December 2004, 12:11
No need to use mkvextract. mkvmerge can read directly from Matroska files.
celtic_druid
22nd December 2004, 14:18
Exactly why I said or something like the above directly with mmg and the mkv file. Just going by the title that said demux and then remux.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.