VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date
    Dec 2008
    Location
    United Kingdom
    Search Comp PM
    Hey all,

    I have downloaded a set of MKV H.264 files which have two audio tracks (1. German 2. English)

    I wish to, eaisly, batch process all the files (hundreads) and remove the first audio track from the container.

    Is this possible?

    Cheers,
    iBeech
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I would use mkvtoolnix and use the command line version and then make a bat file with a for loop. I will see if I can make an example.
    Quote Quote  
  3. Member
    Join Date
    Dec 2008
    Location
    United Kingdom
    Search Comp PM
    cheers Baldrick- your help is much appreciated.
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    THis will ONLY work if all mkvs are similar with 2 audio tracks and 1 video tracks,

    Install mkvtoolnix. Run mkvmerge gui, open one mkv, disable the german audio track, click copy to clipboard, open notepad and paste it and you will get something like
    Code:
    "mkvmerge" -o "E:\\Temp\\video2.mkv"  "--forced-track" "2:no" "--language" "3:eng" "--default-track" "3:yes" "--forced-track" "3:no" "--display-dimensions" "3:16x9" "-a" "2" "-d" "3" "-S" "E:\\Temp\\video.mkv" "--track-order" "0:2,0:3"
    and then add for %%a in ("*.mkv") do and replace -o "E:\\Temp\\video2.mkv" with -o "%%a-newvideo.mkv" and -S" "E:\\Temp\\video.mkv" with "-S" "%%a". This will make a NEW mkv for each named like oldmkvname.mkv-newvideo.mkv. Example:
    Code:
    for %%a in ("*.mkv") do "mkvmerge" -o "%%a-newvideo.mkv"  "--forced-track" "2:no" "--language" "3:eng" "--default-track" "3:yes" "--forced-track" "3:no" "--display-dimensions" "3:16x9" "-a" "2" "-d" "3" "-S" "%%a" "--track-order" "0:2,0:3"
    Save it as video.bat in the mkv folder(be sure to choose save as and choose save as file type: All in Notepad)

    Then run the video.bat...or run it from the command line(start->run->cmd) and cd c:\folderwithmkvs and type video.bat and you will see if you get any errors.

    If the mkvs are not similar then you have to fix each manually, open in mkvmerge gui, disable track, add to queue, repeat, start muxing.
    Quote Quote  
  5. Member
    Join Date
    Dec 2008
    Location
    United Kingdom
    Search Comp PM
    I really appreciate your effort in this! Yes, all MKVs are identical in this manor so it should work!

    Thanks and i'll keep you updated
    Quote Quote  



Similar Threads