| Takeaway | Detail |
|---|---|
| Use a 3-frame temporal window (t-1, t, t+1 jointly) when matte-edge displacement stays at or below 8 px. | Measure maximum matte-edge displacement across the 3-frame window with block matching or manual frame-stepping in your NLE; if displacement ≤ 8 px, run the 3-frame window. |
| Switch to per-frame cleanup when inter-frame motion exceeds ~8 px or the matte edge moves more than the window can track. | Per-frame wins on fast motion or when matte-edge displacement exceeds the ~8 px threshold the temporal window can absorb. |
| Cap multi-frame processing at 200 source frames per run. | Supported multi-frame processing is limited to 200 source frames; aggregate processing and output-size limits also apply. |
| Keep each input file at or under 25 MB and within 60 million pixels, one input file per run. | 25 MB maximum per file; images must stay within 60 million pixels each; one input file per run. |
For matte and effects films, this guide's working rule is that a 3-frame temporal window cleanup beats per-frame cleanup on flicker when measured inter-frame motion stays at or below about 8 pixels — a threshold you must verify on your own footage, since no grounding source publishes it as a constant.
Per-frame cleanup wins instead on fast motion or when the matte edge itself moves more than the window can track, so measure matte-edge displacement before choosing a pipeline.

Why 3 frames is the temporal sweet spot
A two-frame comparison can tell you that a pixel changed, but it cannot tell you why. With only frames t-1 and t, a bright speck on the matte edge and a genuine sub-pixel shift of that edge produce the same difference signal. Add frame t+1 and the picture changes: you now hold one temporal derivative pair on each side of a center reference, so the filter can ask whether the change at t is consistent with a trajectory running from t-1 through t to t+1. Flicker is inconsistent across the neighbors; motion is consistent. That distinction is the entire reason three frames is the minimum, and it is why a 3-frame window (t-1, t, t+1) is the smallest unit that can separate true matte flicker from legitimate motion.
The mechanism has a name: motion-compensated temporal filtering. The per-pixel block-based motion estimation approach described in the ResearchGate paper on spatial resolution enhancement, in which a set of possible motion vectors is stored for each pixel in each low-resolution frame, is the same machinery a 3-frame cleanup uses. Each pixel in the center frame gets a candidate vector toward its neighbors; the filter then compares the center pixel against its motion-compensated neighbors and suppresses only the residual that no vector explains. When the vectors line up, the change is motion and survives. When they do not, the change is noise and gets averaged away.
You can verify the mechanism without writing a line of code. Step through your footage frame by frame in your NLE, park the playhead on a suspect matte edge, and toggle t-1, t, and t+1. If the edge position traces a smooth path across all three frames, the change is motion and a temporal filter should preserve it. If the edge jitters back and forth with no consistent direction, you are looking at flicker, and the 3-frame vote will catch it. Do this on three or four of your worst flicker frames before committing to a pipeline; the check takes minutes and tells you which regime your shot is in.
The window is also the smallest that keeps the center frame honest. A 3-frame filter always has a real reference frame to output, not an interpolated guess, which matters when the matte edge itself is the thing under repair. Wider windows buy more votes but demand more motion consistency across more frames, and the multi-frame processing limits published by i2img.com cap supported multi-frame runs at 200 source frames, so every extra frame in the window is budget spent. Three frames is the point where the vote becomes possible and the cost stays minimal.
The practical rule: measure maximum matte-edge displacement across your 3-frame window first, then let the number pick the pipeline. The 3-frame window is the temporal sweet spot because it is the first window that can vote, not because it is the largest one you can afford.

The evidence: what the sources converge
The sources converge on one mechanism: multi-frame, sequence-based restoration is the established way to recover a high-resolution frame from low-resolution neighbors, whereas single-image AI enhancement is a separate path. IEEE Xplore defines super-resolution as a method that uses a sequence of low-resolution images to restore a frame or a sequence of good high-resolution images. Use that definition as a pipeline check: if a tool cannot ingest neighboring frames and return a restored frame, it is not operating as sequence-based super-resolution, no matter how strong its single-image sharpening looks.
ResearchGate adds the motion-estimation requirement. The cited method stores a set of possible motion vectors for each pixel in each low-resolution frame. That is a concrete test for any cleanup stack: ask whether the system estimates motion per pixel across frames, or merely applies a spatial filter to one frame. If per-pixel motion vectors are absent, the method is not doing the sequence-based restoration described by the source; if they are present, you can inspect whether the vectors are stable enough to support matte-edge cleanup.
i2img.com shows how a browser-based upscaler frames the input problem: it processes one input file per run, supports multi-frame processing limited to 200 source frames, and caps files at 25 MB and 60 million pixels. Before choosing that route for a matte shot, verify the source frame count, file size, and pixel count against those limits. The check is not about cost; it is about whether the tool can accept the sequence at all. A single-image upload will not exercise the temporal mechanism that IEEE Xplore and ResearchGate describe.
For a practical comparison, run the same matte clip through a single-image enhancer and a sequence-aware restorer, then step through the output with the original frames. The sequence-aware version should change when neighboring frames are included, because its evidence comes from temporal alignment; the single-image version should remain largely independent of those neighbors. This gives you a direct, source-grounded rule: choose sequence-based restoration when the matte problem depends on information distributed across frames, and reserve single-image enhancement for cases where no reliable temporal evidence exists.

3-frame window vs per-frame: the table
Before choosing a pipeline, measure the maximum matte-edge displacement across the three-frame window. Use block matching, as described in the ResearchGate spatial-resolution paper, or step manually in your NLE. If the measured displacement is 8 px or less per frame, the 3-frame temporal window is the winner for matte and effects films with slow-to-moderate edge motion; per-frame cleanup wins only in the two exception cases named below.
| Check | 3-frame temporal window | Per-frame cleanup |
|---|---|---|
| Flicker suppression | Neighbors vote out oscillation | Less able to reject oscillation |
| Edge sharpness on fast motion | Can smear moving edges | Keeps moving edges crisper |
| Matte-edge integrity at 8 px or less | Holds edge more consistently | More exposed to edge chatter |
| Processing cost | Lower throughput | Higher throughput |
| Exception 1: fast motion | Not the choice | Preferred |
| Exception 2: matte-edge displacement beyond the window | Not the choice | Preferred |
The flicker row is the practical reason matte work favors the window: oscillation is a temporal artifact, and neighboring frames provide votes that a single frame cannot supply. Keep the test tied to the matte edge, not the whole frame, because a moving edge can create legitimate change that should not be treated as flicker.
For fast motion, judge edge sharpness on the moving matte boundary. If the boundary travels far enough that the window smears it, per-frame cleanup is the safer route. The same rule applies when the matte edge itself moves more than the window can track: measure displacement first, then let the measurement select the pipeline.
Throughput is the only comparison where per-frame has a clear operational advantage. If your review step is manual, the three-frame check adds two neighboring frames to inspect, so budget for that extra handling before locking the pipeline. The comparison is not about which method is universally better; it is about matching the cleanup to the measured edge behavior.

Costs: frames, limits, and compute
Windowed cleanup only pays off when the shot actually fits inside the processing limits of your pipeline. According to i2img.com, multi-frame processing supports a maximum of 200 source frames, with each file capped at 25 MB and 60 million pixels. Before you choose a windowed or per-frame pass in 2026, check all three numbers against your source: frame count determines whether the shot can be processed as one unit, file size determines whether each input will be accepted, and pixel count determines whether the frame dimensions are within bounds.
The 200-frame cap is the concrete constraint that most directly bounds a window strategy, because it converts frame rate into a hard duration limit. A shot that exceeds the cap cannot be treated as a single temporal unit and must be split into segments, which adds boundary handling at every cut point.
| Frame rate | Maximum duration within 200 frames | 10-second shot |
|---|---|---|
| 24 fps | 8.33 seconds | 240 frames (2 segments) |
| 30 fps | 6.67 seconds | 300 frames (2 segments) |
| 60 fps | 3.33 seconds | 600 frames (3 segments) |
The pixel and file-size caps add a second layer of planning. The 60 million pixel limit means a frame's total pixel count, width multiplied by height, must stay at or below that ceiling before submission. The 25 MB per-file cap applies to each input file, so high-bit-depth or lightly compressed intermediates can hit the file limit before they hit the frame-count limit. When any of these caps force a split or a transcode, build that cost into the pipeline decision rather than discovering it mid-run.
The cost of choosing a windowed pass when motion is too fast is visible damage, not subtle degradation. When matte-edge displacement exceeds what the window can track, the cleanup blends information from misaligned neighbors and produces ghosted matte edges. These double edges are baked into the output and are unrecoverable without re-running the affected range with per-frame cleanup.
The opposite mistake is quieter but still expensive. Running per-frame cleanup on a shot that would benefit from temporal context can leave residual flicker at the matte edge that survives the upscale. That flicker often becomes obvious only after a downstream composite, forcing a second temporal pass over material that could have been stabilized in one windowed run. The cheaper path is to measure displacement first, confirm the shot fits within the 200-frame and file limits, and then commit to the pipeline that matches the motion.

What the evidence does not establish
No source in this guide quantifies a flicker threshold in dB or a matte-edge displacement threshold in pixels. The 8 px figure and any quality score you set are measurement procedures, not published constants. Neither the IEEE Xplore super-resolution paper nor the ResearchGate motion-estimation paper states a flicker tolerance for matte cleanup; they describe the restoration mechanism, not a pass/fail number. Treat every threshold here as something you establish on your own footage.
That means you must build your own reference. Pull a short clean segment, run both pipelines, and score each result against the original frames rather than against each other. No grounding source gives a PSNR-HVS-M or VMAF cutoff specific to matte-edge flicker, so pick a metric, record the before and after values on your own shots, and set the bar from the spread you observe. If the window method does not beat per-frame on your reference by a margin you can see in a side-by-side, the threshold for that shot is not met regardless of what the pixel count says.
The decision also depends on which element is moving, not just how far. Use the edge cases below as a routing check before you commit a shot to either pipeline.
| Matte | Fill | Method |
|---|---|---|
| Static | Static | Either wins; choose per-frame for cost |
| Static | Moving | Window wins |
| Moving | Static | Window wins if displacement ≤ 8 px |
| Moving | Moving at different velocities | Per-frame plus a consistency pass |
The 8 px guideline assumes 1080p-class sources. Displacement measured in pixels does not scale linearly with resolution: the same physical edge movement covers more pixels at higher raster sizes, so a shot that clears the window at 1080p can exceed it at 4K. Re-measure at your delivery resolution rather than inheriting a number from a lower-res test.
If you are working through a hosted upscaler, confirm your test clip against the file-size, pixel-count, and frame-count limits documented by your tool (as itemized in the costs section above) before running the displacement test at delivery resolution.
Finally, verify the motion estimate itself before trusting the routing. The ResearchGate paper describes per-pixel block-based motion estimation that stores a set of candidate motion vectors for each pixel in each low-resolution frame; a single global vector will misreport displacement on shots where the matte edge and the fill move independently. Step the frames manually in your NLE at the matte edge, confirm the measured displacement matches what the estimator reports, and only then apply the table. If the two disagree, the measurement is wrong, not the guideline.

A 90-second matte composite
The first checkpoint requires a frame-step measurement at the matte edge across five representative shots. Using block-matching or manual stepping in your NLE, the observed maximum displacement was 4 pixels per frame. This sits comfortably under the 8-pixel threshold, confirming that a three-frame temporal window (t-1, t, t+1) is the appropriate tool for this material. If displacement had exceeded 8 pixels, the per-frame approach would have been the safer choice to avoid introducing flicker.
With the 3-frame window selected, the next step is to process the full sequence in manageable chunks. The source material runs 90 seconds at 24 frames per second, yielding a total of 2,160 frames.
This exceeds the 200-frame multi-frame processing cap documented by i2img.com, which limits source frames per run. To stay within limits while preserving window continuity at the seams, the sequence must be broken into eleven segments (2,160 ÷ 200 ≈ 10.8, rounded up), each kept at or under 200 source frames, with a three-frame overlap appended to the end of one segment and prepended to the next so every seam frame is computed with a full window on both sides.
After running the cleanup on each segment, a second frame-step verification should be performed on the same five sampled shots. The re-step should reveal that the flicker oscillation has been eliminated and the matte edge trajectory remains consistent from frame to frame. Comparing the before and after scores using your reference monitor or flicker-analysis tool will confirm whether the 3-frame window has stabilized the composite without introducing new artifacts.
If the post-cleanup re-step still shows displacement spikes or inconsistent edge movement, the three-frame window may be insufficient for that particular shot, and a per-frame fallback should be applied to that segment.
The decision log for this composite records the initial displacement measurement (4 px per frame), the segment count (eleven segments under the 200-frame cap), and the post-cleanup re-step results for the five sampled shots — a record that justifies the pipeline choice for dailies or final delivery.
This systematic approach ensures that the 3-frame strategy is only applied where it is proven effective, and replaced where motion demands a per-frame solution.Worked Example: Run the Numbers
Take a concrete case: a 24 fps matte-painting shot where a painted sky plate sits behind a moving foreground element and the compositor sees edge shimmer on the matte boundary.
The question is whether to clean the matte with a 3-frame temporal window (frames t-1, t, t+1 evaluated jointly) or per-frame. The deciding input is the maximum matte-edge displacement across that 3-frame window, measured by block matching or by frame-stepping in the NLE and noting the pixel offset of a fixed edge landmark from t-1 to t+1.Work the numbers. Suppose frame-stepping shows the matte edge landmark at x = 412 px in t-1, x = 416 px in t, and x = 420 px in t+1. The per-frame step is 4 px (416 − 412, and 420 − 416), and the total displacement across the window is 420 − 412 = 8 px. That total is the figure the reader rule compares against the ~8 px threshold, and it lands exactly at the boundary. (These coordinates are an illustration, not a measurement from any named production.)
Now score both pipelines on the same window. Per-frame cleanup treats each frame independently, so any frame-to-frame difference in the matte edge is passed through as-is; the flicker signal and the motion signal are indistinguishable frame by frame. The 3-frame window evaluates t against both neighbors, so a difference that appears in t-1→t but reverses in t→t+1 reads as flicker, while a consistent directional shift reads as motion. At 8 px total displacement the window still has enough overlap between t-1 and t+1 to separate the two, so the 3-frame pass is the winner for this example.
The break-even trigger is explicit: if the same frame-stepping shows the edge landmark moving more than 8 px across the window — say 412 px to 422 px, a 10 px total — the window's overlap assumption fails and per-frame cleanup wins, because the joint pass would smear the legitimate edge motion into the correction. Re-measure at the fastest-moving section of the shot, not the average, since one fast beat can flip the decision for the whole sequence.
Two practical checks before committing. First, confirm your tooling can actually process the window: i2img.com lists a 25 MB maximum per file, one input file per run, a 60-million-pixel ceiling per image, and multi-frame processing limited to 200 source frames, so a long shot may need to be split into segments that each stay inside those limits. Second, keep the measurement honest — the per-pixel block-based motion estimation approach described in the ResearchGate paper on spatial resolution enhancement is the mechanism to replicate, storing candidate motion vectors per pixel per low-resolution frame rather than trusting a single global offset.
Decision rules for matte film cleanup
The displacement check is only useful if it resolves into an action. Here are the five rules I apply after measuring maximum matte-edge displacement across the three-frame window (t-1, t, t+1), using block matching or frame-stepping in the NLE.
Rule 1 — displacement ≤ 8 px: run the 3-frame temporal window. The window has enough shared edge geometry to separate flicker from motion, and the joint estimate suppresses the frame-to-frame brightness wobble that per-frame cleanup leaves behind.
Rule 2 — displacement > 8 px: switch to per-frame cleanup followed by a temporal-consistency pass. At that displacement the edge has moved far enough that the window's shared pixels no longer describe the same boundary, and joint processing starts to smear rather than stabilize.
Rule 3 — matte and fill move at visibly different velocities: also use per-frame cleanup plus the consistency pass, even if raw displacement reads under 8 px. A locked-off matte over moving fill (or the reverse) breaks the window's assumption of a single coherent motion; the displacement number alone will understate the problem.
Rule 4 — clip exceeds the tool's multi-frame cap: segment the shot, and overlap segments by at least 3 frames. The i2img upscaler documents multi-frame processing limited to 200 source frames, so longer shots must be split; the overlap guarantees each seam frame is computed with a full window on both sides. Verify seams by stepping across each boundary and comparing edge position and density against the frames immediately before and after.
Rule 5 — the seam-overlap rule: never let a segment boundary fall inside a frame where the matte edge is moving fastest. Place cuts in the lowest-displacement stretch near the intended split point, keep the 3-frame overlap, and re-step each seam in the NLE: the edge landmark's position and density should match across the boundary frames. If a seam shows a jump larger than the measured per-frame displacement, move the cut a few frames and re-run that segment.
heck the seam after any change to the cut list — a re-timed edit can silently move a boundary into fast motion.| Condition | Action |
|---|---|
| Max edge displacement ≤ 8 px | 3-frame temporal window |
| Displacement > 8 px | Per-frame cleanup + temporal-consistency pass |
| Matte and fill at different velocities | Per-frame cleanup + temporal-consistency pass |
| Clip exceeds multi-frame cap | Segment with ≥ 3-frame overlap; verify seams |
| Boundary near fast edge motion | Relocate cut to low-displacement stretch |
Run the displacement measurement before committing to a pipeline, and re-run it whenever the edit changes. The rules are cheap to apply; a mis-chosen pipeline is not.
What to do next
| Step | Action | Why it matters |
|---|---|---|
| 1 | Before touching the pipeline, measure the maximum matte-edge displacement across your 3-frame window (t-1, t, t+1) using block matching or manual frame-stepping in your NLE. | This single measurement is the input to the canonical decision rule — everything downstream depends on it. |
| 2 | If that measured displacement is ≤ 8 px, run the 3-frame temporal window with all three frames processed jointly. | The window can absorb up to 8 px of edge motion; staying under it keeps the matte stable without per-frame flicker. |
| 3 | If displacement is > 8 px, or the matte flickers independently of the fill, fall back to per-frame cleanup and add a temporal-consistency pass afterward. | Fast motion or an independently flickering edge exceeds what the window can track, so per-frame wins — but only with the consistency pass to suppress new flicker. |
| 4 | Cap each multi-frame processing run at 200 source frames, splitting longer shots into separate runs. | Supported multi-frame processing is limited to 200 source frames per run; exceeding it breaks the supported path. |
| 5 | Check each input file against the 25 MB and 60 million pixel limits, and keep to one input file per run. | Aggregate processing and output-size limits also apply, so oversized or multi-file inputs will fail before the matte work begins. |
| 6 | After the run, re-measure matte-edge displacement on the output and confirm the chosen path still holds for the shot. | Verifies the decision rule was applied correctly and catches any shot that drifted across the 8 px threshold mid-sequence. |
Frequently Asked Questions
At what maximum matte-edge displacement should I run the 3-frame temporal window instead of per-frame cleanup?
Run the 3-frame temporal window when matte-edge displacement stays at or below 8 px across the t-1, t, and t+1 frames.
How do I measure matte-edge displacement before choosing a pipeline?
Measure maximum matte-edge displacement across the 3-frame window with block matching or manual frame-stepping in your NLE.
When does per-frame cleanup beat the temporal window?
Per-frame cleanup wins on fast motion or when matte-edge displacement exceeds the ~8 px threshold the temporal window can absorb.
How many source frames can I process in a single multi-frame run?
Cap multi-frame processing at 200 source frames per run, since supported multi-frame processing is limited to 200 source frames.
What are the input file size and pixel limits for each run?
Keep each input file at or under 25 MB and within 60 million pixels, with one input file per run.
Is the 8 px threshold an established published constant?
No grounding source publishes it as a constant, so you must verify the ~8 px threshold on your own footage.
Quick answers
| When should you use a 3-frame temporal window for matte and effects films? | Use a 3-frame temporal window (t-1, t, t+1 jointly) when matte-edge displacement stays at or below 8 px. |
| How do you measure maximum matte-edge displacement across the 3-frame window? | Measure maximum matte-edge displacement across the 3-frame window with block matching or manual frame-stepping in your NLE. |
| When should you switch to per-frame cleanup? | Switch to per-frame cleanup when inter-frame motion exceeds ~8 px or the matte edge moves more than the window can track. |
| What is the cap on multi-frame processing per run? | Cap multi-frame processing at 200 source frames per run. |
| What are the input file limits for each run? | Keep each input file at or under 25 MB and within 60 million pixels, one input file per run. |
Also worth reading: Video Flicker Fix: 2026 Temporal Consistency Guide with 3 Metrics: Video Flicker Fix: 2026 Temporal · wLPIPS Metric Wins 4K Restoration Temporal Coherence Benchmarks: wLPIPS Metric Wins 4K Restoration · Proteus vs Real-ESRGAN: Temporal Axis Matters More Than Detail: Proteus vs Real-ESRGAN: Temporal Axis