SSDown Logo
July 10, 2024
13 min read
SSDown Team

How Video Compression Works: A Non-Technical Explanation

#video compression#codecs#h264#h265#av1#technical guide

Why Video Compression Matters

Imagine recording a 1-minute video on your smartphone. Without compression, that single minute of 1080p video at 30 frames per second would consume approximately 3.5 GB of storage. With modern compression, the same video might be only 50-100 MB—a reduction of 35-70 times!

This seemingly magical reduction in file size is achieved through video compression, a sophisticated process that removes redundant information while preserving visual quality. When you download videos from social media using SSDown, you're benefiting from years of compression technology evolution.

The Basics: How Compression Works

Video compression works on a simple principle: eliminate redundancy. Videos contain massive amounts of repetitive information that can be described more efficiently. Think of it like giving directions:

  • Uncompressed approach: "Go straight 1 foot, go straight 1 foot, go straight 1 foot..." (repeated 5,280 times for a mile)
  • Compressed approach: "Go straight for 1 mile"

Both convey the same information, but the compressed version is vastly more efficient. Video compression applies this principle in multiple clever ways.

Three Types of Compression Techniques

1. Spatial Compression (Within a Frame)

Each video frame is compressed similarly to a JPEG image. Instead of storing the exact color of every pixel, the encoder looks for patterns:

  • Smooth gradients: A blue sky doesn't need 1 million different shades of blue stored individually—it can be described as "gradual transition from light to dark blue"
  • Repeated patterns: Brick walls, tiled floors, and uniform textures can be described once and referenced multiple times
  • Color simplification: Human eyes are less sensitive to color detail than brightness, so color information can be stored at lower resolution

2. Temporal Compression (Between Frames)

This is where video compression truly shines. Most of the image remains unchanged between consecutive frames:

  • Motion vectors: Instead of storing a complete new frame, the encoder says "take this block from the previous frame and move it 5 pixels right"
  • Difference encoding: Only the changes between frames are stored, not entire new images
  • Reference frames: Some frames are stored completely (keyframes), while others reference these anchors

3. Perceptual Compression

This technique exploits limitations of human vision:

  • Frequency filtering: Removing fine details that eyes can't perceive at normal viewing distances
  • Color subsampling: Reducing color information (4:2:0 chroma subsampling is standard)
  • Quantization: Rounding similar values to reduce data complexity

Codec Comparison: The Technology Behind Compression

A codec (coder-decoder) is the algorithm that performs compression and decompression. Different codecs use varying techniques and achieve different compression ratios.

CodecRelease YearCompression EfficiencyEncoding SpeedDecoding SpeedQuality at Low Bitrate
MPEG-21995Baseline (1x)Very FastVery FastPoor
H.264/AVC20032x better than MPEG-2FastFastGood
H.265/HEVC20132x better than H.264SlowModerateExcellent
VP920131.8x better than H.264Very SlowModerateExcellent
AV120181.5x better than HEVCExtremely SlowModerate-SlowOutstanding

Real-World Compression Ratios

Here's what different codecs achieve when compressing the same 1-minute 1080p 30fps video from raw format (~3.5 GB):

CodecHigh QualityStandard QualityLow QualityCompression Ratio
H.264180 MB80 MB35 MB20:1 to 100:1
H.265100 MB45 MB20 MB35:1 to 175:1
VP9110 MB50 MB22 MB32:1 to 160:1
AV170 MB32 MB15 MB50:1 to 230:1

These are approximate values for typical content with moderate motion. Complex scenes with fast motion compress less efficiently.

Lossy vs. Lossless Compression

Video compression comes in two fundamental types:

Lossy Compression (Most Common)

What it is: Permanently discards some information to achieve smaller file sizes. This is what all popular video codecs (H.264, H.265, VP9, AV1) use.

Advantages:

  • Extreme compression ratios (50:1 to 200:1 or more)
  • Practical file sizes for streaming and storage
  • Imperceptible quality loss at moderate compression levels

Disadvantages:

  • Quality degrades with each re-encoding
  • Cannot perfectly reconstruct the original
  • Artifacts appear at aggressive compression levels

Lossless Compression (Archival/Professional)

What it is: Reduces file size without any quality loss. The decompressed video is identical to the original, bit-for-bit.

Advantages:

  • Perfect quality preservation
  • Can be re-encoded multiple times without degradation
  • Ideal for professional editing and archival

Disadvantages:

  • Limited compression ratios (typically 2:1 to 5:1)
  • Massive file sizes compared to lossy compression
  • Impractical for streaming or casual storage
Use CaseRecommended CompressionTypical Codec
Social media downloadsLossy (already compressed by platform)H.264, VP9
Personal video storageLossy (high quality settings)H.265, AV1
Video editing source filesLossless or high-bitrate lossyProRes, DNxHR, H.264 Intra
Professional archivalLosslessFFV1, UT Video

Quality vs. File Size: Understanding Bitrate

Bitrate is the amount of data used per second of video, typically measured in Mbps (megabits per second). Higher bitrate = better quality but larger files.

Bitrate Impact on Quality and Size

ResolutionLow BitrateMedium BitrateHigh BitrateQuality Assessment
720p1.5 Mbps (11 MB/min)4 Mbps (30 MB/min)8 Mbps (60 MB/min)Low: visible blocks; Medium: good; High: excellent
1080p3 Mbps (22 MB/min)8 Mbps (60 MB/min)16 Mbps (120 MB/min)Low: acceptable; Medium: very good; High: pristine
4K15 Mbps (112 MB/min)40 Mbps (300 MB/min)100 Mbps (750 MB/min)Low: noticeable artifacts; Medium: excellent; High: reference quality

Diminishing returns: Doubling the bitrate doesn't double the quality. Going from 4 Mbps to 8 Mbps shows a noticeable improvement, but going from 40 Mbps to 80 Mbps yields minimal visible benefits for most content.

Compression Artifacts: What Can Go Wrong

When compression is too aggressive, visual artifacts appear:

  1. Blocking (Macroблocking): Image breaks into visible squares, especially in smooth gradients like skies
  2. Mosquito noise: Flickering dots around sharp edges and text
  3. Color banding: Smooth gradients turn into distinct color bands instead of smooth transitions
  4. Motion blur/smearing: Fast-moving objects leave trails or become blurry
  5. Ringing: Halo or echo-like artifacts around high-contrast edges

Artifact Severity by Bitrate (1080p example)

Bitrate RangeBlockingColor BandingMotion BlurOverall Quality
Under 2 MbpsSevereSevereSevereBarely watchable
2-4 MbpsNoticeableModerateNoticeableAcceptable for small screens
4-8 MbpsMinorMinorMinimalGood quality
8-16 MbpsRareRareNoneExcellent quality
Over 16 MbpsNoneNoneNoneReference quality

Hardware vs. Software Encoding

Compression can be performed by your CPU (software) or GPU/dedicated chips (hardware):

Encoding MethodSpeedQuality (Same Bitrate)Power ConsumptionCommon Uses
Software (x264, x265)SlowExcellentHighProfessional encoding, archival
Hardware (NVENC, QuickSync, VCE)Very FastGood (improving)LowLive streaming, gaming, mobile

Most social media platforms use hardware encoding when you upload videos for speed, then re-encode with software encoders for optimal compression before distribution.

How Social Media Platforms Compress Your Videos

When you upload a video to social media, the platform re-compresses it using their settings:

PlatformVideo CodecAudio CodecMax Bitrate (1080p)Compression Level
YouTubeVP9 / H.264Opus / AAC8-12 MbpsModerate
X (Twitter)H.264AAC4-5 MbpsAggressive
InstagramH.264AAC3.5-5 MbpsAggressive
TikTokH.264AAC4-6 MbpsModerate
FacebookH.264AAC4-5 MbpsAggressive

This is why videos often look worse after uploading—the platform applies additional compression to manage storage and bandwidth costs. Downloading with SSDown preserves whatever quality the platform provides, preventing further degradation from multiple re-compressions.

The Future: AI-Powered Compression

Emerging compression technologies use artificial intelligence and neural networks:

  • Content-aware encoding: AI detects faces, text, and important details, allocating more bits to preserve them
  • Scene-based optimization: Different compression settings for static vs. action scenes within the same video
  • Neural compression: Experimental codecs that use AI models to reconstruct video, achieving ratios beyond traditional codecs

Companies like Google, Meta, and Netflix are pioneering these techniques, potentially achieving another 30-50% size reduction over AV1 within the next few years.

Practical Takeaways

For most users: H.264 at 8 Mbps (1080p) provides excellent quality at reasonable file sizes. This is what most downloaded social media videos use.

To save storage: Re-encode downloads with H.265 or AV1 at 70% of the original bitrate—you'll halve the file size with minimal quality loss.

For archiving: Keep the highest quality version available. Storage is cheap, but re-downloading deleted content is impossible.

Conclusion

Video compression is a delicate balance between file size, quality, and encoding time. Modern codecs like H.265 and AV1 achieve remarkable compression ratios while maintaining excellent visual quality. Understanding compression helps you make informed decisions about which video quality to download, how much storage you need, and why some videos look better than others despite similar file sizes.

When downloading videos with SSDown, you're receiving content that has already been compressed by the source platform. Choose download quality based on your viewing device and storage capacity—higher isn't always better if you're watching on a smartphone!