PDA

View Full Version : d2v offset -> timecode


wertert
29th October 2003, 00:01
Hi All

If I have a d2v file that contains this line in the header

Location=0,4A2DB,0,4C401

and/or the main body like this

7 0 120B 2 3 0 1 2 3 0 1 2 3 0 1 2 3
7 0 12E0 0 1 2 3 0 1 2 3 0 1 2 3 0 1
7 0 13BB 2 3 0 1 2 3 0 1 2 3 0 1 2 2
7 0 14A7 2 2 2 2 2 2 2 2 2 2 2 2 2 2

is there any way of working out the timecode from the sector offset numbers ie 4A2DB,14A7 etc.

Do you think If I simply took the maximum offset and said that was proportional to the run time of the film and worked backwards from that ...?

many thanks

wert

hakko504
29th October 2003, 10:05
Nah, the sectors are just BYTE offsets and have nothing to do with the timecodes at all. You can use the number to specify where in the stream to READ the timecodes though.

wertert
29th October 2003, 11:00
ok. I think I could have a go at this. jumping to the offset gives me a keyframe right ? also I sould be able to read the timecode.

I'm going to have to start looking at the file structure of the VOB files to get this info. I code in perl. Have you got any pointers to get me going ?

thanks again.

wert

hakko504
29th October 2003, 12:27
Well, if you know C and can use that instead then you can most likely rip 80% of the code you need from DVD2AVI's sources. So go to neron2's homepage, get the latest sources and start reading. It will take you a little time, but if you search for stuff like AudioPTS and videoPTS then you can work your way into the correct parts of the code.