Disclosure: I built RemoveGreen, one of the tools mentioned below. The rest of this post applies to any chroma key tool, and I've included alternatives.

Green screen removal looks like a one-click job until you try it on real footage. You get a green fringe around hair, a patchy background where the screen was creased, or a subject whose green shirt turns see-through. Most of those problems come from how the clip was shot, and the rest from a few settings.

This guide covers how chroma keying works, how to shoot footage that keys cleanly, which settings to tune, and when to export a transparent file instead of a finished video.

How chroma keying works

A chroma key picks a target color, usually green, and makes every pixel close to that color transparent. "Close" is the part you control. Two ideas matter:

  • Similarity (tolerance): how far a pixel's color can be from the key color and still be removed. Too low leaves green patches. Too high eats into your subject.
  • Smoothness (softness/feather): how gradually pixels go from "removed" to "kept". A hard edge looks cut out. A soft edge keeps hair and motion blur natural.

On top of those there is usually spill suppression (also called despill): it pulls the green tint out of pixels you keep.

Different tools name these differently. In RemoveGreen the controls are called Chroma Key strength, edge and spill. In ffmpeg's chromakey filter they are similarity and blend, and despill is a separate filter.

Shoot footage that keys cleanly

You can fix some problems in software, but a clean shot saves the most time.

  1. Light the screen evenly. Shadows and bright hot spots are different shades of green, so the key sees them as different colors. Flat, even light on the backdrop gives the cleanest result.
  2. Light your subject separately. Don't rely on the light that hits the screen to also light the person.
  3. Keep distance between subject and screen. The closer someone stands, the more green light bounces onto their shoulders and hair. That bounce is called spill. A meter or two of separation helps a lot.
  4. Avoid green in the foreground. Green clothes, props, or reflective surfaces will get keyed out too.
  5. Use a smooth backdrop. Wrinkles create shadows. Stretch the fabric or use a painted wall.
  6. Mind motion blur. Fast hand movement blurs into the background color. A higher shutter speed helps if you have the light.
  7. Shoot at the highest quality you can. Heavy compression smears color at edges, which makes hair harder to key. Phone footage at high bitrate usually beats a heavily compressed export.

The settings that matter, in the order to touch them

  1. Start with the key color. Make sure the tool is targeting the green you actually shot, not a default value. Many tools let you pick it from the frame.
  2. Raise similarity/strength until the background is gone. Stop as soon as the patches disappear. Scrub through the clip, not just one frame, since lighting differences show up in different parts.
  3. Back it off if the subject goes see-through. Look at skin, shirts and glossy objects. If they get holes, you went too far.
  4. Add edge softness to taste. More for hair and fur, less for hard-edged objects like products.
  5. Finish with spill suppression. If you still see a green rim on shoulders or hair, increase it. Too much can shift skin tones, so check faces.
  6. View against a contrasting background (a checkerboard, or a dark and a light color). Problems hide on a single background.

Transparent WebM vs. background replacement

You usually have two ways to finish:

Export a transparent video (WebM with alpha) when you'll place the subject in something else: a video editor timeline, a motion graphics project, an overlay on a web page, or a stream scene. You keep full flexibility. WebM with VP9 supports an alpha channel, and it plays transparently in Chrome, Edge, and Firefox. Some editors and players ignore the alpha channel and show black, so test in your target app. If your editor doesn't read WebM alpha, export PNG frames or a format it does support (ProRes 4444 is a common one for editing).

Replace the background and export a normal MP4 when this clip is the finished product: a talking-head short, a product video, an explainer. MP4 can't hold transparency, so the new background is baked in. It plays everywhere, which is the point.

If you're not sure, export the transparent version first. You can always composite it later, but you can't remove a baked-in background.

Step by step in the browser (RemoveGreen)

This is how it works in RemoveGreen, which runs the standard chroma key in your browser:

  1. Open the tool and add your video. It accepts MP4, MOV and WebM files up to 500MB.
  2. Adjust the key. Use the Chroma Key strength control until the background disappears, then edge and spill to clean up the outline. Preview the result as you go.
  3. Check the edges. If hair, motion blur or heavy green spill is still a problem, there is an optional AI Enhance pass. It requires sign-in, shows the duration and credit cost before you confirm, and uploads the video for processing. Standard removal does not upload your video.
  4. Pick an output. Export a transparent WebM, or preview a solid color, image or video behind the subject and export an MP4.

The free plan covers transparent WebM export up to 720p and 30 seconds, with no watermark and no signup. Higher resolution is on paid plans.

Doing it with ffmpeg

If you want something scriptable, ffmpeg's chromakey filter does the job. This command removes pure green, applies despill, and writes a VP9 WebM with alpha:

ffmpeg -i input.mp4 \ -vf "chromakey=0x00FF00:0.12:0.08,despill=type=green" \ -c:v libvpx-vp9 -pix_fmt yuva420p -auto-alt-ref 0 \ output.webm 

What the numbers mean:

  • 0x00FF00 is the key color. Sample your actual screen color instead of assuming pure green.
  • 0.12 is similarity. Raise it if green remains, lower it if the subject gets holes.
  • 0.08 is blend (edge softness).
  • -pix_fmt yuva420p and -auto-alt-ref 0 are what keep the alpha channel in VP9. Without them you get an opaque file.

I tested this on ffmpeg 7.1: the output stream carries alpha_mode=1 and the keyed area decodes with alpha 0. One gotcha when verifying: ffmpeg's default VP9 decoder drops the alpha channel, so to inspect the result with ffmpeg, force the libvpx decoder by placing -c:v libvpx-vp9 before -i output.webm. Real footage will need different numbers than my synthetic test clip, so treat these values as a starting point.

To replace the background in the same pass, overlay the keyed clip on a new image:

ffmpeg -i bg.jpg -i input.mp4 -filter_complex \ "[1:v]chromakey=0x00FF00:0.12:0.08,despill=type=green[fg];[0:v][fg]overlay=shortest=1" \ -c:v libx264 -pix_fmt yuv420p out.mp4 

Make sure bg.jpg matches your video resolution, or add a scale step first. I tested this one too: with a plain blue background, the green area of the test clip came out blue.

Other options

  • DaVinci Resolve (free version available) has a 3D Keyer and the Delta Keyer for tough footage, with proper control over matte and spill. If you need a premium result on difficult footage, this is the heavy-duty route, with a learning curve.
  • CapCut and similar editors have a chroma key effect with intensity and shadow sliders. They're fast for social clips, but check the export options if you need transparency.
  • OBS Studio has a Chroma Key filter for keying in real time, which is the right choice for live streaming.
  • After Effects (Keylight) is a standard for professional compositing, though it's paid.

Pick based on the job: ffmpeg for batches, OBS for live, Resolve or After Effects for hard shots, and a browser tool when you just need a quick transparent clip without installing anything.

Quick troubleshooting

Problem Likely fix
Green patches remain Raise similarity/strength; re-check key color; reshoot with even lighting
Subject has holes Lower similarity/strength; avoid green clothing
Green outline on hair Increase spill suppression, soften edge
Jagged edges Increase softness/blend slightly
Exported WebM shows black Your player/editor ignores alpha; test in Chrome or use PNG frames/ProRes

Wrapping up

Good green screen results start with the shoot: even light, distance from the screen, and no green in the foreground. Then tune similarity, softness, and spill in that order, and decide up front whether you need a transparent file or a finished video.

If you try the browser tool above, I'd like to hear where it falls short, especially on hair and motion blur. And if you have a favorite ffmpeg or Resolve setup for tricky footage, share it in the comments.