Created
September 2, 2011 23:25
-
-
Save bmaeser/1190193 to your computer and use it in GitHub Desktop.
extract subtitles from *.mkv-files on osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
you can also use "mac ports" to install it: sudo port install mkvtoolnix
I do appreciate this gist. Downloaded the free GUI but this is so much easier.
👍 Thank you. Worked as described.
Amazing! This works for any subtitle format and even attachments (fonts). Thank you very much!
I polished your instructions a bit and added some useful info:
https://gist.github.com/pavelbinar/20a3366b54f41e355d2745c89091ec46#file-subtitle-extract-md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This free GUI tool worked for me. Saved the subtitles as .mks format. Link