Hello. I have a bunch of videos and sometimes i want to switch things around and remux entire folders of videos. Mkvtoolnix is awesome but it only does one at a time. Let's say i take the first video from folder AAA and plan out what i want to do with it in the mkvtoolnix GUI. Then I copy the Command Line and i get this for the first episode:
"C:/Program Files/MKVToolNix\mkvmerge.exe" --ui-language en --output ^"C:\Users\me\Videos\AAA\AAA_(episode title)_01 ^(1^).mkv^" --audio-tracks 0 --language 0:eng --language 2:und ^"^(^" ^"C:\Users\me\Videos\AAA\AAA_(episode title)_01.mkv^" ^"^)^" --no-video --no-chapters --language 0:jpn --track-name 0:Stereo --default-track 0:yes --language 1:eng --default-track 1:yes ^"^(^" ^"C:\Users\jslutz1\Videos\BBB\BBB_(episode title)_01.mkv^" ^"^)^" --track-order 0:2,0:0,1:0,1:1
Now i want to apply the same thing for all episodes in folder AAA using also all videos from folder BBB. I want to replace the "AAA_(episode title)_01" and "BBB_(episode title)_01" filenames with a wildcard so that it sequentially does the same instructions for all episodes in the folder when i execute the command in a batch file. I've seen things like for %%a and so on but my computer language skills are weak. So how can i do this in a way i'll understand what's going on? Thanks
+ Reply to Thread
Results 1 to 4 of 4
-
-
I'm no expert myself sadly, but this is an example of my own command line.
For mkvmerge.exe, it would look for any MKV in a folder, process them, then save the new MKV's into the DONE subfolder. No original MKV's are overwritten.
Code:for %%Z in ("*.mkv") do mkvmerge.exe ^ -o "%%~nZ.mkv" "%%~Z"
Code:for %%Z in ("*.mkv") do mkvmerge.exe ^ --no-date ^ --disable-track-statistics-tags ^ -o "%%~nZ.mkv" "%%~Z"
Say you want to change the language to ENG.
Code:for %%Z in ("*.mkv") do mkvpropedit.exe "%%Z" ^ --edit track:v1 --set flag-default=1 --set language=eng ^ --edit track:a1 --set flag-default=1 --set language=eng
Code:for %%Z in ("*.mkv") do mkvpropedit.exe "%%Z" ^ --edit track:v1 --set flag-default=1 --set language=eng ^ --edit track:a1 --set flag-default=1 --set language=eng ^ --edit track:a2 --set flag-default=1 --set language=fre ^ --edit track:a3 --set flag-default=1 --set language=spa
A hint though. After you are done editing with mkvpropedit.exe, I highly suggest that you remux such modified MKV's though. Yeah, some programs have issues after such modifications, and a simple remux would fix it. Good luck. -
I have found MKV BAtch great for this task.
https://www.videohelp.com/software/MKVBatch
Hope it helps
Similar Threads
-
MKVToolnix Batch Merge Videos and Subtitles, Different Formats
By pumpysworld in forum Newbie / General discussionsReplies: 2Last Post: 25th Nov 2018, 21:16 -
Batch header edit with MKVToolNix GUI?
By everapt in forum Newbie / General discussionsReplies: 1Last Post: 23rd Mar 2018, 11:07 -
Help for Batch Code MkvToolNix & Extract
By alloar in forum Newbie / General discussionsReplies: 3Last Post: 5th Jan 2018, 15:42 -
Mkvtoolnix Batch Remove Audio OSX
By neostylez in forum Newbie / General discussionsReplies: 13Last Post: 27th Dec 2016, 08:42 -
Help with batch converting MP4 to MKV with MKVToolnix
By Joe Schmoe in forum Video ConversionReplies: 1Last Post: 11th Jun 2015, 12:53