All Depth Map Guides
Video VFX

How to Convert Video to Depth Map & PNG Sequence Online (Minimizing Temporal Flicker)

Complete workflow for converting MP4, WebM, or MOV videos into grayscale depth maps, previewing every frame before downloading, exporting 8-bit or 16-bit PNG sequences as ZIP, and minimizing flicker.

How to Convert Video to Depth Map & PNG Sequence Online (Minimizing Temporal Flicker)

Converting a video into a Z-depth pass unlocks rack-focus Lens Blur, 3D atmospheric fog, depth-based color grading, and VFX CG occlusion in Adobe After Effects, DaVinci Resolve, Blender, and Nuke—without shooting on a cinema LiDAR rig.

This guide covers the complete browser-based workflow: choosing the right FPS, previewing frames before downloading, reducing temporal flicker, and exporting either an MP4 depth video or a lossless ZIP of numbered PNG frames.


Video Depth File Formats: MP4 Depth Video vs. PNG Sequence (.zip)

Before exporting, decide which format matches your editing or compositing pipeline:

Export FormatBest ForProsLimitations
Depth Video (.MP4 / .WebM)Premiere Pro, DaVinci Resolve, CapCut, quick After Effects edits, social Side-by-Side reelsSingle compact file, drops directly onto a video timeline8-bit lossy video compression can introduce slight macro-blocking in smooth gradients
8-bit PNG Sequence (.zip)After Effects, Blender, ComfyUI / ControlNet video workflowsFrame-accurate lossless PNGs (frame_0001.png…), zero codec compression artifactsLarger file size than MP4
True 16-bit PNG Sequence (.zip)Nuke, Blender Compositor, Fusion, high-end VFX Lens Blur & fog65,536 grayscale levels per frame (genuine uint16 monochrome PNG), zero bandingLargest archive size; best for short VFX plates (3–20 seconds)

In our Video to Depth Map Generator, AI depth is computed once and cached in memory—so you can export an .MP4 video, an 8-bit PNG Seq (.zip), AND a 16-bit PNG Seq (.zip) from the exact same run with zero AI re-inference.


Step 1: Match Frame Rate & Resolution Honestly

  1. Frame Rate (Every Frame Alignment): Open Advanced Settings and pick the frame rate matching your source footage (12, 15, 24, 25, 30, or 60 fps). Matching 24 fps for cinema clips or 30 fps for phone footage ensures every frame aligns 1:1 with your timeline without frame-blending jitter.
  2. Resolution (480p, 720p, or 1080p):
    • For fast drafts, social Side-by-Side breakdowns, or soft background bokeh, 720p renders ~2× faster locally and looks indistinguishable once lightly feathered in Camera Lens Blur.
    • For crisp foreground rotoscoping and fine edges, choose 1080p.
    • Honest browser note on 4K video: While our still-image tools export full 4K (4096px) locally, browser-side video processing is capped at 1080p (up to 60 seconds) to keep tab RAM stable and prevent crashes. Because depth passes are naturally softer than RGB footage, scaling a clean 1080p 16-bit PNG depth sequence up onto a 4K timeline in After Effects or Resolve works cleanly for almost all Lens Blur and fog shots.

Step 2: Preview Every Frame Interactively Before Downloading

One of the biggest time-wasters with cloud video tools is waiting minutes for an encode, downloading the MP4, and realizing the background flickers or the contrast is off.

Once frame extraction completes on DepthAnything.app/video-to-depth-map, our interactive Video Depth Player loads immediately:

  • Play / Pause & Scrub Timeline: Drag the frame scrubber across motion peaks, actor entrances, and camera pans to inspect edges before saving.
  • Zero-Recompute Switching: Toggle between Depth Only and Side-by-Side split view, switch between Grayscale / Inferno / Viridis, invert polarity, or tighten Far Clip and Contrast—every change updates the live player immediately without re-running the AI model.

Step 3: Minimize Video Depth Flicker (Temporal Consistency)

Why do basic frame-by-frame depth tools flicker? Because single-image depth models normalize each frame independently from 0.0 (farthest pixel in that frame) to 1.0 (closest pixel in that frame). The moment someone walks into the foreground—closer than anything in the previous frame—the entire background suddenly shifts darker.

How Temporal Anti-Flicker (EMA) Stabilizes Your Clip

Our Video to Depth Map tool enables Temporal Anti-Flicker by default:

  • It applies Exponential Moving Average (EMA) smoothing across consecutive cached 16-bit depth frames.
  • Simultaneously, it smoothly stabilizes the global min/max depth range so sudden foreground objects do not cause harsh background brightness pumping.
  • Because raw per-frame depth is cached in memory, you can slide Anti-Flicker Weight live and immediately preview the stability vs. responsiveness trade-off:
    • 50%–65% Weight: Best for interviews, talking heads, product turntables, and locked-off tripods—eliminates micro-flicker almost completely.
    • 25%–35% Weight: Best for handheld walking shots, sports, or rapid pans—prevents faint motion ghosting behind fast-moving hands or vehicles.

Honest comparison with server-side temporal video models: Browser-local Depth Anything V2 + EMA smoothing gives you instant private results with zero uploads, zero watermarks, and PNG sequence ZIP export. If you are working on an extreme fast-action cinema shot where you need cross-frame neural temporal attention across long sequences, dedicated cloud models such as Video Depth Anything (official Hugging Face Space) or DepthCrafter are strong alternatives to test alongside local processing.


Step 4: Import Your PNG Sequence ZIP Into VFX Software

Adobe After Effects

  1. Click PNG Seq (.zip) or 16-bit Seq (.zip) and unzip the folder.
  2. Press Cmd/Ctrl + I (File → Import → File), click ..._0001.png, and make sure PNG Sequence is checked.
  3. Right-click the imported sequence → Interpret Footage → Main and confirm the frame rate matches your composition (e.g., 24 or 30 fps).
  4. Place the sequence below your RGB footage (eye icon off), apply Camera Lens Blur to the footage, and select the depth sequence as Blur Map Layer.

Blender Compositor

  1. Export 16-bit Seq (.zip) and unzip to a dedicated folder.
  2. In the Compositor, add an Image node, select all frames (A), and set Color Space to Non-Color.
  3. Route the depth pass into a Map Range node to isolate an exact slice of depth for volumetric mist, Defocus bokeh, or Z-combine occlusion.

DaVinci Resolve

  1. Import the .MP4 depth pass or PNG sequence into the Media Pool (Resolve automatically detects numbered PNG sequences as a single clip).
  2. On the Color page, drag the depth clip into the node graph as an External Matte and connect it to a Corrector node for depth-aware grading, haze, or Lens Blur.

Ready to Process a Clip Locally?

Open the Free Video to Depth Map & PNG Sequence Generator, drop an MP4, WebM, or MOV file (or click Try 3s Sample Video), scrub the live preview, and export your depth video or PNG sequence ZIP privately in your browser.

Try it free right now

Generate a grayscale or 16-bit depth map from your own photo in seconds — 100% private in your browser.

Open Free Generator

Continue Reading