Bounded motion revision loop: render the saved timeline, measure per-second cuts, flashes, shake frames,
jitter, camera movement and motion energy against a reference video (analyze_energy measures), then up to
max_revisions (0-4) times propose camera-only edits on unlocked shots (shake bursts, pans, punch hits at the
reference's event times; amplitude scaling bounded 0.5-2x per step), re-render and re-measure; the best attempt
is kept. Clips, shot spans, sources, transitions, flashes, text, looks, post and audio never change; cut/flash
shortfalls are listed for the editor. ceiling (e.g. 2) also fails camera movement / motion energy above
ceiling x the reference and scales camera moves down (0.5x minimum per step). apply=true saves the best
attempt only if it scores better. Records the
assessment for the strict review gate. Slow: one full render per attempt.
(project_id: str, reference: str, max_revisions: int = 2, locked_shots: list[int] | None = None, floor: float = 0.6, reference_start: float = 0, reference_duration: float | None = None, apply: bool = False, ceiling: float | None = None) -> dict
By rk0neki·Created about a month ago·Updated 16 days ago· 82