Repository navigation
feat(analysis): add cut_check, measured QC of a finished cut - #978
Open
guillergs-ai wants to merge 1 commit into
Open
guillergs-ai wants to merge 1 commit into
guillergs-ai wants to merge 1 commit into
Conversation
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_composeprobes 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 indocs/PROVIDERS.md. It does not changevideo_compose,final_review.schema.json, any pipeline or any skill. If you want it wired into the final review, feedingaudio_spotcheckandvisual_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