Skip to main content

Keying Green Screen Footage with Yellow

By December 29, 2015November 7th, 2017Tutorials

If you’ve ever worked with green screen footage, then you know that keying out green screen footage containing yellow elements can sometimes be difficult. A lot of times, the yellow areas in your key will end up a brownish-red:

Bad Chroma Keying

I have a technique that I’d like to share that usually turns up excellent results. Here’s a before and after screenshot of the footage:

Green Screen Keying Before & After

Keying out Green Screen Footage containing Yellow Elements

Adobe After Effects has a great built-in plugin called Keylight for keying green screen.

Import your footage into After Effects, then drag it to the Create New Composition button to create a composition:

Create New Composition

Instead of keying out the footage using just Keylight, we are going to use a track matte of the original footage. So start by duplicating your footage layer so that you have two copies:

Footage Copy

Hide the bottom layer footage and select the top layer. Keylight works best by getting the most even color to work with. Since we are dealing with yellow in our green screen, we are essentially going to turn it into a blue screen. This will yield better results in the end. First apply a Hue/Saturation effect and adjust the Hue, Saturation and Lightness until you have something similar to the below settings:


Hue Saturation
Blue Screen

 

 

 

 

 

Add the Keylight effect and use the eyedropper (Screen Colour) to grab the blue color from the background. This will take out the blue. Change the View to Screen Matte and adjust Screen Gain, Clip Black and Clip White until you have a nice matte of your subject:

KeylightScreen Matte

 

 

 

 

 

 

 

 

Now hide the top layer and show the bottom layer. select Luma as the track matte for the bottom layer:

Luma Matte

Mask out Unused Portions of Footage

Now that we have a nice cutout of our subject, you’ll notice a couple things. We have some green “spill” outlining our subject, and you may have some splotches of green in the corners:

Green Spill Chroma Keying

It really depends on the lighting conditions used during the green screen shoot. It may be better or worse. To get rid of splotches of green in the corners, simply add a mask to your footage. The easiest way to do this is to just double click the rectangle tool. This will add a layer mask to the layer you have selected. Adjust your mask so that you have enough room around your subject so as to not cut him/her off. If they move too far to the left or right, you can always animate your mask as needed:

Layer Mask Chroma Keying

Removing Green Spill

We are going to remove the unwanted green spill with the Advanced Spill Suppressor. Add this effect to your layer, then change the method to Ultra. Twirl down the Ultra Settings. We need to select the original green screen color used in the original footage. If you change your track matte back to “None” and then disable the Advanced Spill Suppressor, you’ll see your original green footage in the comp window. Use the eyedropper (Key Color) to select a mid-range green color. Turn your track matte back to Luma and turn Advanced Spill Suppressor back on. You may need to play with the Tolerance a bit, in order to get the desired outcome. You can also adjust the other settings to get a nice key:

Advanced Spill Suppressor

Color Correction

For the final step, you may want to touch up your footage by adjusting levels. Add the Levels effect and switch between the Red, Green and Blue channels and play with the sliders until your footage looks final.

Levels

That’s it! You should now have a nice key, without the reddish color that you would normally get by doing a standard Keylight effect to your green footage. If you have any questions about anything, feel free to let me know here. Here’s the final result:

Green Screen Chroma Keying with Yellow

 

11 Comments

  • Demi says:

    I’m almost there! This as been a HUGE help so far – I’m just struggling to change my key colour on the advanced spill suppressor.

    I’ve picked my green colour, but it’s still. showing as blue on the key colour. Does anybody know how to get this to change as. I currently have quite bad green spill.

    Thanks!

  • A says:

    Thank you so much. I spent a lot of time to find this information. Only tips like yours gives me a helping hand when situation is out of control. It was one of my first keying expiriences and it was really surprisung when the yellow object becomes brown. You are cool!

  • Paul says:

    This has changed everything for me!! Absolutely brilliant article! I was using keylight on its own and it always damaged my footage, but this is fantastic, I hope more ppl read it and use the tips!!

  • Great post guys.
    Here are a couple of my tips:
    1. Light the background color as evenly as possible. I found the brighter green works best.
    2. Use the best possible camera you have. The results with my Canon T3i are quite good.
    3.Add a little contrast to your video. I get a little more “pop” from my
    chromakey video by adding some contrast to it. It’s almost as good as
    the filter I use in FCPX.
    4. Crop the edges of your video if you’re
    not extending your hands or arms. And if you do extend your hands, keep
    your fingers closed to minimize any green bleed over.

  • Jonas says:

    Great tip, thanks a million.
    Had a shot where a banana was thrown into the scene and this solved the problem.

Leave a Reply

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.