4

does anybody know how to extract subtiles from MKV files using pure Java? (I know how to do it using tools such as mkvtoolnix. I know I could call them from Java but that's not what I want)

Thanks!

sampy
  • 41
  • 1
  • 2

3 Answers3

3

This looks like the file format specification:

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

MeBigFatGuy
  • 28,272
  • 7
  • 61
  • 66
1

You might be able to use jebml https://github.com/Matroska-Org/jebml

Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
1

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

Bombe
  • 81,643
  • 20
  • 123
  • 127