FUSION · FULL ARTICLE
OpticalFlow
OpticalFlow estimates motion between neighboring frames and adds Vector and Back Vector channels to the image. Downstream tools such as TimeStretcher use this data; the node itself does not slow the clip or create a visible blur effect.
Overview
OpticalFlow analyzes temporal changes in the image. One Input receives the frames; separate Vector and Back Vector sockets are unnecessary because the data travels inside the image as AUX channels. Connecting Output directly to MediaOut will normally look like the original RGB clip: another tool must use the motion calculation.
The Resolve 21 manual distinguishes CPU-based Classic from GPU-based Advanced. Classic preserves compatibility with the earlier method; Advanced exposes the Warp Count, Iteration Count, Smoothness and Half Resolution controls shown in the archive. Larger Warp Count and Iteration Count increase computation, but do not guarantee improvement once the solution converges. Compare contours and actual calculation time on your shot.
Smoothness controls the spatial smoothness of the motion field. Too little can retain noisy vectors; too much can lose distinct motion around fine detail or object boundaries. Half Resolution lowers the analysis resolution; it is not a command to halve output frame dimensions.
Output Vectors as Layers changes how the calculated fields are represented: discrete layers support a compatible multilayer path in addition to conventional AUX workflows. The checkbox is not required for OpticalFlow calculation. The consumer must read the representation being supplied; SmoothMotion has Use Layers for Input Vectors for a layer-based input.
For retiming, connect OpticalFlow to TimeStretcher, choose Interpolate Mode=Flow and animate Source Time. Two linear keys define the required speed; the initial single Source Time key can leave a freeze frame. TimeStretcher uses and removes incoming Vector/BackVector, so generate them again for another motion calculation after retiming.
A cut, flash, heavy blur, repeating texture or occlusion makes correspondence harder to estimate. Analyze a continuous shot with enough neighboring frames. Viewer → Vectors helps inspect the field; Normalize Color Range changes the display rather than the computed data. An intermediate cache needs a format and channel configuration that preserves Vector and Back Vector, such as properly configured OpenEXR.
When to use it
- Preparing motion for TimeStretcher Flow interpolation.
- Comparing CPU and GPU methods on a difficult shot.
- Inspecting and diagnosing motion fields.
- Preparing vector layers for compatible tools.
- Caching verified fields in a multichannel intermediate file.
Article screenshots
Inputs & outputs
OpticalFlow · input and vector data
One image cable carries RGB, alpha and calculated AUX. Vector and Back Vector are not separate sockets.
The main input receives an image sequence. The output retains the image and adds forward and backward motion fields. Method selects Classic on the CPU or Advanced on the GPU. Establish usable vectors for the particular shot first, then inspect the result of the tool that consumes them.
Inputs
- Input
Analyzed shot
Receives: An image sequence with accessible neighboring frames.
Inside the node: Provides the basis for forward and backward motion estimation.
Typical sources: MediaIn · Loader
Do not combine different shots across a cut into one motion estimate.
Outputs and destination
Output
Image with calculated Vector/Back Vector in AUX or vector layers; pass it to a compatible consumer.
Next step: TimeStretcher · SmoothMotion
OpticalFlow itself does not alter speed; TimeStretcher consumes Vector/BackVector.
- Output
- Image with calculated Vector/Back Vector in AUX or vector layers; pass it to a compatible consumer.
Processing order
- Choose a continuous shot without a cut and retain neighboring frames beyond the working boundaries.
- Connect MediaIn to OpticalFlow Input and begin with Advanced and the captured 5/10/10 values.
- Inspect Vector and Back Vector in the Viewer and compare detail with RGB at the same frame.
- Change one analysis parameter at a time and assess moving-object boundaries.
0.5× slow motion
MediaIn → OpticalFlow → TimeStretcher → MediaOut
In TimeStretcher set Flow and Source Time 20→79.5 at frames 0→119 with Linear interpolation.
Frames → OpticalFlow adds Vector/Back Vector → a consumer uses the motion. Method and analysis quality control the field; retiming speed is defined separately by the retimer’s Source Time.
Parameters
OpticalFlow · Inspector reference
Frames → OpticalFlow adds Vector/Back Vector → a consumer uses the motion. Method and analysis quality control the field; retiming speed is defined separately by the retimer’s Source Time.
- Frames
- Continuous shot and handles
- Analysis
- Method and quality
- Vectors
- AUX or layers
- Consumer
- Flow and Source Time
Method · Analysis method
Compare CPU and GPU on the same shot.
- Method
Method > MethodSelects the motion-estimation method. The Resolve 21 manual identifies Classic as CPU-based and Advanced as GPU-based. Method changes analysis, not clip playback speed.
Check / distinguish: Compare methods at the same frame with the same vector consumer.
- Method: Classic
Method > Method: ClassicThe earlier CPU method. Classic also serves compatibility with earlier work. Do not assume it uses the Advanced control set or GPU timing.
Check / distinguish: Test Classic as a separate option on a difficult contour, then measure its cost on your machine.
- Method: Advanced
Method > Method: AdvancedGPU calculation method. Advanced exposes the captured Warp Count, Iteration Count, Smoothness and Half Resolution controls. Its quality must still be assessed on the actual motion.
Check / distinguish: Use the archived values 5, 10 and 10.0 for the first comparison.
Advanced · Field quality
Refinement, smoothness and analysis resolution.
- Warp Count
Advanced > Warp CountNumber of repeated Advanced warp refinements. Increasing it adds computation. After convergence the solution may barely change; a larger value does not guarantee reconstruction of an occluded object.
Check / distinguish: Change it relative to the captured 5 and compare an edge at a fixed Source Time.
- Iteration Count
Advanced > Iteration CountNumber of Advanced refinement iterations. Additional iterations give the algorithm more work, with usefulness dependent on convergence. This is not the number of intermediate frames generated.
Check / distinguish: Compare with the captured 10; do not increase it together with Warp Count without an isolated reference comparison.
- Smoothness
Advanced > SmoothnessSpatial smoothness of the motion field. More smoothing reduces noise but can mix distinct motions across a thin boundary. A lower setting preserves more local variation while retaining more noise.
Check / distinguish: Inspect both contours and internal texture; the captured value is 10.0.
- Half Resolution
Advanced > Half ResolutionMotion analysis at half resolution. This reduces calculation resolution and can lose small-scale motion. It should not be treated as a command to change output frame dimensions.
Check / distinguish: Inspect Output dimensions and compare fine detail after disabling the mode.
- Advanced
Advanced > AdvancedThe control context of the selected Advanced method. This original article item repeats the Advanced context. It is not a separate retiming effect or a second independent GPU switch.
Check / distinguish: Select Method=Advanced first, then adjust its visible controls.
- Cut and occlusion check
Source / Reference framesFrame handles support analysis at boundaries but do not recover invisible surfaces or remove a cut.
Check / distinguish: Inspect an occlusion edge across several consecutive half-frame samples.
Vectors · Channels and layers
Match the data representation to the consumer.
- Output Vectors as Layers
Vectors > Output Vectors as LayersOutputs motion fields as discrete layers. The checkbox serves a compatible layer workflow; conventional Vector/Back Vector are calculated without it. The next tool must read the correct input-vector representation.
Check / distinguish: When feeding SmoothMotion, match Use Layers for Input Vectors.
- Vector / Back Vector
Output / AUXMotion fields travel inside the image rather than through separate wires. Ordinary RGB viewing does not establish their presence.
Check / distinguish: Switch the Viewer to both vector channels.
- Normalize Color Range
Viewer / Channel displayRange normalization helps display fields in the Viewer without modifying data received by the next node.
Check / distinguish: Do not interpret stronger display colors as increased motion.
- Use Layers for Input Vectors
SmoothMotion / ControlsWhen using Output Vectors as Layers, match vector reading in SmoothMotion; this is a downstream tool setting.
Check / distinguish: Check that the selected layers exist before enabling smoothing.
Settings · Result checks
Inspect the field and final image separately.
- Settings
Settings > SettingsCommon tool settings. The tab is present in the capture but is not open. Analysis fields belong to Controls; channel display is configured in the Viewer and speed in the motion consumer.
Check / distinguish: Do not look here for a Source Time replacement or a separate motion-map input.
- Interpolate Mode / Source Time
TimeStretcher / Controls and SplineFlow uses upstream vectors. Two Source Time keys with linear interpolation define speed; one key defines a fixed sample.
Check / distinguish: For 0.5×: Source Time 20 at frame 0 and 79.5 at frame 119.
- Consumed AUX
After TimeStretcher / OpticalFlowTimeStretcher uses and removes Vector/BackVector. Another OpticalFlow after it is needed only if a later tool requires current vectors.
Check / distinguish: Inspect channels directly after the consumer.
Before adjusting the node
- The analyzed motion contains no cut.
- Vector and Back Vector are present on the output.
- Layer representation matches the consumer setting.
- Source Time has the two required keys and Linear interpolation.
- Old AUX fields are not reused after retiming.
Reference documentation
- Blackmagic Design — Optical Flow, TimeStretcher and SmoothMotion
Physical pp. 2668–2671: Optical Flow and analysis controls; 2660–2662: TimeStretcher and AUX consumption; 2674–2675: SmoothMotion. The original PNG shows Advanced, Warp Count=5, Iteration Count=10 and Smoothness=10.
Examples
Slow a continuous shot to 0.5×
Calculate conventional AUX vectors and feed TimeStretcher at constant speed.
Starting conditions
DaVinci Resolve 21 · OpticalFlow 21 · editorial reference 2026-10-18 · Resolve 21; confirm method and tool availability in the installed edition. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · The source shot’s working space; vector representation is matched to the consumer.
- A continuous video clip with source frames 0–119 and legible motion.
- Advanced requires an available GPU path; Classic uses the CPU according to the manual.
Source material
- V
Source frames 0–119: a continuous opaque 1920×1080/24 fps clip with a moving detail and visible occlusion; no cuts.
Your own clip with matching boundaries and legible motion; do not use a still image.
Nodes and connections
V— Source shot · MediaInO— Motion fields · OpticalFlowR— Time selection · TimeStretcherOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Source shot (V)Output | Motion fields (O)Input | image |
Motion fields (O)Output | Time selection (R)Input | image |
Time selection (R)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Motion fields (O) / Controls / Method
"Advanced"Begin with the documented GPU method.
- Motion fields (O) / Controls / Warp Count
5Fix the value shown in the archived capture.
- Motion fields (O) / Controls / Iteration Count
10Keep an independent quality reference.
- Motion fields (O) / Controls / Smoothness
10Starting smoothness; inspect contours before changing it.
- Motion fields (O) / Controls / Half Resolution
falseInspect the result at full analysis resolution.
- Motion fields (O) / Controls / Output Vectors as Layers
falseMatch vector representation to the following tool.
- Time selection (R) / Controls / Interpolate Mode
"Flow"Use the calculated Vector/Back Vector for temporal interpolation.
- Time selection (R) / Controls / Source Time
20· frame 0The first key defines the initial source frame.
- Time selection (R) / Controls / Source Time
79.5· frame 119The second key defines the final sample within available frames.
- Time selection (R) / Spline / Source Time interpolation
"Linear"A linear curve gives constant speed between the keys.
Reproduce the example
- Build the chain and inspect Vector/Back Vector on O.
RGB after OpticalFlow has not itself been slowed.
Check: Both fields exist with Output Vectors as Layers disabled.
- Create two Source Time keys and make the segment Linear.
The Source Time slope defines speed, not OpticalFlow iteration count.
Check: The start and end sample the intended source frames, with no pause or acceleration between them.
- Inspect frames 0, 59 and 119 and play the entire interval.
Flow errors appear at moving boundaries between source frames.
Check: Samples are 20, 49.5 and 79.5; motion proceeds forward at half speed.
Expected result
- Output (OUT) · frame 0
Sample of source frame 20.
Alpha: An opaque source should remain opaque; inspect edges separately.
- Output (OUT) · frame 59
Flow interpolation at Source Time=49.5.
Alpha: Inspect occlusions for unintended holes.
- Output (OUT) · frame 119
Sample at Source Time=79.5; neighboring frames remain available in the source.
Alpha: Compare alpha and edges with the source motion.
When the result differs
- Timing does not change or the result is frozen.
Cause: TimeStretcher is absent from the chain, Source Time has one key or its keys are equal.
Correction: Check both keys, their frames and Linear interpolation in R.
- An object boundary doubles or stretches.
Cause: Vectors are inaccurate around occlusion, blur or insufficient neighboring frames.
Correction: Compare Method and Smoothness at the same half-frame sample; do not expect hidden detail to be recovered.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Smooth Motion
Fusion Page Effects > Optical Flow > Smooth Motion: one orange image input; input must contain Vector and Back Vector; channel checkboxes select smoothing targets; one/two/three Smooth Motion nodes examine 3/5/7 frames; vector-first then target-channel workflow is documented.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Time Stretcher
Physical pages 2660–2662. One orange image Input; Flow requires upstream vectors; Source Time spline controls timing; Vector/BackVector channels are consumed by time stretching.
Reverse motion with Classic
Separate CPU analysis from retiming direction: decreasing Source Time defines reverse playback.
Starting conditions
DaVinci Resolve 21 · OpticalFlow 21 · editorial reference 2026-10-18 · Resolve 21; confirm method and tool availability in the installed edition. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · The source shot’s working space; vector representation is matched to the consumer.
- A continuous video clip with source frames 0–119 and legible motion.
- Advanced requires an available GPU path; Classic uses the CPU according to the manual.
Source material
- V
Source frames 0–119: a continuous opaque 1920×1080/24 fps clip with a moving detail and visible occlusion; no cuts.
Your own clip with matching boundaries and legible motion; do not use a still image.
Nodes and connections
V— Source shot · MediaInO— Motion fields · OpticalFlowR— Time selection · TimeStretcherOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Source shot (V)Output | Motion fields (O)Input | image |
Motion fields (O)Output | Time selection (R)Input | image |
Time selection (R)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Motion fields (O) / Controls / Method
"Classic"Compare the separate CPU method without carrying over Advanced fields.
- Motion fields (O) / Controls / Output Vectors as Layers
falseKeep the conventional AUX path to TimeStretcher.
- Time selection (R) / Controls / Interpolate Mode
"Flow"Use the calculated Vector/Back Vector for temporal interpolation.
- Time selection (R) / Controls / Source Time
99· frame 0The first key defines the initial source frame.
- Time selection (R) / Controls / Source Time
39.5· frame 119The second key defines the final sample within available frames.
- Time selection (R) / Spline / Source Time interpolation
"Linear"A linear curve gives constant speed between the keys.
Reproduce the example
- Select Classic and inspect both vector channels.
The analysis method does not select playback direction.
Check: Vectors reach R inside the image; manually swapping channels is unnecessary.
- Create two Source Time keys and make the segment Linear.
The Source Time slope defines speed, not OpticalFlow iteration count.
Check: The start and end sample the intended source frames, with no pause or acceleration between them.
- Play the interval and compare the motion phase at three frames.
A decreasing linear curve gives −0.5×.
Check: Source Time passes 99 → 69.5 → 39.5; the object moves backward.
Expected result
- Output (OUT) · frame 0
Starts at source frame 99.
Alpha: Retain the source shot’s opacity.
- Output (OUT) · frame 59
Reverse playback at Source Time=69.5.
Alpha: Inspect the edge of a newly revealed region.
- Output (OUT) · frame 119
Ends at Source Time=39.5.
Alpha: Inspect alpha in the same Viewer mode used for forward motion.
When the result differs
- Timing does not change or the result is frozen.
Cause: TimeStretcher is absent from the chain, Source Time has one key or its keys are equal.
Correction: Check both keys, their frames and Linear interpolation in R.
- An object boundary doubles or stretches.
Cause: Vectors are inaccurate around occlusion, blur or insufficient neighboring frames.
Correction: Compare Method and Smoothness at the same half-frame sample; do not expect hidden detail to be recovered.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Smooth Motion
Fusion Page Effects > Optical Flow > Smooth Motion: one orange image input; input must contain Vector and Back Vector; channel checkboxes select smoothing targets; one/two/three Smooth Motion nodes examine 3/5/7 frames; vector-first then target-channel workflow is documented.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Time Stretcher
Physical pages 2660–2662. One orange image Input; Flow requires upstream vectors; Source Time spline controls timing; Vector/BackVector channels are consumed by time stretching.
Pass vector layers through SmoothMotion
Match the layer representation and test whether field smoothing helps before Flow interpolation.
Starting conditions
DaVinci Resolve 21 · OpticalFlow 21 · editorial reference 2026-10-18 · Resolve 21; confirm method and tool availability in the installed edition. · Target OS is not fixed; Resolve verification is pending.
1920 × 1080 · 24 fps · 120 frames · The source shot’s working space; vector representation is matched to the consumer.
- A continuous video clip with source frames 0–119 and legible motion.
- Advanced requires an available GPU path; Classic uses the CPU according to the manual.
Source material
- V
Source frames 0–119: a continuous opaque 1920×1080/24 fps clip with a moving detail and visible occlusion; no cuts.
Your own clip with matching boundaries and legible motion; do not use a still image.
Nodes and connections
V— Source shot · MediaInO— Motion fields · OpticalFlowS— Vector smoothing · SmoothMotionR— Time selection · TimeStretcherOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Source shot (V)Output | Motion fields (O)Input | image |
Motion fields (O)Output | Vector smoothing (S)Input | image |
Vector smoothing (S)Output | Time selection (R)Input | image |
Time selection (R)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Motion fields (O) / Controls / Method
"Advanced"Begin with the documented GPU method.
- Motion fields (O) / Controls / Warp Count
5Fix the value shown in the archived capture.
- Motion fields (O) / Controls / Iteration Count
10Keep an independent quality reference.
- Motion fields (O) / Controls / Smoothness
10Starting smoothness; inspect contours before changing it.
- Motion fields (O) / Controls / Half Resolution
falseInspect the result at full analysis resolution.
- Motion fields (O) / Controls / Output Vectors as Layers
trueMatch vector representation to the following tool.
- Vector smoothing (S) / Controls / Use Layers for Input Vectors
trueSmoothMotion must read the vector layers enabled on O.
- Vector smoothing (S) / Controls / Vector
trueSmooth the forward motion field.
- Vector smoothing (S) / Controls / Back Vector
trueSmooth the backward motion field.
- Vector smoothing (S) / Controls / Color
falseCompare vector processing independently of color smoothing.
- Time selection (R) / Controls / Interpolate Mode
"Flow"Use the calculated Vector/Back Vector for temporal interpolation.
- Time selection (R) / Controls / Source Time
20· frame 0The first key defines the initial source frame.
- Time selection (R) / Controls / Source Time
79.5· frame 119The second key defines the final sample within available frames.
- Time selection (R) / Spline / Source Time interpolation
"Linear"A linear curve gives constant speed between the keys.
Reproduce the example
- Enable vector layers on O and layer reading on S.
Both tools must agree on field representation.
Check: Vector/Back Vector are visible after O; S reads layers and processes both fields.
- Feed SmoothMotion Output to TimeStretcher and set two linear keys.
Retiming uses the processed field and then consumes AUX.
Check: Timing changes at R output; the old fields are not treated as valid for another calculation.
- At frame 59 compare S enabled with S temporarily bypassed using Pass Through.
Smoothing can worsen conflicting motion and is not an automatic improvement.
Check: The same 49.5 sample is compared; keep the version with the more coherent moving contour.
Expected result
- Output (OUT) · frame 59
Sample 49.5 with processed fields; improvement is assessed by comparison rather than assumed.
Alpha: Compare holes, edges and opaque areas with the same Viewer settings.
When the result differs
- Timing does not change or the result is frozen.
Cause: TimeStretcher is absent from the chain, Source Time has one key or its keys are equal.
Correction: Check both keys, their frames and Linear interpolation in R.
- An object boundary doubles or stretches.
Cause: Vectors are inaccurate around occlusion, blur or insufficient neighboring frames.
Correction: Compare Method and Smoothness at the same half-frame sample; do not expect hidden detail to be recovered.
- SmoothMotion has no effect or worsens the edge.
Cause: The selected channel is absent, layer settings are mismatched or neighboring vectors represent conflicting motion.
Correction: Check field presence and Use Layers for Input Vectors; if the correctly configured result is worse, leave S disabled.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Smooth Motion
Fusion Page Effects > Optical Flow > Smooth Motion: one orange image input; input must contain Vector and Back Vector; channel checkboxes select smoothing targets; one/two/three Smooth Motion nodes examine 3/5/7 frames; vector-first then target-channel workflow is documented.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Time Stretcher
Physical pages 2660–2662. One orange image Input; Flow requires upstream vectors; Source Time spline controls timing; Vector/BackVector channels are consumed by time stretching.
Other outlines from the article
Slow a continuous shot to 0.5×
Calculate conventional AUX vectors and feed TimeStretcher at constant speed.
- MediaIn
- OpticalFlow
- TimeStretcher
- MediaOut
Reverse motion with Classic
Separate CPU analysis from retiming direction: decreasing Source Time defines reverse playback.
- MediaIn
- OpticalFlow
- TimeStretcher
- MediaOut
Pass vector layers through SmoothMotion
Match the layer representation and test whether field smoothing helps before Flow interpolation.
- MediaIn
- OpticalFlow
- SmoothMotion
- TimeStretcher
- MediaOut
Mistakes
- Expecting OpticalFlow alone to slow footage without a vector consumer.
- Treating Output Vectors as Layers as a mandatory analysis switch.
- Leaving only one Source Time key and obtaining a freeze frame.
- Asking the algorithm to match motion across an edit cut.
- Increasing all controls together without comparing results.
- Treating Half Resolution as a reduction of final image dimensions.
- Saving RGB alone and then expecting motion from discarded AUX.
- Reusing old Vector/Back Vector after TimeStretcher.
Tips
- Choose a reference frame with a thin moving contour and visible occlusion.
- Compare Method and Smoothness at the same Source Time rather than neighboring motion phases.
- Try Half Resolution for draft work, then return to full analysis for the final comparison.
- Half-frame samples reveal interpolation errors more clearly than exact source frames.
- Split a long sequence at cuts before estimating motion.
- Keep RGB and AUX together and check channels after rereading a cache.
Workflow order
- Choose a continuous shot without a cut and retain neighboring frames beyond the working boundaries.
- Connect MediaIn to OpticalFlow Input and begin with Advanced and the captured 5/10/10 values.
- Inspect Vector and Back Vector in the Viewer and compare detail with RGB at the same frame.
- Change one analysis parameter at a time and assess moving-object boundaries.
- To alter timing, add TimeStretcher, set Interpolate Mode=Flow and create two linear Source Time keys.
- Inspect the entire interval, especially occlusions and half-frame samples.
- Recalculate motion after retiming if another downstream tool needs Vector/Back Vector.
