Repository navigation
Add an acceptance report for rendered video (T-6) - #59
Merged
Merged
Conversation
video_report (and funkbox video report) writes <name>.report.json next to a rendered MP4 and never changes the video. It checks: - loudness against -14 LUFS within 1 LU (the reel's own measurement) - peak, a miss above -1 dBFS (clipping risk) - pauses left: quiet of 0.6 s or more, reported as information - with a cut plan: the length against the plan's kept time, and the cuts removed, counted by reason A check that cannot be measured is reported as not measured, never as a pass. Verdict is pass, fail or unchecked. The CLI exits 1 unless pass. Tool count 57 -> 58 (README, llms.txt, server and install tests). Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017qYKdYke3ySSZS76W9Tp34
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.
Why
T-6 of the whisper plan: a check on a rendered video that says whether it is fit to ship, so a person does not have to measure it by hand. Nothing changes the video.
What changed
funkbox/video/report.py(new):acceptance(path, cutplan=None, name="")writes<name>.report.jsonnext to the MP4 and never overwrites an earlier report.funkbox/reel/loudness.py).None, never a pass. Verdict ispass,failorunchecked. A silent render is a loudness miss.video_reportMCP tool andfunkbox video report <video> [--cutplan ...] [--name ...]. The CLI exits 1 unless the verdict is pass.tests/test_server.pyandtests/test_p6_install.py.docs/video.mdrow added;docs/catalog.jsonregenerated.How it was tested
tests/test_report.py(nine): a render at the target with clean levels passes, the file is byte-identical afterwards, pauses are counted, and the quiet, silent, and full-scale renders each fail their own check. The plan length check passes and fails as it should, cuts are summed by reason, a missing plan is not checked, reports never overwrite, and a non-plan file is refused.tests/test_report.py,tests/test_cutfind.py,tests/test_transcribe.py,tests/test_server.pyandtests/test_p6_install.pypass (54). ruff check and format are clean. The full suite runs in CI.Follow-up: the report does not yet check the captions against the audio, and it does not change levels. Loudness correction stays with the render.
Generated by Claude Code