AVS › AVS Forum › HDTV › HDTV Technical › HD versus SD color spaces / not even post houses get color right
New Posts  All Forums:Forum Nav:

HD versus SD color spaces / not even post houses get color right

post #1 of 10
Thread Starter 
HD versus SD color space (article)

The article explains the differences between HD and SD color spaces, and notes 2 instances where even professional post houses (for the most part) don't handle color according to standards for pragmatic reasons. HD<-->SD conversions generally don't obey the difference in primaries between EBu, SMPTE C, and Rec. 709. And most QC work is being done on the Sony BVM CRTs with SMPTE C phosphors (because it has historically been less flawed than everything else out there; only now has LCD caught up and is edging ahead).

I hope you find it useful.
post #2 of 10
From the link:

"HD" versus "SD" color space
This is a technical primer on the differences between commonly-used color spaces and practical issues surrounding these differences.

This no single HD or SD color space as they are actually many different HD and SD color spaces. We'll begin by looking at the two most common video standards in use today- ITU-R BT. Rec. 601 and Rec. 709- as the most common HD and SD formats derive from them. The two main differences between the Rec. 601 and Rec. 709 standards are [A] the luma coefficients (and corresponding scale factors) and [b] the primaries.

Luma coefficients
In both Rec. 601 and Rec. 709, R'G'B' values are converted into Y'CbCr values. The Y' component in Y'CbCr approximates the brightness information while the Cb and Cr chroma components approximate the color information. The formula for forming Y' is as follows:

Rec. 601 Y' = 0.299 R' + 0.587 G' + 0.114 B'

Rec. 709 Y' = 0.2126 R' + 0.7152 G' + 0.0722 B'

Luma coefficients refer to the numbers in front of R', G', and B'. Notice that they are different for Rec. 601 and 709. This means that the same input R'G'B' values will lead to different Y'CbCr values depending on whether Rec. 601 or 709 numbers are used. The choice of luma coefficients also affects the scale factors used (not shown).

When converting between Rec. 601 and 709 (or sending 601/709-encoded values down a 709/601 signal path), a color matrix should be applied so that the resulting R'G'B' values are (practically) the same. Color inaccuracy occurs when such a conversion is not applied where it should have been applied. When this happens, achromatic colors like grey and white will stay the same. Saturated colors however will be shifted in hue and saturation. Certain saturated colors may also be pushed outside R'G'B' gamut and clipped. Numerically speaking, the difference is very large. In practice, the difference is subtle and is usually not noticed. This is partly because:

We aren't very sensitive to (small) color inaccuracies. This is especially so when there is no side-by-side comparison.
Real world images tend not to contain highly saturated colors (a random distribution of R'G'B' values would contain much more highly saturated colors). These errors are strongest for highly saturated colors.
Most film and video material do not contain large patches of color, which make it easier to discriminate between colors.
In consumer applications, consumer TVs tend to be (wildly) color inaccurate to begin with.
These reasons can explain why consumer TV manufacturers can get away with handling the luma coefficients incorrectly. By omitting the appropriate color matrix, they can cut corners and reduce cost. But this practice is definitely wrong and does noticeably impair image quality (most noticeable where highly saturated colors are being clipped).

In professional post production, this is usually not an issue as most hardware and software will handle this issue correctly. Nonetheless, this is worth checking as some software does contain bugs and some cameras can be setup to encode with different luma coefficients (a dangerous setting in my opinion!). Sending color bars through the signal path should be done to check that the signal comes out correctly.

Controversy
At the time Rec. 709 was being formed, there were some who opposed the idea of changing the luma coefficients. By keeping the luma coefficients the same, we would have avoided the mess we have now whenever the signal is being decoded incorrectly. The benefits of changing the luma coefficients on the other hand are negligible in practice. It reduces the extent of some chroma subsampling errors for particular color combinations; for other color combinations, it makes these chroma subsampling errors worse. Many video engineers don't even think there is a problem with chroma subsampling in the first place and believe that chroma subsampling is visually lossless (it is not; my article on chroma subsampling explains and shows why). My opinion is that the change in luma coefficients has hurt video quality far more than it has improved it.

In any case, we will have to live with the different sets of luma coefficients between Rec. 601 and 709.

Primaries
Primaries refers to the exact "color" or "shade" of red, green, and blue. Color is specificied objectively in CIE 1931 x and y co-ordinates. Obviously there is a need to specify color objectively as there are many different shades of red, green, and blue.

The 3 sets of primaries in common use today are usually referred to as EBU, SMPTE C, and Rec. 709. All modern HD formats use Rec. 709 primaries (there are some obsolete HD formats that do not) while the standard for SD is either EBU or SMPTE C, depending on the country. There are also the original NTSC primaries, which are obsolete and not in current use. Why aren't the NTSC primaries currently being used today?

When the NTSC standards were developed, the designers envisioned a wide gamut system where the primaries are much more saturated/pure than what we have now. The more saturated primaries allow a greater range of highly saturated colors to be reproduced. It is theoretically ideal to make the primaries as saturated/pure as possible so that the widest range of colors can be reproduced.

One downside to wide gamut systems is that overall luminance of the display is lower. Luminance can be increased by making the primaries less saturated. For this reason, consumer TV manufacturers ignored the NTSC standard in order to make displays brighter. Early consumer TVs were fairly dim so this might have been a reasonable compromise.

Later on, SMPTE created the "SMPTE C" standard realizing that there needed to be a production standard. These primaries were derived from the Conrac CRT monitors that were commonly used for reference monitoring at the time. Eventually after that, the EBU created their own standard to reflect changes in CRT phosphors. The EBU primaries are the standard for PAL countries and Japan.

The Rec. 709 set of primaries are a (silly) political compromise between the EBU and SMPTE C primaries. EBU red and blue were adopted, with a green halfway between EBU and SMPTE C.

HD <--> SD Conversions in practice
Ideally, conversions between HD and SD formats would take into account the different primaries of the systems being used. If such a conversion were performed, color bars on a master tape would no longer be correct in the destination format. For post production facilities, color bars would need to be relaid onto the new tape so that the tape will pass quality control checks. For post houses to perform this color space conversion would be a liability. If they forget to redo the color bars (user error happens), then their tape will not pass quality control (the first thing they check for is that the color bars line up) and they can even potentially lose a client for their screwup. And there is little benefit for them to do these color space conversions correctly- honestly, nobody will notice. They have little incentive to perform ideal color space conversions (if they even know about it).

Critical monitoring in practice
The most popular monitors for high-end reference monitoring are the Sony BVM series CRT monitors, which use SMPTE C phosphors (they conform to SMPTE C primaries). These monitors are not ideal for HD monitoring as modern HD formats (in other words, not the obsolete 1035i formats) call for Rec. 709 primaries. There is sometimes a disconnect between what the standards call for and what actually happens in practice.
post #3 of 10
My eyes glazed over trying to understand that article. I think that my eyes have lost some color space.
post #4 of 10
Quote:
Originally Posted by MikeBiker View Post

My eyes glazed over trying to understand that article. I think that my eyes have lost some color space.

you would be wise to understand it so you can understand when things are wrong with the signal or your set.

Bottom line, as I have pointed out to a number of Broadcast Techs in the last 60 days, this is a REAL PROBLEM with the new DTV convertor boxes.

They receive a REC 709 HDTV Digital Signal and output to a REC 601 input on a TV. For $40 or so retail, do you really think they will CORRECTLY move the color space from REC 709 to REC 601?

All agree its going to be a problem - but its the only answer we have right now.

Quote:
Originally Posted by Ken H View Post


The formula for forming Y' is as follows:

Rec. 601 Y' = 0.299 R' + 0.587 G' + 0.114 B'

Rec. 709 Y' = 0.2126 R' + 0.7152 G' + 0.0722 B'

Though not exactly percentages, they are close enough for me to tell there is a BIG difference in having Green make up 58.7% of White in REC 601 versus 71.52% White in REC 709 is dreaming (and obviously I don't mean you Ken - just quoting the figures from your post). There is literally about 50% less Blue in REC 709 and 33% less Red.

That might not be a big difference to others, but it is to me.
post #5 of 10
Thread Starter 
Do those set-top converter boxes really do that? I haven't evaluated them myself so I wouldn't know.

I'll try and put up some pictures of the differences. I suppose in most cases consumers won't notice what's wrong.
post #6 of 10
Quote:
Originally Posted by glennchan View Post

Do those set-top converter boxes really do that? I haven't evaluated them myself so I wouldn't know.

I'll try and put up some pictures of the differences. I suppose in most cases consumers won't notice what's wrong.

Do you think that for $40 retail and dealer markup (which obviously includes the cost of an ATSC tuner and other circuits) ANYTHING will PROPERLY convert the color space? Also, look at the size and shape of the Color Gamut for each which are totally different. It's not like each shift in equal proportion if you move something on way or the other.

I see TV stations that don't get it converted correctly.

Have you ever noticed some when certain stations go into or out of network to local commercials and back, where the black screen has a green ting? Now how do you think that happens (hint: REC 709 has more roughly 20% more green than REC 601 and green is the color the human eye is most sensitive to).






































post #7 of 10
Thread Starter 
Thanks for putting up the pictures in this thread.

I think the stations going into and out of black is something else?/? (I've not seen it myself.)
Decoding the luma coefficients incorrectly will still yield the same grayscale... achromatic colors aren't affected by the change in luma coefficients. It's the saturated colors that change.
The luma coefficients add up to one, so when R=G=B then you'll always get the same Y' value whether its 601 or 709.
post #8 of 10
The converter boxes are mostly based on single-chip decoders. They're already having to decode MPEG; handling a fixed color space shift is relatively trivial. Whether they're actually doing it or not is another question. The data sheets for the decoders unfortunately aren't available unless you're buying a few million of them.
post #9 of 10
Quote:
Originally Posted by nybbler View Post

The converter boxes are mostly based on single-chip decoders. They're already having to decode MPEG; handling a fixed color space shift is relatively trivial. Whether they're actually doing it or not is another question. The data sheets for the decoders unfortunately aren't available unless you're buying a few million of them.

Rather triivial, heh? If everything was being shifted in 1 direction with a gamut the same size, I might agree with that. However, that is not the case.

As pro equipment is having an issue with it, I don't hold out much hope for a $40 Consumer Box.
post #10 of 10
Thread Starter 
I think you've confused two different issues.

1- There is the issue of handling the luma coefficients correctly. Pro equipment will do this.

2- There is the other issue of compensating for the differences in the primaries. Most pro equipment won't do this.
(This is way more subtle than the first issue.)
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: HDTV Technical
AVS › AVS Forum › HDTV › HDTV Technical › HD versus SD color spaces / not even post houses get color right