Skip to main content
April 1, 2026Kalika Kharkar Sharma/10 min read

Cellphone Commercial: Motion Tracking to Remove a Logo

Professional Motion Tracking and Logo Removal Techniques

Core After Effects Techniques Covered

Motion Tracking

Learn to track logo movement across video frames for seamless removal. Essential for professional post-production workflows.

Digital Compositing

Master the art of combining multiple visual elements to create seamless, professional-looking footage.

Alpha Matte Techniques

Use advanced masking methods to selectively reveal and hide portions of video layers with precision.

Topics Covered in This After Effects Tutorial:

This comprehensive tutorial covers essential digital compositing techniques: splitting video clips for precise editing, creating alpha inverted mattes using solids and masks, applying professional mask feathering, implementing the "punching a hole" technique for seamless logo removal, utilizing After Effects' motion tracker for dynamic object removal, achieving natural color-matching through the Levels effect, and converting footage to black & white for stylistic purposes.

Exercise Preview

preview t mobile tracking

Exercise Overview

In Sections 3–5, we'll construct a professional commercial for Cellphone based on existing footage, demonstrating how real-world post-production challenges are solved. This comprehensive project combines motion graphics techniques with advanced digital compositing methods that remain industry-standard in 2026.

Digital compositing represents the backbone of modern video production—a sophisticated collection of techniques that seamlessly integrate images and video from disparate sources, creating the illusion they were captured simultaneously under identical conditions. Beyond basic integration, compositing enables enhancement of original footage through beauty work, environmental replacement, and brand-safe content modification. The core techniques include color keying (chroma removal), matte painting for background replacement, precision color correction, motion tracking for dynamic elements, and rotoscoping for complex selections.

This exercise focuses specifically on motion tracking for logo removal—a common requirement in commercial production when footage contains competing brand elements or requires content sanitization for broadcast standards.

Terminology Used in These Sections

Color Keying: The process of isolating and removing a specific color range from footage to create transparency. Commonly executed with green or blue screens, this technique enables background replacement and composite layering.

Mask: A vector-based shape drawn directly onto a layer using After Effects' Pen tool or shape creation tools. Masks define areas of visibility or transparency with mathematical precision.

Matte: A dedicated layer that controls the visibility of other layers through either transparency information (Alpha/Alpha Inverted) or luminance values (Luma/Luma Inverted). Mattes provide non-destructive compositing control.

Inverted: A fundamental compositing operation that reverses values—transforming black to white, transparent to opaque, visible to hidden. Essential for creating complementary reveal patterns.

Rotoscoping: Frame-by-frame isolation of video elements through hand-drawn masks, paint tools, or hybrid approaches. While time-intensive, rotoscoping provides unmatched precision for complex organic shapes.

Color Correction: The technical and creative process of adjusting footage color properties—hue, contrast, saturation, and color balance—to achieve consistency, mood, or stylistic goals across a project.

Matte Types Comparison

FeatureAlpha MatteLuma Matte
Based OnTransparency InfoBrightness/Luminance
Best ForLayers with Alpha ChannelHigh Contrast B&W Images
Visibility RuleOpaque Areas Show ThroughBright Areas Show Through
Recommended: Use Alpha Inverted Matte for logo removal as it creates transparent holes where the matte is opaque

Previewing the Final Movie

Before beginning the technical work, let's examine the finished result to understand our objective. Ensure your audio system is active to experience the complete commercial.

  1. Navigate to Class Files > After Effects Level 2 Class > Cellphone > Final Movie on your Desktop and launch Cellphone-Commercial.mov.

  2. During playback, focus on the sequence between 0:08 and 0:15 featuring the male subject. Notice his plain black shirt—originally, this garment displayed a prominent logo that we've invisibly removed using motion tracking techniques. The seamless result demonstrates professional-grade logo removal.

  3. Review the footage multiple times, analyzing how the removal maintains natural fabric texture and lighting continuity throughout the subject's movement.

Getting Started

Let's establish our working environment and examine the pre-structured composition that will serve as our foundation.

  1. Launch Cellphone Started.aep from the Cellphone project folder.

  2. Immediately save your working file as yourname-Cellphone.aep within the same Cellphone directory to preserve the original template.

  3. Access the Project panel and double-click the Cellphone-MAIN composition to load it in the Timeline if not already active.

  4. Examine the Timeline structure, noting the strategically arranged pre-compositions that form the commercial's foundation. This modular approach enables efficient editing and maintains project organization.

  5. In the Composition panel, observe the rough cut video in the bottom-left corner with synchronized audio. This reference material will guide our work on the layered pre-compositions above.

Project Organization Best Practice

Notice how the project uses staggered pre-comps ready for animation. This modular approach allows you to work on individual sections while maintaining the overall timeline structure.

Splitting the Interview Clip

Professional logo removal requires isolating individual shots for targeted treatment. We'll implement a sophisticated "punching a hole" technique using a three-layer composite system that maintains natural appearance while eliminating unwanted branding.

Our approach involves creating a three-layer "sandwich" for each shot, consisting of: a soft-edged tracking shape that follows the logo's movement ("The Hole"), the original footage with an alpha inverted matte creating a moving aperture, and a repositioned duplicate of the original footage ("The Patch") that fills the hole with clean shirt area matching the original texture and grain.

  1. Double-click the [6-Interview] pre-composition in the Timeline to open it in a dedicated tab for focused editing.

  2. Scrub through the timeline to identify the three distinct shots within this clip. We'll separate these at their natural cut points to enable individual treatment of each shot's unique motion characteristics.

  3. Position the playhead at 12;09 where the second shot begins, identifiable by the camera angle change.

  4. Select the interview layer and execute Cmd–Shift–D (Mac) or Ctrl–Shift–D (Windows) to split the layer at this timecode.

  5. Rename the newly created interview 2 layer to texting for clear identification.

  6. Advance the playhead to 14;03 marking the third shot's beginning.

  7. With the texting layer selected, split it again at this position.

  8. Rename the texting 2 layer to calling, completing our shot separation.

Three-Layer Sandwich Technique

1

Create The Hole

A soft-edged shape that covers and follows the logo movement, acting as a hole punch for the original footage

2

Apply Alpha Inverted Matte

Original footage uses the hole layer as an Alpha Inverted Matte, creating a moving soft-edged hole that hides the logo

3

Position The Patch

Duplicate footage shifted in position so the hole reveals logo-free shirt area with matching texture and grain

Adding Solids for the Mattes That Will Cover the Logo

Since After Effects cannot directly track mask shapes, we'll create solid layers that can receive tracking data and serve as our alpha mattes. This approach provides the flexibility needed for complex motion tracking scenarios.

  1. Set the composition zoom to Fit for optimal working view and locate the Lacoste crocodile logo on the subject's shirt—a clear brand conflict requiring removal.

  2. Select the interview layer and press Cmd–Y (Mac) or Ctrl–Y (Windows) to launch the New Solid dialog.

  3. Configure the solid as Interview Hole, set to composition size with a contrasting cyan color for visual clarity during the masking process.

  4. To match our footage organization, we'll split this solid into three segments corresponding to our interview clips. Navigate to 12;09 and split the [Interview Hole] layer.

  5. Rename the new layer 3 to Texting Hole and advance to 14;03.

  6. Split the Texting Hole layer and rename the result to Calling Hole.

  7. Reorganize the layer stack by positioning Calling Hole as layer 1, Texting Hole above texting as layer 3, maintaining logical pairing.

  8. Apply color coding for visual organization: select [Interview Hole] and interview layers, setting their color squares to Cyan.

  9. Similarly, color the Texting Hole and texting layers Orange, and the Calling Hole and calling layers Red.

  10. Temporarily hide all three Hole solid layers using their visibility switches eye icon to focus on the underlying footage.

  11. Select the [Interview Hole] layer and press Home (or Fn–Left Arrow) to return to the timeline beginning.

  12. Access the Ellipse tool by pressing Q once for Rectangle, then twice more to cycle to the Ellipse tool ellipse tool.

  13. Set the composition resolution to Full for precise mask creation and draw an oval completely covering the crocodile logo, ensuring adequate coverage for subject movement.

  14. Restore visibility to the [Interview Hole] layer and navigate to Layer > Transform > Center Anchor Point in Layer Content to optimize the layer for tracking operations.

  15. Access the TrkMat column via the Toggle Switches/Modes button if not visible.

  16. Set the interview layer's TrkMat to Alpha Inverted Matte "[Interview Hole]" to create the desired "hole punch" effect, revealing the background through the masked area while maintaining visibility everywhere else.

Layer Organization Strategy

Color-coding layers by shot type (Cyan for Interview, Orange for Texting, Red for Calling) helps maintain organization in complex compositions with multiple tracking elements.

What the Different Matte Modes Do

Understanding matte modes is crucial for professional compositing workflows:

Alpha Matte: Reveals your layer only where the matte layer is completely opaque. Perfect for using graphics or text as reveal shapes.

Alpha Inverted Matte: Creates transparency where the matte layer is opaque—ideal for "punching holes" or creating cutout effects like our logo removal technique.

Luma Matte: Uses the brightness values of the matte layer, revealing your content through the brightest areas. Essential for sophisticated blend modes.

Luma Inverted Matte: Reveals content through the darkest areas of the matte layer, commonly used with high-contrast black and white imagery.

Matte Mode Behavior

FeatureRegular MatteInverted Matte
Alpha MatteShows opaque areasShows transparent areas
Luma MatteShows bright areasShows dark areas
Use CaseInclude contentExclude content
Recommended: For logo removal, Alpha Inverted Matte creates the hole effect by making opaque mask areas transparent

Feathering the Mask to Soften Its Edges

Sharp mask edges create obvious compositing artifacts. Professional results require soft, natural transitions that blend seamlessly with the surrounding footage.

  1. Disable Toggle Mask and Shape Path Visibility toggle path visibility icon in the Composition panel's bottom-left area to better evaluate the composite.

  2. Expand the [Interview Hole] layer to reveal Masks > Mask 1 properties.

  3. Locate the Mask Feather property and drag the hand slider hand slider to approximately 16 pixels, monitoring the Composition panel to ensure complete logo concealment with natural edge blending.

  4. The feathering value may require adjustment based on your specific footage resolution and the logo's prominence—aim for complete concealment without obvious halos or edge artifacts.

Feathering for Seamless Blending

The 16-pixel feather creates soft edges that help the patch blend naturally with the original footage. Adjust this value based on your footage resolution and logo size.

Hiding the Crocodile

Now we'll implement the "patch" layer—a duplicate of our footage repositioned to fill our tracked hole with clean shirt area, maintaining consistent texture and lighting.

  1. Duplicate the interview layer and rename the copy to interview patch, positioning it below the original interview layer.

  2. Remove any matte assignment from the interview patch layer by setting its TrkMat to No Track Matte—this layer provides our clean background.

  3. With the interview patch layer selected, use the Arrow keys to reposition the footage, revealing clean shirt area through our masked hole. Experiment with positioning to find an area with similar lighting and texture—we used position values of 924, 658 for optimal blending.

  4. Scrub forward in the timeline to observe how the logo reappears as the subject moves—our static patch cannot follow the dynamic movement, requiring motion tracking for professional results.

Using the Tracker to Hide the Logo

Motion tracking transforms our static solution into a dynamic system that follows the subject's movement frame by frame, maintaining seamless logo concealment throughout the shot.

  1. Open the Tracker panel via Window > Tracker to access After Effects' built-in motion analysis tools.

  2. Double-click the interview layer to open it in the Layer panel, providing the isolated footage view necessary for precise tracking setup.

  3. Set the Layer panel zoom to 200% and use the Spacebar to activate the Hand tool hand tool, positioning the crocodile logo centrally for optimal tracking setup.

  4. Return to the Selection tool selection tool with V and position the timeline at the beginning of the clip.

  5. Click Track Motion in the Tracker panel to initialize the tracking system and create the Track Point 1 interface.

  6. Configure the tracking elements: enlarge the outer search box to define the search region where After Effects will look for the pattern. Size this generously to accommodate the subject's movement range:

    tracker outer box

  7. Adjust the inner pattern box to contain the distinctive elements of the crocodile logo that After Effects will track frame by frame:

    tracker inner box

  8. Fine-tune the attach point (+) by dragging within the inner box area, using the magnified view to center precisely on the most trackable portion of the logo:

    tracker enlarged croc

  9. Optimize both inner and outer box dimensions for the specific characteristics of our tracking target:

    tracker croc adjust

  10. Click Edit Target in the Tracker panel and specify 5. Interview Hole as the target layer in the Motion Target dialog, then confirm with OK.

  11. Verify that only the Position checkbox is selected in the Tracker panel—we need positional tracking only for this application.

  12. Access Options in the Tracker panel and configure the Motion Tracker Options dialog with Channel: Luminance for optimal tracking accuracy in varying lighting conditions.

Motion Tracker Setup Process

1

Define Search Region

Outer box indicates where After Effects will look for the tracked pattern on each frame

2

Set Track Pattern

Inner box contains the unique visual pattern that After Effects tracks frame-by-frame

3

Position Attach Point

The plus symbol indicates exactly where the tracker will attach and apply motion data

Tracker Settings for Optimal Results

Use Luminance channel for tracking high-contrast elements like the crocodile logo against black fabric. Set confidence threshold to 90% to ensure reliable tracking.

Key Takeaways

1Motion tracking enables professional logo removal by following object movement across video frames automatically
2The three-layer sandwich technique combines a hole layer, original footage with Alpha Inverted Matte, and a positioned patch layer
3Alpha Inverted Mattes create transparency where the matte layer is opaque, perfect for punching holes in footage
4Proper feathering (16-20 pixels) and mask expansion (5 pixels) ensure seamless blending between patch and original footage
5Tracker confidence threshold of 90% with Luminance channel provides reliable tracking for high-contrast logos
6Color-coding layers by shot type maintains organization in complex multi-layer compositions
7Centering anchor points in mask content ensures accurate motion tracking application to target layers
8Digital compositing combines multiple techniques like motion tracking, masking, and color correction for professional results

RELATED ARTICLES