Log in

View Full Version : How do I locate a SP_DCSQT in a VOB file?


Fullmetal Encoder
17th June 2012, 17:38
I am attempting to calculate the correct start time for subtitles to match the results of VobSub for an application I'm writing. I don't foresee any problems parsing the SP_DCSQ commands and STM values but I can't even locate the SP_DCSQT from the offset given in the VOBs of my DVD. From the information I've found the SP_DCSQTA (offset) is relative to the beginning of the entire SPU which can be 53220 bytes. I can parse a VOB file and pull all of the subpicture PES 2048 byte packs but I don't know how to construct an entire SPU from those packs so that I can find the command tables.

Can anyone provide any guidance? I feel like I'm missing something obvious but for the life of me I can't figure it out with what I've found online.

SassBot
3rd July 2012, 16:14
If you can read Delphi (not really that hard) there's code to do this within SubRip.