PDA

View Full Version : HELP: color space, aspect ratio


fberreth
12th March 2005, 00:09
Hello,

I am capturing VHS at 768x576 (52.15us) that has a color space of [16,235]. I want to now put that video on DVD and thought to resize the stream to D1 resolution (704x576) since D1 is also 52.15us.

Is that the right thing to do or should I resize to 720x576? I fear the AR would be wrong since 720 is 53.333us? Do ALL DVD players support D1 resolution? What is the color space for D1? Is it also [16,235]?

If I go with my stream which I store as HuffYuv (YV12) into a DVD encoding app (I use Nero), can I be sure that it does not change the color space (like a PC->TV kind of thing)?

Thanks for your help,
Frank.

Ebobtron
12th March 2005, 01:17
I am capturing VHS at 768x576 (52.15us) PAL DVD player will want to see 720x576, 704x576, or 352x576 which describes the resolution pixel by pixel, the aspect ratio is independent of resolution and is flagged in the video files called video object files or VOB. Aspect ratio is described either 4:3 16:9.
What is the color space for D1? Is it also [16,235]?
Not sure what you mean here. Color space is describe as RGB24, RGB32 and YUV. Within YUV we have YUY2 and YV12 4:4:4, 4:2:2 and 4:2:0(YV12). DVD players play strictly formed MPEG 2 video streams The color space is YV12(4:2:0). If I go with my stream which I store as HuffYuv (YV12) HuffYuv encodes either RGB or YUY2.
------------
Can't help with Nero, but if you get some of the terms right. Help is here.

fberreth
12th March 2005, 01:32
PAL DVD player will want to see 720x576, 704x576, or 352x576 which describes the resolution pixel by pixel, the aspect ratio is independent of resolution and is flagged in the video files called video object files or VOB. Aspect ratio is described either 4:3 16:9.

So do all of those formats resized to 768x576 (4:3) on playback? In that case it wouldn't matter to what resolution I resize after capture ...

Not sure what you mean here. Color space is describe as RGB24, RGB32 and YUV. Within YUV we have YUY2 and YV12 4:4:4, 4:2:2 and 4:2:0(YV12). DVD players play strictly formed MPEG 2 video streams The color space is YV12(4:2:0).

OK, so after processing the video it's in YUY2 color space. But I am wondering about the color range (or whatever you call it). Seems like broadcast standard is luminance values from 16-235. Is that true for all DVD formats?
And do the MPEG2 encoders make a color range modification from let's say 0-255 (assumed by program) to 16-235 which is like a ColorYuv (PC->TV) in avisynth?

Ebobtron
12th March 2005, 02:41
So do all of those formats resized to 768x576 (4:3) on playback? In that case it wouldn't matter to what resolution I resize after capture ... Yes, sort of.
I would stay with the largest size I could 720x576 the player will perform a D to A conversion making the composite video for your TV. The more info you give the more you get.OK, so after processing the video it's in YUY2 color space. But I am wondering about the color range (or whatever you call it). Seems like broadcast standard is luminance values from 16-235. Is that true for all DVD formats? It will be YUV, which one? (YV12). Many Mpeg 2 encoders will automaticly do the TV level conversion your talking about it is not color-space. Color space. Y=brightness, light and dark "luminance" U=Blue V=Red. no U and no V = Green. I'm guessing you know what RGB stands for. Color space discribes the way the color is formated in the file. Jpeg's use YUV color space. Bit maps ".bmp" use RGB.
--------------------------------
If you are worried about the 16-235 stuff look into Histogram("level") in AviSynth. The difference between 0 and 16 is hard to see. However, if your capture is already 16 up off the floor then 32 up you will notice. Fortunately the pc>TV function and the encoders truncate up to 16 (anything below 16 = 16)