How to Master Chroma Key Software for Epic Live Streaming
February 2024: We’ve updated the guide with better explanations on what each slider does in OBS.
Update April 2020: We’ve created a guide on how to use OBS as a virtual webcam, learn how to here.
The use of chroma keying has become quite popular in recent years, with many applications of this video effect used for live streaming. Chroma keying is used to remove the background of a video scene which is then composited over another scene or image. The most obvious use of this technique is for weather broadcasts, where the presenter is composited over the top of a weather radar image. In more recent times we’re seeing video game streamers chroma keying themselves into their live streams.
In the days before computers, creating this effect was an tedious process. If you want to learn how they did chroma keying in the past, then I’d recommend watching this great video by Tom Scott.
These days most live streaming software packages include chroma keying as a feature. In this guide we’ll show you how to achieve this great effect with OBS (Open Broadcaster Software).
Equipment needed:
- A solid green background
- A webcam or video camera
- Lighting
- OBS
As with all things in video production, you can easily spend a fortune on equipment. For the purpose of this guide, we’ve tried to keep things reasonably cheap. For the green background we picked up some green fabric from a local arts and craft store. Alternatively, you can buy green screen paint if you’re looking for a more permanent setup.
We’re using a Logitech c930e webcam for the video source. If you want to use a better quality camera, such as a DSLR, then you will need a video capture card. We often recommend the Magewell HDMI to USB3 dongle for video capture.
Lighting is very important when it comes to green screens as you want the green to be as even as possible. In our set up we’ve used a single box light. We’ll go into more detail about lighting below.
Stage set-up:
The first thing to do with any live stream is to plan your shoot. Will the camera remain stationary, or will you be moving it? Once you’ve determined the shot, you can calculate roughly how much green screen you need. It’s prudent to allow for a bit of extra green screen around the subject to avoid having them clipped outside of the chroma keyed area.
I won’t delve too deep into the best lighting setup, but for professional shoots it’s recommended to have three types of lighting. Back lights, key lights and fill lights. To the right is an image which gives you an idea of a typical lighting setup. If you want to learn more about green screen lighting, I recommend checking out this video.
Additionally, consider having a reasonable amount of distance between the subject and the green screen. The closer the subject is to the screen, the greater the shadow cast.
OBS set-up:
If you’ve correctly set-up the green screen and lighting, the chroma keying should be reasonably simple.
- Open up OBS and add your video source.
- Right click on the video source and select ‘Filter’.
- Click the ‘+’ under the ‘Effects Filters’ section, then select ‘Chroma Key’.
- Enter a name for the effect layer.
- When adding a chroma key OBS will automatically generate some baseline settings. In most cases you’ll need to fine tune the settings in the screenshot below. I’d recommend experimenting with the sliders to see what they do.
Some quick explanations on what each of the sliders do:
- Key Color Type: This is the color you wish to remove from the background. Select ‘Green’ if you’re using a traditional green screen. If you want to remove a different color, then use the color picker to select it.
- Similarity: Unless you have a perfect green screen setup, there will be a range of green colours in the background because of shadows or lighting imperfections. The higher the similarity slider, the more colors it will chroma key out e.g. if you slide it all the way to the right, everything will be removed.
- Smoothness: This is essentially anti-aliasing, and it will smooth the edges of the chroma keyed subject. If you set it too high, then it can make the subject look blurry on the edges.
- Key Color Spill Reduction: If your subject is too close to the green screen it can sometimes reflect on their hair or clothing. The key color spill reduction tries to fix this by altering the key color on the subject. If you set this option too high, then it will make the subject grey, so play around with this one to find the best setting.
- Opacity: If you want to fully remove the background, set this option to 100.
- Contrast: If you’ve had to set the key color spill reduction quite high, then you can use this contrast option to try and return the colors back to normal.
Once you’re happy with the chroma key settings you should then do a quick run through of your shoot. If the subject is going to remain stationary, you’re likely good to go. If there’s going to be movement, you should double check every position the subject will be in to make sure the chroma key settings are correct for the whole shoot.
After you’ve confirmed the chroma key settings are correct, you can now add your background layer(s). You will need to make sure they’re below the chroma keyed camera layer in OBS.
Extra Tips:
- The process for chroma keying is quite similar in Wirecast.
- Live chroma keying can be quite CPU intensive, so make sure your computer is powerful enough.
- Make sure the subject doesn’t have any green, or reflective material on them. Often blonde hair can cause issues with reflection.
- In OBS you can chroma key images, and videos – not just camera feeds.
- If you have many shades of green, you can chroma key a source multiple times, each time specifying a different shade of green.
Robby
Hi there, am I right in thinking the OBS-NDI 4.90 you dint have to copy from the archive directly into OBS? Says recommended to install from installer. Streaming from my phone in app and NDI coming up as a source in OBS but nothing coming through. When it asks to create / select source should it come up as existing. Need this working over wifi for. Monday so a speedy response appreciated
MR RICHARD L WRIGHT
Hi i have doing videos on green room through OBS but cant see get myself in front video use one computer obs and facebook live and use other for my music how do do this tryed but just not working
Rob
How do I delete the background to have just my face showing while screen recording
Laura Thorburn
I am using OBS for green screen with my computer as the background. However, when I am in front of the images that are in my window capture, I am somewhat see through and you can see the images through my skin. I checked and the opacity on the video capture is 100%. Not sure what else it could be. Any help? Thank you so much!
Cameron
Hi Laura,
You’ve probably set the chroma key ‘similarity’ slider too high. Try lowering this slider slowly to see if it helps.
Cheers,
Cam
HoodGoodie
Hello,
question? Do you have to use the DAW or MixPad Multitrack Mixer for the live or is it okay to use Window Media Player given tracks are already mixed ??
Thank you and God Bless
Bradford
Cameron, would you suggest a similar process to place (my camera feed) into the center tile of a pre-recorded 9 tiles of Brady Bunch style content. So 8 pre-recorded outer tiles with my live feed streaming (or overplayed) as the center tile?
To prevent confusion, I am not attempting 8 other separate feeds, simply one pre-recorded feed in which I would like my live feed to become a center tile on the background.
Thanks in advance
Mike
Cameron!!!! I did it!! figured it out!!! You da man! Allll thanks to you man!!! Twitch.tv/theJbyrd ill use it on stream here sometime soon if you wanna come by and say hey! Haven’t officially started streaming yet but everything’s almost ready! Thanks again @Cameron!
Cameron
Hey Mike,
What was the final solution? It might be helpful for others who want to do that same thing!
Cheers,
Cameron
Mike
Cameron, you may have solved the puzzle my friend! I’ll let you know if it works! Thank you for your time and consideration either way!
Mike
Hey everyone! Just got a green screen and had an idea i don’t know how to execute. I’m going to be using it to stream on twitch. I want to have the background be what is on my monitor but i want to be able to wear a diff color shirt and i want to have a video loop to be playing only on my shirt. Can anyone help me with this? Ive tried using multiple chroma keys and the video loop keeps bleeding into background.
Cameron
Hi Mike,
What you’ll likely need to do is create multiple scenes to achieve this effect. The first scene should contain your webcam, with the green background chroma keyed out, and the monitor output as the bottom layer.
The second scene should contain the previous scene, with a second chromakey applied to your shirt, with the looping video as the bottom layer.
There might be some chroma key bleed on the monitor source, so you could use a rough outline of your head/chest as an image mask to stop it from showing on the background. If you use an image mask you’ll have to add the second scene twice, with the mask and chroma key being applied to the top one.
Overall this process will use a fair bit of CPU power, so make sure your computer is powerful enough. Also I haven’t actually tested this, so can’t guarantee it works 100%, but it’ll likely get you going in the right direction.
Cheers,
Cameron
Mike
Soooo Im using OBS, can i use two scenes at one time? Im not understanding that part. Ive tried using multiple video captures in one scene but it wont let me use one cam for two video captures it applies the filters to both and the loop bleeds through both keys.
Cameron
You can add another scene as a source in OBS. Just right click in the sources section and it’ll show the option to add a scene.
Mike
So i messed around with it for a bit and when i go to add a chroma key to the second webcam it applies that chroma key to both scenes webcams. It will not let me use my webcam in two seperate scenes with different filters on the webcam… I feel like there’s something simple im failing to do 😐 I will keep trying. Thanks again Cameron.
John
Is there a way to do the green screen set up via the Xbox 1?
Tom
I’m another user who wants to know if this software works in Skype, Whereby or other video conferencing call apps. The previous question about this went unanswered. Thanks.
Julian
See my comment above.
Rudy Reagin
Slightly off topic; I’d like to use green screen for conference calls. Any way to use OBS as a Video Capture source with Skype? (Windows environment)
Julian
There is a virtual webcam plugin for OBS that lets you do this. Just started using it.
One thing to note, on my i7/16GB RAM laptop, the virtual webcam causes my fan to come on full blast. You might need to use a headset to avoid the background noise.
Cameron
You can read our blogpost here to learn how to do that: https://streamshark.io/blog/using-obs-as-a-virtual-webcam-on-windows-and-macos/
Madison
So I’m using a Mac and there is no “right click”. Where do I find the “add filter” option on the OBS?
Cameron
Hi Madison,
If you’re using the touchpad then you can two finger click on the layer to see the right click menu. Alternatively you can control + left click to see this menu.
Cheers,
Cam
Lisa Bell
I am trying to get our morning announcements broadcast going at our school using OBS. I want to be able to do simple backgrounds like a flag, Cafeteria, maybe some graphs when we are doing grade level competitions for money collects. Is chroma key what I need to use my green screen?
Mark Freeman
Will this allow me to have a green screen effect while streaming over BlueJeans?
Cameron
Hi Mark,
This method will work with any platform that accepts RTMP input.
Cheers,
Cam
Sam
I am looking to use skype ndi in obs (set up and working) if the caller makes a skype call with a green background, will croma key in obs work and let the caller be overlaid on a local background
Jānis Elmeris
Hello! Thanks for the guide! Is it possible to remove background without having a green screen assuming a person is what needs to be kept? Like the feature they have in Skype, Zoom and other video call apps.
Nathan Kaye
Like Amanda, I also want to use my green screen for Facebook Live streaming. Is this doable with OBS?
Thanks so much for your help solving this riddle…
Cheers,
Nathan
🙂
Cameron
Hi Nathan & Amanda,
Yep the same chroma key method can be used with OBS and Facebook Live.
There might be a smart phone app which let you do this, however I haven’t seen one. Chroma keying can be quite CPU intensive, so it might not be possible on a smart phone.
Cheers,
Cam
Amanda McIntyre
I’m brand new to all of this. I’m wanting to use these effects for Facebook Live streaming. Will this software work for it? Also is this platform only available on my computer and not my phone?
If anyone has any tips for me that would be great! I bought a green screen kit online with 10 lighting options and 3 different backgrounds (green, white, ad black).
Neenan
OBS Studio (The current latest/supported version of OBS) is currently desktop/laptop computer only and will not be compatible with your phone. On the other hand, OBS can stream to Facebook, though you would need to look through your settings to find your Stream Key. A quick google search will tell you where to find this and how to put it in OBS.
Hope I helped.
Tyler Armstrong
hello i just bought a green screen and so far i am really happy with it but i’ve noticed that the area where i use a green screen is a couple shades lighter than the actual video. I feel it makes it look less professional. Do you have any idea on how I can fix it. i will attach the link to a video of mine so you can see what i am saying if you would like. https://youtu.be/nXqo6VOH0J0
Cameron
Hi Tyler,
The best way to solve this issue is to have better lighting on the green screen. You want the lighting on the green screen to be as even as possible.
Once you’ve got even lighting on the screen you can play around with the settings to make sure its removed everything. Make sure to not overdo the ‘color key spill reduction’ setting, as if it’s too high it will turn everything grey.
Cheers,
Cam
eitan
i tryed to put high resolution picture in the back and it is very pixelise what can be wrong?
Rohan Sethi
Hey thanks for these mega helpful guides.
Do you know if it is possible to capture both the chroma keyed video, and headset view simultaneously?
(As two separate video files of the two views) many thanks.
Cameron
Hi Rohan,
So you want to record two different views? You can achieve this by having two instances of OBS open and recording each quadrant separately.
To do this you will need to create a shortcut to the OBS EXE and add -multi to the end of the target. e.g OBS\OBS.exe” -multi
Screenshot: http://i.imgur.com/IMlfRct.png
Cheers,
Cameron
Melissa Ruth
Is there a page that helps us to know how to add the background image?
Cameron
Hi Melissa,
You can add a background image by adding a new ‘source’ (click the + below sources), then selecting ‘image’. Make sure the that the image layer is below the chroma keyed layer.
Cheers,
Cameron
Dylan Owen
I see a lot of production methods using a green screen wall and a floor, how about ceilings? if you wanted to give the impression of a confined space?
Cameron
Hi Dylan,
You can certainly use a green screen/chroma key paint on the ceiling, just make sure it’s lit correctly.
Cheers,
Cameron
Joee Here
Is your setup gonna be against the wall? lol
Michael Hoskins
Oh, it would have helped if I was looking in Video Filters, instead of Audio FIlters. 😉
Cameron
Hi Michael,
Yep, it’s under the ‘Effects Filters’ section 🙂
Cheers,
Cameron
Michael Hoskins
Hmmm, when I go to the Filters list in OBS, there is no “Chroma Key.” I had just downloaded from OBSProject.com, where did you get your version?
Leo
go to source list select camera and then click with right mouse button select filter and ….. now you see filter, select it and appear the chroma key effect.