FUSION · FULL ARTICLE
AutomaticDirtRemoval
A temporal Resolve FX Revival restoration tool that uses optical flow and neighboring frames to detect short-lived dust, dirt, hairs, tape hits and similar defects, then reconstructs only the detected areas.
Overview
Automatic Dirt Removal is a Studio-only Resolve FX Revival tool. It is not a general denoiser and not a cosmetic blur: it targets temporally unstable local defects such as dust, dirt, hairs, tape hits and similar damage that exists briefly and then disappears.
Blackmagic describes the core process as optical-flow temporal analysis. The effect compares the current frame with neighboring frames, estimates real scene motion, and tries to distinguish short-lived contamination from legitimate image detail that simply moved between frames.
A useful mental split is detection first, repair second. Motion Est. Type, Neighbor Frames, Dirt Size Threshold, Motion Threshold and Edge Ignore primarily change what the detector considers dirt; Repair Strength determines how strongly the already-detected candidates are reconstructed.
Motion Est. Type has four documented modes: None, Faster, Normal and Better. These are not creative presets. They trade processing cost against motion-analysis quality: None avoids motion compensation, Faster prioritizes speed, Normal is the main balance, and Better spends more computation on a more reliable match.
Neighbor Frames sets the temporal depth used during detection. More neighboring frames provide more evidence for transient dirt but take longer to process. The captured Resolve 21 Inspector on this page shows 2; treat that as UI evidence, not as a universal preset.
Repair Strength does not by itself decide whether a pixel is dirt. It controls how aggressively detected candidates are repaired. If the repair mask is wrong, raising Repair Strength generally makes the wrong repair stronger rather than fixing detection.
Dirt Size Threshold is critical for preserving film grain. Blackmagic explicitly notes that raising the threshold can omit fine texture such as film grain from the operation, but may also let smaller pieces of dirt pass through. If grain is being attacked, adjust size detection before simply reducing Strength.
Show Repair Mask is the primary diagnostic mode. It reveals which regions the effect currently believes are defects, making false positives on grain, highlights, edges or moving texture much easier to see than they are in the final image.
Motion Threshold controls the point at which unstable/moving pixels can be classified as dirt or artifacts. The documented tradeoff is deliberate: lower values can leave more dirt but produce fewer motion artifacts; higher values remove more dirt but increase the risk of damaging real motion.
Edge Ignore protects strong real image boundaries. Higher values exclude more hard edges from repair. It is particularly useful around text, architecture, hair, lashes, wires and other high-contrast features that a temporal detector can mistake for damage.
Automatic Dirt Removal is strongest on short-lived contamination. Blackmagic specifically warns that it is less successful on vertical scratches that remain in the same position for multiple frames and ineffective on persistent dirt on the lens. Those defects do not provide the transient behavior this tool expects.
That limitation defines the boundary with Dust Buster, Paint/Clone and Patch Replacer. Automatic Dirt Removal is excellent as an automatic first pass over many transient spots; difficult persistent or isolated defects are often more predictable with targeted manual repair.
Fast motion must be judged over time, not on a hero still. Optical-flow mismatch can create swimming texture, soft patches, repeated fragments or loss of genuine detail. Final QC should include playback and frame stepping through the hardest movement.
On film material, grain is image texture rather than a detector error. If Show Repair Mask lights up across the whole frame with tiny candidates, detection is too permissive: Dirt Size Threshold may be too low, Motion Threshold may be too high, or Repair Strength may be exaggerating an already-bad selection.
In Fusion, use the blue Effect Mask as spatial coverage for the final effect. It can confine restoration to the damaged region and protect clean areas. Do not describe it as a guaranteed selector for the effect's internal temporal statistics without live verification on the target Resolve build.
The captured Inspector on this page shows Normal, Neighbor Frames 2, Repair Strength around 0.9, Dirt Size Thr. 0.1, Motion Thr. 100 and Edge Ignore 0. Those numbers prove the current labels and grouping, not a ready-made recipe for every scan, resolution or motion pattern.
A reliable production order is: choose motion estimation and temporal radius, inspect Show Repair Mask, tune size/motion/edge protection, then dose Repair Strength, disable the diagnostic view and review the complete shot in motion.
The final criterion is stable restoration without structural damage, not the maximum number of removed spots on a single frame. If cleanup starts erasing texture, edges or motion, leave some dirt for manual repair rather than turning the automatic pass into a new artifact generator.
When to use it
- Remove short-lived dust from film scans
- Clean isolated bright or dark specks in archival footage
- Remove transient hairs and tape hits lasting one or two frames
- Run an automatic first restoration pass before Dust Buster or Paint cleanup
- Diagnose false positives through Show Repair Mask
- Restrict temporal cleanup to a local region with Effect Mask
Article screenshots
Inputs & outputs
Automatic Dirt Removal: Input → temporal detection → repair → Output; Effect Mask limits spatial coverage
Automatic Dirt Removal accepts one 2D image stream and analyzes it over time: neighboring frames and motion estimation help separate short-lived dirt from genuine moving detail. The blue Effect Mask is an optional coverage input for localizing the result. Do not document it as a guaranteed selector of internal temporal statistics without separate live verification in Resolve.
Finds transient dust/dirt/hair/tape-hit defects through temporal inconsistency, protects motion/edges with thresholds, and reconstructs accepted candidates according to Repair Strength.
Inputs
- Input
Primary 2D image / temporal source
Receives: Continuous footage or a film scan from MediaIn, Loader, Merge, or another image processor. The node compares neighboring frames from this same temporal stream.
Inside the node: Optical-flow/motion analysis aligns neighboring content, then the detector searches for short-lived anomalies. Dirt Size/Motion/Edge controls filter candidates before Repair Strength controls reconstruction.
Typical sources: MediaIn · Loader / image sequence · film scan · Merge result · another 2D processor
The node targets transient defects. Persistent vertical scratches and constant lens dirt are weak matches for this temporal model. Always review cuts, fast motion and occlusions in playback.
- Effect Mask
Optional spatial coverage for the result
Receives: A Fusion mask from Rectangle, Ellipse, Polygon, B-Spline, Bitmap, or another mask node when cleanup should be localized.
Inside the node: Limits the spatial contribution of Automatic Dirt Removal to the selected region and reduces collateral repair in otherwise clean areas.
Typical sources: Rectangle · Ellipse · Polygon · B-Spline · Bitmap
Use Effect Mask as a coverage gate. Do not promise that it changes the internal temporal search/statistics domain; that remains a live-verification boundary for the target Resolve build.
Outputs and destination
Output
A normal 2D image after temporal detection/reconstruction and optional spatial coverage. With Show Repair Mask enabled the output acts as a diagnostic view; disable diagnostic mode for final rendering.
Next step: Viewer · grading / restoration chain · Merge · MediaOut · another 2D processor
Review grain continuity, moving edges, soft/swimming patches and shot boundaries in playback. Maximum dirt removal is not the goal when it damages genuine texture.
- Output
- A 2D RGBA image after temporal detection/repair and optional Effect Mask coverage. Output remains a normal image stream for grading, compositing or MediaOut.
Processing order
- Input supplies the source 2D footage/film scan and the clip's own temporal continuity.
- Motion Est. Type and Neighbor Frames define the motion-compensated temporal comparison against neighboring frames.
- Dirt Size Thr., Motion Thr. and Edge Ignore determine what the detector admits to the repair mask and what it tries to protect as grain/motion/edge detail.
- Show Repair Mask temporarily exposes the detector decision as a diagnostic view; disable it before final output.
- Repair Strength controls reconstruction intensity for candidates that have already been selected.
- If connected, Effect Mask spatially limits the effect contribution; Output remains a normal 2D image stream for the downstream Flow.
Localized transient-dirt cleanup
MediaIn → AutomaticDirtRemoval → MediaOut · Polygon → AutomaticDirtRemoval.EffectMask
Enable Show Repair Mask first and tune Motion Est./Neighbor Frames/Dirt Size/Motion/Edge controls so the detector selects real dirt without eating grain or edges. Then disable the mask view, set Repair Strength, and localize final coverage with a Polygon when needed.
Input is the temporal image source. Tune the detector before Repair Strength. Show Repair Mask is essential diagnosis. Effect Mask is spatial coverage, not a proven selector of internal temporal statistics. Output is a normal 2D image.
Parameters
Automatic Dirt Removal · Inspector reference
Read Automatic Dirt Removal as a temporal detector → repair pipeline, not as a normal blur or denoiser. Motion Est. Type and Neighbor Frames establish the temporal comparison first; Dirt Size Thr. / Motion Thr. / Edge Ignore then separate transient dirt from grain, motion and genuine edges; Show Repair Mask exposes the detector decision; only after that should Repair Strength set reconstruction intensity.
- Input
- 2D footage / film scan
- Temporal
- motion estimation + neighbor frames
- Detect
- size + motion + edge thresholds
- Inspect
- Show Repair Mask
- Repair
- Repair Strength
- Coverage
- Effect Mask optional
- Output
- restored 2D image
Temporal Analysis · Motion Est. Type · Neighbor Frames
This pair defines the temporal evidence: motion-estimation quality and the number of neighboring frames examined. It affects how reliably the detector separates short-lived defects from genuine moving detail.
- Motion Est. Type
Temporal Analysis > Motion Est. TypeChooses the motion-estimation quality/cost mode: None, Faster, Normal or Better. None avoids motion compensation, Faster prioritizes speed, Normal is the main balance, and Better spends more processing on a more accurate match. This controls temporal analysis, not repair strength.
Check / distinguish: Start with Normal. Try Better when difficult motion genuinely needs a stronger match; use Faster when rapid detector iteration matters.
- Neighbor Frames
Temporal Analysis > Neighbor FramesSets how many neighboring frames participate in dirt detection. More temporal samples can reveal more short-lived contamination but increase processing cost and may expose matching errors on difficult motion. The captured value 2 is UI evidence rather than a universal preset.
Check / distinguish: Choose a temporal window that distinguishes the defect from real motion rather than blindly maximizing the frame count.
- Transient defects are the target
Concept > temporal modelThe node is strongest on defects that appear for one or two frames and then disappear: dust, dirt, hairs and tape hits. That temporal inconsistency is the useful detector signal.
Check / distinguish: Find one real transient spot and inspect frame-before / current / frame-after.
- Optical flow protects real motion
Controls > Motion Est. TypeMotion estimation is not artistic motion blur; it aligns genuinely moving scene content across neighboring frames before transient anomalies are judged.
Check / distinguish: Test the detector on a high-contrast moving contour, not only on a static background.
- None is a diagnostic boundary
Controls > Motion Est. Type > NoneNone disables motion compensation. It can be a fast baseline on nearly static material, but real detail becomes more vulnerable to false positives when the scene moves.
Check / distinguish: A/B None and Normal on the same moving edge.
- Faster favors throughput
Controls > Motion Est. Type > FasterFaster reduces the cost of motion analysis. It is a speed/iteration mode, not a promise of the same result as Normal or Better.
Check / distinguish: Compare playback time and the repair mask on the hardest motion.
- Normal is the practical baseline
Controls > Motion Est. Type > NormalNormal is the practical starting point: establish a stable mask here first, then move to Better for a specific reason.
Check / distinguish: Lock all other controls and use Normal as the control case.
- Better spends more on matching
Controls > Motion Est. Type > BetterBetter spends more computation on motion matching. It can help difficult motion, but it does not fix wrong size/motion/edge thresholds or turn persistent defects into transient ones.
Check / distinguish: Compare Better with Normal by mask quality and artifacts, not by the mode name.
- Neighbor Frames is temporal depth
Controls > Neighbor FramesNeighbor Frames defines how much neighboring temporal context is used for comparison. More context usually gives the detector more evidence while increasing processing cost.
Check / distinguish: Increase the value stepwise and note which additional spots enter the mask.
- More frames are not automatically safer
Controls > Neighbor FramesA larger window is not automatically safer: occlusion, fast motion, cuts or deformation can make correspondence harder across additional frames.
Check / distinguish: Check shot boundaries and fast occlusions before increasing the window.
- Shot boundaries are hostile
Temporal QC > cutsTemporal reconstruction should not blindly rely on frames from a different shot. Inspect clip heads/tails and edit cuts especially carefully.
Check / distinguish: Frame-step several frames around a cut and compare with bypass.
- Playback is mandatory
QC > temporal artifactsOptical-flow mismatch can appear as swimming, popping, repeated texture or a soft replacement patch. A single still often hides the problem.
Check / distinguish: Review real-time or near-real-time playback, then frame-step the problem frames.
- Occlusion is a hard motion case
QC > occlusionWhen a subject occludes or reveals the background, neighboring frames lack a simple one-to-one correspondence. The detector may mistake newly revealed detail for a defect.
Check / distinguish: Check occlusion boundaries in Normal and Better with all other controls fixed.
- Current Inspector numbers are evidence only
Reference screenshotsNormal, Neighbor Frames 2, Repair Strength ~0.9, Dirt Size Thr. 0.1, Motion Thr. 100 and Edge Ignore 0 confirm labels/current UI state but do not remove the need for shot-specific tuning.
Check / distinguish: Use them to reproduce the reference UI, then retune for the actual source.
Detection & Repair · Repair Strength · Dirt Size Thr. · Show Repair Mask
Dirt Size Thr. rejects fine texture, Show Repair Mask exposes the detector decision, and Repair Strength scales repair that has already been accepted. Strength should not be used to compensate for a bad detection mask.
- Repair Strength
Detection & Repair > Repair StrengthControls how aggressively already-detected defects are repaired. Higher values replace detected regions more strongly; lower values may let some candidates remain. If useful detail appears in Show Repair Mask, fix detection first instead of increasing Strength.
Check / distinguish: Dose Strength only after the mask is trustworthy. The roughly 0.9 value in the screenshot is a reference state, not a universal recommendation.
- Dirt Size Thr.
Detection & Repair > Dirt Size Thr.Filters candidates by scale and helps separate genuine dirt from fine texture or film grain. Blackmagic notes that raising Dirt Size Threshold can protect film grain but may also allow smaller dirt to pass through. An overly low threshold often creates a noisy, texture-filled repair mask.
Check / distinguish: If grain is being selected, raise Dirt Size Thr. in small steps while watching Show Repair Mask.
- Show Repair Mask
Detection & Repair > Show Repair MaskDisplays only the regions the detector intends to repair. Use this as the main false-positive diagnostic before judging the final picture. Check several motion states, not one still.
Check / distinguish: Do not approve the setup until the repair mask remains sensible across representative frames.
- Detection before repair
Workflow > Show Repair MaskThe core discipline is to decide where dirt exists before deciding how strongly to repair it. If the mask is wrong, Strength is not the cure.
Check / distinguish: Tune thresholds with Show Repair Mask enabled and a moderate Strength.
- Show Repair Mask is the truth view
Controls > Show Repair MaskThe diagnostic mask shows the regions the detector considers eligible for repair. It is more useful than a subjective final still when hunting grain/edge false positives.
Check / distinguish: Inspect clean texture, a dirt spot and a moving edge in one mask pass.
- Repair Strength is downstream of classification
Controls > Repair StrengthRepair Strength changes reconstruction intensity for candidates already detected. It should not be treated as the primary detection threshold.
Check / distinguish: With the mask held constant, A/B low/high Strength to separate coverage from intensity.
- High Strength exposes bad masks
Controls > Repair StrengthExcessive Strength makes detector mistakes more visible: genuine edges become soft patches and texture becomes sterile islands.
Check / distinguish: If an artifact grows with Strength, return to detection controls.
- Dirt Size Threshold protects grain
Controls > Dirt Size Thr.Blackmagic explicitly ties a higher Dirt Size Threshold to excluding film grain from repair, at the cost of potentially missing smaller dirt.
Check / distinguish: On a grainy frame, raise the threshold until dense fine mask activity disappears.
- Size threshold has a real tradeoff
Controls > Dirt Size Thr.If grain and desired dirt have similar scale, a perfect global threshold may not exist. In that case keep the automatic pass conservative.
Check / distinguish: Compare the smallest dirt candidate with typical grain clusters at 100% Viewer scale.
- Do not sterilize film texture
Restoration > grain continuityA clean frame without its original grain can be worse than a small amount of remaining dirt because repaired patches start swimming against living texture.
Check / distinguish: Review several seconds of playback rather than only a freeze frame.
- Captured 0.1 is evidence, not a recipe
Controls > Dirt Size Thr.The captured Dirt Size Thr. = 0.1 records one UI state. Defect scale depends on the scan, resolution and texture, so the value is not a standard recipe.
Check / distinguish: Retune the threshold on the target source resolution.
- Captured ~0.9 Strength is not a default recipe
Controls > Repair StrengthThe visible ~0.9 records the captured Inspector state, not a production recommendation. Lower Strength can be safer on delicate texture.
Check / distinguish: A/B the captured reference against a more moderate Strength on difficult texture.
- Persistent vertical scratches are a weak case
Limits > vertical scratchesBlackmagic notes that a vertical scratch staying in the same place for many frames is a weaker case because the detector lacks the usual transient signature.
Check / distinguish: If the scratch persists, compare a manual Dust Buster/Paint/Patch workflow instead of increasing aggressiveness.
- Lens dirt is not temporal dirt
Limits > persistent lens dirtDirt on the lens stays tied to the frame throughout the shot and therefore does not behave like single-frame film dirt. Automatic Dirt Removal is ineffective for that case.
Check / distinguish: Switch to a targeted spatial/clone/paint strategy instead of fighting the thresholds.
- Manual cleanup is part of a good pipeline
Workflow > handoffProduction restoration does not have to remove 100% of defects automatically. A conservative automatic pass plus manual cleanup of a few difficult spots is often safer for texture.
Check / distinguish: Count remaining false negatives and compare their cleanup cost with the texture damage caused by more aggressive settings.
- Effect Mask is coverage, not proof of detector scope
Flow > Effect MaskThe blue Fusion mask is useful for spatially limited cleanup, but the article should not promise that it changes the internal temporal search/statistics domain.
Check / distinguish: Disconnect the mask cable and verify coverage changes; keep internal detection semantics as a live-verification boundary.
- Local masking lowers collateral risk
Flow > Effect MaskWhen dirt is concentrated in one region, a local Effect Mask reduces the area where automatic repair can damage otherwise clean texture.
Check / distinguish: Compare full-frame processing with a tight Polygon coverage using identical detector settings.
- Output remains a normal image
Flow > OutputAfter temporal analysis/reconstruction the node outputs a normal 2D image stream, not a repair matte. Show Repair Mask is the diagnostic way to view the detector mask.
Check / distinguish: Disable Show Repair Mask before final output/render.
- Do not render the diagnostic mask
Controls > Show Repair MaskShow Repair Mask is a tuning aid. Leaving it enabled sends the diagnostic representation downstream instead of the intended cleaned image.
Check / distinguish: Before MediaOut add a checklist item: Show Repair Mask off + effect bypass A/B.
- Final criterion is structure preservation
QC > approvalThe best result is not the one that removes the most spots; it is the one that reduces dirt without sacrificing grain, edges, genuine motion or temporal continuity.
Check / distinguish: Approve the effect using split/bypass playback across the hardest section, not by counting vanished spots.
Fine Controls · Motion Thr. · Edge Ignore
Fine Controls address the two main false-positive domains: genuine motion and hard edges. Motion Thr. balances dirt detection against motion artifacts, while Edge Ignore protects stable contours.
- Motion Thr.
Fine Controls > Motion Thr.Fine-control threshold for deciding when temporal pixel differences may count as dirt/artifacts. Lower values can leave more dirt but reduce motion artifacts. Higher values remove more candidates but increase the risk of repairing real moving detail.
Check / distinguish: If a moving subject loses detail, lower Motion Thr. and/or use a higher-quality Motion Estimation mode.
- Edge Ignore
Fine Controls > Edge IgnoreExcludes strong real image edges from automatic repair. Higher values protect more pronounced edges. This is useful around text, architecture, hair and other hard boundaries that can be mistaken for damage.
Check / distinguish: Increase Edge Ignore only enough to suppress edge false positives; too much protection can leave real dirt close to those edges.
- Motion Threshold balances dirt against motion
Fine Controls > Motion Thr.The documented tradeoff is clear: lower Motion Threshold may leave more dirt but reduces motion-artifact risk; higher values make detection more aggressive and raise that risk.
Check / distinguish: On a moving edge, lower the threshold until false positives stop, then check how much dirt remains.
- Motion Threshold is not motion blur
Fine Controls > Motion Thr.This parameter does not control motion-blur length or strength. It affects how moving temporal differences are classified during dirt detection.
Check / distinguish: Watch Show Repair Mask while changing Motion Thr., not blur appearance.
- Captured Motion Thr. 100 is a stress reference
Fine Controls > Motion Thr.The captured value 100 is useful as a reproducible reference point, but it can be too permissive on dynamic footage. The setting must pass playback QC.
Check / distinguish: Lower the value on a fast-moving shot and compare the mask.
- Edge Ignore protects real contours
Fine Controls > Edge IgnoreIncreasing Edge Ignore excludes more hard edges from repair. It protects text, hair, architecture and other high-contrast contours.
Check / distinguish: Raise it until the important edge is preserved while ensuring nearby dirt does not disappear from detection entirely.
- Edge protection can also hide dirt
Fine Controls > Edge IgnoreAn excessive Edge Ignore value can protect not only genuine contours but also dirt close to them. This is another accuracy-versus-safety tradeoff.
Check / distinguish: Inspect defects next to titles, hair and contrast boundaries.
- Captured Edge Ignore 0 means no added protection
Fine Controls > Edge IgnoreThe captured Edge Ignore 0 means no additional edge exclusion in that state and is useful as a diagnostic baseline, not as a universally safe setting.
Check / distinguish: On difficult contours start at 0, observe false positives, then add protection deliberately.
- Hair is a classic false-positive test
Fine Controls > edge/motionFine hair both moves and behaves like hard-edge detail, so it quickly exposes motion-matching and edge-protection failures.
Check / distinguish: Frame-step hair while viewing Show Repair Mask.
- Text and grids need protection
Fine Controls > Edge IgnoreSmall text, grids and architectural lines reveal bad repair quickly because geometric errors are more visible than on organic texture.
Check / distinguish: Use such a region as a mandatory QC frame when the shot contains one.
Before adjusting the node
- Enable Show Repair Mask first and establish a trustworthy detection mask; a pretty single-frame result does not reveal what the node is actually removing.
- Start Motion Est. Type at Normal; Better is useful only when difficult motion genuinely benefits from more expensive matching.
- Increase Neighbor Frames deliberately: more temporal samples can find more transient dirt, but they also increase cost and the opportunity for mismatches.
- If the repair mask starts selecting film grain, raise Dirt Size Thr. before merely reducing Repair Strength.
- If a moving subject, hair or text enters the mask, lower Motion Thr. and/or increase Edge Ignore.
- Tune Repair Strength only after detector controls; a high Strength amplifies both correct and incorrect repairs.
- Do not expect reliable automatic removal of persistent vertical scratches; a defect that remains in place for many frames does not fit the transient model well.
- Persistent dirt on the lens is the wrong target for this effect because it remains throughout the shot and lacks the required temporal contrast.
- Use Effect Mask as spatial coverage for the result; do not claim it selects internal temporal statistics without live verification in the target build.
- The captured Normal / 2 / ~0.9 / 0.1 / 100 / 0 values are UI evidence, not a universal preset.
- Perform QC in playback and frame-step through difficult motion; optical-flow artifacts often reveal themselves as swimming or soft patches only over time.
- If a safe threshold leaves a few difficult spots, finish them manually rather than damaging texture globally.
Reference documentation
- Blackmagic Design · Fusion Visual Effects
Official Blackmagic learning material for Fusion logic, masks, compositing and core tools.
- Blackmagic Design · DaVinci Resolve support
Current Resolve/Fusion manuals and support material. Exact control names and placement can vary by version.
Examples
Automatic Dirt Removal: tune the repair mask first
Separate detection from repair: identify transient dust with Show Repair Mask, then tune Repair Strength only after the mask is clean.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Automatic Dirt Removal semantics cross-checked against the current Resolve FX Revival reference, Blackmagic Cintel documentation, and the captured current Inspector · DaVinci Resolve Studio; Resolve FX Revival / Automatic Dirt Removal · Cross-platform reference; live Resolve pixel/temporal validation was not run in this package
1920 × 1080 · 24 fps · 120 frames · 2D temporal restoration. Judge detection in Show Repair Mask first, then verify final image detail and playback continuity.
- Exercise 1 needs a clip or scan containing isolated dust/specks that appear for only one or two frames.
- Exercise 2 needs visible film grain or similarly stable fine texture plus a few genuine transient dirt particles.
- Exercise 3 needs a moving subject/edge and a local damaged region so motion false positives and spatial coverage can be evaluated.
Source material
- SRC
A film scan or archival clip with several bright/dark specks that exist for only one or two frames.
Any short clip with transient dirt; do not use persistent lens dirt as the primary test.
Nodes and connections
SRC— SOURCE · MediaInADR— AUTOMATIC DIRT REMOVAL · AutomaticDirtRemovalOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE (SRC)Output | AUTOMATIC DIRT REMOVAL (ADR)Input | image |
AUTOMATIC DIRT REMOVAL (ADR)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Motion Est. Type
"Normal"Use the documented balanced motion-estimation mode as the starting point.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Neighbor Frames
2Use a modest temporal window for the first diagnostic pass.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Show Repair Mask
trueExpose detector decisions before judging the final reconstruction.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Dirt Size Thr.
0.1Use the captured UI value only as a reproducible reference point, then tune for the actual source.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Repair Strength
0.6Keep repair moderate while the detector is being verified.
Reproduce the example
- Find a frame with an obvious dust speck and confirm that it disappears on neighboring frames.
The node is designed for temporally unstable defects; without that condition the test is exercising the wrong problem.
Check: The defect is short-lived while the underlying scene exists on neighboring frames.
- Enable Show Repair Mask and adjust Dirt Size Thr. until the dust remains selected while stable texture mostly drops out.
Dirt Size Threshold separates candidates by scale and helps protect grain before repair is increased.
Check: The repair mask stays local rather than becoming a field of detections across the whole frame.
- Disable the diagnostic view in the UI and raise Repair Strength only until the confirmed transient spots stop distracting.
Strength doses already-detected repair and should not be used to compensate for a bad detection mask.
Check: Dust is reduced without obvious new patches in grain, edges or motion.
Expected result
- OUTPUT (OUT) · frame 60
Transient dirt is detected separately from stable texture and the final repair removes specks without obvious damage to surrounding structure.
Alpha: Alpha is not the target of this exercise; inspect it separately if the source carries transparency.
When the result differs
- The repair mask is filled with grain.
Cause: Dirt Size Thr. is too low for the source texture or detection is too permissive.
Correction: Raise Dirt Size Thr. in small steps and re-check real dirt on several frames.
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual / Resolve FX Revival: Automatic Dirt Removal
Resolve FX Revival > Automatic Dirt Removal: optical-flow repair of transient dust/dirt/hair/tape hits; Motion Estimation Type, Neighbor Frames, Repair Strength, Dirt Size Threshold, Show Repair Mask, Motion Threshold and Edge Ignore; documented persistent-scratch/lens-dirt limitations.
- Blackmagic Design — Cintel Scanner Manual: Automatic Dirt Removal
Resolve FX Revival / Automatic Dirt Removal: optical-flow restoration, transient one/two-frame defects, Dirt Size Threshold grain protection, Motion Threshold and Edge Ignore behavior.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask pipeline fundamentals used by the practice graphs.
Automatic Dirt Removal: preserve film grain
See why Dirt Size Thr. should be tuned before aggressive Repair Strength and separate stable grain from transient dirt.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Automatic Dirt Removal semantics cross-checked against the current Resolve FX Revival reference, Blackmagic Cintel documentation, and the captured current Inspector · DaVinci Resolve Studio; Resolve FX Revival / Automatic Dirt Removal · Cross-platform reference; live Resolve pixel/temporal validation was not run in this package
1920 × 1080 · 24 fps · 120 frames · 2D temporal restoration. Judge detection in Show Repair Mask first, then verify final image detail and playback continuity.
- Exercise 1 needs a clip or scan containing isolated dust/specks that appear for only one or two frames.
- Exercise 2 needs visible film grain or similarly stable fine texture plus a few genuine transient dirt particles.
- Exercise 3 needs a moving subject/edge and a local damaged region so motion false positives and spatial coverage can be evaluated.
Source material
- SRC
A grainy film scan containing several genuine dirt particles of different sizes.
A digital grain overlay can be used if its texture is stable enough and short-lived dirt spots are added on top.
Nodes and connections
SRC— SOURCE · MediaInADR— AUTOMATIC DIRT REMOVAL · AutomaticDirtRemovalOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE (SRC)Output | AUTOMATIC DIRT REMOVAL (ADR)Input | image |
AUTOMATIC DIRT REMOVAL (ADR)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Motion Est. Type
"Normal"Keep motion analysis neutral while studying the size threshold.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Show Repair Mask
trueUse the detector view to compare texture against dirt.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Dirt Size Thr.
0.1Captured Resolve 21 reference point; increase if real grain is still selected.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Repair Strength
0.5Moderate repair makes texture damage easier to identify.
Reproduce the example
- Inspect Show Repair Mask on a section without large dirt and judge how much natural grain is being classified as candidates.
If stable texture is already in the mask, additional Repair Strength will only damage it more strongly.
Check: Ideally most fine grain should not form a dense repair mask.
- Raise Dirt Size Thr. until grain is protected, then locate the smallest real dirt particle that still needs removal.
That is the documented tradeoff: a higher threshold protects grain but can let smaller dirt through.
Check: The selected threshold sits between typical grain scale and the smallest important dirt candidate.
- Disable the mask, keep moderate Repair Strength and watch several seconds before/after.
Grain preservation is temporal; sterile patches can hide on one frame yet swim during playback.
Check: Dirt is reduced while grain continuity between repaired and untouched areas remains natural.
Expected result
- OUTPUT (OUT) · frame 60
Dirt Size Threshold protects fine grain before Repair Strength affects the picture; some tiny dirt may intentionally remain for manual cleanup.
Alpha: Inspect alpha separately on compositing sources; this exercise evaluates RGB texture continuity.
When the result differs
- Raising Dirt Size Thr. also removed the desired tiny dirt from detection.
Cause: Grain and dirt scales are too similar for a safe global threshold.
Correction: Keep the automatic pass conservative and finish those spots with Dust Buster/Paint rather than damaging grain.
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual / Resolve FX Revival: Automatic Dirt Removal
Resolve FX Revival > Automatic Dirt Removal: optical-flow repair of transient dust/dirt/hair/tape hits; Motion Estimation Type, Neighbor Frames, Repair Strength, Dirt Size Threshold, Show Repair Mask, Motion Threshold and Edge Ignore; documented persistent-scratch/lens-dirt limitations.
- Blackmagic Design — Cintel Scanner Manual: Automatic Dirt Removal
Resolve FX Revival / Automatic Dirt Removal: optical-flow restoration, transient one/two-frame defects, Dirt Size Threshold grain protection, Motion Threshold and Edge Ignore behavior.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask pipeline fundamentals used by the practice graphs.
Automatic Dirt Removal: motion, edges and a local Effect Mask
Separate false positives on moving edges from real dirt and restrict automatic repair to the damaged area only.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Automatic Dirt Removal semantics cross-checked against the current Resolve FX Revival reference, Blackmagic Cintel documentation, and the captured current Inspector · DaVinci Resolve Studio; Resolve FX Revival / Automatic Dirt Removal · Cross-platform reference; live Resolve pixel/temporal validation was not run in this package
1920 × 1080 · 24 fps · 120 frames · 2D temporal restoration. Judge detection in Show Repair Mask first, then verify final image detail and playback continuity.
- Exercise 1 needs a clip or scan containing isolated dust/specks that appear for only one or two frames.
- Exercise 2 needs visible film grain or similarly stable fine texture plus a few genuine transient dirt particles.
- Exercise 3 needs a moving subject/edge and a local damaged region so motion false positives and spatial coverage can be evaluated.
Source material
- SRC
A clip with a moving subject, fine edges (hair, text or a grid) and a local region containing transient dirt.
Any shot where optical-flow mismatch is easy to see on a genuine edge.
Nodes and connections
SRC— SOURCE · MediaInADR— AUTOMATIC DIRT REMOVAL · AutomaticDirtRemovalOUT— OUTPUT · MediaOutMASK— LOCAL MASK · PolygonMask
| Source | Destination | Data |
|---|---|---|
SOURCE (SRC)Output | AUTOMATIC DIRT REMOVAL (ADR)Input | image |
AUTOMATIC DIRT REMOVAL (ADR)Output | OUTPUT (OUT)Input | image |
LOCAL MASK (MASK)Mask | AUTOMATIC DIRT REMOVAL (ADR)EffectMask | mask |
Graph output: OUTPUT (OUT)
Parameter values
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Motion Est. Type
"Better"Spend more processing on motion matching for the stress test.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Neighbor Frames
2Keep a moderate temporal window while testing motion safety.
- AUTOMATIC DIRT REMOVAL (ADR) / Controls / Show Repair Mask
trueExpose moving-edge false positives.
- AUTOMATIC DIRT REMOVAL (ADR) / Fine Controls / Motion Thr.
100Use the captured UI value as a reproducible stress-test reference, then lower it if real motion is selected.
- AUTOMATIC DIRT REMOVAL (ADR) / Fine Controls / Edge Ignore
0Start without edge protection so false positives are visible before refinement.
Reproduce the example
- On the hardest motion frame enable Better and Show Repair Mask, then check whether hair/text/edges enter the detector.
Even higher-quality motion estimation does not remove the threshold tradeoff; false positives must be seen before repair.
Check: Real moving detail should not appear as a dense repair area.
- If genuine edges are selected, lower Motion Thr. and/or increase Edge Ignore until they are reasonably protected.
Motion Threshold controls temporal classification aggressiveness while Edge Ignore separately protects hard edges.
Check: The repair mask retains real dirt spots while no longer aggressively selecting moving edges.
- Connect a Polygon to Effect Mask, restrict coverage to the damaged region and then review playback.
A spatial mask reduces unnecessary automatic repair in clean regions without pretending to replace the internal temporal detector.
Check: Outside the mask the image remains original; inside it dirt is reduced without obvious edge swimming.
Expected result
- OUTPUT (OUT) · frame 60
Motion/edge controls make the detector more conservative while Effect Mask limits final coverage; difficult persistent defects remain a manual-repair task.
Alpha: Inspect Effect Mask boundaries and alpha separately, especially when the source already contains transparency.
When the result differs
- Moving edges still enter the repair mask even with Better.
Cause: Motion Threshold is too permissive or the scene exceeds reliable optical-flow matching.
Correction: Lower Motion Thr., increase Edge Ignore, localize with Effect Mask, or reserve the problem area for manual restoration.
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual / Resolve FX Revival: Automatic Dirt Removal
Resolve FX Revival > Automatic Dirt Removal: optical-flow repair of transient dust/dirt/hair/tape hits; Motion Estimation Type, Neighbor Frames, Repair Strength, Dirt Size Threshold, Show Repair Mask, Motion Threshold and Edge Ignore; documented persistent-scratch/lens-dirt limitations.
- Blackmagic Design — Cintel Scanner Manual: Automatic Dirt Removal
Resolve FX Revival / Automatic Dirt Removal: optical-flow restoration, transient one/two-frame defects, Dirt Size Threshold grain protection, Motion Threshold and Edge Ignore behavior.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask pipeline fundamentals used by the practice graphs.
Other outlines from the article
Transient dust on a film scan
Tune detection in Show Repair Mask first, then use Repair Strength only on confirmed short-lived specks.
- MediaIn
- Automatic Dirt Removal
- MediaOut
Preserve film grain
Raise Dirt Size Threshold until grain stops filling the repair mask while genuine dirt remains detectable.
- Film scan
- Automatic Dirt Removal · Dirt Size Thr.
- MediaOut
Difficult motion
Compare Better motion estimation and a more conservative Motion Threshold around hair and moving edges.
- MediaIn
- Automatic Dirt Removal · Better
- MediaOut
Local restoration
A Polygon or Rectangle limits spatial coverage when only one damaged region needs automatic cleanup.
- MediaIn
- Automatic Dirt Removal + Effect Mask
- MediaOut
Persistent vertical scratch — negative test
If damage stays in one location for many frames, the temporal detector may lack the evidence it needs; switch to targeted repair.
- MediaIn
- Automatic Dirt Removal A/B
- Dust Buster / Paint / Patch Replacer
Automatic first pass before manual cleanup
The automatic pass removes many transient spots, leaving a small number of difficult defects for precise manual work.
- MediaIn
- Automatic Dirt Removal
- Dust Buster / Paint
- MediaOut
Mistakes
- Trying to remove persistent lens dirt with a tool that depends on temporal instability.
- Expecting reliable removal of a long vertical scratch that remains in the same place for many frames.
- Pushing Repair Strength before Show Repair Mask is clean.
- Treating Repair Strength as detector sensitivity rather than the amount of repair applied to detected candidates.
- Leaving Dirt Size Threshold too low and letting the effect attack film grain.
- Raising Motion Threshold for stronger cleanup without checking loss of genuine moving detail.
- Ignoring Edge Ignore around text, hair and hard architectural boundaries.
- Copying the captured Normal / 2 / 0.9 / 0.1 / 100 / 0 state as a universal preset.
- Treating Neighbor Frames like a spatial blur radius instead of temporal analysis depth.
- Judging one still and never reviewing optical-flow artifacts in motion.
- Looking only at the final Output and never using Show Repair Mask to diagnose false positives.
- Treating the blue Effect Mask as a reference image or guaranteed internal detector-statistics region.
- Running automatic repair over the whole frame when a local spatial mask would be safer.
- Forgetting the clip boundaries where fewer temporal neighbors may be available.
- Forcing automatic removal of every last spot instead of finishing a few difficult defects manually.
Tips
- Tune the detector in Show Repair Mask; judge the final picture only after the mask is sensible.
- Start with Normal and use Better because the motion needs it, not simply because Better sounds preferable.
- Dirt Size Thr. is the first control to check when film grain starts disappearing.
- Treat Motion Thr. as a safety tradeoff: more dirt removal always carries more risk of motion artifacts.
- Edge Ignore is especially valuable around hair, text, wires and architectural lines.
- Compare Neighbor Frames on the same defect and motion segment rather than across different moments.
- Keep Repair Strength below maximum when detection already finds the right spots; more aggression rarely adds structure.
- Review both 100% Viewer detail and playback because spatial detail and temporal stability are different QC tasks.
- If a repair patch looks sterile, inspect grain/noise continuity in adjacent frames and reduce the intervention.
- For a local problem, Effect Mask is safer than global thresholds that damage the rest of the frame.
- Classify persistent lens dirt as a different task immediately; do not force a temporal detector to solve the wrong problem.
- Leaving a few difficult defects for Dust Buster/Paint after the automatic pass is a normal restoration workflow.
- On archival material, judge preservation of emulsion texture and grain, not just the number of removed spots.
- Keep one QC frame with difficult motion and another with the heaviest dirt so both failure modes stay visible.
- The finishing target is stable imagery without new artifacts, not absolute cleanliness of every pixel.
Workflow order
- Classify the defect first: Automatic Dirt Removal is primarily for transient dirt lasting one or two frames, not persistent lens contamination or a long static scratch.
- Feed the footage to Input and start with Motion Est. Type = Normal; do not copy every captured Inspector number as a preset.
- Choose Neighbor Frames so the temporal window is long enough to expose the transient defect without being excessive for difficult motion.
- Enable Show Repair Mask before fine tuning so detector behavior is visible.
- Tune Dirt Size Thr. until useful fine texture and film grain mostly leave the mask while real dirt remains.
- Check a moving subject. If genuine motion enters the mask, lower Motion Thr. or try Better motion estimation.
- Protect hard contours with Edge Ignore only as much as needed.
- Once detection is clean, raise Repair Strength only until the important defects stop distracting.
- Disable Show Repair Mask and compare Output with bypass around 100% Viewer scale.
- Review playback and frame-step through fast motion, motion blur, small text, hair and fine edges.
- Check the beginning and end of the clip where temporal context may be limited.
- If only one area is damaged, connect Effect Mask and restrict spatial coverage rather than compromising the whole frame.
- Inspect grain/noise continuity so repaired patches do not become sterile islands.
- A/B persistent vertical scratches or lens dirt quickly; if the temporal detector does not respond, stop forcing the wrong tool.
- Finish difficult leftovers with Dust Buster, Paint/Clone or Patch Replacer.
- Approve both representative stills and full playback; one frame is not sufficient evidence for a temporal repair.
