Back to Glossary
Video

Chroma Subsampling

Also known as: Color subsampling, Chroma sampling

What Is Chroma Subsampling?

Chroma subsampling gives a picture fewer color samples than brightness samples. People see fine detail in brightness far better than in color, so video and JPEG files can keep fewer color samples than pixels and still look sharp.

The picture is first split into one brightness value per pixel, called luma, and two color values, blue minus luma (Cb) and red minus luma (Cr). For HD video, the Rec. 709 formula builds luma from about 72% green, 21% red and 7% blue. Subsampling then keeps every luma sample and drops some of the color samples.

24 bits

per pixel at 4:4:4

with 8 bits per sample, no color dropped

16 bits

per pixel at 4:2:2

a third less data than 4:4:4

12 bits

per pixel at 4:2:0

half the data of 4:4:4

How Do You Read 4:4:4, 4:2:2 and 4:2:0?

The three numbers describe a block of pixels 4 wide and 2 rows high. The first is the width, the second is how many color samples the top row keeps, and the third is how many new ones the bottom row adds.

So 4:4:4 keeps a color sample for every pixel, and 4:2:2 keeps one for each pair of pixels side by side, in both rows. 4:2:0 keeps two in the top row and adds none in the bottom row, which leaves one color sample for each square of 2 by 2 pixels. A player rebuilds every pixel from its own brightness and the color its block shares.

Subsample a grid of pixels yourself

Switch between 4:4:4, 4:2:2 and 4:2:0 and compare your pixels with what a player shows. The red and the yellow text use the same letters on the same blue.

Your pixels

What a player shows

Brightness, kept for every pixel

Color, at its own resolution

At 4:2:0 the file keeps 24 color samples for 96 pixels, 12 bits per pixel instead of 24. The text and its background differ in brightness by 5% before and 5% after, and in overall color by 60% before and 19% after.

The grid splits each pixel with the BT.709 formula HD video uses, then gives every pixel in a block the block's average color, the simplest way to subsample. Real encoders filter color more carefully, so edges in real files look softer than these hard steps.

Where Is Each Scheme Used?

Delivery formats sit at 4:2:0, production formats at 4:2:2, and masters at 4:4:4. Image formats split the same way: lossy ones often subsample, and lossless ones don’t.

4:2:0 is what most viewers receive

YouTube’s recommended upload settings list it, and so do the Main and High profiles of H.264 and HEVC Main and Main 10, along with DVD and Blu-ray. Lossy WebP stores nothing else, and most JPEG encoders default to it.

4:2:2 is the production middle ground

It keeps twice the color of 4:2:0 for a third less data than 4:4:4. ProRes 422 and its family use it, as do broadcast SDI links and many professional camera formats, which is why footage headed for keying or grading is often shot in it.

4:4:4 keeps every pixel’s color

ProRes 4444, film scanners and cinema post-production keep a color sample for every pixel, and the sharp image library saves AVIF at 4:4:4 by default. PNG and lossless WebP keep each pixel’s own red, green and blue values, so they don’t subsample at all.

When Does Chroma Subsampling Show?

On camera footage watched at normal size, most people never notice it. It shows where color changes sharply within a pixel or two, and whatever it drops is gone: a file converted from 4:2:0 to 4:4:4 has more samples but no more color.

Small colored text and thin lines

A letter one pixel wide shares its color block with the background, so the two colors blend. In the grid above, red text on blue fades because the pair differs mostly in hue, while yellow text stays readable because it is much brighter than the blue, and brightness is kept for every pixel.

Green screen keys

A key separates the subject from the screen by color, so fewer color samples give it rougher edges to work with. Canon recommends shooting green screen in 4:2:2, and chroma key covers what 4:2:0 does to the edge of a key.

Heavy grading and visual effects

A strong grade stretches color that was averaged across several pixels, and compositing needs color detail the file may not hold. Frame.io’s workflow guide makes the point that software can’t invent color the camera didn’t record, so footage for heavy color work is better shot at 4:2:2 or above.

Which Chroma Subsampling Should You Use?

Record with as much color as the edit will need, then deliver what the platform asks for. A team filming a product launch on green screen, for example, might shoot 4:2:2 in 10-bit, key and grade the footage in ProRes 422 HQ, and upload the finished cut to YouTube in 4:2:0.

  Use Why
Recording green screen 4:2:2 or better A key needs color detail at the edge of the subject
Footage you will grade hard 4:2:2, and 10-bit if the camera has it More color samples and more levels per sample, two separate settings
A master with graphics or small text 4:4:4 Sharp colored edges keep their own color
Uploading to YouTube or a streaming service 4:2:0 YouTube lists it, and the platform's own encode ends up there
A screenshot or graphic with small text PNG, or JPEG at 4:4:4 Neither one shares a letter's color with its background
Photos for a website 4:2:0 JPEG or lossy WebP Smooth color areas lose almost nothing

How Burned-In Captions Work in CE.SDK

In video editing with CE.SDK, captions are blocks in the scene, and the export draws them into the video’s frames as pixels. A video bound for YouTube ends up at 4:2:0, the scheme its upload settings list, and the captions are subsampled along with the footage.

A caption that differs from the video behind it mostly in hue can soften there. A caption background, set as semi-transparent black in the code, puts a dark edge behind light letters, and that difference is brightness, which every pixel keeps. Viewers can’t turn burned-in captions off, so ship an SRT or VTT file as well; subtitles and closed captions compares the two.

Burn in captions with a dark background
const captions = await engine.block.createCaptionsFromURI(
  'https://example.com/launch.srt'
);
const track = engine.block.create('//ly.img.ubq/captionTrack');
engine.block.appendChild(page, track);
for (const id of captions) engine.block.appendChild(track, id);
// Styling one caption styles every caption on the track.
const first = captions[0];
engine.block.setColor(first, 'fill/solid/color', { r: 1, g: 1, b: 1, a: 1 });
engine.block.setBool(first, 'backgroundColor/enabled', true);
engine.block.setColor(first, 'backgroundColor/color', { r: 0, g: 0, b: 0, a: 0.7 });
// The export draws the captions into every frame.
const video = await engine.block.exportVideo(page, { mimeType: 'video/mp4' });
Add captions guide

FAQs

It keeps twice as much color. In a block of 4 by 2 pixels, 4:2:2 stores four color samples and 4:2:0 stores two, at the cost of a third more data than 4:2:0 at the same bit depth. The extra color pays off when you key, grade or show sharp colored edges, while a finished video watched at normal size rarely looks different.

Usually. JPEG stores color as Y'CbCr, and the most common encoders save at 4:2:0 unless told otherwise; the sharp image library, for one, defaults to 4:2:0 and offers 4:4:4 as an option. Screenshots and graphics with small text keep crisper edges saved at 4:4:4 or as PNG.

No. Subsampling sets how many pixels share each color sample, and bit depth is the number of levels each sample can hold, from 256 at 8-bit to 1,024 at 10-bit. The two combine freely: the pixel formats browsers expose to video code include 4:2:0 at 8, 10 and 12 bits, and HEVC Main 10 is 10-bit 4:2:0.

You can convert the file, but the lost color doesn't come back. The new samples are filled in from the ones the 4:2:0 file kept, so a soft edge stays soft, and a TV switched to 4:4:4 shows 4:2:0 video no sharper than before. If you will need the color later, record it in the first place.

Small text on a colored background blurs when the picture reaches the screen at 4:2:2 or 4:2:0, because neighboring pixels share their color samples. A TV used as a monitor needs a 4:4:4 mode for sharp text, and the computer has to send it 4:4:4 as well.