Skip to content

Instantly share code, notes, and snippets.

@kesarion
Forked from bmaeser/subtitle-extract.txt
Created February 25, 2017 13:19
Show Gist options
  • Save kesarion/a290a2e99738532610f028e600681252 to your computer and use it in GitHub Desktop.
Save kesarion/a290a2e99738532610f028e600681252 to your computer and use it in GitHub Desktop.
extract subtitles from *.mkv-files on osx
lines with $ are commands
### install mkvtoolnix:
$ brew install mkvtoolnix
### list content of the mkv-file:
$ mkvmerge -i mymoviefile.mkv
### what will give you:
File 'mymoviefiel.mkv': container: Matroska
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: 22 entries
### so the subtitle-tracks are number 3 and 4.
### extract all subtitle-tracks into a seperate srt-file / lang
$ mkvextract tracks mymoviefile.mkv 3:sub3.srt 4:sub4.srt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment