Skip to content

feat(analysis): add cut_check, measured QC of a finished cut - #978

Open
guillergs-ai wants to merge 1 commit into
OpenMontageInc:mainfrom
guillergs-ai:feat/cut-check
Open

guillergs-ai wants to merge 1 commit into
OpenMontageInc:mainfrom
guillergs-ai:feat/cut-check

Conversation

@guillergs-ai

Copy link
Copy Markdown
Contributor

What. A new analysis tool, cut_check, that measures a rendered video across its whole timeline and returns timestamped findings: background level jumps at a cut, clicks where clips meet, silences mid-piece, black stretches and frozen picture anywhere in the timeline, per-shot audio drift against the source clip (when a shot list is given), and integrated loudness and true peak against a target.

Why. The final review in video_compose probes the container, reads whole-file mean and max volume and looks at four sampled frames. That misses the problems most common in edits assembled from many generated clips, each with its own room tone: the background jumping at a cut, a click at a splice, a black flash between sampled frames, a shot whose sound has slipped. I built this for my own series; it gives the agent timestamps to go and listen to.

Scope. tools/analysis/cut_check.py (BaseTool contract, standard library plus ffmpeg/ffprobe, no new dependencies, no network, nothing written outside a temp dir); tests/tools/test_cut_check.py (contract, discovery, status, input errors, and detection on synthetic clips built with ffmpeg, skipped without it); one line in docs/PROVIDERS.md. It does not change video_compose, final_review.schema.json, any pipeline or any skill. If you want it wired into the final review, feeding audio_spotcheck and visual_spotcheck, I can do that in a follow-up once you say which shape you prefer.

Notes. It reports and never decides: some jumps and blacks are intentional, so findings are for the agent to check, and the last 1.5 s are left out of the black and silence checks. Never cached: no idempotency fields, because re-renders reuse the same path. About 4.4 s for a 73 s 1080x1920 episode on an Apple Silicon iMac. Thresholds can be overridden per call; the defaults were tuned on vertical 24 fps dialogue-over-ambience episodes.

Tests. pytest tests/tools/test_cut_check.py tests/contracts tests/test_preflight_capability_coverage.py -q: 1535 passed, 9 skipped.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant