Remotion Setup
Initializes a new Remotion project or adds Remotion to an existing React project with proper configuration.
Usage
# Create new Remotion project (interactive)
/remotion-max:setup
# Create new project with specific name
/remotion-max:setup --new-project my-video
# Add Remotion to existing project
/remotion-max:setup --add-to-existing
# Quick setup with defaults
/remotion-max:setup --quick
Arguments received: $ARGUMENTS
What This Command Does
For New Projects
- Checks environment: Verifies Node.js and npm versions
- Creates project: Runs
npm init videoor equivalent - Configures tooling: Sets up TypeScript, ESLint
- Installs extras: Optional packages (Tailwind, Three.js, Lottie)
- Sets up structure: Creates recommended directories
For Existing Projects
- Installs Remotion: Adds core packages
- Adds scripts: Updates package.json
- Creates Root.tsx: Sets up composition registry
- Configures remotion.config.ts: Basic configuration
- Updates tsconfig: TypeScript settings
Project Structure Created
my-video/
├── src/
│ ├── Root.tsx # Composition registry
│ ├── compositions/ # Video compositions
│ │ └── Main.tsx
│ ├── components/ # Reusable components
│ ├── utils/ # Helper functions
│ └── assets/ # Media files
│ ├── images/
│ ├── videos/
│ └── audio/
├── public/
├── package.json
├── remotion.config.ts
└── tsconfig.json
Optional Packages
The command can install:
Essential:
remotion- Core library@remotion/cli- Command-line toolsreactandreact-dom- React
Media:
@remotion/media-utils- Audio/video utilities@remotion/captions- Subtitle support
3D & Animation:
@remotion/three- Three.js integration@remotion/lottie- Lottie animations
Styling:
tailwindcss- Utility CSSautoprefixerandpostcss- CSS processing
Cloud:
@remotion/lambda- AWS Lambda rendering
Configuration Files
package.json Scripts
{
"scripts": {
"start": "remotion studio",
"build": "remotion render Main out/video.mp4",
"upgrade": "remotion upgrade",
"server": "remotion server"
}
}
remotion.config.ts
import {Config} from '@remotion/cli/config';
Config.setVideoImageFormat('jpeg');
Config.setOverwriteOutput(true);
Config.setConcurrency(50);
Config.setCodec('h264');
tsconfig.json
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"jsx": "react-jsx",
"strict": true
}
}
Interactive Setup Flow
When run without flags, the command asks:
New or existing project?
- Create new
- Add to existing
Project name?
- For new projects
Additional packages?
- Tailwind CSS
- Three.js
- Lottie
- Captions
Video defaults?
- Resolution (1920x1080, 1280x720, etc.)
- FPS (30, 60)
- Duration
Verification Steps
After setup completes:
- Dependencies installed
- Scripts available
- TypeScript configured
- Studio runs:
npm start - Can render:
npm run build
Examples
New Project with Tailwind
/remotion-max:setup --new-project social-media-video
# When prompted:
# - Add Tailwind CSS? Yes
# - Add Three.js? No
# - Resolution? 1080x1920 (vertical)
# - FPS? 30
Add to Existing Next.js Project
/remotion-max:setup --add-to-existing
# Detects Next.js, configures:
# - Adds Remotion packages
# - Creates src/remotion/ directory
# - Updates tsconfig
# - Adds separate Remotion scripts
Troubleshooting
The command handles:
- Node version too old: Suggests upgrade
- Port conflict: Uses alternative port
- TypeScript errors: Fixes tsconfig
- Missing dependencies: Installs automatically
After Setup
Run these to verify:
npm start # Opens Remotion Studio
npm run build # Renders test video
Then you can:
- Explore the studio UI
- Modify compositions
- Add your own components
- Start building your video!
Converted and distributed by TomeVault — claim your Tome and manage your conversions.