What's the VOBsub subtitle format?

George picture George · Jan 26, 2010 · Viewed 24.7k times · Source

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

Answer

Gfy picture Gfy · Jun 30, 2011

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.

Have a look at these open source implementations:

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