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!
It looks like a file format specification:
http://www.matroska.org/technical/specs/index.html#track
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.
Perhaps you can use jebml https://github.com/Matroska-Org/jebml