开发者

What's the VOBsub subtitle format?

Where can I find开发者_运维知识库 documentation/sample code of the VOBsub subtitles format? The one that's an .idx and a .sub file.

I need to create a program that generates those subtitles. I've been looking on Google but only found how to rip them from DVD.

Thanks


VOBsub extracts the DVD subtitles raw PES from a DVD and dumps this to a .sub file. It also creates a .idx Index file with the times and byteoffsets for each and every single subtitle. The format has support for multiple tracks and can also be embedded in MP4 (by Nero) and Matroska files.

  • Technical specs vobsub
  • Technical specs from Matroska.org
  • Example files: Specs_and_idx-sub_files.rar

Have a look at these open source implementations:

  • BDSup2Sub (Java)
  • Subtitle Edit (C#)
  • guliverkli by gabest (C++) check out VSFilter and VSRip; original implementation
  • Son2VobSub.rar (C++)

And then there are the media players like VLC. You can also check out these threads on doom9:

  • http://forum.doom9.org/archive/index.php/t-87171.html
  • http://forum.doom9.org/archive/index.php/t-99815.html


I think your best approach would be to have a look at the sourcecode of some of the open-source media players. Some of them will have the code to interpret an .idx or .sub subtitle file.

This might be a useful starting point:
http://sourceforge.net/projects/guliverkli/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜