Author Topic: Enabling subtitles for MKV  (Read 3079 times)

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Enabling subtitles for MKV
« on: May 29, 2013, 12:22:22 am »
I know this isn't in the spirit of things. It is a fudge.

If you have any MKV movies with subtitles tracks that don't show when playing under LMCE, there is a way to extract the subtitles track as a separate .srt file, meaning they should then appear.

0. Install "mkvtoolnix" if you don't already have it.

1. Probe the file for the track information...
Code: [Select]
mkvmerge -i SomeMovie.mkv
Example output:
Code: [Select]
Track ID 1: video (V_MPEG4/ISO/AVC)
Track ID 2: audio (A_DTS)
Track ID 3: subtitles (S_TEXT/UTF8)
Track ID 4: subtitles (S_TEXT/UTF8)
Chapters: 74 entries

2. Verify which subtitle track you want to convert (I do this using VLC on another computer, maybe there is a way to do it on command line). Let's say we want the subtitles on Track ID 3

3. Run...
Code: [Select]
mkvextract tracks SomeMovie.mkv 3:SomeMovie.srt

Cheers,
Matt.
« Last Edit: May 29, 2013, 12:24:56 am by purps »
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps