/media-processing:making-remotion-videosfrom media-processing
Creates MP4 videos from React components using Remotion, rendered headlessly with Chromium. Covers scaffolding, frame-pure composition, still-frame review, and product demo reels with phone mockups from Playwright captures.
Ships in media-processing. 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.
Remotion renders a React component once per frame in headless Chromium and
encodes the frames with ffmpeg. The DOM and CSS are the drawing API, so type,
layout, screenshots and UI mockups come out sharp and on-brand with little code.
Each frame is a pure function of useCurrentFrame().
Before building, name the route and why (Oskar's standing steer, memory 06886186). Remotion fits when the video is mostly type, layout, product UI and 2D motion. It is not the cheapest route for particle fields or generative art.
| Situation | Use instead |
|---|---|
| Hand-drawn character animation, p5.js, painterly frames | animating-with-code |
| AI-generated footage (Veo, Gemini video) | creating-video |
| Trim, transcode, concatenate or caption existing footage | processing-video |
| A comic or storyboard drawn from existing footage | drawing-video |
| A looping in-page animation the user views in a browser | an HTML artifact; no render needed |
Abandon Remotion mid-run when a frame takes more than about 5 s to render after the bundle is built. That points to heavy WebGL or canvas work, which a pre-rendered frame sequence or a native ffmpeg/numpy route does better.
@remotion/* packages at one exact
version, at least two weeks old):
bash /mnt/skills/user/making-remotion-videos/scripts/scaffold.sh /path/to/project
It writes package.json, tsconfig.json, src/index.ts, a hello Root.tsx,
copies the phone and scroll components into src/, and runs npm install
(about 40 s).@remotion/google-fonts here: see failure
modes below.
cd /path/to/project
python3 /mnt/skills/user/making-remotion-videos/scripts/vendor_fonts.py "Instrument Serif:ital@0;1" "DM Sans:wght@400;700"
Paste the printed loadFont() calls into a theme.ts that every scene imports.bash /mnt/skills/user/making-remotion-videos/scripts/render.sh still Main out/probe.png 45
TransitionSeries from @remotion/transitions. Each transition overlaps
its neighbours, so the total is the sum of durations minus the transition
lengths. Compute that in code and export it to <Composition>.for f in 40 100 260 530; do bash .../render.sh still Main out/s$f.png $f; done
montage out/s*.png -tile 4x1 -geometry 360x640+6+6 out/sheet.png
Fix layout collisions, illegible type and dead frames here: a still costs
about 3 s and a full render minutes.bash .../render.sh video Main out/reel.mp4
useCurrentFrame() through interpolate,
spring or plain arithmetic. No useState timers, no setTimeout, no
CSS animation/transition. Remotion seeks frames in any order across
parallel tabs, so a CSS animation renders as a random phase or not at all.random(seed) in remotion, never Math.random().staticFile() from public/ with <Img>, <Video>
(@remotion/media) or <Audio>. These hold the frame until loaded. A plain
<img> does not, and the frame renders blank.@remotion/fonts) wraps in
delayRender() / continueRender(), or goes through calculateMetadata.extrapolateLeft/Right: "clamp" to every interpolate that should hold
its end value. The default extrapolates, so a fade continues past 0 and 1.For a reel of a real web app inside a phone, follow references/product-reel.md. It covers capturing the live UI at phone size with Playwright, stepping live animations frame by frame with Playwright's fake clock, the phone frame, sticky headers, tap indicators and the timeline the aeyu.io reel used.
Mix the voiceover outside Remotion into one WAV the length of the
composition. Put each line at its slot start, apply linear gain only (peaks at
about −2 dBFS; never loudnorm, see below), and play it with <Html5Audio src={staticFile(vo)} /> at the root. Pass the
track as a prop (--props='{"vo":"vo/x.wav"}') so voice A/B tests reuse one
composition. Write the script as lines with start/end slots taken from the
scene timeline, then size each line to its slot: words ÷ slot seconds × 60
should be 140–180 wpm.
invoking-gemini generate_speech, prebuilt or designed voice, style
string) took 2.5 min for 27 takes and had the most varied pitch. OmniVoice
(k2-fsa, the engine behind VoiceStudio) runs locally in the jail at about 29×
slower than real time on 4 CPU cores. Its tag-based voice design (gender,
age, pitch, accent) cannot ask for energy and came out flat. Cloning a
lively 6 s reference worked better, and its per-line duration argument
sets pace exactly.[EY1 Y UW0].rubberband=tempo=R:formant=preserved:pitchq=quality:window=short, and only
within ±4%.ffmpeg -i out/reel.mp4 -af silencedetect=noise=-40dB:d=0.25 -f null -
lists the speech onsets, which should match the slot starts. -af ebur128=peak=true
gives integrated loudness and peak.loudnorm to −16 adds about 5 dB of limiting. Oskar heard it
as "amplified too much". Linear gain to a −2 dBFS peak landed at about
−22 LUFS and kept the speech's dynamics.ffprobe -v error -show_entries stream=codec_name,width,height,pix_fmt,r_frame_rate:format=duration -of default=nw=1 out/reel.mp4
ffmpeg -v error -i out/reel.mp4 -vf "select='not(mod(n\,90))',scale=270:-1,tile=8x2" -frames:v 1 out/strip.png
Expect h264, the composition size, yuv420p, the composition fps and a duration
of total frames divided by fps. Then read the strip. A bad success is a
file that probes correctly but has blank screens where an <img> raced its
load, fallback serif type where a font failed, or a scene that never appears
because a duration constant was wrong. Only looking at frames catches these.
ERR_CERT_AUTHORITY_INVALID on fonts.gstatic.com, then TypeError: Failed to fetch, and the render aborts → the render browser does not trust the
egress proxy's CA, though curl does. Vendor fonts with vendor_fonts.py.
The same applies to any HTTPS asset fetched during render: download it into
public/ first. Diagnosed 2026-10-29 on the aeyu.io reel. Every still failed
until fonts went local."browserExecutable" was specified as ... but the path doesn't exist →
the Playwright headless shell lives at
/opt/pw-browsers/chromium_headless_shell-<rev>/chrome-headless-shell-linux64/chrome-headless-shell,
with -linux64 in the directory name. render.sh globs for it. Without the
flag Remotion tries to download Chrome Headless Shell.yuvj420p → the default for the probe render. Some
players and uploaders mishandle full-range video. render.sh passes
--pixel-format=yuv420p --color-space=bt709.TransitionSeries overlaps. Derive it.4 cores, 15 GB. The bundle step takes about 15 s per invocation, including for stills. The 35.5 s aeyu reel (1065 frames, 1080×1920, four full-page screenshots and 285 captured frames) rendered in 79 s at the default concurrency of 4, to a 5.5 MB file at crf 20.
CHANGELOG.md (opens in a new tab)assets/capture_ui.cjs (opens in a new tab)assets/components/FrameSequence.tsx (opens in a new tab)assets/components/Phone.tsx (opens in a new tab)assets/components/ScrollShot.tsx (opens in a new tab)assets/components/Tap.tsx (opens in a new tab)references/narration.md (opens in a new tab)references/product-reel.md (opens in a new tab)scripts/render.sh (opens in a new tab)scripts/scaffold.sh (opens in a new tab)scripts/vendor_fonts.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 skills in this plugin
/animating-with-codeMake a short animated film by writing the drawing code yourself: every frame a pure function of time, rendered headlessly to MP4. Covers storyboarding with a per-shot timing sheet of viewer 'reads', blocking key poses as stills, the contact-sheet / frame-strip / crop review loop, and the hand-painted character kit JohnHeibel/ClaudeAnimationBase (p5.js + p5.brush, the Clawd mascot, 31 emotions). Use for 'animate', 'make a cartoon', 'animated short', 'motion graphic', 'Clawd video', 'p5 animation', or any video request where Claude draws the frames. Not for AI-generated footage (creating-video), transcoding or trimming existing video (processing-video), or a comic from footage (drawing-video)./converting-filesConvert a file from one format to another inside the container — documents, images, audio, video. Routes to the right engine (pandoc, LibreOffice, ImageMagick, ffmpeg) by format pair. Triggers on "convert X to Y", "turn this docx into a pdf", "make a gif from this mp4", "md to docx", "batch-convert these images", or any single-file or batch format change where the source and target extensions differ. NOT for editing content (use docx/pptx/xlsx/pdf skills), creating files from scratch, or reading a file you already have in context./creating-videoCreate video from prompts by overseeing multi-clip AI generation end to end: write a shot list, generate each scene with Gemini Omni Flash (via the Cloudflare AI Gateway), review the results, and assemble them into a finished cut. Use when the user asks to make/generate a video, a short film, an animatic, or a multi-scene clip from a script or idea; when they mention Omni, Veo, text-to-video, or image-to-video; or when acting as the editing/director agent over generated footage. Triggers on 'make a video', 'generate a clip', 'short film', 'video from this script', 'turn this into a video', 'omni', 'veo', 'text to video', 'storyboard to video'. For transcoding/trimming/merging/GIF/subtitles use processing-video; for reading or summarizing existing video content use parsing-video./detecting-tips-zonesText-prompted image zone detection using TIPSv2 B/14 on CPU. Produces `focus_targets` / `focus_edges` bbox lists from natural-language labels, ready to feed into `svg-portrait-mode`. Use when you want automatic foreground/background separation from prompts like "dog face" + "wooden floor" instead of hand-annotating bboxes./drawing-videoTurn a short video into a narrated comic strip. Use when the user uploads a video (.mov/.mp4/etc.) and asks to make a comic from it, narrate it, draw it, Attenborough it, storyboard the clip, or otherwise wants a stills-plus-narration comic strip derived from footage. Covers probing and extracting frames, GROUNDING the actual storyline (native Gemini video parse or frame reading), composing narration in a chosen voice, generating comic panels with Gemini image models anchored to the real stills, QA-ing the panels, and compositing a titled strip. Do NOT use for plain video transcoding or trimming (that is processing-video) or for original illustration from a text prompt (that is invoking-gemini)./drawing-with-pycairoDraws images, PDF/SVG vector files and animation frames with pycairo, and supplies what cairo lacks: shaped text for Arabic, Indic and other scripts, text along curves, blur/glow/drop shadows, path booleans, stroke-to-outline, and Gouraud-shaded 3D. Use when writing pycairo or cairo drawing code, generative art, custom diagrams or posters rendered in Python, or when cairo output needs non-Latin text, soft effects, merged shapes or shaded surfaces.npx claudepluginhub oaustegard/claude-skills --plugin media-processingOther plugins' skills for the same job