What is a P-Frame?

A P-frame, or predictive frame, encodes changes relative to one or more previously decoded reference frames rather than storing a complete independent image. It therefore depends on referenced data for decoding.

How P-Frames work

A predictive picture represents blocks using motion-compensated references to previously decoded pictures plus residual data for remaining differences. The decoder must retain the required references and reconstruct them in dependency order, which can differ from display order when other picture types are present. P-pictures usually cost fewer bits than self-contained intra pictures but provide fewer clean entry points. Encoders place them within a group of pictures to balance compression, random access, latency, and damage recovery.

Key facts

  1. A P-picture can be used as a reference by later pictures, so corruption in it may propagate until an intra refresh or independent random-access point breaks the chain.
  2. Seeking to the byte position of a P-frame is insufficient for decoding; the player must begin at an earlier access point that supplies its reference pictures.
  3. Predictive frames are not merely pixel differences: codecs can signal motion vectors, reference choices, prediction modes, and transform-coded residuals.

When P-Frames matter

Lengthen the spacing between independent frames so predicted frames carry more of the stream when compression efficiency matters most, but consider the effect on seeking and error propagation. Lost or corrupted reference data can visibly damage dependent frames until recovery.

Turn media knowledge into a working pipeline

Connect uploads, processing, AI, storage, and delivery through one declarative API — with the encoding stack, scaling, and format churn handled for you.

Try Transloadit for free