Cutsio Blog

REMOVE BACKGROUND From Video in Davinci Resolve | Magic Mask

Learn how to instantly remove backgrounds from your video without a green screen using the AI-powered Magic Mask tool in DaVinci Resolve Studio.

To remove a background from a video without a green screen in DaVinci Resolve, you must use the AI-powered Magic Mask tool on the Color page. By drawing a single stroke over your subject, the neural engine automatically isolates the person or object, allowing you to add an alpha output to the node and completely erase the surrounding background.

What is the Magic Mask in DaVinci Resolve?

The Magic Mask is a Neural Engine (AI) feature exclusive to DaVinci Resolve Studio (the paid version) that automates the process of rotoscoping.

Rotoscoping—the act of manually drawing and animating a mask around a moving subject frame-by-frame—is historically one of the most tedious tasks in video editing. The Magic Mask eliminates this by using machine learning to instantly identify human figures, specific body parts, or complex objects, separating them from the background with a few simple strokes.

How to set up a Magic Mask on the Color page?

The background removal process is executed entirely within the node-based architecture of the Color page.

  1. Navigate to the Color Page: Select the clip you want to isolate on your Edit timeline, then click the "Color" tab at the bottom of the screen.
  2. Add a Serial Node: Right-click your node tree and select Add Node > Add Serial (or press Option+S / Alt+S). You will apply the mask to this new node.
  3. Open the Magic Mask Panel: In the middle toolbar (where the curves and power windows are located), click the "Magic Mask" icon (it looks like a person with a dotted outline).
  4. Add Alpha Output: To make the background transparent, right-click the empty grey space in the node graph area and select "Add Alpha Output." A blue dot will appear on the right side of the graph. Connect the blue square output of your Magic Mask node to this new blue dot.

How to draw and track the Magic Mask?

Once the node is set up, you must instruct the AI on what to keep and what to remove.

  1. Select the Mode: In the Magic Mask panel, choose either "Person" (best for human subjects) or "Object" (best for cars, animals, or products).
  2. Draw a Positive Stroke: Ensure the eyedropper tool with the plus icon (+) is selected. Draw a quick stroke down the center of your subject. DaVinci Resolve will instantly generate a red overlay showing the masked area.
  3. Refine with Negative Strokes: If the red mask bleeds into the background, select the minus eyedropper (-) and draw a stroke on the background area you want removed. The AI will instantly recalculate the mask boundaries.
  4. Track the Clip: Move the playhead to the first frame of your clip. Click the "Track Forward" button (the play icon with arrows) in the Magic Mask panel. The software will analyze every frame, keeping the mask locked onto your moving subject.

How to refine the edges of a Magic Mask?

While the AI is powerful, raw Magic Masks often have harsh, jagged edges, especially around hair or motion blur. You must refine the matte for a realistic composite.

To soften the background removal, adjust the "Matte Finesse" settings within the Magic Mask panel:

* Radius: Slightly increase the radius to soften the very edge of the mask.

* Clean Black / Clean White: Adjust these sliders to remove "chatter" (flickering pixels) inside the mask or stray pixels left in the background.

* Blur Radius: Add a tiny amount of blur (e.g., 1.0 or 2.0) to blend the subject seamlessly if you are placing them over a new background.

* In/Out Ratio: Drag this slightly negative to "choke" or shrink the mask inward, eliminating any halo effect from the original background lighting.

What can you do after removing the background?

Once the background is transparent (represented by black on the Color page), you can execute highly complex visual effects on the Edit page.

* Add Text Behind the Subject: Go back to the Edit page. Move your masked video clip to Video Track 3. Place a text title on Video Track 2, and the original unmasked video on Video Track 1. The text will now appear perfectly sandwiched between your subject and the background.

* Replace the Background: Place a new video clip or image on the track directly below your masked clip to instantly transport your subject to a new location.

* Isolate Color Grades: Instead of adding an alpha output, you can use the Magic Mask to apply extreme color grades (like making the background black and white while keeping the subject in full color) without affecting transparency.

Why is Magic Mask better than a Green Screen?

While a green screen (chroma key) provides a cleaner, sharper mathematical key, it requires extensive setup.

Magic Mask provides a massive workflow advantage because:

* No Lighting Setup: Green screens require perfect, even lighting to work. Magic Mask works on footage shot in uncontrolled environments, like living rooms or busy streets.

* No Spill: Green screens bounce green light onto the subject's skin and hair, requiring tedious color correction to remove the "spill." Magic Mask relies on contrast and object recognition, avoiding color spill entirely.

* Post-Production Flexibility: You can decide to remove the background weeks after the shoot is finished, whereas a green screen must be planned during pre-production.

How to speed up heavy VFX workflows?

Magic Mask is incredibly heavy on GPU resources. Scrubbing a timeline with multiple Magic Masks will cripple playback performance.

To avoid this, professional editors lock their structural edit before applying VFX.

* Pre-Edit with AI: They upload raw footage to Cutsio, extract the best quotes via transcript, and import the FCPXML to DaVinci Resolve.

* Apply Magic Mask Last: By building the timeline first, they ensure they only apply the Magic Mask to the specific 5-second clip that made the final cut, rather than rendering a mask for a 20-minute raw file.

* Render Cache: Once the mask is tracked, they right-click the node and select Node Cache > On to background-render the effect for smooth playback.

Frequently Asked Questions (FAQ)

Can I use Magic Mask in the free version of DaVinci Resolve?

No. Magic Mask relies on the DaVinci Neural Engine, which is exclusively available in DaVinci Resolve Studio. If you use the free version, the tool will apply a massive watermark over your footage. Free users must use the Fusion page's Polygon tool to manually rotoscope subjects.

Why does my mask lose tracking halfway through the clip?

If the subject turns completely around, gets obscured by a foreground object, or moves out of frame, the AI loses its reference data. You must pause the track, manually draw new positive and negative strokes on the problematic frame, and click "Track Forward" again from that new position to update the AI's understanding.

Does Magic Mask work well with frizzy hair?

Magic Mask struggles with fine details like frizzy hair or fur against low-contrast backgrounds. While the Matte Finesse tools help, it will never be as mathematically perfect as a well-lit green screen key. For social media and fast turnarounds, it is excellent; for feature film compositing, manual rotoscoping or green screens are still required.

By mastering the Magic Mask tool, you can achieve complex rotoscoping and background removal in seconds, drastically elevating your editing capabilities in DaVinci Resolve Studio.