Log in

View Full Version : YUV header


raven21
20th February 2007, 20:50
Greetings to all forum members!
I know this is a silly question, but I can't find answer anywhere.
Can anyone explain me some numbers in YUV file header? Here is an example of one:
288
352
1
2
300

I know that the first number is number of lines per frame, second number is number of pixels per line and the last value is number of frames. Now, I am not sure about these two "small" numbers. I figured (but maybe I am wrong) that fourth value is mark for progressive (2) or interlaced (1) video. But I can't figure out what does this third number stand for? I would be very grateful for every help!
Sorry on my bad English!
P.S I am working with a program called VCDemo if this is important for type of header.
Thanks!

foxyshadis
21st February 2007, 01:28
Is this Y4M? There's a doc at mmwiki (http://wiki.multimedia.cx/index.php?title=YUV4MPEG2), but it doesn't quite match yours; possibly another variation, since such things aren't really meant to be stable.

akupenguin
21st February 2007, 01:37
Various programs have formats they each call "YUV file header", and all of them are different. I have no idea what format VCDemo uses.

raven21
21st February 2007, 19:44
Is this Y4M? There's a doc at mmwiki (http://wiki.multimedia.cx/index.php?title=YUV4MPEG2), but it doesn't quite match yours; possibly another variation, since such things aren't really meant to be stable.

This program demands this type of header, regardless of type of coding (btw, it only has MPEG-1,2 and H.264), every other combination of header is rejected. Thanks anyway, now I know that it's not so simple :)