Remotion video
Build the video in code. The owner approves the idea and a storyboard before anything is built.
CRITICAL Remotion v4 rules
- Use
.tsx(not.ts) for files containing JSX. - Register compositions with
registerRoot+Composition. - Always pass
fpstospring():spring({ frame, fps, from: 0.8, to: 1 }). - Get fps from
useVideoConfig():const { fps } = useVideoConfig(). - Render by composition name:
npx remotion render MyVideo out/video.mp4.
Workflow
-
Brief. Confirm the goal, audience, length, aspect ratio and call to action. If a product or company is featured, collect its brand data first — colors, logo, tagline, screenshots — by fetching the public website. Do not invent a brand palette.
-
Storyboard. Break the video into scenes with durations, on-screen copy and transitions. Present it and wait for approval before writing components.
-
Scaffold.
npx --yes create-video@latest my-video --template blank cd my-video && npm install lucide-reactFix
package.jsonscripts to use Remotion directly (replace anybunreferences):{ "scripts": { "dev": "npx remotion studio", "build": "npx remotion bundle" } } -
Build scenes. One component per scene. Establish a persistent animated background layer outside scenes, then vary pacing (2–3 s punchy, 4–5 s dramatic). Open with a high-impact hook, carry the content in the middle, and close with an intentional, resolved ending. Use an icon library such as
lucide-react— no hand-rolled SVG icons. -
Assets. Put user assets, generated media and scraped brand assets under
public/. Define durations in the composition and vary them deliberately. -
Preview. Start Remotion Studio in the background and give the user a preview URL (a local port or a tunnel). The user reviews live; edits hot-reload.
-
Render — only when the user explicitly asks to export.
npx remotion render CompositionName out/video.mp4
File structure
my-video/
├── src/
│ ├── index.ts # entry point
│ ├── Root.tsx # registerRoot + Composition definitions
│ ├── index.css # global styles
│ ├── MyVideo.tsx # main component
│ └── scenes/ # scene components
├── public/
│ ├── images/brand/ # scraped brand assets
│ └── audio/ # background music
├── remotion.config.ts
└── package.json
Troubleshooting
| Symptom | Fix |
|---|---|
Expected ">" but found "schema" | Use .tsx for JSX, not .ts |
useCurrentFrame() outside component | Call hooks only inside a component |
| Spring looks linear | Pass fps and use an easing/damping config |
| Missing fonts | Load Google or local fonts explicitly before measuring text |
For advanced domain rules — captions, audio timing, charts, 3D, transitions — use the companion
remotion-best-practices skill.
Inspiration & credit
This skill is an original, rewritten adaptation inspired by remotion-video-generator from
LeoYeAI/agent-master-skills and the remotion-video skill in
TechNomadCode/AI-Product-Development-Toolkit.
- Sources:
- License: MIT, LeoYeAI / TechNomadCode.
- No upstream source files are copied verbatim.
About this collection
This skill is part of Agent Video Skills, an open collection from the team behind Meltica — an AI promo-video platform for products, apps and local businesses. If you would rather use a finished workflow than assemble skills yourself, see meltica.ai · blog.