Skip to content

How do I place a short repaired patch back on the exact source frames?

Give the repair patch an explicit local origin and parent-timeline offset, then verify its first and last active pictures against the approved source interval. A patch that is correct in isolation can still be applied to the wrong action moment. Control what happens when the patch ends so the compositor does not keep repeating a stale repair frame. This is external compositing, not another generative tracking guarantee.

REVIEW AND HANDOFF: REPRODUCIBLE EVIDENCE PACKAGESAISwapLab team · Editorial methodPublished 4 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Editorial worksheet excerpt: Patch local; Parent placement; Active interval. See the complete table and sources below.
Editorial worksheet excerpt: Patch local; Parent placement; Active interval. See the complete table and sources below.

Separate the evidence from the decision

The artifact is a source-to-patch placement record plus seam evidence. It differs from evaluating whether a mask tracks a person accurately within its own clip. Trimming or exporting a patch often resets its timestamps, so a patch's zero no longer identifies the original source's zero. A later retime can break the relationship again. Preserve the actual source, patch and timeline revisions and specify whether the active interval is frame-indexed or time-indexed with an exclusive endpoint. The recipe below is limited to a verified constant-frame-rate parent and patch with matching cadence, geometry and interpretation. Variable-rate or retimed material requires a separately validated frame-time mapping; this simple recipe does not certify it.

Build the evidence

  1. 01

    Establish the input evidence

    Mark the intended parent interval and exact visible actions at both ends. Record the patch's decoded duration, dimensions, alpha or mask arrangement and the coordinate origin used during repair. Confirm that the source version matches the one the repair artist used. If a source gesture has changed or been retimed, do not align the patch by a similar-looking still alone; inspect surrounding motion and obtain the appropriate correspondence before placing it.

  2. 02

    Run a controlled diagnostic

    The example resets the main timeline and shifts a local patch to a two-second parent offset. It limits activation to the half-open interval from two to three seconds and disables last-frame repetition after the patch ends. Those values are placeholders for an approved map, not general source limits. The input patch must have matching geometry and an understood alpha convention. Where frame-level membership is required, derive the offset from the actual frame-time map rather than multiplying a rounded nominal rate. Passthrough output and the filter encoder time base avoid the default automatic cadence conversion. Verify the final frame count and boundaries because muxer time-scale quantization and unsupported timestamp behavior remain separate constraints.

  3. 03

    Verify the actual handoff

    Render a short test covering context before and after both seams. Inspect the first active patch picture, final active patch picture and neighboring unpatched pictures. Check edge placement, motion continuity and whether any full-frame interpretation changed. Listen to sound separately if it accompanies the master. Compare the final exported file, since timeline preview can hide stale compositing or cached media. Keep the original layered patch available until the flattened derivative receives approval.

A bounded example

Illustrative failure: a repair covers the correct hand but begins one action beat late after its export reset the local timeline. A simple parent offset fixes placement, but a repeated final patch frame then obscures the hand after the intended endpoint. The placement map and explicit end behavior address two different problems. The example does not establish a tested real repair, exact generated choreography or universal frame-level overlay behavior across containers. A local CFR verification used a matching full-frame patch and a lossless output variant; all 180 output picture payload hashes matched the parent. The ordinary recipe remains lossy and a different patch still needs its own seam review.

Local workflow example

Local FFmpeg 7.1 test used a six-second 30 fps synthetic parent and a matching patch covering [2,3) seconds. A lossless verification variant retained 180 pictures with payload hashes matching the unmodified source. This does not certify VFR/retimed inputs, alpha repairs or arbitrary muxer timing. No paid generation was performed.

shell
# Prerequisite: verified CFR parent and matching-cadence/geometry patch.
ffmpeg -n -i parent.mp4 -i patch.mov -filter_complex "[0:v:0]setpts=PTS-STARTPTS[base];[1:v:0]setpts=PTS-STARTPTS+2/TB[p];[base][p]overlay=eof_action=pass:repeatlast=0:enable='gte(t,2)*lt(t,3)'[v]" -map "[v]" -fps_mode passthrough -enc_time_base filter -an -c:v libx264 patch-test.mp4

Task evidence worksheet

CoordinateExampleCheck
Patch localStarts at zeroFirst repaired source action
Parent placementOffset two secondsSame corresponding action
Active interval[2,3) secondsNo stale patch after end

Acceptance evidence

  • Bind patch and parent to the same source revision and coordinate convention.
  • Specify the active interval and post-end behavior explicitly.
  • Inspect both seams with surrounding motion in the saved render.

Stop condition

Stop if the patch and parent no longer describe the same motion or the boundary cannot be placed without a visible discontinuity. Return the source correspondence to the repair artist or choose another edit. Do not keep stretching a repair until it covers a different performance; that can hide the wrong-source problem while creating new geometry and timing errors.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example