BLOG

What is Chroma Key?

Ultima actualizare:

Chroma key is a video technique that makes one color, usually green or blue, transparent so another image or video shows through behind you. A green screen is the backdrop, and chroma key is the software step that removes it.

It’s how a weather forecaster appears in front of a map, and how streamers appear over their gameplay.

How chroma key works

Your software looks at every pixel in the frame and asks one question: is this pixel close enough to the target color? If yes, the pixel is dropped. If no, it stays. The pixels that stay are you, and the dropped ones show the layer underneath, such as gameplay or a slide.

ā€œChromaā€ means color, and ā€œkeyā€ is the video term for cutting one image into another.

Why green screens are green

Green and blue sit farthest from human skin tones. Skin, at every tone, contains a lot of red and very little pure green, so software can separate the two cleanly. A red background would take your face with it.

Green also holds up better on camera. Most sensors capture more green detail than red or blue, so the edges of the key come out cleaner.

Green screen vs blue screen

A blue screen works the same way. Pick blue if you often wear green on camera.

Green screen vs AI background removal

AI background removal works without a screen. Virtual backgrounds in meeting apps and AI filters in streaming software, such as the NVIDIA Background Removal filter in OBS Studio, use a machine-learning model to estimate where you end and the room begins.

Zoom says a green screen gives the best virtual background effect and uses fewer system resources. Without one, it says the effect has less sharpness and definition around your face, head, ears, and hair.

What you need for chroma key

Chroma key needs one flat, evenly lit color behind you. Wrinkles and folds cast shadows, which the camera sees as darker shades of green. The software then has to remove a wider range of green, and that can start removing parts of you as well.

You need:

  • A green screen, or a smooth wall painted one color
  • Two lights for the screen, plus one for yourself
  • A webcam or camera you can set to manual exposure
  • Software with a chroma key filter

Streaming apps such as OBS Studio have that filter built in, and Zoom and Microsoft Teams have a green screen setting for calls. The steps below use OBS Studio. If you haven’t picked an app yet, our breakdown of the best streaming software for Twitch, YouTube and TikTok covers the options.

How to use a green screen

  1. Fill the frame. Position the screen so it fills the camera frame behind you.
  2. Step away. Leave at least 1 m (3 ft) between you and the screen.
  3. Light the screen. Aim two lights at it from either side, at roughly 45 degrees.
  4. Light yourself. Use a separate light on yourself.
  5. Lock your camera. Set exposure and white balance to manual, so the green stays the same shade when you move. If you’re using Facecam 4K, you can set shutter speed, ISO, and white balance manually in Elgato Studio.

Distance and separate lighting keep green from bouncing onto your hair and shoulders. Our Key Light comparison covers picking a light for the space you have.

How to use chroma key in OBS Studio

  1. Right-click your camera source and choose Filters.
  2. Under Effect Filters, click + and choose Chroma Key.
  3. Set Key Color Type to match your backdrop.
  4. Raise Similarity if green remains. Lower it if parts of you disappear.
  5. Raise Smoothness if your outline looks jagged. Lower it if your edges look too soft.
  6. Raise Key Color Spill Reduction if a green rim shows on your hair or shoulders.
  7. Click Close.
Setting Default What it does
Key Color Type Green Sets the color to remove: Green, Blue, Magenta, or Custom Color
Similarity 400 Sets how wide a range of that color is removed, from 1 to 1000
Smoothness 80 Softens your outline, from 1 to 1000
Key Color Spill Reduction 100 Removes color tint from your edges, from 1 to 1000

How to fix common chroma key problems

Most keying problems come from the screen or the lighting.

Problem Likely cause Fix
Green patches left in the background Wrinkles or shadows on the fabric Steam or stretch the fabric, and check the corners
One side keys worse than the other Uneven lighting or a hot spot Even out the two screen lights
Clothing turns see-through Green, or colors close to it such as olive and teal Wear a color far from green
Green rim on hair and shoulders Light bouncing off the screen Add distance, then raise Key Color Spill Reduction
The key breaks when you move Auto exposure or white balance Lock both on your camera

What to remember about chroma key

Chroma key removes one color from your camera image so a new background shows behind you. Green is the usual choice because it sits far from skin tones. AI background removal works with no screen, and a green screen gives the software a solid color to work with.

Most of a clean key comes from the setup: a flat, evenly lit backdrop, distance from the screen, and a camera locked to manual. From there, the Chroma Key filter in OBS Studio needs only a few adjustments.

Browse backgrounds on Marketplace for something to put behind you.

PRODUSE ƎN ARTICOL

Stay up to date with Elgato. Get our latest News, Guides, and Product Updates in your Google feeds.

Add Elgato as a preferred source

Was this article helpful?