Video Compression: Finding the Balance Between Quality and File Size

A single minute of uncompressed 1080p video can take up several gigabytes — so how does video compression shrink files that much?

What Is Video Compression?

Video compression is a technique that reduces file size by eliminating redundant data in video files. An uncompressed 1080p video can consume several GB per minute, which is impractical for storage and transmission. The core goal of video compression is to significantly reduce file size while preserving visual quality as much as possible.

Why Can Video Be Compressed?

GOP structure: I-frames stored whole, P/B-frames store only the differences

Video data contains substantial redundancy in three main categories:

  • Spatial redundancy: Within a single frame, adjacent pixels often share similar colors (e.g., a patch of blue sky), so they don't need to be recorded individually.
  • Temporal redundancy: Consecutive frames change very little (e.g., a talking head with a static background), so only the differences need to be stored.
  • Visual redundancy: The human eye is insensitive to certain details (e.g., high-frequency color variations), which can be safely discarded.

Two Compression Paradigms: Lossless vs. Lossy

TypeCharacteristicCompression RatioTypical Use Case
LosslessDecompressed data is identical to originalLow (~2:1)Professional post-production, medical imaging
LossyDiscards data imperceptible to the human eyeHigh (up to 100:1)Web distribution, mobile playback

The vast majority of online video and streaming uses lossy compression, as it achieves extremely high compression ratios with acceptable quality loss.

Key Concept: Bitrate

Bitrate is the most important parameter in video compression, representing the amount of data encoded per second, typically measured in kbps (kilobits per second) or Mbps (megabits per second).

  • High bitrate → Better quality, larger file
  • Low bitrate → Worse quality, smaller file

The relationship between bitrate and file size:

File Size (MB) ≈ Bitrate (Mbps) × Duration (seconds) / 8

For example, a 10-minute video at 5 Mbps would be approximately 5 × 600 / 8 = 375 MB.

Bitrate Control Modes

  • CBR (Constant Bitrate): Bitrate remains constant throughout. Ideal for live streaming where stable bandwidth is required.
  • VBR (Variable Bitrate): Allocates more bitrate to complex scenes and less to simple ones. More efficient overall.
  • CRF (Constant Rate Factor): Automatically adjusts bitrate based on a target quality level. The most commonly used mode in x264/x265 encoders. Lower CRF values mean higher quality and larger files. CRF 18-28 is generally a reasonable range.

Key Concept: Resolution

Resolution refers to the pixel dimensions of the video frame, such as 1920×1080 (1080p), 1280×720 (720p), etc. Reducing resolution is an effective way to decrease file size:

  • 1080p → 720p: Pixel count reduced by ~56%, file size can decrease by 40%-60%
  • 1080p → 480p: Pixel count reduced by ~89%, file size can decrease by 70%-85%

However, lowering resolution directly affects image clarity, so it must be balanced against the actual playback scenario.

Key Concept: Codec

The codec determines the efficiency of the compression algorithm. Common video codecs:

CodecFull NameCompression EfficiencyCompatibility
H.264 (AVC)Advanced Video CodingBaselineExcellent
H.265 (HEVC)High Efficiency Video Coding~40% bitrate savings over H.264Good
VP9—Comparable to H.265Good (Web-first)
AV1AOMedia Video 1~30% bitrate savings over H.265Gradually gaining adoption

Choosing a more efficient codec yields smaller files at the same quality, but encoding is typically slower and older devices may not support playback.

What Compression Quality Levels Mean

In practical tools, compression quality is typically divided into several levels:

  • High quality: Preserves more detail, small bitrate reduction (~30%-40%). Suitable for quality-sensitive scenarios.
  • Balanced: Strikes a balance between quality and size (~50%-60% compression). Suitable for most everyday use.
  • High compression: Significantly reduces bitrate (~70%-80% compression). Smallest files but noticeable quality loss. Suitable for size-sensitive scenarios.

Audio Track Handling

Audio in video files also occupies space (typically 10%-20%). During compression, you can choose to:

  • Keep audio: Audio is encoded normally. Suitable for videos that need sound.
  • Remove audio: Completely strips the audio track, reducing file size by an additional ~10%-15%. Suitable for visual-only content or videos that will be dubbed later.

Common Misconceptions

  1. "Compression always degrades quality": With reasonable parameters, the difference is virtually imperceptible to the human eye. Only excessive compression produces visible blocky artifacts and color banding.
  2. "Higher resolution always means better quality": If bitrate is insufficient, higher resolution can actually show more compression artifacts. 720p + adequate bitrate > 1080p + insufficient bitrate.
  3. "Repeated compression doesn't lose quality": Lossy compression is cumulative—each re-encoding further degrades quality, known as "generation loss."

Practical Tips

  • Social media sharing: Choose "Balanced" quality + 720p/1080p for a good balance of quality and upload speed.
  • Email transmission: Choose "High compression" + 480p/720p to stay within attachment size limits.
  • Long-term archival: Choose "High quality" + original resolution to preserve maximum detail.
  • Web embedding: Prefer H.264 encoding for browser compatibility.
  • Batch jobs: compressing a whole folder of clips? See Batch Video Compression: How to Compress Multiple Videos at Once.

Related Tools