/peak-media:video-assemblefrom peak-media
Composites rendered plates onto a narration spine, checks plate cuts land in silent gaps, remuxes music and SFX stems without re-encoding video, appends brand outro, and exports final MP4.
Ships in peak-media. 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.
Stages 7–9 of the plate factory: composite → music, then SFX → export. Input is a video project folder (see the layout below) whose plates are already rendered. Two entry points:
node "${CLAUDE_PLUGIN_ROOT}/skills/video-assemble/scripts/assemble.mjs" <project> — the whole stage.node "${CLAUDE_PLUGIN_ROOT}/skills/video-assemble/scripts/remux-audio.mjs" <video.mp4> -o <out.mp4> --music … --sfx … — one audio pass on a rendered MP4.Run either with --help for every flag. Expected failures are one line naming the fix.
<video>/
plates.json # fps, width, height, spine, brand, plates[] (v1 contract)
spine/manifest.json # narration spine (+ spine/narration.wav), or spine/beatgrid.json
renders/plates/<id>.mp4 # one render per plate, exactly durationMs, plates.json size
audio/music.wav audio/sfx.wav # optional stems, timeline-aligned from 0
review/review.mp4 # written: plates on the spine, narration at -16 LUFS
review/review-mix.mp4 # written when stems are given (picture copied from review.mp4)
review/assemble.json # written: cuts, levels, outro, final spec checks
renders/outro-<key>.mp4 # written: cached brand outro render
out/final.mp4 # written: spine + outro, delivery spec checked
Check the inputs. assemble validates plates.json, the spine and the brand pack, then
every renders/plates/<id>.mp4: it must exist, match the plates.json size, and last
durationMs ±1 frame. A failure names the plate; re-render only that plate.
Composite (stage 7). Run assemble <project> with no stems first. It writes
review/review.mp4 with the narration at −16 LUFS (a beat grid gets a silent AAC track),
then runs check-cuts --min-silence-ms 300 at every plate boundary (DEC-13). If a cut is
not in silence it exits 1 with the timecode, e.g. cut not in a ≥300 ms silence at 0:06.500 (p1-hook|p2-table: …). Fix the timing at the source — re-time that spine beat or move the
plate boundary into the gap — never by trimming audio here.
Review the picture. Make a contact sheet of review/review.mp4
(lib/verify/contact-sheet.mjs --every 1s) and Read it.
Music pass, then SFX pass (stage 8). Audio never forces a re-render. Each pass starts
from the narration-only review/review.mp4 and is a remux (video stream copied, md5
unchanged):
remux-audio review/review.mp4 --music audio/music.wav -o review/review-music.mp4
remux-audio review/review.mp4 --music audio/music.wav --sfx audio/sfx.wav -o review/review-mix.mp4 --levels review/levels.json
Levels (the same flags on assemble):
| Flag | Default | Meaning |
|---|---|---|
--narration-lufs | −16 | narration loudness (always levelled; never time-stretched) |
--music-lufs | −28 | music loudness under the voice, about 12 dB below the narration: audible without competing |
--duck-db | 6 | how much louder the music is between lines than under the voice (it ducks 150 ms before each line and recovers over 350 ms; pauses under 500 ms stay ducked). --no-duck = 0 |
--sfx-lufs | −20 | loudness of each SFX hit (silence between hits does not count) |
--sfx-db | 0 | extra trim on the SFX stem after --sfx-lufs |
A true-peak limiter at −1.5 dBFS guards the mix. The levels report gives each stem's
LUFS, the mix LUFS and true peak, and the measured music level under the voice
(belowVoiceDb, expect about 12). If the music fights the voice, lower --music-lufs;
if it swells too much between lines, lower --duck-db. The user listens and approves the levels — that
is the stage-8 gate; don't skip it.
remux-audio refuses an already-mixed MP4 as the narration source (pass --narration
if you really mean it).
Export (stage 9). assemble <project> --music audio/music.wav --sfx audio/sfx.wav [--export 1080p60] repeats the cut check, remuxes the stems, appends the brand outro
(rendered once with HyperFrames and cached by the pack's bytes; --rerender-outro
forces it, --outro <mp4> supplies one) and writes out/final.mp4. It is checked with
probe-spec: H.264 High, yuv420p, AAC 48 kHz, faststart, the export size and fps, and
duration = spine totalMs + outro durationMs ±1 frame.
The outro is rendered at the export fps. --export 1080p60 from plates rendered below
60 fps (F1 is 30) scales and duplicates frames: the file is 60 fps but plate motion
stays 30 fps, and assemble prints a note saying so. For true 60 fps motion set "fps": 60
in plates.json and re-render the plates (render-plate renders at plates.json fps).
Final contact sheet. Sheet out/final.mp4 and Read it: the last frames must show the
brand outro.
--music/--sfx the final carries narration only.music-rules.md for what to pick and its levels.index.html is copied to the top of
a temp dir, the whole brand pack to <dir>/brand/, and the locally installed GSAP to
<dir>/vendor/gsap.min.js (DEC-09). So an outro loads brand/tokens.css,
brand/logo.svg, brand/fonts/… and vendor/gsap.min.js — never ../ paths or a CDN.out/final.mp4 first, so a failed run never leaves a stale final.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-assembly, compositing, audio-remux, ffmpeg, plate-factory
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin peak-media6 skills in this plugin
/plate-factoryMakes a faceless motion-graphics video from a brief, end to end: brief → script → spine
(narration or beat grid) → plate list → storyboard stills → plates → composite → music and
SFX → out/final.mp4. Runs stages 0–9 in order, each with a gate: the user approves the brief,
script, plate list, storyboard and mix; checks gate the rest. A thin orchestrator over
video-spine, video-plates, video-capture and video-assemble.
Triggers on: "make a video", "make an explainer video", "plate factory", "turn this brief into
a video", "motion-graphics video from this page", "faceless video", "/plate-factory".
/video-captureCaptures a live web page in real time while a storyboard drives it (clicks, typing, scrolling,
slide changes), with captions and a visible cursor, and writes an MP4 plus a take manifest. Use
it for app demos, site tours and web slide decks, on its own or as the `live` plates of a
plate-factory video (timed to the spine's narration). No TTS here: the spine owns the voice.
Triggers on: "record this web app", "screen-capture the site", "capture a demo of", "make a
captioned demo", "record the deck", "capture the live plates", "tour this page".
/video-platesBuild and render motion and slide plates for a peak-media video — one HyperFrames composition per plates.json entry, rendered alone to renders/plates/<id>.mp4 at the planned duration, in the brand pack's tokens. Use for stages 4–6 of plate-factory (storyboard stills, pipeline test, build plates), to re-render one plate after a fix, or to rebrand every plate. Not for live (screen-captured) plates — that is video-capture.Other plugins' skills for the same job