Video Codecs
Frame supports a comprehensive range of video codecs for different use cases, from web streaming to professional archival. This guide covers each codec’s characteristics, use cases, and recommended settings.Supported Codecs
- H.264 (libx264)
- H.265 (libx265)
- VP9 (libvpx-vp9)
- AV1 (libaom-av1)
- ProRes
H.264 / AVC
The most widely compatible video codec, supported on virtually every device and platform.Codec ID:libx264Use Cases
- General-purpose video conversion
- Maximum device compatibility
- Web streaming and social media
- Live streaming
- When file size efficiency matters more than cutting-edge compression
Preset Options
H.264 supports the full range of FFmpeg presets that control encoding speed vs compression efficiency:ultrafast- Fastest encoding, largest filessuperfast- Very fast encodingveryfast- Fast encoding, good for real-time applicationsfaster- Faster than defaultfast- Fast encodingmedium- Default - Balanced speed and compressionslow- Better compression, slower encodingslower- Even better compressionveryslow- Best compression, very slow encoding
Quality vs Speed Tradeoffs
- Fast presets (
ultrafast-fast): Encode 2-10x faster but produce 10-30% larger files - Medium preset: Optimal balance for most use cases
- Slow presets (
slow-veryslow): Produce 5-15% smaller files but take significantly longer
Container Compatibility
Works with: MP4, MKV, MOV, AVI, WEBMExample Configuration
H.264 is the best choice when maximum compatibility is required. Nearly every device manufactured in the last 15 years can decode H.264 hardware-accelerated.
When to Use Each Codec
Maximum Compatibility
Maximum Compatibility
Use H.264 (libx264)When you need the video to play on the widest range of devices, including:
- Older smartphones and tablets
- Smart TVs
- Game consoles
- Car entertainment systems
- Any device manufactured before 2016
- CRF: 23 (good quality)
- Preset: medium
- Container: MP4
Archival & Storage Efficiency
Archival & Storage Efficiency
Use H.265 (libx265)When you want to save storage space while maintaining high quality:
- Large video libraries
- 4K content archival
- NAS/server storage
- Personal media collections
- CRF: 18-22 (excellent quality)
- Preset: slow or slower
- Container: MKV or MP4
Web Streaming
Web Streaming
Use VP9For web-based video delivery:
- YouTube uploads
- Website embedded video
- Browser-based playback
- Royalty-free requirements
- CRF: 30-35
- Preset: medium
- Container: WebM
- Audio: Opus
Professional Editing
Professional Editing
Use ProResFor video editing workflows:
- Importing footage into editing software
- Color grading intermediate files
- VFX work
- Multi-generation editing (minimize quality loss)
Future-Proof Maximum Compression
Future-Proof Maximum Compression
Use AV1When you need the absolute smallest file size and have time:
- Long-term archival with maximum space savings
- Streaming platform requirements (YouTube, Netflix)
- Batch overnight processing
- Future-proofing content
- CRF: 28-32
- Be prepared for long encoding times
- Container: WebM or MP4
Codec Comparison Table
| Codec | Compression | Encoding Speed | Compatibility | Best For |
|---|---|---|---|---|
| H.264 | Good | Fast | Excellent | General use, compatibility |
| H.265 | Excellent | Slow | Good (2016+) | Archival, 4K video |
| VP9 | Excellent | Very Slow | Good (web) | Web streaming, YouTube |
| AV1 | Outstanding | Extremely Slow | Limited (2021+) | Maximum compression |
| ProRes | N/A (intra-frame) | Fast | Limited (editing software) | Professional editing |
See Also
- Hardware Acceleration - Speed up encoding with GPU acceleration
- Quality Settings - Understanding CRF and bitrate modes
- Advanced Options - Stream copy mode and additional codec options