

For instance Foreign Language EnglishĮDIT: The batch file will create a new files in an output folder (should be in the same location), so you can check that it worked correctly before getting rid/moving of your original files. Note: Change English Subtitles (SDH) to whatever you want the track to be named. srt and named the same as the movie (EX: Movie1.mp4 and Movie1.srt) The batch assumes all your original movies are in.

offįOR %%F in (*.mp4) DO "C:\Program Files\MKVToolNix\mkvmerge.exe" -ui-language en -output "%~dp1output%%F.mkv" -language 0:und -default-track 0:yes -language 1:eng -default-track 1:yes ( "%%F" ) -language 0:eng -default-track 0:yes -track-name "0:English Subtitles" ( "%%~dpnF.srt" ) -language 0:eng -default-track 0:no -forced-track 0: yes -track-name "0:English Subtitles (SDH)" ( "%%~dpnF (SDH).srt" ) -track-order 0:0,1:0,1:0 PAUSE

If you have a bunch of movies in a folder and all your subtitles alongside the files, and have downloaded MKVNIX, you can use this batch file to add the subs to their respective files. Having the subtitles in the file also allows you to set the forced flag, which should make plex or any player play that subtitle track by default. Just to make it easier to keep them together if I have to copy/move them later. I usually use MKVNix to add the subtitles to the file. Not sure how comfortable you are with more technical stuff or how much work (potentially) you want to dedicate to this.
