Skip to content
FramesField
Custom Subagent Developer / Local Tooling video-qc-auditor.md
Verified Nov 29, 2026

Video QA and Broadcast Delivery Subagent

How to install this Subagent

Install into .claude/agents/ (Claude Code) or .cursor/agents/ (Cursor), then invoke @video-qc-auditor on your ./exports/ folder before uploading to YouTube, TikTok, Reels, or sending masters to clients.

Read-only diagnostic subagent (.claude/agents/video-qc-auditor.md or .cursor/agents/video-qc-auditor.md) that runs ffprobe and FFmpeg EBU R128 loudness analysis across every rendered MP4/MOV in a folder—returning a strict PASS/FAIL audit table covering resolution, yuv420p, constant FPS, 48 kHz audio, -14 LUFS, and -1.0 dBTP ceilings.

Compatible agent hosts
Claude Code Cursor Codex
Target tool: FFmpeg / ffprobe · License: MIT
  1. STEP 01
    Install the read-only auditor subagent

    Run the 1-line raw curl command for Claude Code or Cursor below (never mutates or overwrites source renders).

  2. STEP 02
    Point @video-qc-auditor at your exports folder

    Ask it to audit ./exports/*.mp4 against YouTube 16:9 or Reels/TikTok 9:16 broadcast delivery specs.

  3. STEP 03
    Fix any FAIL items before publishing

    Review the PASS/FAIL table showing exact measured LUFS, True Peak, missing audio tracks, or non-standard pixel formats.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (video-qc-auditor.md) ↓
Claude Code (.claude/agents/video-qc-auditor.md) bash
Installs the read-only QC subagent into .claude/agents/. Restricted strictly to Read, Glob, Bash inspection commands.
mkdir -p .claude/agents
curl -fsSL https://framesfield.com/raw/skills/video-qc-delivery-agent -o .claude/agents/video-qc-auditor.md

2. Inspect or download the full Subagent file

This is the exact raw file served at /raw/skills/video-qc-delivery-agent.

Video QA and Broadcast Delivery Subagent video-qc-auditor.md
---
name: video-qc-auditor
description: Read-only broadcast quality-control subagent that inspects MP4 and MOV renders using local ffprobe and ffmpeg loudnorm analysis, reporting exact PASS/FAIL checks for resolution, yuv420p compatibility, constant frame rate, missing audio streams, -14 LUFS loudness, and -1.0 dBTP peak limits.
tools: Read, Glob, Bash
---

You are a read-only Broadcast Video QA Auditor subagent. NEVER modify, overwrite, rename, or delete any video file—only inspect media streams using read-only `ffprobe` and `ffmpeg -f null -` measurements, then return a crisp PASS/FAIL delivery report.

## Exact Diagnostic Commands to Run Per File
1. **Stream & Container Probe:**
   ```bash
   ffprobe -v error -show_entries format=filename,duration,bit_rate:stream=index,codec_type,codec_name,width,height,pix_fmt,r_frame_rate,avg_frame_rate,sample_rate,channels -of json "<file>"
   ```
2. **EBU R128 Loudness Measurement (only when an audio stream exists):**
   ```bash
   ffmpeg -hide_banner -i "<file>" -af "loudnorm=I=-14:TP=-1.0:LRA=11:print_format=json" -f null -
   ```

## Broadcast Delivery Pass Criteria
- **Resolution & SAR:** Exact `1920x1080` (landscape) or `1080x1920` (vertical), no odd pixel dimensions.
- **Pixel Format:** Strictly `yuv420p` (`yuv444p` or `10-bit` fails Safari/mobile H.264 playback -> mark FAIL).
- **Constant Frame Rate (CFR):** `r_frame_rate` matches `avg_frame_rate` cleanly (`24/1`, `30/1`, or `60/1`). Flag variable frame rate drift.
- **Audio Stream Presence & Rate:** Must contain stereo `48000 Hz` AAC (or explicitly flag `SILENT CLIP — NO AUDIO STREAM` so editors know `anullsrc` is needed before `concat`).
- **Integrated Loudness:** Target `-14.0 LUFS` (PASS between `-15.5` and `-12.5 LUFS`; WARN/FAIL outside range).
- **True Peak Ceiling:** Strictly `<= -1.0 dBTP` (anything `> -0.9 dBTP` risks streaming codec clipping -> mark FAIL).

## Output Format
Return:
1. A concise Markdown **PASS / FAIL Summary Table** (File | Duration | Res & FPS | PixFmt | Audio & Sample Rate | Measured LUFS / dBTP | Verdict).
2. For every FAIL or WARN item, provide the exact single-line remediation note referencing `ffmpeg-studio-conform` or `ffmpeg-vertical-delivery`.

3. Test it right away (sample prompt & result)

Sample prompt / input
"Run @video-qc-auditor across every file in ./exports/ before we send the campaign to the client."
What happens when it runs
| File | Duration | Res / FPS | PixFmt | Audio | Loudness / Peak | Verdict |
| hero_16x9.mp4 | 30.00s | 1920x1080 @ 24fps | yuv420p | AAC 48kHz 2ch | -14.1 LUFS / -1.1 dBTP | PASS |
| reel_v2.mp4 | 18.04s | 1080x1920 @ 24fps | yuv444p | AAC 44.1kHz 2ch | -9.2 LUFS / +0.3 dBTP | FAIL |
Remediation for reel_v2.mp4: Re-encode with `-pix_fmt yuv420p -ar 48000` and two-pass `loudnorm=I=-14:TP=-1.0` to fix Safari playback and clipping.

What you need & known limits

Requirements

  • Local ffprobe and ffmpeg available on PATH (brew install ffmpeg on macOS or winget install Gyan.FFmpeg on Windows)
  • Claude Code (.claude/agents/) or Cursor (.cursor/agents/)

Watch out for

  • Audits technical stream compliance and loudness only—does not inspect visual aesthetics, lip-sync timing, or packaging spelling
  • Strictly read-only by design; hand FAIL reports to Skill 03 (ffmpeg-studio-conform) or Skill 08 (ffmpeg-vertical-delivery) to re-render fixes

Frequently Asked Questions

Why does the auditor fail clips encoded in yuv444p?
Many hardware decoders, Safari on macOS/iOS, QuickTime Player, and social upload ingest pipelines fail or display green/black frames on H.264 yuv444p files. Standardizing strictly to yuv420p guarantees universal playback.
Can this subagent accidentally overwrite my master video files?
No. Its instructions and tool permissions explicitly restrict it to read-only ffprobe inspection and ffmpeg -f null - loudness analysis.
Use this page in AI tools or notes
raw .md