Overview
TheEncoderProfile class configures how your compositions are exported. It handles video codecs, quality settings, and format-specific options for FFmpeg.
🎬 Standard Formats
H.264 MP4, VP9 WebM - Universal compatibility
🎯 Professional Formats
ProRes MOV, PNG Sequence - Maximum quality
Standard Formats
H.264 MP4 (Recommended)
Universal compatibility with excellent compression:- Node.js
- Python
VP9 WebM
Excellent compression for web delivery:- Node.js
- Python
Professional Formats
ProRes 4444 MOV
Highest quality for professional video editing:- Node.js
- Python
PNG Sequence
Frame-by-frame output for maximum quality:- Node.js
- Python
Transparent Formats
Perfect for further compositing or overlaying on other content:Transparent WebM
- Node.js
- Python
Specialized Formats
Stacked Video
Debug format showing video and mask:- Node.js
- Python
Quality Guidelines
CRF Values (Constant Rate Factor)
Lower CRF = Higher quality, larger files:Encoding Presets
Balance between speed and compression efficiency:Platform-Specific Recommendations
Social Media
- Instagram
- TikTok
- YouTube
Professional Workflows
- Node.js
- Python
Custom Arguments
Access the raw FFmpeg arguments for advanced use:- Node.js
- Python
Encoder Properties
- Node.js
- Python
Complete Export Example
- Node.js
- Python
Format Comparison
Advanced Settings
Custom H.264 Settings
- Node.js
- Python
File Size Estimation
Approximate file sizes for different settings (30-second 1080p video):Troubleshooting
Encoding Errors
Common encoding issues and solutions:Unknown Codec
Out of Memory
- Reduce video resolution
- Use faster preset
- Process shorter segments
Slow Encoding
Solutions:- Use faster preset (
fast,ultrafast) - Reduce quality (higher CRF value)
- Use fewer layers in composition
Quality Issues
Blocky/Pixelated Output
Solutions:- Lower CRF value (higher quality)
- Use slower preset for better compression
- Check source video quality
Large File Sizes
Solutions:- Increase CRF value (lower quality)
- Use VP9 instead of H.264
- Use faster preset (less compression efficiency)
Related Classes
- Composition: Video composition system
- Export Formats Guide: Complete export format guide
- Background: Background creation
- Positioning Guide: Layer positioning and sizing
