Log in

View Full Version : hex value in d2v


empty
11th May 2003, 18:48
I wanted to know how to calculate the offset of a d2v-File by understanding the hex values in:
Location=0,46CF,0,1B7B2
after searching the forum I found:
"the file offset divided by 2048) & the file number (if using multiple files)" (answered by Nic)
Sorry, but I don't understand that hint.:( I've tested a lot of possibilities but unfortunately with no success.
For example what framenumber does mean 46CF? I know it's a hex value and tried it with the corresponding dec value but can't gain any valid value.:confused: Could anybody enlighten me?
THX in advance bb empty

hakko504
11th May 2003, 20:26
0x46CF does not mean a frame number. It means that the frame starts at byte position 0x46CF (18127) * 0x800 (2048) = 0x2367800 (37124096) or about 37MB into the vob file. This is because when you cut out a portion of the movie, it would be very impractical to count the frames from the start of the vob. Instead by specifying a byte (or sector) offset, DVD2AVI/mpeg2dec knows exactly how far into the file it can skip without any further parsing of the file.

And at the top of the .d2v you'll find a list of the vobs that is used in the .d2v, and this list in a numbered list, starting with number zero for the first file, a quite common way of counting in computers. Not always easy to think in that way, but easy to program.

empty
11th May 2003, 21:47
0x46CF does not mean a frame number. It means that the frame starts at byte position 0x46CF (18127) * 0x800 (2048) = 0x2367800 (37124096) or about 37MB into the vob file. Aha!:) That explains a lot. Unfortunately I'm not lucky about this fact, because my idea is now only trash.:( But that's not your fault and I feel happy about your help.;)
BTW: Your article about PAL DVDs concerning "il buono, il brutto, il cattivo":D is really great. THX for all this information.
bb empty