Log in

View Full Version : sub + idx question


sun_ryan
11th December 2007, 10:23
I want to write a program to show sub + idx subtitles,but I don't know the format of the sub file.:stupid:
Can anybody tell me the format of picture stored in sub file?
jpg or bmp?
Thank you

Gilron
11th December 2007, 12:03
I don't know if there's any good documentation of .sub file structure. IIRC, it is RGBA bitmap in some own format. You can find the answer from sourceforge if you go through the source files there:

http://guliverkli.svn.sourceforge.net/viewvc/guliverkli/trunk/guliverkli/src/subtitles/VobSubFile.cpp?revision=605&view=markup

manusse
11th December 2007, 22:51
Neither jpg nor bmp it's very much like the sup format. You can also have a look at SubtitleCreator's source code to understand how to process sub/idx files.

Cheers
Manusse