Video files are massive. A single minute of uncompressed 1080p video at 30fps requires about 10 GB of storage. That's why video compression is essential—it makes streaming, downloading, and storing video practical. But understanding the jargon around video compression (codecs, containers, bitrates, CRF) can be overwhelming. This guide breaks it down into clear, actionable knowledge.
The Basics: Why Videos Need Compression
Video is essentially a series of images shown rapidly in sequence. At 30 frames per second, that's 1,800 images per minute. Without compression, storing or transmitting video would be impractical.
Video compression works by:
- Removing redundancy: Most frames share much of the same content with neighboring frames. Compression stores only what changes.
- Reducing precision: Small color differences that humans can't perceive are simplified.
- Mathematical transforms: Complex algorithms convert pixel data into more compact representations.
Containers vs. Codecs: What's the Difference?
Containers (File Formats)
The container is the file format—the "box" that holds your video and audio streams together. Common containers include:
- MP4 (.mp4): The universal standard. Works everywhere.
- MOV (.mov): Apple's format. Similar to MP4 but with better macOS integration.
- MKV (.mkv): Open format supporting multiple audio tracks and subtitles.
- WebM (.webm): Optimized for web browsers. Used by YouTube.
- AVI (.avi): Legacy format. Large files, limited features.
Codecs (Compression Algorithms)
The codec is the algorithm that compresses and decompresses video data. A container can hold video encoded with different codecs:
H.264 (AVC)
The industry workhorse. Excellent compatibility across all devices, browsers, and platforms. Good compression efficiency. The safe choice for maximum compatibility.
H.265 (HEVC)
The successor to H.264. About 50% smaller files at the same quality, but slower to encode and less compatible. Many browsers and devices now support it, but not all.
VP9
Google's royalty-free codec. Similar efficiency to H.265. Used by YouTube. Good browser support but limited outside of web contexts.
AV1
The newest codec, backed by a consortium including Google, Netflix, and Amazon. About 30% more efficient than H.265. Slow to encode but excellent for streaming. Growing support.
Understanding Bitrate
Bitrate measures how much data is used per second of video, typically in Mbps (megabits per second) or kbps (kilobits per second). Higher bitrate = more data = better quality = larger files.
Constant Bitrate (CBR) vs. Variable Bitrate (VBR)
CBR uses the same bitrate throughout the video. Simple but inefficient—a static scene gets the same bitrate as an action sequence. Useful for streaming where consistent bandwidth is needed.
VBR adjusts bitrate based on scene complexity. Allocates more data to complex scenes and less to simple ones. Better quality-to-size ratio for most uses.
Recommended Bitrates by Resolution
H.264 Encoding (Standard)
H.265/HEVC (More Efficient)
Quality Settings: CRF Explained
Many encoders use CRF (Constant Rate Factor) instead of bitrate. CRF targets a specific quality level and adjusts bitrate automatically. Lower CRF = higher quality = larger files.
| CRF Value | Quality Level | Use Case |
|---|---|---|
| 18 | Visually lossless | Archival, master copies |
| 20-22 | High quality | Local playback, Blu-ray-like |
| 23 | Default (balanced) | General use |
| 24-26 | Good quality | Web streaming, social media |
| 28-30 | Acceptable | Mobile, bandwidth-limited |
| 30+ | Low quality | Previews, thumbnails |
Platform-Specific Recommendations
YouTube
- Container: MP4
- Codec: H.264 (YouTube re-encodes anyway)
- Bitrate: Upload at high bitrate (1080p: 15+ Mbps)
- Audio: AAC 320 kbps or higher
Vimeo
- Accepts H.264 and H.265
- Supports higher bitrates than YouTube
- 1080p: 10-20 Mbps recommended
Instagram/TikTok
- Container: MP4
- Codec: H.264
- Resolution: 1080x1920 (vertical)
- Bitrate: 3.5-5 Mbps is sufficient (they compress heavily)
Twitter/X
- Container: MP4
- Codec: H.264
- Max resolution: 1920x1200 or 1200x1900
- Max file size: 512 MB
Compress Videos Instantly
Use our free Video Compressor to reduce file sizes without losing quality. Supports all major formats.
Open Video CompressorCommon Compression Mistakes
Re-encoding Already Compressed Video
Each encoding pass loses quality. Avoid editing compressed video if possible—work with original footage or proxy files, then export once at the end.
Resolution Higher Than Source
Upscaling 720p footage to 1080p doesn't add quality—it just makes files bigger. Always match or reduce resolution, never increase it.
Wrong Codec for the Platform
Using H.265 when sharing with friends who have older devices or browsers can lead to playback issues. Know your audience and choose accordingly.
Bitrate Overkill
For web delivery, 50 Mbps for 1080p is wasteful. Most viewers won't notice above 10-12 Mbps, and you're just making files slower to load.
Summary: Quick Reference
- Maximum compatibility: H.264 + MP4
- Best efficiency: H.265/HEVC or AV1
- Web streaming: H.264 or VP9, VBR encoding
- Archival: High bitrate or CRF 18, lossless if possible
- Social media: H.264, platform-specific resolution, moderate bitrate
Video compression is a balance between file size, quality, and compatibility. Understanding these trade-offs lets you make informed decisions rather than blindly accepting defaults. Start with H.264/MP4 for broad compatibility, and explore more efficient codecs as your needs evolve.