Skip to content

Add an acceptance report for rendered video (T-6) - #59

Merged
IsraelWebDev merged 1 commit into
mainfrom
t6-acceptance-report
Nov 22, 2026
Merged

IsraelWebDev merged 1 commit into
mainfrom
t6-acceptance-report

Conversation

@IsraelWebDev

Copy link
Copy Markdown
Owner

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.json next to the MP4 and never overwrites an earlier report.
    • Loudness against -14 LUFS within 1 LU, using the reel's own EBU R128 measurement (funkbox/reel/loudness.py).
    • Peak: a miss above -1 dBFS (clipping risk), from volumedetect.
    • Pauses left: quiet of 0.6 s or more, from the cut finder's silence detection. This is information, not a pass or fail.
    • With a cut plan: the length is checked against the plan's kept time (within 0.3 s), and the cuts removed are counted by reason (pause, retake, filler).
  • A check that cannot be made is None, never a pass. Verdict is pass, fail or unchecked. A silent render is a loudness miss.
  • video_report MCP tool and funkbox video report <video> [--cutplan ...] [--name ...]. The CLI exits 1 unless the verdict is pass.
  • Tool count 57 → 58 in README, llms.txt, tests/test_server.py and tests/test_p6_install.py. docs/video.md row added; docs/catalog.json regenerated.

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.
  • Locally: tests/test_report.py, tests/test_cutfind.py, tests/test_transcribe.py, tests/test_server.py and tests/test_p6_install.py pass (54). ruff check and format are clean. The full suite runs in CI.
  • Real-world run on a 90 s Hebrew food vlog excerpt: -26.4 LUFS, peak -15.6 dBFS, verdict fail on loudness, as expected for an unnormalised source.

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

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
@IsraelWebDev
IsraelWebDev merged commit c76744e into main Nov 22, 2026
4 checks passed
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.

2 participants