PDA

View Full Version : Batch Demux and Remux


Ortix
19th April 2009, 01:47
So i have bunch of mkv files with subs in chinese. I have to subs in english but i don't want to demux like 30 mkv files and then remux them all seperatly with the corresponding sub file.

Is there an easy way to AT LEAST demux the video's in a batch?

thanks

Inspector.Gadget
19th April 2009, 02:25
Use batchenc as a frontend to mkvextract. I do that after using MakeMKV or eac3to and splitting by chapters, for instance.

Ortix
19th April 2009, 15:58
I got it working, i used "mkvextract tracks <infile> 2:<outfile.aac>" (without the " ") and dumped in all the files i wanted to use :) This is a easy breezy :)

Alright so now i want to do the following:

I have the video's in a specific folder (mkv format), the subs are in in seperate folder INSIDE the video folder, so are the audio files. This is just info.... Now i want to have a command line that basically muxes all the files together. I could rename all the files so that the numbers match. Is this something that is feasible with a command line or should i do this manually?

Daiz
20th April 2009, 09:36
Do it manually with mkvmerge GUI for one file, then copy the command line options for it (Muxing -> Copy command line to clipboard), paste it to a .bat file as many times as you need and edit the necessary values.

Pudah
21st April 2009, 02:22
You could probably use the FOR command in your batch file to loop thru every file in a directory without having to manually enter each name. For info about the command, enter

FOR /? > FOR.txt

from a command prompt to dump the FOR command help to a text file.

Or review the command at Microsoft Technet command-line reference (http://technet.microsoft.com/en-us/library/cc778084.aspx)

Ortix
21st April 2009, 03:33
really helpfull guys! Unfortunatelly it turned out i had to do it manually because EVERYTIME i used mkvmerge, audio got out of sync. So i used the mkvmerge inside meGUI, which for some magical reason DID work... Took me 2 days, 20 minutes each day... not THAT bad :P

Thanks for the help tho! Will save this in my favs!