mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 22:58:02 +00:00
final_fx was softer than final.mp4 because the plate-reaction zoompan ran a scale-up→resample→scale-down roundtrip on EVERY frame (a mild low-pass even at z=1), yet a punch only moves the camera in a ~0.5s window. Now the punch path splits the clip and runs zoompan ONLY on the active window; the head/tail pass through with grain only (no geometric resample) so the static 95% stays as sharp as final.mp4. Handles 2-seg (apex at clip start/end) and 3-seg (apex mid) cases; falls back to whole-clip when the window spans nearly all of it. pushIn (continuous zoom) and grain-only paths unchanged. Verified: passthrough region now pixel-matches final crf11; apex window still carries the punch/shake. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>