Overview
The VideoBGRemover API offers multiple background options for different use cases. This guide covers all formats and shows you how to use transparent videos in your own projects.π¨ Color Backgrounds
Replace background with solid colors using hex codes
β¨ Transparent Videos
Create videos with transparency for custom overlays
Quick Navigation
π¨ Color Backgrounds
π¨ Color Backgrounds
Color Backgrounds
Perfect for simple background replacement with solid colors. No additional processing needed - just specify a hex color code.Simple Color Replacement
Replace the background with any solid color using hex codes:Popular Colors
Transparent Formats
For advanced compositing, custom backgrounds, and professional workflows. These formats preserve transparency for maximum flexibility. What are transparent formats? Video files that preserve the alpha channel (transparency) so you can overlay them on custom backgrounds. However, they can be tricky to use - WebM works in Chrome but not all browsers, MOV works in Safari but requires specific codecs. When you need custom backgrounds or advanced compositing, use transparent formats:Format Comparison
WebM VP9 (Recommended)
Best for: Easy overlay workflows, API usage, small file sizesUsing WebM Videos in Your Projects
- FFmpeg
- Python
-c:v libvpx-vp9 decoder to preserve alpha channels!MOV ProRes (Professional)
Best for: Professional video editing (Final Cut Pro, Premiere Pro)Using MOV Videos
- FFmpeg
- Python
PNG Sequence
Best for: GIF creation, frame-by-frame editing, maximum qualityUsing PNG Sequences
- FFmpeg
- Python
Pro Bundle (Professional Workflow)
Best for: Unscreen workflows, ZIP handling, maximum flexibilityPro Bundle Contents
The Pro Bundle ZIP contains:color.mp4- Normalized foreground videoalpha.mp4- 8-bit grayscale matteaudio.m4a- Audio track (if present)manifest.json- Technical specifications
Using Pro Bundle
- FFmpeg
- Python
Stacked Video (Universal Format)
Best for: Universal compatibility, single file handling (top: video, bottom: mask)Stacked Video Structure
- Top Half: Original video (1080x1080)
- Bottom Half: Grayscale mask (1080x1080)
- Total Dimensions: 1080x2160 (2:1 aspect ratio)
Using Stacked Videos
- FFmpeg
- Python
Advanced Positioning & Scaling
Positioning Options
- FFmpeg
- Python
Format Recommendations
Choose Your Format
π Web Applications & APIs
π Web Applications & APIs
Use WebM VP9 - Small files, excellent quality, but requires VP9 decoderFallback: Use Stacked Video if VP9 decoder unavailable
π¬ Professional Video Editing
π¬ Professional Video Editing
Use MOV ProRes - Highest quality, works with all professional editors
π§ Custom Processing Workflows
π§ Custom Processing Workflows
Use Stacked Video - Universal compatibility, perfect for analysis
π― Frame-by-Frame Work
π― Frame-by-Frame Work
Use PNG Sequence - Maximum quality, individual frame access
β‘ Advanced Workflows
β‘ Advanced Workflows
Use Pro Bundle - Complete separation of color, alpha, and audio
Testing Your Setup
Before processing videos, test your FFmpeg installation:- Test WebM Support
- Python Test
Common Issues & Solutions
WebM Transparency Not Working
Problem: WebM video appears opaque instead of transparent Solution: Use the correct decoderTiming Synchronization Issues
Problem: Video and background donβt sync properly Solution: Normalize timestampsLarge File Sizes
Problem: MOV ProRes files are too large Solutions:- Smallest files: Use WebM format (10-50x smaller than MOV ProRes)
- Universal compatibility: Use Stacked Video format (good balance of size and compatibility)
Complete Example Project
Hereβs a complete example showing how to process a video and overlay it on a custom background:- Bash Script
- Python Script
