/video-plugin:video-add-musicfrom video-plugin
Muxes a song under an MP4 video using ffmpeg, preserving chapters and copying the video stream without re-encoding. Detects the -map 0 trap and warns on length mismatch.
Ships in video-plugin. 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.
Read when SKILL.md points to them; scripts run unread.
Put a song under a video: the video stream is copied, the song encoded as AAC, and the video's chapters kept. The script runs the mux and then checks the result, because the obvious command produces a file that plays fine and is still wrong.
| Use this skill when... | Use something else when... |
|---|---|
| A finished video needs a song under it and its chapters must survive | Lyrics should be burned in as well — video-karaoke muxes the song itself |
| Previewing a beat glow with the song | Rendering the glow itself — video-beat-glow (--with-song) |
"${CLAUDE_SKILL_DIR}/scripts/add-music.sh" video.mp4 song.m4a out.mp4
It runs, then verifies:
ffmpeg -i video.mp4 -i song.m4a -map 0:v -map 1:a -c copy -c:a aac -b:a 192k -map_chapters 0 -movflags +faststart out.mp4
| Option | Effect |
|---|---|
--bitrate 192k | AAC bitrate |
--shortest | Cut the output at the shorter of song and video |
Output is KEY=VALUE lines (STREAMS, CHAPTERS_IN, CHAPTERS_OUT,
VIDEO_S, SONG_S, OUT_S) and STATUS=OK|WARN|ERROR with a REASON.
-map 0 Trap-map 0 instead of -map 0:v copies the input's chapter text track, and
the mp4 muxer also writes a new one from -map_chapters. The output then has
two bin_data streams (observed: av1 video, bin_data data, aac audio, bin_data data). The script fails on more than one data stream, and on a chapter count
that differs from the input's. To check a file by hand:
ffprobe -v error -show_entries stream=codec_type,codec_name -of csv=p=0 out.mp4
ffprobe -v error -show_chapters -of csv=p=0 out.mp4 | wc -l
The input video's own audio track is dropped.
A song shorter than the video leaves a silent tail; a longer one runs past the
last frame. Either way the script reports STATUS=WARN with the gap and does
not pad. Tell the user and let them choose to trim the video, use --shortest,
or leave it. Real case: a 231.44 s song under a 234 s video left a 2.56 s silent
tail.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/video-beat-glowBeat-synced edge glow for a video — beat tracking from a song, glow render, and a browser tuner page for the look. Use when making a video's edges pulse to music./video-chapters-youtubeMP4 chapters to YouTube description chapter lines (0:00 first, 3+ chapters, each 10 s+, short runs merged). Use when writing a video's YouTube description./video-frame-reviewReview a video render frame by frame around an event (beat, lyric change, cut) — full-resolution crops stacked into one image. Use when checking render timing or overlays./video-karaokeBurn word-timed karaoke lyrics into a video with the standalone karaoke CLI, from Suno's aligned lyrics. Use when adding sung lyrics with a hopping marker to a video./video-thumbnailYouTube thumbnail from a video frame — contact sheet of candidate frames, then a 16:9 crop at 1280x720 JPEG under 2 MB. Use when choosing a video's thumbnail./video-timeline-barChapter timeline bar under every frame and a title card crossfaded onto a video. Use when making a chaptered demo video seekable at a glance, or adding a title card.npx claudepluginhub laurigates/claude-plugins --plugin video-pluginOther plugins' skills for the same job