Learn & Understand

How Video Compression Works: Fitting a Movie Into a Fraction of Its Size

In a hurry? Skip straight to the numbers.

Open the Video Bitrate Calculator →

The companion calculator works out the bitrate needed to fit a video into a target file size, subtracting the audio's share. That whole exercise exists because video must be compressed, often dramatically, to be practical, since raw uncompressed video is enormous. Understanding why raw video is so large, how compression codecs cleverly shrink it by exploiting redundancy within and between frames, and the fundamental tradeoff between file size and quality that every bitrate choice embodies turns a bitrate calculation into an appreciation of one of the most important and invisible technologies in modern media.

Why Raw Video Is Enormous

Uncompressed video is staggeringly large because it consists of a full grid of pixels, each with color information, repeated many times per second. A single high-resolution frame contains millions of pixels, and video shows dozens of such frames every second, so the raw data adds up with astonishing speed, a few seconds of uncompressed high-definition video can consume as much space as an entire compressed movie. Storing or transmitting video at this raw size would be utterly impractical: it would overwhelm storage and far exceed the bandwidth of ordinary connections. This is why compression is not optional but essential for video to exist as we know it, streaming, downloads, and even storage all depend on shrinking video to a small fraction of its raw size. Understanding just how enormous raw video is explains why bitrate matters so much and why codecs are indispensable: the entire practical existence of digital video rests on compressing it dramatically. The bitrate the calculator computes is essentially a measure of how much the video has been compressed, how much data per second is used to represent it.

Exploiting Redundancy

Compression works by finding and eliminating redundancy, information that can be removed or represented more efficiently without (much) loss of visible quality.

Two kinds of redundancy codecs exploit
RedundancyHow it's exploited
Within a frame (spatial)Nearby pixels are similar; encode efficiently
Between frames (temporal)Consecutive frames barely change; store only differences

Within a single frame, neighboring pixels are often similar, large areas of similar color or gradual gradients, so a codec can represent these regions far more compactly than storing every pixel independently. Even more powerfully, consecutive frames in a video are usually nearly identical, since most of the scene stays the same from one frame to the next, so rather than storing every frame in full, a codec stores occasional complete "keyframes" and then, for the frames in between, records only what changed, the motion and differences from the previous frame. This exploitation of the fact that video changes little frame to frame is what enables the dramatic compression ratios of video, because most frames can be represented by tiny amounts of difference data rather than full images. Understanding these two forms of redundancy, similarity within frames and similarity between frames, reveals the core cleverness of video compression: it discards the vast redundancy inherent in video, keeping only the genuinely new information. The bitrate reflects how much information survives this process.

Lossy Compression and Its Tradeoff

Most video compression is lossy, meaning it does not just remove redundancy but also discards some detail that is judged to be less perceptible, accepting a small loss of quality in exchange for a much smaller file. Codecs are designed to throw away information the eye is least likely to miss, subtle details, fine textures, and color nuances that contribute little to the perceived image, so the compressed video looks nearly as good as the original while being far smaller. But this introduces a fundamental tradeoff: the more aggressively the video is compressed, the smaller the file but the more quality is lost, appearing as blockiness, blurring, or artifacts, while less compression preserves quality at the cost of a larger file. This is exactly the tradeoff the bitrate embodies: a higher bitrate means more data per second, better quality, and larger files, while a lower bitrate means more compression, smaller files, and more visible degradation. Understanding lossy compression explains why choosing a bitrate is always a balance, and why fitting a video into a small target size, as the calculator computes, may require accepting reduced quality. There is no free lunch: below some bitrate, quality visibly suffers.

The Evolution of Codecs

The technology of video compression has advanced steadily through successive generations of codecs, each achieving better quality at lower bitrates than the last. Newer codecs use more sophisticated techniques to squeeze video smaller while preserving quality, so a modern codec can deliver the same visual quality as an older one at a substantially lower bitrate, or better quality at the same bitrate. This ongoing improvement is why streaming high-resolution video over ordinary connections became feasible: as codecs grew more efficient, the bitrate needed for good-looking video fell, making bandwidth-hungry content practical. The advance comes at a cost of greater computational complexity, more efficient codecs require more processing power to encode and decode, but the payoff in reduced file size and bandwidth is enormous. Understanding codec evolution explains why the relationship between bitrate and quality is not fixed but improves over time, and why the same target file size the calculator works with can hold better-looking video with a newer codec. The relentless progress in compression efficiency is a hidden engine behind the growth of streaming and digital video, continually lowering the bitrate needed to deliver a given quality. Choosing an efficient codec is one way to fit more quality into a target size.

Hitting a Bitrate Target With Understanding

Use the calculator to find the bitrate needed for a target file size, and understand the compression behind it: raw video is enormous, so codecs shrink it dramatically by exploiting redundancy within frames and the near-identity between consecutive frames, lossy compression trades some detail for much smaller files, and better codecs deliver more quality per bitrate over time. The bitrate you choose is a balance of size against quality. The calculation gives the required bitrate; understanding how video compression works is what tells you whether that bitrate will look good, and how to fit quality into your target.

Ready to Put This Into Practice?

Now that you understand how it works, plug in your own numbers and get an instant, accurate result.

Use the Video Bitrate Calculator Now →