How to Use Basic Motion Tracking, Camera Tracking, and Text in After Effects

Final product imageFinal product imageFinal product image
What You’ll Be Creating

In this lesson you’re going to learn how to do some basic motion tracking to add text to a shot.  To follow along with this lesson, make sure to up the motion tracking.aep file which you can download here.


You’re also going to need the video file below, which you can download from Envato Elements:

Car with Motorhome Travels on Storseisundet BridgeCar with Motorhome Travels on Storseisundet BridgeCar with Motorhome Travels on Storseisundet Bridge

How to Use the Footage Viewer

Double-click the footage in the Project panel to open up this footage in the footage viewer. The footage viewer can be a useful tool to be able to set the in and out points for your footage before you use them or before you add them to a composition.

footage viewerfootage viewerfootage viewer

This shot is 26 seconds long, and we don’t really need to motion track the entire thing. So let’s go to about 5 seconds in the footage and click on the Set IN point to current  button.

set in pointset in pointset in point

Then go to around 12 seconds and click on the Set OUT point to current time button.

set out pointset out pointset out point

Then I’m going to take my footage in the Project panel and drag it down onto the Create New Composition button. This will create a new composition with the same name as the footage.

new compositionnew compositionnew composition

You can then rename it in the Project panel by selecting it and hitting Enter on the keyboard. Let’s rename it “Motion Track”.

rename the comprename the comprename the comp

Go into the Composition Settings (Control-K) and change the Start Timecode to 0 so that it doesn’t start at the 5-second mark.

set the start to 0set the start to 0set the start to 0

How to Motion Track the Footage

Now let’s talk about how to motion track this footage. In particular, I want to attach some text to the camper van.

To do that, I’m going to select my footage, and then I’m going to go to the Tracker panel ( > Tracker). Click on the Track Motion button.

track motiontrack motiontrack motion

This will open the Layer Viewer panel. 

layer viewer panellayer viewer panellayer viewer panel

If it looks pixelated, just go back to the original composition preview panel on the left, and change the resolution to 100% or full. This will change the resolution on the Layer Viewer panel as well.

change resolution to fullchange resolution to fullchange resolution to full

When I hit that Track Motion button, I get a track point.

track pointtrack pointtrack point

There are several different options here in the Tracker panel that we can use. We can track position, rotation, scale, or any combination of the three.

tracker paneltracker paneltracker panel

And there are a few different types of track. You can do a stabilize, transform, corner pin, and more.

track typestrack typestrack types

But for now, we’re just going to do something very simple. We’re going to use tracker, and we are going to track the position.

Move the track point by clicking and dragging on the inner box, and move it to somewhere that has a really nice feature to track. Now, a good feature is something very distinctive in the layer that does not change over time.

track positiontrack positiontrack position

Basically, of After Effects looking at the footage, and it needs to be able to see whatever this little detail is throughout the entirety of the portion of the clip that you want to track.

track windowtrack windowtrack window

Go to the beginning of the composition, where we will start to adjust some things. 

This inner box is called the feature region. Whatever is in this box is what After Effects is going to be looking for, and we want this to be a distinctive feature. For this example, we are going to pick this window, which is and distinctive so that After Effects can recognise it.

adjust middle boxadjust middle boxadjust middle box

This middle point is the attach point, so this is where the track is actually going to be mapped to. 

middle pointmiddle pointmiddle point

This outer box is the search region. So After Effects is going to be looking for the element or feature this outer box. Depending on how fast your feature moves within your footage, you may need to adjust this search box.

outer boxouter boxouter box

So if you’ve got something that’s moving really fast, you need to make this bigger.

make box biggermake box biggermake box bigger

If you have something that’s moving slowly, you can make this smaller.

For this example, we’re going to keep it nice and small as the window isn’t moving too quickly.

make box smallermake box smallermake box smaller

Go over to the Tracker panel and hit the Analyze Forward button.

hit analyze forward buttonhit analyze forward buttonhit analyze forward button

Now zoom out so you can see more of your composition and monitor what’s going on with this track. As After Effects analyzes the footage, I just want to make sure that it looks more or less locked to the object that I’m trying to track.

If it loses the object, just increase the window so that After Effects can find it again, and continue to analyze from there.

look at footagelook at footagelook at footage

Congratulations

motion trackingmotion trackingmotion tracking

Congratulations! That’s how you can use After Effects for basic motion tracking. Stay tuned for the next tutorial, where we will learn how to add text. Now that you’ve learned the basics, check out some of the other tutorials we have on Adobe After Effects below.

I hope you’ve found this tutorial useful, and I’ll see you next time on Envato Tuts+!