GlossaryMotion compensation

Motion compensation

Motion compensation is the video compression technique of building a frame by moving blocks from a reference frame according to motion vectors, then storing only the small difference that remains. Motion compensation lets codecs avoid resending unchanged parts of a scene. It is why P-frames and B-frames are far smaller than full I-frames. The decoder repeats the same process during playback.

Why it matters

Motion compensation is the main reason compressed video is small enough to stream at all. Without it, every frame would be stored nearly in full, multiplying storage and bandwidth costs. How well an encoder handles motion decides whether fast action looks clean or blocky at the bitrate a business can afford.

How it works

  1. The encoder picks one or more reference frames that have already been coded.
  2. Using motion vectors, it shifts blocks from those references to build a predicted version of the new frame.
  3. It subtracts the prediction from the real frame and compresses only the small remaining difference, called the residual.
  4. The decoder receives the vectors and residual, repeats the same shifting, then adds the residual back to rebuild the frame.

Why does fast motion look blocky in compressed video?

Fast motion looks blocky because motion compensation predicts it poorly. When objects move far, rotate or blur between frames, matching blocks are hard to find. The residual grows large, and at a fixed bitrate the encoder must compress it heavily. That heavy compression shows up as blocks and smearing. Raising the bitrate or using a newer codec usually helps. A sports-heavy library can use FastPix Pro encoding, which is built for high-motion content, while calmer titles stay on Standard encoding.

Is motion compensation the same as motion interpolation on TVs?

No, they are different. Motion compensation is a compression step inside codecs that rebuilds frames from earlier ones. Motion interpolation, sometimes called motion smoothing, is a TV feature that invents extra in-between frames to make playback look smoother, which can create the soap opera effect. They share math ideas but serve different purposes.

Where it's used

Live sports streamers tune encoders to track fast camera pans so action stays sharp at lower bitrates. Fitness apps and online learning platforms with fixed studio cameras benefit too, since steady scenes compress into very small files.