This is a lesson preview only. For the full lesson, please purchase the course.
Removing Unwanted Elements: Content Aware FillHello everyone. In this video we're going to be looking at the ability of After Effects to remove just kind of like paint over unwanted elements. We'll be using the Outer Removal folder which is in your class files folder and I just have this little started file here which I'll open. So I'll be using After Effects 2026 for this but this technique would work in pretty much any version of After Effects going back probably about 10 years.
So it's going to tell me it's an older file needs to be converted. I'll just say okay there's nothing to do for that. I just just converted right up there in the name if you notice it's converted. That's how you know.
Anytime you're dealing with an older file it opens it doesn't want to automatically overwrite that file so just add the word converted and give you that message. The reason it doesn't want to automatically overwrite it is because the files are not backwards compatible. So once this file is saved as 2026 After Effects version 2025 or any version earlier won't be able to ever open it again. I'll just like save this.
It's a problem at all. So file save as save as I'll use the keyboard shortcut to avoid doing that. I'll just send my Outer Removal folder. I'm just going to basically say my name which is Geron.
I'm just like removal or something. I always try to keep my files and a project together in a single folder that way they're either managed and move around if I need to. So this basically has a couple of comps in it and I've basically prepared a bunch of practice files for you. There's actually five comps here.
Remove logo which is the one I'll be demoing on. Boy doing homework, car on road. Don't stop loving sign and noir. I just called it noir.
So I'll be using a couple of these in the demos but most of them are just here for you to get a little extra practice. And each of them is going to have its own problem. Some will be easier than others definitely. It varies.
I'll start with the remove logo. So all this is just a video of a guy that guy sitting in this bar. Have a good drink. That's all it is.
I play it with space bars. No audio here. So these audio playing really. And it's that.
Now my problem is the logo on the shirt, that little bird. I want to get rid of it. Now this is an lesson on replacing it. There will be a lesson on that as well a bit later.
This is simply on how do I get rid of that so it's not there. I basically want to get rid of the bird, fill it with shirt and we are good. To do this we're going to use a couple different techniques. One, we are going to use masking.
Two, we are going to use mask tracking. A technique that allows the mask to follow whatever it's on top of. And then finally to get rid of the actual bird, we're going to use what's called content-aware fill for video. If you're used Photoshop, ever used its content-aware tools, this is basically a very very similar technique, but it works on videos that have a single image.
So let's get started. So the first thing I need to do is find a place where I can see that bird well. So around the 5-second mark here, the bird is fully on screen. I'm just going to zoom in on this.
And I'm going to use my middle mouse button to scroll in like this. If you have a track pad, the pinch and zoom will scroll. If you don't have a track pad, you don't have a scroll wheel mouse. You can also zoom in and out using the zoom tool.
It's actually right there. And you can just basically click and drag to zoom in or you can click and drag to draw a box around it if you're an older version. No problem at all. You can click.
And if you want to zoom out with this tool, it would be option that you hold or alt on windows and then click and it will zoom out. Okay. So I'm going to zoom in on this. I want to be able to see that.
Now it's really off in the corner when I kind of center it. It's on a pan around a little bit. That'd be the handle. Okay.
Now I'm going to go back to the fit command. If you prefer keyboard shortcuts, which I admit I do, I'll go back to my selection tool for this. So if I press and hold the Z key on the keyboard, I can toggle temporarily to the zoom tool. I can just zoom in.
If I now want to pan around, I can press and hold the H key instead. Now temporarily toggle to the hand tool, which pans around. If you tap them, it switches to the tool. But if you press and hold it temporarily toggles to it when you release, it'll go back to whatever your previous tool was in this case, the selection tool.
So it's a very quick way of navigating around inside of your interface. Okay. So let's do a mask. Now I'm going to add a little marker here.
I've got the layer highlighted. I'm going to go to layer markers add marker. Okay. If you're on a Mac, the keyboard shortcut for this is control.
That's controlled by the way. Eight. If you're on windows, it's actually the asterisk key on the number pad. So if you don't have a number pad, that'll work.
Okay. Like that. Okay. So this is a marker for where I'm drawing my mask.
That's all it is. I'm going to find my mask tools. I've got my layer still highlighted. I've got my mask tools here.
I've got a rectangle, rounded rectangle, ellipse, polygon star. I don't actually need to exactly contour it. So I'm basically just going to use an ellipse, I think, actually. Okay.
So I've got the ellipse tool and the little symbol next to it is actually the one for a mask. That is the mask. Okay. Okay.
So that's the tool. I'm just going to draw a little oval around this. So this is a trick. If your mask isn't probably aligned, if you press an old space bar on your keyboard, you can move the mask around as you do it.
Okay. Now I also want to set the mask to subtract. So it makes the bird a whole empty space. And you can do that by tapping S on the keyboard.
It's just the mass behavior from ad, which is A, A for ad, S for subtract. Okay. Now by the way, if you're one of the masks, but you don't want to do anything, that would be in for none. So in for none, A for ad, S for subtract.
Now if you don't do that while you're making it, it's fine. From the timeline right here for mask, you can just change the behavior of the function right there. Now this is good in this frame. Bottom, we'll go back to my selection tool.
Over there, doesn't line up anymore. Over there doesn't line up anymore. Okay. I'll go back to the marker right there.
Okay. So now that I've got my mask, it's cool, but like I said, like I showed you, it's only good in this one frame. So I need it to follow to track with what's going on here. Okay.
Now, like a little easier to position, I'm going to switch to none for a second. I'm just going to use the little option right here in the timeline. I'm going to double click on one of the points of the mask, which is going to give you this little bounding box around. It's like a move it around.
And I really want to make it a little bigger. So I'm going to just hold down shift while scaling, grabbing one of the corners to scale it up like that. So I'm looking for. Okay.
I'm not trying to outline it. I'm not trying to copy the contour of the bird. I want the bird and some of the shirt around it. It's going to work pretty well with this.
Okay. To finalize my transformation, I'm just going to press the return or enter key on the keyboard, whichever one you have, Windows or Mac. I got my mask well. Okay.
So I need to track it now. It's the next part, track in the mask. Okay. So in the timeline, I'm going to right click on the mask, the name of the mask, which is mask one.
In this case, if you want to rename it, you could, but why? Track mask. And that opens the tracker panel because I have a mask highlighted. So that's the tracker panel without a mask highlighted.
That's the tracker panel with the mask highlighted. Because there is a mask highlighted, it is going to assume that you, in fact, want to track a mask. There is standard what's called point tracking, which can track rotation scale and rotation scale and position of points on the screen. Mask tracking, it's a special doing that for masks themselves.
Okay. I'm going to make sure the method up here says position rotation scale, position scale rotation right there. Okay. And now it's ready to go.
Now I can track forwards, forwards one frame, backwards, backwards one frame. Okay. Now because I made my mask itself in the middle about of the video, I got to track both ways. So I'm just going to go forwards first.
And it doesn't matter which one you go first, it's irrelevant. I'll track with it. I'm going to go back to that marker right there. Then I'll track the opposite direction.
Okay. And I've got my mask tracked. Now, by the way, I had my mask set to none, but if you had it set to subtract or add, while it was tracking, it would have set it to none. Okay.
So I'm going to go back to subtract. I'm going to zoom back out, fit up to 100%. And now when I play this, that mask stays on top of the bird the entire time. So now I have masked out the bird's logo.
I have tracked the mask so it stays on top of it. And now I am ready to fill this in and get rid of that bird. Okay. I'll stop my playback.
I'm going to save my work. Command-ass or control-ass. I don't need the tracker panel anymore. I'll risk it rid of it a little later.
But I do need a panel called, and I'm going to find it under Window, Content-Aware Fill. So Content-Aware Fill works by filling in empty spaces on your composition, in your composition. Okay. You will know it has a