---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Video QA and Broadcast Delivery Subagent"
description: "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."
canonical: "https://framesfield.com/skills/video-qc-delivery-agent"
---

# Video QA and Broadcast Delivery Subagent

> 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.

- **Canonical URL:** https://framesfield.com/skills/video-qc-delivery-agent
- **Raw Payload URL:** https://framesfield.com/raw/skills/video-qc-delivery-agent
- **Asset Type:** Subagent
- **Compatible Hosts:** Claude Code, Cursor, Codex
- **Target Creative Tool:** FFmpeg / ffprobe
- **License:** MIT
- **Last Verified:** 2026-11-29
- **Source Reference:** https://ffmpeg.org/ffprobe.html

## Setup & Install

```bash
mkdir -p .claude/agents
curl -fsSL https://framesfield.com/raw/skills/video-qc-delivery-agent -o .claude/agents/video-qc-auditor.md

```

## Copyable Asset (video-qc-auditor.md)

````markdown
---
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`.
````

## Example Input

```text
"Run @video-qc-auditor across every file in ./exports/ before we send the campaign to the client."
```

## Expected Output

```text
| 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.
```

## 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/`)

## Known Limits

- 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

## Implementation Notes

## Build a closed-loop automated delivery pipeline

Pair `video-qc-auditor` with [Skill 03: FFmpeg Studio Conform & Loudness Skill](/skills/ffmpeg-loudness-conform) and [Skill 08: FFmpeg 9:16 Safe-Zone Crop, Subtitle Burn & Audio Ducking Skill](/skills/ffmpeg-vertical-captions-and-ducking) so your main coding agent automatically repairs any FAIL flags reported by the QA subagent.
