Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Sep 2017
Posts: 16
|
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? |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Yes.
Code:
FOR %%f IN (c:\temp\*.mkv) DO "C:\PROGRA~1\MKVToolNix\mkvmerge" -o "c:\temp2\%%~nf-new.mkv" --audio-tracks eng --subtitle-tracks eng "%%~nf.mkv" |
![]() |
![]() |
![]() |
Tags |
audio, batch, mkvmerge, subtitles |
Thread Tools | Search this Thread |
Display Modes | |
|
|