# Media Preflight

> Audit and repair audio/video files against ACX, EBU R128, and streaming specs using local ffmpeg analysis.

Media Preflight is a free AI agent skill on Agensi by snepssen, in Image & Video. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [snepssen](https://www.agensi.io/creators/snepssen)
- Category: [Image & Video](https://www.agensi.io/skills/image-video)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/media-preflight
- Tags: image, automation, ffmpeg, audio-engineering, audio, loudness, audiobook, subtitles

## About this skill

Media delivery often fails due to technical non-compliance, resulting in rejected audiobooks, broadcast flags, or platform down-ranking. This skill automates the inspection of finished audio and video files against industry-standard specifications using local tools.

### What it does
- **Standardized inspection** Measures files against ACX, EBU R128, YouTube, Spotify, and broadcast specs.
- **Fault detection** Identifies clipping, DC offset, dead channels, and black frames.
- **Loudness analysis** Reports integrated LUFS, RMS, true peak, and noise floor levels.
- **Caption auditing** Validates subtitle reading speed, line length, and cue timing.
- **Safe correction** Generates ffmpeg commands to fix gain or padding without modifying the source.

### How it works
1. **Identify target** Select a profile like `acx` or `ebu_r128` based on the delivery destination.
2. **Run preflight** Execute the check command to generate a pass/fail report with specific timestamps for every violation.
3. **Review findings** Analyze the plain-English verdict, comparing actual measurements against target requirements.
4. **Execute fixes** Preview a corrective plan before running a non-destructive repair that creates a compliant copy.

### Frameworks & tools
This skill runs locally using Python 3.10 and requires `ffmpeg` and `ffprobe` installed on the system path. It utilizes standard ffmpeg filters including `loudnorm`, `astats`, `silencedetect`, and `blackdetect`.

### Why this beats prompting it yourself
Generic prompts often guess at loudness standards or hallucinate ffmpeg flags that do not exist. This skill uses a hardened codebase and precise platform profiles to ensure measurements are technically accurate and reproducible.

### Use cases
- Validating audiobook chapters for ACX submission to prevent manual rejection.
- Checking broadcast masters for EBU R128 compliance before transmission.
- Auditing subtitle files for readability and timing constraints.
- Batch inspecting social media exports for silence or video artifacts.

### Known limitations
Does not perform noise reduction, de-clicking, or generative audio repair. Flashing-light checks are heuristics and do not constitute official photosensitivity clearance.

## Requires

- Runs on macOS only
- Python 3.10+
- FFmpeg + ffprobe

Runs on macOS, Windows and Linux. Install ffmpeg with brew install ffmpeg, winget install -e --id Gyan.FFmpeg, or your Linux package manager.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Media Preflight skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What technical prerequisites are needed to run Media Preflight?

The skill requires a local installation of Python 3.10+ along with ffmpeg and ffprobe added to your system's PATH to perform the technical analysis.

### Does this skill modify my original source files during the repair process?

No, the skill follows a non-destructive workflow by generating reports and separate compliant copies, ensuring your original source files remain untouched.

### Which specific industry standards are covered by the automated audit?

ACX (Audible audiobooks), EBU R128 broadcast, YouTube, Spotify podcasts, music streaming masters, Instagram/TikTok, generic web video, subtitle readability and lyric videos. Targets without a published spec are marked informal in every report. You can also write your own house standard as a JSON profile.

### Can this skill fix audio quality issues like background hiss or mouth clicks?

While it provides specific timestamps for faults like clipping or silence, it does not perform generative repairs like AI noise reduction or de-clicking.

### What is in the package?

The complete MIT-licensed Media Preflight command-line tool: Python standard library only, with every delivery profile and the profile-writing guide. It makes no network calls and needs no accounts or API keys. Everything runs on your machine.

### Which AI agents or frameworks is this skill compatible with?

This skill is designed to work with any AI agent capable of executing local Python scripts and accessing the filesystem to run ffmpeg commands.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
