What is Video Composition?
Video composition lets you layer transparent videos with custom backgrounds, effects, and positioning to create professional-looking videos. This happens locally on your machine using FFmpeg - no API calls or credits required.💻 Local Processing
FFmpeg-powered: Runs on your machine, no internet required
🆓 No Credits Used
Free operations: Composition doesn’t consume API credits
🎬 Professional Quality
Production-ready: Export in H.264, ProRes, WebM, PNG sequences
🎯 Precise Control
Pixel-perfect: Position, scale, and time everything exactly
Prerequisites
Before you can create compositions, you need:Transparent Videos
Videos with removed backgrounds (from background removal)
FFmpeg Installed
FFmpeg must be available in your system PATH (installation guide)
SDK Installed
Node.js or Python SDK (installation guide)
How It Works
Quick Example
Here’s a complete composition workflow:Key Concepts
Backgrounds
Create the foundation for your composition:- Color backgrounds: Solid colors using hex codes
- Image backgrounds: Static images (automatically looped)
- Video backgrounds: Dynamic video backgrounds
- Empty backgrounds: Transparent canvas for overlays
Layers
Stack multiple transparent videos:- Positioning: Use anchors (CENTER, TOP_LEFT, etc.) with pixel offsets
- Sizing: Fit, cover, exact pixels, or percentage of canvas
- Effects: Opacity, rotation, cropping
- Timing: Control when layers appear and disappear
Export Formats
Render your final video:- H.264 MP4: Universal compatibility, good compression
- VP9 WebM: Web-optimized, excellent compression
- ProRes MOV: Professional editing, highest quality
- PNG Sequence: Frame-by-frame work, maximum quality
Composition Types
Simple Replacement
Replace video background with a solid color or image:Multi-Layer Composition
Layer multiple videos with different positioning:Timed Sequences
Control when layers appear and disappear:Requirements
- FFmpeg: Must be installed and available in PATH
- Transparent videos: From background removal or other sources
- System resources: Composition happens locally on your machine
