 Okay, this video is going to be part of a series. This was the first kind of in the series last couple days I've released some example clips that I'm going to be using in this video and as the time recording this the newest version of Blender is 2.78 a so that's what I'm running might be a little newer by time you guys watch this and We're gonna work on doing overlays so putting objects over a video in blender and there's a number of ways You can do this. I'm showing you one way. I think it's one of the better ways So let's go ahead and get started just going to go ahead and I'm gonna hit with my cursor over the 3d view I'm gonna hit one on the number pad and I hit control alt zero on their pads ring my camera to the front view Next again with my cursor still over the 3d view. I'm gonna hit n and Actually at this point I'm going to change the frame rate of my project to 30 frames a second because that's what my video is and actually That used to be really important in older version of blenders Older versions of Blender But right now with newer version lots of times when you import videos under certain areas It will ask if you wanted to convert the frame rate of your project to the video But since I'm not doing that part right away, I'm going to set the frame rate to my video frame rate, which is either 29.97 Or 30 I forget which one my cameras. I think it's 30 But it's such a short clip that little bit matter So now that we have that I'm gonna hit n on their pad with my cursor over the 3d view I'm gonna scroll down to where it says background images and I check that and drop down. I'm gonna say add an image I'm gonna say movie clip and open and I am going to choose a clip that you probably saw that I uploaded to YouTube the other day and We're gonna you know, it doesn't show up yet. We're gonna hit Camera clip uncheck that and there is our view. I'm gonna move our 3d cube out of the way for right now And I'm gonna find so the video starts with me clicking the record button And then stepping back so I want to find right where I first first start talking what it looks like Right about here between 30 and 40. I'm just gonna say 30 frames So I'm gonna hit start and I'm gonna change this to 30 frames next I'm going to our frame 30. I should say find where I'm done talking which looks like it's right about here I smile for a minute. So I'll just set it to 300 so We've set the start and the end Because we are clipping off a little bit of the video at the beginning and end there. So that's that part now Let's go ahead and grab our cube bring it back over here and hit F12 to render and you notice the cube renders It's kind of black because of where our lighting is we're gonna fix that and we got a great background Because what we're looking at here right now for the video is just a reference video for while we're editing It doesn't render out here. We're gonna add that in in a moment But first let's fix our lighting and our textures here So first thing I'm gonna do is gonna hit end to get rid of that sidebar there and with the cube selected I'm gonna pull this out I'm gonna go to materials and I'm gonna change this material to a blue color and basically what I'm gonna do is I'm gonna put a Little block down here with my name in it. It's not gonna be very pretty, you know I'm showing you the basics here. You can design it however you want to look I'm just showing you how to get this stuff over a video So I have that but when I render out you can see it's still black I can move the lighting but I'm gonna use ambient occlusion. It isn't really that important for What we're doing here necessarily, but I like it. It's easy to do slows down your rendering a little bit But there we go. I have a blue box. So I have a great background Let's go ahead and fix that so what we're gonna do here is we're gonna go up to here And we're gonna drop down and go down to the compositor compositing and we're gonna check use nodes back drop and Auto render also you don't really need to click that I'm gonna grab this stuff And then I'm gonna in the view up here. I'm gonna hit shift a and to inputs I'm gonna choose movie clip and I'm instead of open I'm gonna click this drop down because we've already imported the video We want to use we're gonna click right there and there it is Scroll out on the wheel to zoom out center click and drag to move that around Now we need to mix these two together so I'm gonna hit shift a again and I'm gonna go down to Where are we? Matting and not madding. What am I looking for? I'm looking for here convert not. No, that's not it I'm drawing a blank now colors. Thank you alpha over. We're gonna drop that on here and again I've mentioned this in previous videos Where this one of those things were blurs kind of weird in my thought process anyway is that the bottom video So we want the our box over top of our video clip So you would think that the box would go in the top image here and the video go in the bottom But it's reversed the top video goes in the bottom the bottom video goes in top So now that we do that we hit F12 But it still shows us a great background because we're telling it to render the sky as a great background So over here in our render area We're gonna go down to shading and over here where it says alpha sky We're gonna change alpha to transparent and now when we render instead of running our gray sky It's going to render a transparent and put our video in the background So it's mixing it right here problem is if you look at this video and look at our render It's clipping the video a bit and it's because the sizing right now our project is set Our video is 1080p our project is set to 1080p, but it's set to render at 50% So it's clipping off 50% of our video click that change it to 100% hit F12 and you'll see that it renders it out Fine little slower rendering because it's doubling up actually quadrupling it up if you think about it what it's rendering Okay problem with that is what if we want to render out at different sizes We want to render a lower resolution as a test video. Do we want to change this every time? No, we don't so going over back over here to our note editor hitting shift a We're gonna go down to distort and we're going to go down to scale Drop that in line for our video here and we're gonna change this to let me zoom in so you can see it better From relative to render size so now I can hit F12 and you can see it renders fine And if I set it to 50% it's gonna render at half the size, but doesn't crop anything So this will adjust our video to always match our render size and the scene up here already does So that's it for that part Let's go back up here and go back to our default setup here So we're back in our 3d view and actually make the way this is gonna look so I'm gonna scale this down a little bit I'm a little up a little bit more scaled on the X I'm gonna grab that gonna move it over here. I'm gonna scale on the Y down a little bit and Scaled on the X a little bit. So there we go now. I can hit F12 and I've already got this blue bar there and What I'm gonna do now is I'm gonna hit space bar. I'm gonna sit type text I'm gonna add text and I'm gonna hit our X 90 to rotate it up and hit enter And then tab to add that you can change the font again This is just a basic example. So I'm not going to Change the font but you can do that by going with the text selected going to the font tab and Choosing your font here and just choosing a font file that you have So next what I'm gonna do is I'm gonna hit three on my number pad to go to the side view and I'm also gonna hit Five on the number pad to get us out of perspective mode So I can line things up better and I'm going to grab and move our text right here in front of our blue box And if I hit a zero on their pad go back to the camera You can see it there. I can hit F12 and there it is I am gonna extrude it a little bit Just to give it kind of a 3d look Doesn't need to be for something like this It's just my name on a box and I'm gonna line it up in the box here So now I have my name in a box here perfect But we want some animation we want this moving around We don't want to set keyframes for both these things because you might have multiple things Maybe you'll have two boxes here like maybe you'll have like a blue box and we'll say I don't want to do here here and go white Go back to the thing the view here Grab go back to our camera view Grab, you know, maybe you're gonna have a box like that you can't really see it because a lot of my Backgrounds white you don't want to have to set keyframes for each of these. In fact, I'll leave that there just as an example I'm gonna choose that I'm gonna shift select my name and I'm gonna shift select the blue box here And I'm gonna say shift P or sorry control P and parent to object now. I can move my name Independent I can move this white box independent But everything follows the blue box now for some reason you don't want everything following something like the blue box You can always put an empty in there and parent them to the empty and move the empty around as an option as well but for this I'm just going to parent both my name and the white box to the blue box and now I Can set keyframes. I am going to go, you know approximately 30 frames in so about a second into the video I'm gonna hit I and hit Location so I set a keyframe for that location. I'm gonna go back to the first frame of our animation I'm gonna gx to grab on the x-axis and I'm gonna move it off screen I'm gonna hit I again and set location now if I hit alt a You can see the animation of my name in the boxes coming in now I'm gonna go approximately 30 frames from the end of the video I'm gonna hit I to set the location on that again G or sorry then go to the very last frame and By you can hit shift left and right to go to the first and last frame of the of your project And I'm gonna hit gx and move that off on the x-axis hit I again It's location so now I have a video my name comes in at the beginning while I'm talking and At the end it will go out again and again. This one isn't very pretty basic box Default text nothing fancy, but again. I'm just showing you how to overlay animations over your video here Now we could go and render this out, but we have one more issue. There's no audio to any of this We're only working with visual stuff right now. We're gonna fix that though We're gonna click up here again and we're gonna go down to the video editor which actually brings you to the sequence sequencer and I'm gonna go to add and I'm gonna go to movie and I'm going to choose the movie clip that we've been working with Make sure that sound is checked and start frame. We're gonna set to one to make sure it's lined up properly with our project Hit add that you can see it adds it in and it's lined up properly with our project the videos in there as well We don't need the video on this so you can remove it and again. This is another thing blenders a little backwards most video editors The video track is on top and the audio track is on the bottom. It's the other way around this so I'm gonna select this top track and hit delete yes, erase the clip and We should be good we should have that audio there now and Let me make sure I just did that right Okay, usually blender puts the audio. Oh, yeah, I did that. I said it right. I did it wrong Okay The video is the bottom clip You delete the bottom clip because we don't need it if we have 12 you'll see that it still renders out the video now We have our audio there. I'm gonna go back to our default view and to make sure it renders out properly Let's go to our render tab. Let's set this to 100 So it's rendering at the full 1080p for this video whatever size your project's gonna be right here I'm gonna change this to a video instead of a PNG I'm just gonna say xvid and down here in the presets. I'm gonna choose xvid and since we're exporting audio as well We're gonna choose an audio codec doesn't really whatever you want to pick I'm gonna go ahead and choose mp3 just to save size save room and then where we want to output to So I'll go ahead and click in here overlay and I'm gonna say Overlay render one dot avi If you don't put the dot avi it will put it in for you, but also with the it will say the name that you put 30 underscore 330 because it will name whatever frames you have in there at this point instead of saying render We're gonna say animate and it's going to start rendering out that video with the audio and everything So that's it again. There's multiple ways you can do that Do this. I Might show you others in the next couple of days or I might just move on to other stuff because we're gonna start doing Similar stuff to this but with motion tracking But I wanted to get you started with this. I do. Thank you for watching Please visit films by Chris comm that's Chris of the K There should be a link in the description to the video to my website if you enjoy my videos think about becoming a supporter over at patreon.com Ford slash metal x1000 there's a link to that in the description and as always I hope that you have a Great day My name is Chris of films by Chris comm and this is a test video for tutorials later this week We're gonna show you how to do overlays in blender