/video-editing:normalize-audiofrom video-editing
Applies two-pass EBU R128 loudnorm via ffmpeg to normalize audio/video files to a target LUFS/true-peak. Supports presets for YouTube, Spotify, Apple Music, podcast, and broadcast.
Ships in video-editing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two-pass loudnorm to hit a precise integrated LUFS + true-peak target. Reads the user's default target from preferences.json if present; otherwise accepts an inline target.
This is the apply step that pairs with the read-only audio-analysis skill.
| Field | Default |
|---|---|
| Source | required (video or audio) |
| Target | from preferences.json (loudness.target); else ask. Choices: youtube (-14/-1), spotify (-14/-1), apple-music (-16/-1), podcast (-16/-1), broadcast (-23/-2) |
| Output | sibling <basename>.normalized.<ext> (or project's working/ if inside an index project) |
Resolve target → I (integrated LUFS), TP (true peak), LRA (default 11).
DATA_DIR="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/video-editing"
PREFS="$DATA_DIR/preferences.json"
if [ -f "$PREFS" ] && [ -z "$TARGET" ]; then
TARGET=$(jq -r '.loudness.target // empty' "$PREFS")
fi
case "$TARGET" in
youtube|spotify) I=-14; TP=-1; LRA=11 ;;
apple-music|podcast) I=-16; TP=-1; LRA=11 ;;
broadcast) I=-23; TP=-2; LRA=11 ;;
custom) ;; # caller sets I/TP/LRA
*) echo "Unknown target: $TARGET"; exit 1 ;;
esac
PASS1=$(ffmpeg -hide_banner -nostats -i "$SRC" \
-af "loudnorm=I=$I:TP=$TP:LRA=$LRA:print_format=json" \
-f null - 2>&1 | sed -n '/^{/,/^}/p')
MI=$(echo "$PASS1" | jq -r '.input_i')
MTP=$(echo "$PASS1" | jq -r '.input_tp')
MLRA=$(echo "$PASS1"| jq -r '.input_lra')
MTHRESH=$(echo "$PASS1" | jq -r '.input_thresh')
OFFSET=$(echo "$PASS1" | jq -r '.target_offset')
Sanity-check: if any of these are "-inf" or null, the source has silence-only or non-finite measurements. Fall back to single-pass loudnorm and warn.
LOUDNORM="loudnorm=I=$I:TP=$TP:LRA=$LRA:measured_I=$MI:measured_TP=$MTP:measured_LRA=$MLRA:measured_thresh=$MTHRESH:offset=$OFFSET:linear=true:print_format=summary"
Stream-copy video, re-encode audio only:
ffmpeg -hide_banner -y -i "$SRC" \
-map 0:v -map 0:a \
-c:v copy \
-af "$LOUDNORM" \
-c:a aac -b:a 192k \
-movflags +faststart \
"$OUT"
If the source has multiple audio tracks, normalize only a:0 and stream-copy the rest unless the user asked otherwise.
Pick the output codec from the input extension; default to wav for lossless intermediates, mp3/aac for delivery:
ffmpeg -hide_banner -y -i "$SRC" -af "$LOUDNORM" "$OUT"
Re-run a quick ebur128 pass on the output and confirm integrated is within ±0.5 LU of target and true-peak is at or below the ceiling:
ffmpeg -hide_banner -nostats -i "$OUT" -af 'ebur128=peak=true:framelog=quiet' -f null - 2>&1 | tail -25
Print a one-table summary:
Source : path/to/in.mp4
Target : YouTube (-14 LUFS / -1 dBTP)
Before : I=-19.2 LUFS, TP=-2.1 dBTP, LRA=8.3 LU
After : I=-14.0 LUFS, TP=-1.0 dBTP, LRA=7.9 LU
Output : path/to/in.normalized.mp4
linear=true keeps dynamics intact when the source already fits within the target LRA. Drop it (or omit) if you want loudnorm to compress to fit.working/ directory.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-editing@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin video-editing41 skills in this plugin
/agentic-editRun an agentic / LLM-driven cut-down on a long video — "make a 60-second highlight reel of this hour-long stream", "cut the boring parts from this lecture", "find the best moments in this footage". Wraps `video-use` (browser-use) by default; falls back to `VideoAgent` (HKU) for research-grade understanding. Both come from the shared uv venv set up by `deps-setup`. Outputs a cut-list (timestamps + reasons) and an optional rendered preview./audio-analysisExtract audio from a video (or analyze a standalone audio file) and report loudness — integrated LUFS, true peak (dBTP), loudness range — against a target like YouTube (-14 LUFS) or broadcast (-23 LUFS). Use when the user says "check loudness", "is this normalized", "extract the audio", "audio analysis", or "what LUFS is this". Read-only on the source — does not normalize./