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.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th October 2018, 16:06   #1  |  Link
activoice
Registered User
 
Join Date: Sep 2017
Posts: 9
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?
activoice is offline   Reply With Quote
Old 18th October 2018, 21:08   #2  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,410
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"
https://mkvtoolnix.download/doc/mkvmerge.html#d4e1822
sneaker_ger is offline   Reply With Quote
Old 19th October 2018, 04:42   #3  |  Link
activoice
Registered User
 
Join Date: Sep 2017
Posts: 9
Wow thanks so much
activoice is offline   Reply With Quote
Reply

Tags
audio, batch, mkvmerge, subtitles

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.