PDA

View Full Version : Calculate sectors to minutes (Ifoedit)

Spaceone
27th October 2005, 17:05
Selected section from ifoedit:

[00000150] Cell_2: playback time (BCD) 606279 [00094047]
playback time (hh:mm:ss.frame) 00:09:40.07 / 25 fps
[00000154] Cell_2: entry point sector 74194 [000121d2]
[00000158] Cell_2: first ILVU VOBU end sector 0 [00000000]
[0000015c] Cell_2: start sector of last VOBU 381403 [0005d1db]
[00000160] Cell_2: last sector of this cell 381863 [0005d3a7]

Maybe dumb question but anyway. How to convert or calculate sectors numbers (example 74194 - entry point sector, from above) to minutes (seconds)?

spyhawk
27th October 2005, 19:53
I think you're asking the wrong question. You do not convert sector numbers to minutes. The entry point sector is the starting sector/NAVPACK of each V/C. It is related to the VTS_C_ADT and VTS_VOBU_ADMAP table.

You convert playback time in decimal to time format and vice versa. You can do a search on BCD conversion. There were many discussions. But here's the general formula:

BCD time (decimal)= 606279 = 0x94047

Playback time(Hex: HH:MM:SS.FF) = BCD - FPS = 0x94047 - 0x40 = 0x94007 = 00:09:40.07
where FPS for 25fps is 0x40, for 30fps is 0xC0.

2COOL
27th October 2005, 20:13
Relevant thread (http://forum.doom9.org/showthread.php?p=710715#post710715). You may want to check out the mentioned PgcEdit plugin as it can do the conversions for you. ;)