How to extract subtitles from MKV files in pure Java?

99封情书 提交于 2019-12-12 11:38:23

问题


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!


回答1:


This looks like the file format specification:

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




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/7374934/how-to-extract-subtitles-from-mkv-files-in-pure-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!