Log in

View Full Version : How to get sector size of last titleset from (just) VIDEO_TS.IFO?


kumi
20th December 2005, 00:26
I am coding a php script, part of which parses a VIDEO_TS.IFO file that the user uploads to the web form, loading information into variables. Part of the script needs to know which is the _largest_ titleset. Obviously, to determine that, I need the sizes of all the titlesets contained in the DVD.

But I seem to be stuck: how do I determine the size of the final VTS, with _just_ the VIDEO_TS.IFO file available for parsing?

For titlesets other than the last, I can subtract start sector values contained in VMG_PTT_SRPT to determine sizes. But since VTS_last + 1 doesn't exist, I can't determine the end sector of the final VTS.

Anyone have a clue?

thanks

jsoto
20th December 2005, 00:50
AFAIK, you can't.

Even more, the substraction is not accurate (although can be valid to detect the largest one). Note there can be "gaps" of unused sectors between the video titlesets.

jsoto

kumi
20th December 2005, 01:04
Aha ok, thanks for the prompt reply. I'll just have to include the VTS ifos in the script, somehow.