Say, you have about 160 mkv files with a 160 seperate subtitles. Matroska is a container format which can hold multiple content such as video, chapters, subtitles and audio tracks. So it's much neater to have a single file for each film or episode.
Doing this manually, even using the mkvmerge job queue, is mind numbing and can take hours. Here's a relatively quick way of automatizing this.
PrerequisiteDownload and install MKVToolNix.
- Load the first mkv file and the srt file into mkvmerge GUI.
- Set the options as desired.
- Click Muxing.
- Click Show the command line.
- Modify the $mkvmergecommand variable in the PowerShell script below to math the parameters in the Current command line.
This is the command line you need to run in bulk with slightly different parameters, being the input and output files.
- Modify the variables at the top of the script to reflect your situation.
- Run the script.
$directory = "M:\Downloads\Prison Break"