Log in

View Full Version : Inside a D2V File


TheUnforgiven
24th March 2003, 05:41
i can see something like

7 0 1049 2 3 0 1 2 3 0 1 2 3 0 1 2 3
7 0 112D 0 1 2 3 0 1 2 3 0 1 2 3 0 1
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

what do these numbers mean?
can i know if the movie is PAL, NTSC, Film, Hybrid from the the d2v file?

Nic
24th March 2003, 10:31
You know better than this unforgiven ;) This question could be answered with a search, especially in the dev forum :)

The first number is always 7 (meaning the start of an I frame). The next number is the number of the file (i.e. it will start with 0 and go up with every file). the next is a sector offset (multiply it by 2048 to get the file position its referencing (its referencing the GOP/I-Frame). then the other numbers will always be 0-3. These are made from the repeat-first-field-flag and top-field-first-flag by this equation:

trf = (tff << 1) + rff

trf is the number outputted.

A overly simple answer to your question is, if its all "2"s then its almost definitely PAL ;) But its probably best to rely on the framerate number to determine the type.

Cheers,
-Nic

TheUnforgiven
24th March 2003, 14:37
u r always my reference Nic :D
and believe me its not easy to find this info.
thanx a lot.
back to search-read cycle.

N_F
24th March 2003, 14:53
Perhaps this may be of some use http://forum.doom9.org/showthread.php?s=&threadid=46499 (check neuron2's post)

TheUnforgiven
24th March 2003, 15:42
yeah but i've read it before;)
thank u

hakko504
24th March 2003, 15:52
Interesting: I'll try to work this into the DVD2AVI FAQ in one way or another.

Done

trbarry
24th March 2003, 19:25
A overly simple answer to your question is, if its all "2"s then its almost definitely PAL But its probably best to rely on the framerate number to determine the type.

Not that anyone is likely to confuse them, but 1080i HDTV video is also often all 2's. And sadly this may also be true if it was film source since they don't often seem to bother flagging it correctly.

- Tom