Claude writes a two-pass ffmpeg loudnorm pipeline to level up video audio
Aizkmusic · x · 2026-10-01
A user had Claude generate a complete ffmpeg command to compress and boost the audio of a video. It's a classic two-pass loudnorm workflow:
- Pass 1 runs -af "acompressor + loudnorm=I=-14:TP=-1.5:LRA=11:printformat=" into -f null just to measure the input's loudness stats;
- sed extracts the JSON output and jq pulls inputi / inputtp / inputlra / inputthresh / targetoffset;
- Pass 2 feeds those back as measured with linear=true for linear normalization, while -c:v copy skips video re-encoding; audio is re-encoded to 256k AAC at 48kHz.
This avoids the dynamic-mode quality loss of single-pass loudnorm — the standard approach for audio loudness processing.
Related event: Claude Asks Permission Before Running Complex ffmpeg Commands(2 posts)→
More from coding & agent
- shadcn boosts @uisdk: one-shot UI rebuild that's instantly E2E-testable by AI — shadcn · 2026-11-16
- AI agent deletes 43,599 lines of OpenClaw test code in one PR — vincent_koc · 2026-11-16
- JPMorgan shows Jarvis, its internal agent assembly line, at Interrupt NYC — LangChain · 2026-11-16
- Dev clarifies: Apple doesn't ban feature flags, only fooling App Review — talkaboutdesign · 2026-11-16
- Antigravity Matches Claude Cowork in Tests, While Gemini Tasks' Purpose Remains Unclear — sebajun2 · 2026-11-16
- One 16GB GPU runs songs, voice, images, 720p video and local RAG — all offline and open source — llama-of-death · 2026-11-16