Video Compression Basics: What You Need to Know
Video files are everywhere—and they're big. Understanding how compression works helps you make better choices when shrinking your videos. Here's a beginner-friendly guide to bitrate, codecs, and the trade-off between quality and file size.
What Is Bitrate?
Bitrate is the amount of data used per second of video. Measured in bits per second (bps) or kilobits per second (kbps), it directly determines file size. Higher bitrate = more data = better quality but larger files. A 1080p video at 5 Mbps might look great; at 500 kbps it will look blocky. The goal of compression is to find the lowest bitrate that still looks acceptable for your use case.
Codecs: The Compression Engines
A codec (coder/decoder) is the algorithm that compresses and decompresses video. H.264 is the most widely used—it's in every phone, camera, and streaming platform. H.265 (HEVC) compresses better but has less support. VP9 is used by YouTube and WebM. When you compress, you're re-encoding with a codec—throwing away some data to shrink the file.
Quality vs. File Size
There's always a trade-off. For a fixed duration, smaller file = lower bitrate = lower quality. The trick is to compress until the quality is "good enough" for how the video will be viewed. A clip for Discord chat doesn't need 4K. A video for a presentation might need 1080p. Match the target to the context.