i'm about to show you a top secret trick in davinci resolve that saved my keister on a number of occasions when doing chroma key because my green screen isn't perfect i'm going to teach you how to get that perfect key and turn this into this [Music] this lesson is brought to you by ameridroid.com if you love to learn and love to tinker ameridroid.com is the site for you single board computers maker tech and home automation all from their american support center shop with a company that we know and trust visit ameridroid.com today i believe you're going to find this process to be surprisingly easy and fast in davinci resolve here's jeff a clip of him standing on our green screen i want to point out a couple of things and he's actually pointing for me you see the there's a lot of shadows up here at the top we've also got shadows on the side and shadows at the bottom lots of wrinkles these kinds of attributes on a green screen would typically cause big problems with a green screen we have to perfectly light our green screen we got to have tons of soft boxes and every kind of light in under the sun to create a virtual sun in order to perfectly light this green screen but that is not a problem with davinci resolve anymore notice the black line as well that's actually damage on our green screen that was caused from our move from studio d to studio e and that is now a part of our green screen so that's also going to pose a problem in the traditional sense now we're going to solve these problems very very quickly and easily here in davinci resolve okay so jeff as you can see is a vertical shot i shot this in 4k at 2160 by 3840 on a pocophone f1 smartphone so the reason i did that of course is to maximize the vertical space we want to increase the resolution of our chroma key subject by making sure that we have framed them correctly we don't want to do a horizontal shot for this because then we would have only 2160 height and we'd be throwing away about 1700 pixels of data that we could have if we shop vertically so that's why we shot it this way however my canvas as you can see is 16 over 9. so i want to quickly change that i'm going to go for a custom layout here to 2160 by 3840 and now we've got a perfect crop around him so jeff is uh in that frame i'm going to just pull this in this is one of the quick little tips that i'm going to give you because we're going to pull out some of that shadow at the top and i want to make this so that his shoes are just kind of on the edge there we're not getting too much into chroma key shooting here this is more of a technical tutorial on how to now improve the chroma key based on the fact that you know what this chroma key is pretty crappy look at that it's horrible but we're going to be able to actually use this and it's going to be touched up and look beautiful in the end all right so now with that shot i'm going to jump over to my color correction over here and we're going to do something really fun this is where davinci resolve shines is its automation and i'm just going to blow your minds right about now i'm going to click on my little eyedropper tool here which you hear me call it doppler that's just my own kind of linguistics they call it a qualifier here and over here on this drop down it's defaulting to hsl i actually want to change this to 3d and this is where davinci resolve is like mind blowing so now what we have here we've got a big shadow here we've got shadows here lines lines lines shadows up here it's nasty but watch what happens if i just kind of like draw over top of this now that i've selected 3d and my qualifier i'm just simply coloring over everything that is not jeff and notice i want to just kind of go over that black line a little bit so that davinci resolve knows hey this shadow here this is actually part of my chroma key even though it's not a perfect green screen i'm just coloring in here super duper sloppy i'm gonna go around the bottom here color in these uh these shadows over here and i can let go and i can keep tapping and i can keep touching like this you don't have to do you don't have to do a perfect job by any stretch this is not photoshop this is the magic of davinci resolve can you imagine if photoshop gave us this kind of capability i literally am done so do you notice over here my node shows a hollow jeff well if i invert that now i see only jeff okay well how do i translate that to this screen here so i'm going to right click here and go add alpha output and now drag down here notice that now the background is gone and the reason is because i inverted that so see that that's what you're going to see as soon as you add the alpha output but this button here is going to in fact invert my selection boom how crazy is that so did you catch how i did that i'm going to show you once again i'm going to just delete my alpha here we go remove alpha output so now that i've colored that in with okay my qualifier 3d and then i've just kind of scribbled all over the green and all over the shadows and everything else just don't touch jeff because then i'm going to lose part of him now over here again now this is redundant i'm just showing you again to read it right add alpha output that's a right click add alpha output now it creates this guy here now take the alpha from my node and drag it down into here and now i've got this if you're seeing it like that just remember you can invert it with this button down here you're inverting your selection and now that is what your chroma key looks like isn't that beautiful but you can see a little bit if i zoom in here notice jeff's hair this is typically what we see with reasonably good green screen so that's a reasonably good chroma key right there but we do see this spill coming off from the green onto jeff's beard and you're gonna see this if you've got an afro or big hair or anything like that i don't have that problem because i'm completely bald but you do see on jeff certainly around his beard you've got this green kind of hue going on so how do we correct that it's as simple as again mind bendingly easy i'm just zooming in here so that you can see a little bit better mind-bendingly easy with davinci resolve what am i going to do i'm going to go down here and click the d spill button what the hell are you kidding right like if you've never seen this before is that not mind-bending this is like magic look at that look at that friggin key it's astonishing now you may end up with some little bit of bleed and a little bit of things scattered about so you can use your clean black to just kind of tidy up the edge see what it's doing to his beard there so i can tidy up the edge you can use clean white to pull that out a little bit and tidy up the edge with jeff i don't need to do that looks like we've got some pretty good lighting i've there you can see the numbers that i've used and there we go okay so now i'm going to jump right back to my timeline and look at jeff he's looking pretty fantastic and now next step you see professional clips i'm going to just drag that up so that i've got a a track underneath of this you see professional clips where the chroma key is perfect so you're talking like i'm talking about um stock uh videos and things like that so let's jump onto generators and we're gonna do exactly the same thing just at the start of my track i'm gonna drag solid color and now i'm gonna resize that right to the end of jeff notice it's not snapping i'm going to click on my my little magnet tool here so that it does snap and now i'm going to click on my generator the solid color i'm going to go to the generator and change my color to chroma key green right there and hit ok you can change that to whatever the heck you want right but i'm going to choose that nice vibrant green because it keys so nicely now look at that look at jeff now i've got a little bit of fuzz around his beard do you see that see how there's a bit of a bleed there i want to fix that i'm gonna go back into my color correction here and i'm going to zoom in using my scroll wheel on my mouse and we just want to touch that up so that's going to be this clean black right there just bringing that down i don't want it down quite all the way i want a little bit of clean black on there and a little bit of clean white but that softens the edge a little bit and i don't want to overkill that all right there we go now keep in mind we have already learned on the show show how you can do um facial tracking and do touch-ups and things like that you can now do that by creating a serial node or a parallel node in this case i would probably do a parallel node and create that now but we're not learning that today we've already learned that in the past but i just wanted to kind of mention that you can now do touch-ups like that so there we go we've got jeff on a perfect chroma key background now there he is hi jeff and that looks absolutely flawless check out the quality of that chroma key green screen behind jeff it's just perfect for exporting to your other editor now if you're doing all of your editing here in davinci resolve however obviously we don't need that green we're going to actually remove that generator and instead let's create a backdrop so i'm just going to import an image this can be a video or whatever else so let's drag this picture here that i've downloaded into the uh background layer and zoom in so that the positioning is approximately right to where jeff is standing and how he's standing there we go now highlight jeff and go into our color correction here we're going to create a parallel node and on that parallel node we're just going to make a few little adjustments he's looking pretty good there in the scene but we want to just touch this up a little bit bring in a little more green on his person and make that look like he's a little more part of the scene there we go and just really really quickly there's jeff standing in the middle of the forest and we can do our zoom and move around the shot and everything else and ooh does that ever look good now the final thing that we need to do here in davinci resolve of course i recommend it at the top of the video that we shoot this vertical video because we want jeff to maximize the available pixels on the camera however if we convert this to say 1080p so 1920x1080 16 over 9 format for your tv you'll notice we get black bars on the left and right and the interesting thing about this is if we zoom in on jeff's shot look at what happens kind of strange eh so what's happening there is over in our chroma key matte here uh in the node um it is framing to the the actual video shot of jeff's shot so what we need to do is click here on our window and click a now notice i've highlighted the chroma key layer here for the alpha so i've highlighted that and i'm clicking on the square window here and see what happened there so now i'm just going to drag this guy down over top of jeff and make sure you don't go outside to see what happens and frame that in like that and then we're going to take a look at our shot and see how that looks and that's all it takes to get a perfect key in davinci resolve thank you so much for watching and don't forget to give me a subscribe and a thumbs up on youtube i'd appreciate that very much and in the meantime don't forget if you are not having fun you're doing it wrong i'm robbie ferguson on the show show for category 5 technology tv i'll see you next time you