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
+ Reply to Thread
Results 1 to 5 of 5
-
-
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.
-
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"
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"
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. -
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
Similar Threads
-
How do I write an ffmpeg script that will simply strip the audio track?
By Iced Coffee in forum Newbie / General discussionsReplies: 1Last Post: 18th Jan 2012, 08:55 -
Strip audio track from AVI
By exekutive in forum MacReplies: 12Last Post: 2nd Feb 2011, 16:25 -
How to select audio track opening multi-track container in avisynth?
By lovyagin in forum Video ConversionReplies: 7Last Post: 23rd Sep 2009, 12:16 -
How do you move files from .ogm container to .mkv container?
By VidHunter in forum MacReplies: 0Last Post: 8th Mar 2008, 18:19 -
strip audio + subs from .mkv?
By supersonicdarky in forum Newbie / General discussionsReplies: 1Last Post: 23rd Jul 2007, 05:17