(Page 3 of 3 pages for this article  <  1 2 3)

Monday, June 28, 2010

Filed under:

What is YUV?

Karl Soule | 06/28

Using the “knob” graphic from my last post, here’s what a set of control knobs would look like for an 8-bit YUV signal:

image

The Y knob has 256 steps, from 0-255, and the U and V knobs range from -128 to +128.

Most major video formats - MPEG-2, AVCHD, DVCPROHD, H.264, XDCAM - all use YUV color space. The pixels are all stored using some variant of Y, Cb, Cr. There are 10-bit and 12-bit versions of YUV as well, and they also behave similarly to 10/12 bit per channel RGB.

When effects are used on a video frame, sometimes the effect needs to convert the values back to RGB before the effect can be applied. In 8-bit or 16-bit-per-channel color space, there can potentially be “rounding errors” when performing this calculation. There are YUV color values that, when converted to RGB, could create negative values. That can’t happen in 8-bit or 16-bit values. This can mean situations where pixels that should pass through an effect unchanged will, in fact change in an unwanted way.

Effects in Premiere Pro that have the YUV logo do the processing directly on the YUV values without converting them to RGB first. At no point are the pixel values converted to RGB, and you won’t see any unwanted color shifting.

32-bit-per-channel color space has the color precision to convert cleanly from YUV to RGB, and will not cause any of these rounding errors. In Premiere Pro, all of the 32-bit effects are “safe” to use.

Let’s look at the same examples from my last article:


1. A DV file with a Gaussian blur and a YUV color corrector exported to DV without the max bit depth flag. We will import the 8-bit DV file, apply the blur to get an 8-bit frame, apply the color corrector to the 8-bit frame to get another 8-bit frame, then write DV at 8-bit. Color and Gaussian Blur are processed natively in YUV, so color accuracy is maintained (although it’s 8-bit.)

2. A DV file with a blur and a YUV color corrector exported to DV with the max bit depth flag. We will import the 8-bit DV file, apply the blur to get an 32-bit frame, apply the color corrector to the 32-bit frame to get another 32-bit frame, then write DV at 8-bit. The color corrector working on the 32-bit blurred frame will be higher quality then the previous example, and again, the signal path is pure YUV.

3. A DV file with a blur and a color corrector exported to DPX with the max bit depth flag. We will import the 8-bit DV file, apply the blur to get an 32-bit frame, apply the color corrector to the 32-bit frame to get another 32-bit frame, then write DPX at 10-bit. This will be still higher quality because the final output format supports greater precision. AND, the signal path again is pure YUV.

4. A DPX file with a blur and a color corrector exported to DPX without the max bit depth flag. We will clamp 10-bit DPX file to 8-bits, apply the blur to get an 8-bit frame, apply the color corrector to the 8-bit frame to get another 8-bit frame, then write 10-bit DPX from 8-bit data. YUV as well.

5. A DPX file with a blur and a color corrector exported to DPX with the max bit depth flag. We will import the 10-bit DPX file, apply the blur to get an 32-bit frame, apply the color corrector to the 32-bit frame to get another 32-bit frame, then write DPX at 10-bit. This will retain full 32-bit YUV precision through the whole pipeline.

As you can see, Premiere Pro really tries to keep color fidelity, and by using either YUV or 32-bit effects, you can be sure that the color in your video is as accurate as possible.

(Page 3 of 3 pages for this article  <  1 2 3)

               


You must be registered to comment. This is an effort to reduce spam. Please REGISTER HERE.

Oh and as Graeme say’s U and V refers to the B-Y and R-Y signals after weighting has been applied at the last stage of the encoding process before the three signals are added together to form a composite signal.

Posted by MichaelSanders  on  06/28  at  03:30 PM


Oh and that’s PAL!  I AND Q are the respective NTSC signals (I think!)

Posted by MichaelSanders  on  06/28  at  03:30 PM


YIQ was proposed, but never widely adopted for NTSC, but again, it’s a method for forming a composite signal for broadcast and nothing at all to do with component video.

Posted by Graeme Nattress  on  06/28  at  04:15 PM


*sigh* - I have this annoying habit of associating PbPr with digital and CbCr with analog. It’s just backwards in my brain…

Thanks for the catch, guys. Updating now….

Posted by .(JavaScript must be enabled to view this email address)  on  06/28  at  05:17 PM


Good stuff one and all - this and the previous article about color for PPro - I’ve bookmarked them for future reference - thanks!

Posted by Jim Hines  on  06/29  at  07:18 AM


Is it really correct to say there is lot of redundancy in RGB? As far as I can see, every (r,g,b)-triplet in the RGB system corresponds to a unique color. So, where is the redundancy?!?

Need to check this, but it sounds like you try to explain that RGB and YUV are two different parametrizations of the color space.

Compare, the spatial space can be parametrized for example by a Cartesian coordinate system (the xyz-coordinates), by cylindrical coordinates (the radius, angle, and z -coordinates), or by spherical coordinates (angle, angle, radius). These just correspond to three different choices of how the spatial space is parametrized.

Posted by .(JavaScript must be enabled to view this email address)  on  06/30  at  12:21 PM


Hi Larry,

I guess it’s more accurate to say that perceptually there’s redundancy in RGB when compared to YUV, since the chroma and luma information are mixed together in RGB, and the human eye is much more sensitive to luma differences than chroma.

Guys, here’s a quick disclaimer - I am not a mathematician. I’m a video editor, demo monkey, and evangelist for Adobe. The goal of this article was to explain exactly what YUV is in relation to the new effects icons in Premiere Pro. Color for film and video is a bit confusing for the newbie, and I’m trying to tackle little bits at a time.

There are a lot of articles on the specific math in converting between RGB and YUV, and understanding the different coefficients involved for 601/709/240M color spaces, There are some wonderful diagrams of the different color spaces, how they overlap, and what color ranges are out-of-gamut from one to the other. Do any of you have your favorite references?

One of my long-term standby’s is “Video Demystified: A Handbook for the Digital Engineer” by Keith Jack.

Posted by .(JavaScript must be enabled to view this email address)  on  06/30  at  01:57 PM


It’s not the RGB space that has redundancy, it’s the images we represent in that space that have redundancy. Generally, a naturalistic image has a lot more measurable information in the luma than the chroma, so you can losslessly compress (remove entropy) to a smaller file when you first do a RGB to YCbCr transform before the entropy encoder.

Posted by Graeme Nattress  on  07/01  at  02:40 PM


Name:

Email:

Location:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


 
10 Final Cut Pro things FCP editors might be missing in Adobe Premiere Pro CS6
Scott Simmons | 05/11

These are a few of the things that I found myself searching for as I’ve been moving over to Premiere Pro CS6 as a FCP 7 replacement

image

Adobe is making a big play for Final Cut Pro users with their CS6 release of Premiere Pro. It’s vastly improved over the Premiere Pro of old and is a lot like Final…

Color Correction Practice Game
Steve Hullfish | 05/05

Test your skills, improve your eye

image

I found a very cool little site that tests your ability to match a specific color based on hue, saturation and brightness. At first, I thought it was just kind of cute,…

Random notes from my first “real world” Adobe Premiere Pro CS6 edit
Scott Simmons | 04/30

The new Premiere continues to impress.

image

I was fortunate to get my hands on an early release of Adobe Premiere Pro CS6 and an edit that came up last week…






Disclosure, to comply with the FTC’s rules 16 CFR Part 255 This article was either written by Adobe employees or for Adobe by an outside contractor. It is intended for the Adobe Channel on ProVideo Coalition, which Adobe sponsors.


Copyright © 2012, HD Expo, LLC a division of Diversified Business Communications. DBA Createasphere

All rights reserved. HD EXPO, High Def EXPO, Createasphere, E-Tech, Entertainment Technology Exposition, 3D Production Workshop, VariCamp, P2 Camp, ColorCamp 101, and Lighting, Filters & Gels for HD are all trademarks of HD Expo, LLC.

Terms of Use  |  Privacy Policy

Check PageRank