Frame

A frame is a single still image in a video, and many frames shown quickly in sequence create the impression of motion. A typical video shows 24 to 60 frames every second. In compressed video, frames come in types: I-frames store a full picture, while P-frames and B-frames store only changes from nearby frames to save space.

Why it matters

Frames are the building blocks that decide video file size and quality. How a codec stores them, as full pictures or as changes, sets how much data streaming needs. Frames are also what products work with directly: thumbnails, previews and content checks all start from single frames.

How it works

  1. A camera captures frames one after another, for example 30 every second.
  2. An encoder stores some frames in full, called I-frames or keyframes.
  3. Other frames, P-frames and B-frames, store only what changed from nearby frames.
  4. The player rebuilds each full picture and shows the frames in order.

What is the difference between I-frames, P-frames and B-frames?

An I-frame stores a complete picture, a P-frame stores changes from earlier frames, and a B-frame stores changes using frames both before and after it. I-frames are largest but can be decoded alone. P-frames and B-frames are much smaller, which is how compression saves space.

Frame typeWhat it storesSize
I-frameFull pictureLargest
P-frameChanges from earlier framesSmaller
B-frameChanges from earlier and later framesSmallest

Frame vs frame rate: what is the difference?

A frame is one still image in a video, while frame rate is how many frames are shown each second. For example, a 10 second clip at 30 fps contains 300 frames. More frames per second make motion smoother but add data.

Where it's used

Creator apps let users pick any frame as a video's cover image, and short video apps check sampled frames to flag unsafe content before a clip goes live.