# Motion Preflight QA: Reels Safe-Area and FFmpeg Audit

> Check code-rendered videos for iOS yuv444p black screens, missing faststart flags, -30 LUFS audio, and cropped Reels or TikTok text. Runs an 8-gate FFmpeg audit, draws a 6-frame safe-zone proof sheet, and masters clean MP4s locally.

Motion Preflight QA: Reels Safe-Area and FFmpeg Audit is a free AI agent skill on Agensi by Srinath Nanda Kumar, in Image & Video. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Srinath Nanda Kumar](https://www.agensi.io/creators/srinath-nanda-kumar)
- 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/motion-preflight-qa-reels-safe-area-and-ffmpeg-audit
- Tags: image, social-media, code-review, ffmpeg, motion-graphics, reels, tiktok, youtube-shorts

## About this skill

Headless video renders often look crisp in Chrome and then fail the moment you upload them to a phone. QuickTime and iOS turn yuv444p files into solid black screens. Instagram Reels covers text behind the right-side action buttons and bottom caption bar. Unmastered audio drops too quiet or clips when social platforms re-encode it.

Motion Preflight QA gives your coding agent three local Python and FFmpeg scripts to check and fix those delivery problems before you publish.

### What the scripts do

`scripts/audit_video.py` inspects any MP4 or MOV through eight technical checks and prints a 0 to 100 scorecard. It checks codec support, catches non-yuv420p pixel formats, reads top-level MP4 boxes to confirm `moov` sits ahead of `mdat` for faststart playback, verifies resolution and frame-rate cadence, scans for accidental black intro frames longer than 0.25s, measures EBU R128 loudness and true peak, and flags oversized grain-heavy exports.

`scripts/safe_zone_overlay.py` pulls six timestamps (0.4s hook, 20%, 40%, 60%, 80%, and the closing CTA frame) and draws translucent hazard boxes over the UI chrome for Instagram Reels, TikTok, YouTube Shorts, LinkedIn, square feeds, or 16:9 widescreen. It stitches all six frames into one `qa_contact_sheet.png` so you or a vision-capable agent can verify clearance in seconds.

`scripts/fix_delivery.py` re-encodes to H.264 `yuv420p` with `+faststart`, applies two-pass EBU R128 loudness normalization to `-14.0 LUFS` and `-1.0 dBTP`, trims oversized files with configurable CRF, and prints the before and after scores.

### Local test result

On a 4-second synthetic 1080x1920 test render (`yuv444p`, no faststart, `-49.8 LUFS`, `5.51 MB`), `audit_video.py` scored `50/100 (FAIL)`. After running `fix_delivery.py`, the file passed at `100/100` (`yuv420p`, `faststart: true`, `-14.0 LUFS`, `3.86 MB`).

Everything uses Python 3 standard library plus local FFmpeg and FFprobe. No pip packages, no API keys, and no files leave your machine. Released under the MIT license.

## Requires

- Python 3.9+
- FFmpeg & FFprobe

Runs locally using Python stdlib and FFmpeg. Zero network calls, zero API keys, and zero pip installs.

## Known limitations

Safe-zone checking is visual: the script burns platform UI boxes onto a 6-frame contact sheet PNG so you or a vision model can inspect clearance. It does not edit source HTML or Remotion timelines directly.

## 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 Motion Preflight QA: Reels Safe-Area and FFmpeg Audit 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

### Does this require paid API keys or third-party Python packages?

No. All three scripts rely only on the Python 3 standard library plus local ffmpeg and ffprobe. Nothing gets uploaded anywhere.

### Does it work with videos from Remotion, HyperFrames, or After Effects?

Yes. It audits and masters any standard MP4 or MOV file regardless of which tool rendered it.

### Why does yuv444p matter when a video plays fine in Chrome or VLC?

Headless browser captures often default to yuv444p, which renders as a black screen in QuickTime, Safari, and Instagram on iOS. fix_delivery.py converts cleanly to yuv420p.

---

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.
