← Back to Blog Video

Video Compression Explained: Codecs, Bitrates, and Quality

Published January 8, 2025 · 8 min read

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:

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:

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.

Universal support Fast encoding Streaming standard

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.

50% smaller files 4K/8K optimized Slower encoding

VP9

Google's royalty-free codec. Similar efficiency to H.265. Used by YouTube. Good browser support but limited outside of web contexts.

Royalty-free YouTube standard Web-focused

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.

Best compression Royalty-free Future standard
Pro Tip: When in doubt, use H.264 in an MP4 container. It's not the most efficient, but it works everywhere. Use H.265 when you control the playback environment (like your own app) and need smaller files.

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)

1080p (30fps) 8-12 Mbps
1080p (60fps) 12-15 Mbps
4K (30fps) 35-45 Mbps
4K (60fps) 53-68 Mbps
720p (30fps) 5-7.5 Mbps

H.265/HEVC (More Efficient)

1080p (30fps) 4-6 Mbps
1080p (60fps) 6-8 Mbps
4K (30fps) 15-25 Mbps
4K (60fps) 25-35 Mbps

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

Vimeo

Instagram/TikTok

Twitter/X

Compress Videos Instantly

Use our free Video Compressor to reduce file sizes without losing quality. Supports all major formats.

Open Video Compressor

Common 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

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.