remotion
Installation
SKILL.md
Rendering
bun /root/code/render-video-modal.ts \
--entry-file src/index.ts \
--composition <CompositionId> \
--output output/video.mp4 \
--props '{"key": "value"}'
The script automatically:
-
Bundles the Remotion project locally
-
Uploads the bundle to R2
-
Submits to Modal GPU for rendering
-
Polls until complete, then copies the result back
-
Reuse the existing project — don't re-scaffold The Remotion project lives at /root/code/src/ with node_modules already installed. For new videos, write new compositions there directly. Never run npm install or bun install unless dependencies are actually missing.