mkv

media-video/mkvtoolnix

Troubleshooting

undefined reference to `libebml::EbmlString::operator ...


/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/mkvtoolnix-gui/chapter_editor/tab.o: in function `std::_Function_handler::_M_invoke(std::_Any_data const&, QStandardItem*&&)':

extracting subtitles from mkv file

I have tried extracting some subtitles, but the file does not work.

+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ EBML maximum size length: 8
|+ Doc type: matroska
|+ Doc type version: 4
|+ Doc type read version: 2

| + A track
| + Track number: 14 (track ID for mkvmerge & mkvextract: 13)
| + Track UID: 23
| + Track type: subtitles
| + Default flag: 0
| + Lacing flag: 0
| + Codec ID: S_HDMV/PGS
| + Language: chi
| + Content encodings
| + Content encoding
| + Content compression

Extract subtitles from mkv file

Install mkvtoolnix.
http://www.bunkus.org/videotools/mkvtoolnix

Use mkvinfo to find which channel contains the subtitles you want to extract:

$ mkvinfo movie.mkv
...
| + A track
|  + Track number: 3
|  + Track UID: 1234
|  + Track type: subtitles
....

Then:

mkvextract tracks movie.mkv 3:movie.srt

Syndicate content