VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. 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?
    Cann't tell it's possible don't tell anything.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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
    Then double click/run the test.bat. You can test with just one mkv first.
    Quote Quote  
  3. 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.
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Nope. No idea.
    Quote Quote  
  5. 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.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!