check_loudness
Verify media file loudness compliance with broadcast standards (EBU R128, ATSC A/85, BS 1770). Get pass/fail verdict, measured deltas, and exact gain corrections.
Instructions
Loudness compliance verdict for a media file against a formal published standard. Measures integrated loudness, loudness range, and true peak (via ffmpeg), then evaluates them against the named standard's targets and tolerances.
Args: path: media file to check (any format ffmpeg can read). standard: EBU_R128 (broadcast, -23 LUFS), ATSC_A85 (US TV, -24 LKFS), or BS_1770 (measurement only — verdict "measured", no gates). stream: zero-based audio stream index for multi-track files. detailed: also report max momentary / max short-term loudness (one extra ffmpeg pass).
Returns: dict with: verdict (pass|fail|measured), per-metric measured/target/delta and pass booleans, failures (plain-English causes), remediation (exact corrections, e.g. "apply -2.3 LU gain"), and measurement_context (ffmpeg version, stream info).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| stream | No | ||
| detailed | No | ||
| standard | No | EBU_R128 |