MKVMerge Batch by language
This must have been asked before but I cannot find a thread for it.
When I encounter an mkv file that has more than just English Audio and Subtitles I use the MKVbatch -i command to list out the video, audio and subtitle tracks then I use the command shown below to create a new set of files using MKVMerge to merge the Audio and Subtitle track number that I need.
IE if a video file has Track 1 as English Audio, and Track 4 is English Subtitles I use this command to take the files from the source folder c:\temp and output to c:\temp2
FOR %%f IN (c:\temp\*.mkv) DO (
C:\PROGRA~1\MKVToolNix\mkvmerge -o c:\temp2\%%~nf-new.mkv --atracks 1 --stracks 4 %%~nf.mkv
)
Instead is there a way to do this where I would specify in the command that I want the English Audio and Subtitle tracks, and MKVMerge will look at the language itself, instead of me having to look up the track numbers beforehand?
|