remotion
Generate cinematic videos programmatically with React (Remotion), including animations, captions/subtitles, effects and rendering pipelines. Use for code-based video creation.
SKILL.mdpsk/data/skills/remotion/SKILL.md
GitHubRemotion — Programmatic Video
Build videos as code with React + Remotion.
Project structure
src/Root.tsx— registerCompositions (id, durationInFrames, fps, width/height).- Scenes as components; drive everything off
useCurrentFrame()andinterpolate()/spring()fromremotion. - Assets in
public/; dynamic content viadefaultProps/calculateMetadata.
Techniques
- Animation —
spring()for organic motion,interpolate(..., {easing})for transitions; sequence with<Series>or absolute frame math. - Captions — word/sentence timing JSON →
<Caption>component; styles: karaoke highlight, pop-in, bottom third. - Audio —
<Audio>,getAudioDurationInSecondsto sync scenes; ducking via volume functions. - Effects — masking, blur/shake transitions, particle overlays (canvas), Lottie layers.
- Templates — parameterize text, colors, media so one comp renders many videos.
Render
npx remotion studio # preview
npx remotion render MyComp out.mp4
npx remotion render MyComp out.mp4 --props='{"title":"..."}'
npx remotion lambda render ... # serverless scale
Rules
- 30/60fps; safe margins for captions; mobile-first 9:16 variants via separate comps.
- Keep every animation frame-pure (no side effects in render).
Output
Runnable Remotion project + render commands + parameter table.