Forrest logo
back to the mkvmerge tool

mkvmerge:tldr:a21f0

mkvmerge: Add a subtitle track to a file.
$ mkvmerge --output ${path-to-output-mkv} ${filename-mkv} ${path-to-subs-srt}
try on your machine

The command you mentioned is using the "mkvmerge" tool, which is a part of the MKVToolNix suite. This command is used to merge or multiplex multiple media files into a single MKV (Matroska) container file.

Let's break down the command:

mkvmerge

This is the command itself, telling the system to run the "mkvmerge" tool.

--output ${path-to-output-mkv}

This option specifies the output file path and name for the merged MKV file. You'll need to replace "${path-to-output-mkv}" with the desired location and file name for the output file.

${filename-mkv}

This is the input file, the original MKV file you want to merge with other files. Again, you'll need to replace "${filename-mkv}" with the actual file name.

${path-to-subs-srt}

This is the path to a subtitle file in SRT format that you want to include in the merged MKV file. Replace "${path-to-subs-srt}" with the actual path to the SRT file.

So, combining all these elements, the command tells mkvmerge to read the input MKV file, merge it with the subtitle file, and output a new MKV file at the specified path.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mkvmerge tool