mirror of
https://github.com/storytold/filmcraft.git
synced 2026-10-14 19:26:59 -04:00
Problem: a speed-changed clip set to Time Interpolation > Optical Flow rendered exactly like Frame Blending, a cross-fade of the two neighbouring source frames, so moving objects showed double images. Fix: new filmcraft_render::flow. It computes dense coarse-to-fine Lucas-Kanade flow both ways on a luma pyramid at most 640 px wide, drops motion wherever standing still explains the window as well (flicker on static content), forward-splats both flows to the in-between time (Baker et al. 2011), and warps both frames there. Each fetch is weighted by how well its own flow agrees, so uncovered background comes from the frame that shows it. Pixels that look the same in both frames, or where neither fetch agrees, fade to the plain cross-fade. media_image uses it for OpticalFlow clips. docs/gaps.md G18 and target-app-parity updated (also drops the #415 / #458 items, already fixed on main). Co-Authored-By: Claude Opus 5.5 <[email protected]>