Home > unix > Merge subtitles into a Matroska container on the command line

Merge subtitles into a Matroska container on the command line

Actually pretty darn easy – surely faster than using the GUI.

mkvmerge -o <output>.mkv --default-track 0 --language 0:<language> <subtitles>.srt <input>

You can list the language codes by invoking mkvmerge with the --list-languages (e.g. eng for English, ger for German) parameter. The --default-track parameter just sets the newly muxed subtitles as default for the player to use. If you are muxing multiple subtitles, you of course have to change the language code preceding number.

Advertisements
Categories: unix Tags: , ,
  1. August 16, 2013 at 12:12 pm

    thanx man that really works well and FAST! one minute for a one-hour film

  1. February 18, 2013 at 3:13 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: