What is Chroma Key?
Chroma key isolates pixels within a selected color range, commonly green or blue, and makes that region transparent. Another image or video layer can then replace the removed background.
How Chroma Key works
A keyer converts a chosen background color into a matte whose values control the opacity of the foreground. Production keying usually combines color-distance selection with edge refinement, hole filling, noise cleanup, and spill suppression rather than applying a single exact-color comparison. The matte then enters a compositing stage, where foreground and replacement imagery must share suitable color, resolution, and alpha conventions to avoid visible seams.
Key facts
- 1Threshold and softness settings trade background removal against foreground retention; hair, motion blur, reflections, and translucent materials often require partial matte values rather than binary opacity.
- 2Lossy compression and 4:2:0 sampling reduce color detail around edges, so heavily compressed delivery footage generally yields a rougher key than a less compressed, higher-chroma source.
- 3Despill changes green or blue contamination on foreground edges without defining transparency. Applying it too aggressively can neutralize legitimate object colors and create gray outlines.
When Chroma Key matters
Use chroma key to automate virtual backgrounds, studio composites, or layered video effects. Uneven lighting, color spill, and foreground colors close to the key color can produce visible failures.
Common use cases for video
These examples cover video broadly, not specifically Chroma Key.
- Preparing uploaded video for web, mobile, connected-TV, social, or editorial playback.
- Creating clips, thumbnails, captions, alternate aspect ratios, and adaptive renditions.
- Normalizing camera, screen-recording, and user-generated files into predictable outputs.
Working with video
This guidance covers video broadly, not just Chroma Key.
A demuxer separates tracks from the container, decoders turn compressed streams into frames or samples, and filters apply spatial or temporal changes. Encoders compress the transformed tracks before a muxer writes the chosen output container.
Video compatibility is the product of codec, container, profile, level, frame rate, color, audio, and subtitles. Validate the complete output on target devices because a playable file on one decoder may fail or look different on another.
What you gain
- Standardized derivatives make diverse source files playable on target devices.
- A retained master can feed many resolutions, aspect ratios, codecs, and channels.
- Automated inspection and transformation make large upload volumes consistent.
What it costs
- More efficient codecs can lower bitrate at similar quality but usually cost more compute and may have narrower support.
- Higher resolutions and frame rates preserve more detail and motion while increasing processing and delivery requirements.
- Fast encoding settings improve throughput but can produce larger files or lower quality than slower analysis.
Before production
- 1Inspect codec, container, dimensions, frame rate, color, audio, and subtitle tracks.
- 2Test visual quality and playback support across the slowest and oldest target devices.
- 3Preserve a suitable master before applying lossy, destructive, or delivery-specific changes.