Spaces:
Running
Running
Commit History
-
Fix two wiring bugs, stage the hook's own shot, keep every spoken word
Found by verifying rather than by testing: 452 unit tests passed with a NameError on the pipeline's most-travelled path. - _revise took `revision`, not `revision_count`, so threading the hook through matched _generate_script instead and left `hook` undefined at two call sites. Every candidate scoring under 80 would have crashed — two of three on the last render. Caught by ruff F821. - enforce_clip_caps runs AFTER the pre-broll split and moves words forward, so a receiving scene lands back over the shot cap and the split is undone. Splitting again after the caps pass is what actually holds the ceiling. - The visual director received hook_bank but never approved_hook, so it staged scene 1 from spoken copy and defaulted to a talking head — even when the hook had correctly asked to open on an object, which is what the shipped render did. Now passed on every call including both inside the revision loop; losing it on a revision would silently reintroduce the presenter. - T…b3cbda7
-
Ground generation in the real schema, and tune pace against reference ads
Two reference ads were torn down shot by shot and measured. Ours ran 4.4s average shots with 15% dead air; they ran 2.6-3.7s with 0-11%. Everything here follows from closing that gap and from writing the database schema down next to the code that reads it. Pace and dead air - Only the last VOICED clip holds a beat now. SPEECH_TAIL_SECONDS was paid on every clip, which put ~0.7s of silence on each cut: 7.4s of a 48s ad. - presenter_max_seconds (6s), separate from the model's 15s per-clip ceiling. The two were the same value, which is exactly why the longest shot measured 15.0s — the model's limit standing in for an editor's. - split_overlong_scenes cuts a long monologue into several shots. Moving surplus words to a neighbour cannot converge: the last scene has no forward neighbour, so it pushes them back and the pass ping-pongs. Latent at a 15s cap, guaranteed at 6s. Replay of the shipped ad: 11 shots -> 14, avg 4.27s -> 3.36s, longest 15.0s -> 5.1s. The hook decides its…6272eef
-
Add background-job tracking; rebuild editor placement, split and trim
Editor - Text (captions and titles) is now placed by dragging it on the frame. `x`/`y` are frame fractions addressing the box's centre, clamped so a box dragged to an edge stays fully on screen. The `position` presets still apply when they're absent, so the render pipeline's own captions and older payloads are unaffected. Placement is computed in Python rather than as an ffmpeg `overlay=x=...` expression: those need commas, and comma escaping inside a filtergraph differs between ffmpeg builds. - Split at the playhead. Both halves keep the same manifest index, so the export trims one source file twice and nothing is regenerated. The spoken line is divided with the cut (EditClip.spoken) or both halves would be captioned with the whole sentence; titles anchored past the cut re-anchor to the second half. - Trim by dragging a clip's edges, with the playhead parked on the exact frame being dragged to. Undo/redo over clips, titles and caption edits, with a drag coalescin…9d66133