Hi, I'm applying a same set of instructions to dozen of identical files in structure. The instructions are:
"--default-track" "1:no"
"--forced-track" "1:no"
"--default-track" "2:yes"
"--track-order" "0:0,0:2,0:1"
How do I do that?
+ Reply to Thread
Results 1 to 6 of 6
-
Cann't tell it's possible don't tell anything.
-
Make a batch/bat file with the mkvmerge command and put in same folder as your mkvs. Make a new folder newfiles in same folder.
test.bat
Code:for %%a in ("*.mkv") do "c:\mkvtoolnix\mkvmerge.exe" -o "newfiles\%%a" --default-track 1:no --forced-track 1:no --default-track 2:yes --track-order 0:0,0:2,0:1 "%%a" pause
-
Great, thanks! Any idea how translate "for %%a in ("*.mkv") do" to a Terminal (OSX)? On a second thought I'can use a virtual XP machine for that.
Cann't tell it's possible don't tell anything. -
btw. you could also use mkv option files:
http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge.html#mkvmerge.option_files -
Thanks, Baldricks awesome tip works fantastic. I've been with computers since 1995 but I didn't know DOS can read files from a directory filtered by extension to repeat the command line with each file and provide the filename as string for input / output parameter.
Besides MKVMerge does let you create an option file but does not tell you how to use it or apply it to multiple files.
Also I tried 'Add command line options' feature but MkvMerge 'could not find' the loaded video track probably because the track rearrangement is not a 'global' nor 'hack' option listed in 'Available options' dropbox.Last edited by kurbads; 21st May 2014 at 15:25.
Cann't tell it's possible don't tell anything.