How to extract subtitles from MKV files in pure Java?

Does anyone know how to extract subtitles from MKV files using pure Java? (I know how to do this using tools like mkvtoolnix. I know I can call them with Java, but that’s not what I want)

Thanks!

+4
source share
3 answers

It looks like a file format specification:

http://www.matroska.org/technical/specs/index.html#track

+3
source

I'm not quite sure what exactly you expect from the answer. You can, of course, write your own Matroska parser (the specification is available at matroska.org ), and then just extract the subtitle stream.

+1
source

Perhaps you can use jebml https://github.com/Matroska-Org/jebml

+1
source

All Articles