background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "The BEST Way to Use Content-Aware Fill | Understanding Reference Frames | After Effects Tutorial"

input logo icon
Table of contents
|

Table of contents

0:00
Intro
1:08
Overview
1:40
Creating a Mask
2:43
Importing into Photoshop
5:54
Masking
7:41
Subtracting
8:45
Composite
9:58
Tracking
Video tags
|

Video tags

after effects
tutorial
content
content aware
content aware fill
reference frames
content-aware
photoshop
adobe
cody pyper
remove
remove object
aware
fill
remove anything
video
clone stamp tool
new
ae
how to remove anything from a video
content aware fill after effects
adobe after effects
remove object from video
adobe creative cloud
after effects tutorial
adobe cc
creative cloud
updates
new features
after effects masking
masking
video editing
vfx
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:00
yo what's up everybody it's Kody Piper
00:00:01
we're back with another After Effects
00:00:03
tutorial today we're gonna be using the
00:00:04
content aware fill tool to completely
00:00:06
remove someone from our video now I've
00:00:09
done a tutorial just like this in the
00:00:10
past where I show you what to do when
00:00:12
the tool doesn't work you can go ahead
00:00:13
and click on the link in the top right
00:00:15
corner if you want to check that out but
00:00:16
today's video is gonna be even better
00:00:18
because I've learned a new method inside
00:00:19
of After Effects that gives you much
00:00:21
cleaner and more accurate results so I'm
00:00:23
really pumped to show you guys this so
00:00:24
let's jump right in so I want to give a
00:00:26
quick shout-out to one of my subscribers
00:00:27
Catherine Parsons we're actually gonna
00:00:29
be fixing her footage today she's the
00:00:31
director of a documentary film called
00:00:32
fire cats and it's a story about the
00:00:34
cats who actually survived the wildfires
00:00:36
that happen in California I'll leave a
00:00:38
link in the description if you want to
00:00:39
learn more about that project or share
00:00:41
it around or support it if you can so
00:00:43
the goal today is going to be removing
00:00:45
this person that's walking on the right
00:00:46
and replace them with a perfectly clean
00:00:48
background so it looks like nothing has
00:00:50
changed and so the hardest part about
00:00:52
this is that the camera is actually
00:00:53
pulling back and as it moves back your
00:00:55
perspective is changing so now we're
00:00:57
working in 3d space rather than 2d space
00:00:59
After Effects handles 2d very well when
00:01:02
it comes to content-aware but in 3d
00:01:04
space it could definitely warp things
00:01:05
and make things look really bad so
00:01:08
here's the overview what we're gonna do
00:01:10
first is we're to mask out both people
00:01:11
so we have a completely clean plate to
00:01:13
work with next we're gonna create
00:01:15
multiple reference frames that way After
00:01:17
Effects has a lot of information to work
00:01:19
with third we're gonna generate the
00:01:21
content aware fill and because we've
00:01:23
given After Effects so many reference
00:01:24
frames it should generate a really clean
00:01:26
fill layer fourth we're gonna use our
00:01:29
original video and composite our person
00:01:31
that we want to keep in the frame back
00:01:32
over top of our fill layer lastly we'll
00:01:35
do any manual Corrections that might be
00:01:36
needed
00:01:39
so let's get started by creating a mask
00:01:41
around the object or person that you're
00:01:43
trying to remove set your mask to none
00:01:45
so it's easier to see as you're creating
00:01:47
it and also press the stopwatch where it
00:01:50
says mask path or else it won't record
00:01:52
any of the keyframes that you create now
00:01:54
go through your entire timeline make
00:01:56
sure that the mask is covering this
00:01:58
subject throughout the whole thing and
00:02:00
only thing you have left is the
00:02:01
background that you want to keep all
00:02:03
right now that our mask is completed
00:02:05
what we're gonna do is start to find the
00:02:07
places where we want to add our
00:02:08
reference frames so you're basically
00:02:10
telling After Effects what actually
00:02:12
should be behind the person or object
00:02:14
that you're removing so the more
00:02:16
reference frames that you give the more
00:02:18
accurate your fill layer is gonna come
00:02:19
out so the best way I've found to do
00:02:21
this is as you create your reference
00:02:23
frame that's going to automatically open
00:02:25
it up in Photoshop so go back to After
00:02:28
Effects move your playhead forward about
00:02:30
a second and then you're gonna want to
00:02:32
save your frame as a Photoshop file and
00:02:35
then go back into After Effects move
00:02:38
your playhead back about a second before
00:02:40
the reference frame and then save
00:02:41
another Photoshop file so once you jump
00:02:44
back over to Photoshop so you want to go
00:02:46
to finder and locate the extra frames
00:02:48
that you rendered out of After Effects
00:02:50
and import those into Photoshop so then
00:02:53
turn one of those off so you only have
00:02:54
one showing and go and set your blend
00:02:57
mode which is right above your layers to
00:02:59
difference basically it takes the
00:03:01
difference between the layers so if
00:03:03
there's no difference between the layer
00:03:05
at all your screen is gonna be
00:03:06
completely black but any places that
00:03:08
it's different it's gonna show through
00:03:10
to this kind of multiplying look so as
00:03:12
that black starts to show or it gets
00:03:14
close to black we know that we're
00:03:16
getting close to lining up this layer to
00:03:18
where it needs to be
00:03:19
so as you import each new layer we want
00:03:23
to focus on one particular spot so for
00:03:25
example right here I'm focusing right to
00:03:27
the right of his torso so the process
00:03:29
I'm doing is first moving the layer
00:03:31
around just using the move tool and so I
00:03:34
see the most black start to appear right
00:03:36
in that area that I'm focusing on then
00:03:38
once I find that I use the transform so
00:03:40
we'll just command T I set my anchor
00:03:42
point right on the exact spot I'm
00:03:44
focusing on to set your anchor point
00:03:46
just hold option
00:03:47
and click and once you hold option and
00:03:49
click they're your anchor port is now
00:03:50
gonna be there so you go up to the top
00:03:52
and you see where your height and the
00:03:54
width are you can use those to transfer
00:03:56
your image that's also going to
00:03:58
transform using your anchor points
00:03:59
location another benefits of doing this
00:04:01
is you don't have to zoom all the way
00:04:02
out and find the little transform tools
00:04:04
that are on the outside of your image
00:04:06
you can stay zoomed in and if you click
00:04:08
inside the box where it says a height
00:04:10
and the width you can just press up and
00:04:12
down arrow keys and that will transform
00:04:13
your image so you can stay zoomed in and
00:04:15
see all the detail as you're
00:04:17
transforming your image you'll probably
00:04:19
want to uncheck this little chain icon
00:04:21
so that you can manipulate the height
00:04:23
and the width separately as I transform
00:04:25
my image I'm and again I'm just watching
00:04:26
for that black until you can start to
00:04:28
see even a black line appear in the
00:04:31
image as you're moving it and unless you
00:04:33
know if you're getting closer or further
00:04:34
away so once you've got the most black
00:04:36
appearing right on this spot that you're
00:04:38
focusing on you know you're good to
00:04:40
finish that transform there and start
00:04:42
masking it's a hold option and click on
00:04:45
the layer mask icon down at the bottom
00:04:47
and that's gonna give you an inverted
00:04:49
layer mask on to your layer and so now
00:04:51
here's the fun part so now you just get
00:04:53
to mask that clean empty background
00:04:56
layer over top of your layer that you're
00:04:58
trying to remove so again you want to do
00:05:00
this in segments so whatever spot you
00:05:01
focus on like I was focusing here on the
00:05:04
right of his torso so now I'm only
00:05:06
removing that little part and I'm
00:05:08
looking for things in the background
00:05:09
like this ladder and this little log and
00:05:13
make sure that those line up this is one
00:05:15
of those things that you're gonna have
00:05:16
to do some trial and error and figure
00:05:17
out what works and figure out what looks
00:05:19
best but definitely take it in pieces
00:05:21
don't do it all at once so once you have
00:05:23
one piece done you're gonna duplicate
00:05:25
that layer I do the whole process over
00:05:27
again as you move to his shoulders as
00:05:29
you move to his head and his feet and
00:05:31
his shadow now luckily it won't take you
00:05:33
as long as that first transform because
00:05:36
you're already gonna be pretty close
00:05:37
this looks to me a matter of shifting up
00:05:38
and down maybe changing the height then
00:05:40
with a little bit but each piece needs
00:05:42
to have a new layer so the end of this
00:05:44
you're gonna end up with five or six
00:05:46
layers on average just to remove the one
00:05:48
person
00:05:49
[Music]
00:05:54
all right now that you've completely
00:05:56
removed your subject or object the last
00:05:59
thing you want to do is group all the
00:06:00
layers that you use to remove them and
00:06:02
create an inverted layer mask and so
00:06:05
basically just hides everything you did
00:06:06
and then you want to carefully use your
00:06:08
brush to create a really really tight
00:06:10
mask around the person that you're
00:06:12
removing and so what this does is this
00:06:14
gives you only the pixels that you need
00:06:16
to remove the person and not anything
00:06:19
extra so any of that extra stuff that's
00:06:21
not technically the background layer is
00:06:23
going to mess up the content-aware fill
00:06:24
so it's pretty important to be as
00:06:26
accurate as you possibly can on all of
00:06:29
your reference frames and just to give
00:06:33
you a visual I'll turn off the lair for
00:06:35
a second so you can see what we just
00:06:37
removed and you'll see the background
00:06:39
change ever so slightly you see here at
00:06:41
the top out this white piece at the
00:06:43
background move down here so then After
00:06:46
Effects would think that those two white
00:06:48
pieces are true and they should be left
00:06:50
in but since we just did that extra mask
00:06:52
that cleaned that up so now we just have
00:06:55
that one which is what is truly there so
00:06:57
After Effects knows okay I need not add
00:06:58
anything too and so we're gonna do the
00:07:01
same thing to the other person remove
00:07:04
them completely add a layer mask just to
00:07:06
clean it up and now we're left with a
00:07:09
completely clean frame so what we'll do
00:07:12
is we'll just command s save that
00:07:14
reference frame as the same name that it
00:07:17
created in the same location that After
00:07:18
Effects created it in and now here's the
00:07:21
fun part we'll go back to After Effects
00:07:23
and we'll create a new reference frame
00:07:26
about every second this took me a long
00:07:30
time
00:07:32
[Music]
00:07:41
okay so we're gonna go back to our
00:07:44
original layer we have our mask of both
00:07:46
of our people and we're gonna set that
00:07:48
mask now to subtract so the content
00:07:50
aware fill needs to have the mask set to
00:07:54
subtract so it knows what it needs to
00:07:56
fill in now that we've got all our
00:07:57
reference frames there in the timeline
00:07:59
probably wanna go ahead and save it just
00:08:01
in case it crashes or something and you
00:08:04
can leave all the settings set to the
00:08:06
default settings and go ahead and click
00:08:08
generate fill layer and so this took
00:08:12
about an hour in real life but it's nice
00:08:14
to be able to speed it up and just look
00:08:15
at it going in seconds all right so now
00:08:18
that's finished so let's take a look at
00:08:19
how After Effects did giving it tons of
00:08:22
reference frames and trying to remove
00:08:23
both of these guys so it did a really
00:08:26
good job as you can see you can you can
00:08:27
barely even tell where they were walking
00:08:30
I've seen this clip like a thousand
00:08:31
times so I know where they're walking
00:08:33
but seeing it for the first time I bet
00:08:34
you wouldn't really even know where it
00:08:36
is there's one little thing I see with
00:08:38
their shadow at one point but it's
00:08:40
really not a big deal it's actually
00:08:41
really really close to what I wanted it
00:08:43
to be alright okay so now our next step
00:08:47
is to composite the guy that we want to
00:08:49
keep it's the shot so I'm gonna take the
00:08:51
mask that I use to mask out both of them
00:08:53
and delete half of the keyframes so now
00:08:56
those half of the keyframes are not
00:08:58
going to show up for the rest of the
00:08:59
timeline where the mask is being tracked
00:09:01
and so now I'm really just masking the
00:09:02
right side of his body so it's gonna
00:09:04
save me a lot of time doing it this way
00:09:06
so he's messed out for the entire
00:09:08
timeline I'm just gonna sit at his mess
00:09:10
to be feathered about 15 pixels that
00:09:12
will help blend between his mask and
00:09:14
filler that we created so let's take a
00:09:17
look at that with him composited on
00:09:22
all right so this renders actually
00:09:24
looking really good no one's gonna
00:09:27
noticed a couple little pops and a
00:09:28
couple little fade-ins and fade-outs
00:09:30
so I'd be good to keep it here I do want
00:09:33
to show you how to fix it just in case
00:09:35
it's not as clean it's with the renders
00:09:36
that I've gotten so let's jump into one
00:09:38
manual correction basically I just
00:09:41
wanted to fix a little area up at the
00:09:43
front and you can see that these little
00:09:44
water pipes kind of fade and pop on and
00:09:47
the car also starts to fade weird and
00:09:49
becomes blurry so what I did was I just
00:09:51
took the reference frame that I created
00:09:53
right at that same time and I duplicated
00:09:56
it and I bring it to bring did brought
00:09:59
it to the top of my timeline so when I
00:10:02
brought that layer to the top now what
00:10:03
I'm gonna do is line it up just like we
00:10:05
were doing a Photoshop earlier using the
00:10:06
difference and once we line that up what
00:10:09
we're gonna do is track the movement of
00:10:12
the background layer so track the
00:10:14
movement of the actual shot and then
00:10:16
take that reference frame and apply that
00:10:19
tracking data to the reference frame so
00:10:21
that moves along with the image and the
00:10:24
exact same way and so the way you create
00:10:26
that tracking data is you find your
00:10:29
original layer you want to double click
00:10:30
so it opens it up as a layer then you go
00:10:33
over to the right where it says tracker
00:10:34
and if you don't have that window you
00:10:36
can go up to the top where it says
00:10:37
window and click on tracker and to start
00:10:39
your tracking you click on the option
00:10:42
that says track motion and then what
00:10:43
you're gonna want to do is find a spot
00:10:45
in the background that isn't hindered by
00:10:48
the people who are walking in front of
00:10:49
it and has a good contrast that you'll
00:10:51
be able to track so you choose that
00:10:53
point move your tracker there and then
00:10:55
you use the analyze button is to track
00:10:57
forward or track backward and then once
00:10:59
you've got all the tracking data you
00:11:01
create a null layer in your timeline and
00:11:03
apply that data to the null layer
00:11:07
[Music]
00:11:13
once you've applied it to the null layer
00:11:15
you parent your reference frame to the
00:11:18
null layer the important thing is you
00:11:19
want to make sure that your playhead is
00:11:21
at the right position so that your
00:11:23
reference frame is perfectly lined up
00:11:25
with the background while you parent
00:11:27
your reference frame to the no layer and
00:11:31
once you've done that your reference
00:11:33
frame will move perfectly and tracked
00:11:35
with the background layer and then from
00:11:37
there it's just a matter of fading in
00:11:39
and fading out between multiple
00:11:41
reference layers that you add similar to
00:11:44
the way we did it in Photoshop so from
00:11:46
here it's really up to you how much
00:11:48
extra time you want to spend and how
00:11:50
well after effects did with generating
00:11:52
the fill layer but I added a couple more
00:11:54
reference frames just to clean up a
00:11:56
couple more things and here's the final
00:11:58
result alright guys and that concludes
00:12:00
the tutorial for today I hope you guys
00:12:02
learned something hope that was really
00:12:04
valuable for you I know that reference
00:12:05
frame breakthroughs i opening for me and
00:12:08
hopefully that was helpful for you guys
00:12:09
let me know in the comments below what
00:12:10
you thought and don't forget to Like and
00:12:12
subscribe all those things really helped
00:12:14
me out with my channel so I really
00:12:16
appreciate it but yeah thank you guys
00:12:17
for checking in thanks for watching and
00:12:19
I'll see you next time peace
00:12:21
[Music]

Description:

Updated 7/1/21 – USE THIS LINK FOR $100 OFF A LIFETIME MUSIC SUBSCRIPTION: https://audiio.com/pricing?oid=1&affid=23 Check out audiio.com for awesome music for your videos/films. In this video, we dive deep into how to get the absolute best results using the Content-Aware Fill tool in After Effects. In my previous video, we only added one reference frame at the beginning of the clip, but you can add as many as you want, and that is the key to getting a really clean fill! Let me know what you guys think and feel free to ask if you have any questions! The Fire Cats: https://www.seedandspark.com/fund/the-fire-cats#story --- www.codypyper.com

Preparing download options

* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "The BEST Way to Use Content-Aware Fill | Understanding Reference Frames | After Effects Tutorial" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "The BEST Way to Use Content-Aware Fill | Understanding Reference Frames | After Effects Tutorial" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "The BEST Way to Use Content-Aware Fill | Understanding Reference Frames | After Effects Tutorial" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "The BEST Way to Use Content-Aware Fill | Understanding Reference Frames | After Effects Tutorial" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "The BEST Way to Use Content-Aware Fill | Understanding Reference Frames | After Effects Tutorial"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "The BEST Way to Use Content-Aware Fill | Understanding Reference Frames | After Effects Tutorial"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.