← Fusion node reference
RestorationAdvanced

RepairFrame

Optical-flow frame reconstruction

Reconstructs a damaged or missing frame from neighboring frames using optical flow, configurable warp directions and occlusion/depth ordering.

RepairFrame
DaVinci Resolve · Fusion

Reconstructs a damaged or missing frame from neighboring frames using optical flow, configurable warp directions and occlusion/depth ordering.

Overview

What RepairFrame does

Reconstructs a damaged or missing frame from neighboring frames using optical flow, configurable warp directions and occlusion/depth ordering.

RepairFrame treats the bad frame as a hole in time. It warps information from the previous and/or next clean frames toward that moment, then resolves overlapping motion according to the chosen depth-ordering strategy.

Mental model

RepairFrame treats the bad frame as a hole in time. It warps information from the previous and/or next clean frames toward that moment, then resolves overlapping motion according to the chosen depth-ordering strategy.

Common uses

Rebuild a single corrupt frame
Repair a film splice or flash defect
Replace one missing frame in otherwise smooth motion
Use optical flow for temporal patching
Repair a local area through a mask

Flow anatomy

Inputs & outputs

The port structure shows how this node fits into a Fusion graph.

Image Input

Source image for the operation.

Effect Mask

Optional mask that limits where the node affects the image.

RepairFrame
Fusion node

Image Output

The processed result from this node.

Inspector

Important parameters

Start with these controls before reaching for more complicated workarounds.

Depth Ordering

Chooses which motion layer should win where warped objects overlap.

Fastest On Top

Prioritizes faster-moving regions at occlusions.

Slowest On Top

Prioritizes slower or more stable regions.

Clamp Edges

Reduces gaps or stretched borders created by temporal warping.

Source Frame and Warp Direction

Chooses which neighboring frames and optical-flow directions are used to reconstruct the damaged frame.

Forward Prev

Uses the previous frame with the forward motion field to rebuild the current frame.

Forward Next

Uses the next frame with the forward motion field to rebuild the current frame.

Backward Prev

Uses the previous frame with the backward motion field to rebuild the current frame.

Backward Next

Uses the next frame with the backward motion field to rebuild the current frame.

Optical Flow Options

Opens the motion-estimation controls used to reconstruct the damaged frame.

Method: Classic

Uses Classic for method.

Method: Advanced

Uses Advanced for method.

Advanced

Exposes deeper optical-flow controls for difficult shots.

Practical setup

A reliable workflow

  1. 1

    Identify clean frames immediately before and after the defect.

  2. 2

    Start with both neighboring directions enabled.

  3. 3

    Compare Fastest On Top and Slowest On Top around occlusions.

  4. 4

    Enable Clamp Edges when borders tear.

  5. 5

    Compare Classic and Advanced optical flow.

  6. 6

    Use a mask when only part of the frame needs reconstruction.

  7. 7

    Inspect the repaired frame in motion at full resolution.

Typical node chain
Source
RepairFrame
Output

Examples

Where this node fits in real work

Single-frame repair

Reconstruct one damaged frame from its neighbors.

MediaInRepairFrameMediaOut

Localized patch

Mask the damaged area and leave the rest of the frame untouched.

MediaInRepairFrame + PolygonMediaOut

Troubleshooting

Common mistakes

Applying RepairFrame before the image is in the technical state the node expects.
Pushing RepairFrame too far before checking artifacts at full resolution.
Judging RepairFrame on one still frame instead of checking motion and edge behavior.

Production notes

Practical tips

Compare RepairFrame with bypass regularly while tuning it.
Keep RepairFrame and other technical conversions separate from creative grading when possible.
After strong RepairFrame processing, check alpha, highlights and image boundaries.

Related nodes