/avp-music-video:render-music-videofrom avp-music-video
Render an audio file (MP3/WAV/FLAC/M4A, e.g. a Suno song) into a branded music video MP4 with avp: background or cover art, animated waveform/spectrum/bars, logo, title and artist, optional burned-in karaoke lyrics, encoded as small as possible. Use when the user says "make a music video from this MP3", "render this song with our template", "audio to video", "visualizer video for this track", "make a YouTube/Shorts video of this song".
Ships in avp-music-video. 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.
Script location: see install-avp ("Script location"). If avp isn't installed, run install-avp first.
| Input | Default / where it comes from |
|---|---|
| Audio | required |
| Template | -t; else default_template in avp-brand.json; else waveform-center. Built-ins: waveform-center, spectrum-bars, logo-pulse, vertical-short (9:16). ls $ROOT/templates plus any avp-templates/ in the project. |
| Brand | --brand; else ./avp-brand.json, brand/avp-brand.json. None in the project and the user mentioned brand assets → run brand-kit first. |
| Title / artist | --title / --artist; else the audio's ID3/metadata tags; else file name / brand name. Suno MP3s usually carry the song title. Check the dry run. |
| Cover art | --cover; else art embedded in the audio (Suno embeds it). Used as the background when the brand has none. |
| Lyrics | --subs file --karaoke, see karaoke-lyrics |
| Size / aspect | template's own; `--size 1080p |
| Output | -o; default <audio-name>.<template>.mp4 next to the audio |
| Profile | -p small (AV1, default). Ask only if the video is going somewhere AV1 may not play (WhatsApp to older phones, smart TVs, older Apple devices): then compat or hevc. |
python3 "$ROOT/scripts/render.py" song.mp3 -t waveform-center --dry-run
--start at the chorus), then look at a frame:
python3 "$ROOT/scripts/render.py" song.mp3 -t waveform-center --preview 10 -p compat -o /tmp/preview.mp4
ffmpeg -v error -y -ss 5 -i /tmp/preview.mp4 -frames:v 1 /tmp/preview.png # Read the PNG
Check text legibility over the background, logo placement, and lyrics clearing the title. Show the user the frame. Skip the preview only if the user explicitly wants straight-to-final with a template they've already approved.--preview. Expect roughly real time for avp at 1080p30, plus the final encode (benchmark table below): about 3× the song length in total with the default AV1 on a 16-thread laptop. Both stages run at nice 10, so the desktop stays responsive. --nice 0 gives full priority; --threads 4 caps the encoder for a lighter footprint. Run long tracks in the background.-o said otherwise.avp renders a near-lossless intermediate (16 Mbps H.264). render.py then does one ffmpeg pass that burns lyrics and encodes with the chosen profile. The source audio is stream-copied when it is MP3/AAC/ALAC, so the song is never re-encoded; --reencode-audio forces AAC 192k.
| Profile | Codec | 30 s @1080p30, waveform template* | Encode time | Use when |
|---|---|---|---|---|
small (default) | AV1 (SVT) CRF 40, preset 8 | 9.3 MB, VMAF 96.3 | ~2.4× compat | YouTube, web, modern Android/iOS/desktop players |
smallest | AV1 CRF 44 | 7.2 MB, VMAF 95.2 | ~1.7× | as small as it gets while still clean |
compat | H.264 CRF 23, slow | 15.8 MB, VMAF 96.0 | 1× (about real time on a 16-thread laptop) | old devices, messengers or TVs that can't play AV1 |
hevc | H.265 CRF 28, medium | 10.5 MB, VMAF 93.9 | ~1.8× | players with HEVC but no AV1 (older iPhones/Macs) |
*From docs/encoding-benchmark.md. Visualiser video is expensive to compress because the waveform changes every pixel column every frame.
More levers when size matters most, in order of impact:
--size 720p is less than half the pixels of 1080p. Fine for phone-first sharing.--crf 30 with small (or --crf 40 with smallest) is visibly softer but still clean on a waveform over a blurred background.logo-pulse came out about 15% smaller than waveform-center. Not benchmarked beyond that.--fps: 24 fps saves only about 8%, because the waveform still changes every frame.avp produced no output → rerun with --keep-work. avp's logs are in <work>/cfg/audio-visualizer/log/; avp --verbose style detail is in render_*.log.unknown setting 'x' / 'y' not one of [...] → template typo; the message lists valid names/labels.scripts/avp_run.py (it does); calling avp directly loses the draw=full fix.What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/brand-kitDiscover a project's brand assets — logo, background art, brand colours, brand font — in a repository and save them as an avp-brand.json manifest that the music-video templates read. Use when the user says "use our brand assets", "find the logo in this repo", "set up branding for the music videos", "make a brand kit", or before the first render-music-video in a project that has no avp-brand.json yet./create-templateCreate or modify a music-video template for avp — the JSON layer spec (background, waveform/spectrum/bars, logo, title text, lyric placement) that render-music-video turns into a video. Use when the user says "make a new template", "change the layout", "move the logo", "different visualizer", "a template for Instagram/square", or wants a house style saved for reuse./Other plugins' skills for the same job
avp-music-video@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin avp-music-video