Intra-prediction is how a codec compresses a single frame without looking at any other frame. Instead of storing every pixel directly, the encoder predicts each small block from the pixels just above and to the left (which the decoder has already reconstructed), and stores only the small correction between the prediction and reality. It's the workhorse of i-frame compression, and the reason a JPEG-like still image inside a video is smaller than an actual JPEG of the same picture.
The intuition: most natural images have lots of regions where neighbouring pixels are similar — a clear sky, a brick wall, smooth skin. The encoder runs a handful of standard prediction modes (extend the pixels from above downward, extend the pixels from the left rightward, blend both, use a diagonal pattern, etc.), picks whichever one matches the actual block best, and stores only the small leftover difference. For a block of sky, the prediction is almost perfect; for a block of detailed grass, less so — but in both cases the result compresses better than coding the raw pixels.
Modern codecs have made intra-prediction dramatically more sophisticated. H.264 had 9 directional modes for 4×4 blocks; HEVC has 35; AV1 has 56 plus newer non-directional modes and tools like "intra block copy" that lets a block in a screenshot reference another part of the same frame. The aggregate effect is that an HEVC I-frame is around 25 % smaller than an H.264 I-frame, and an AV1 I-frame is smaller still. For product teams, this is invisible technology that quietly powers thumbnail generation, video previews and the first frame of every stream.
The book · Volume 1 of 7
Video Encoding: A Complete Guide to Video Compression — From Pixels and Color to H.264, HEVC, AV1, Quality Metrics, and AI
Intra-prediction guesses each block from its neighbours in the same frame, and it decides how expensive I-frames and still scenes are. Volume 1 covers intra-prediction in detail: intra-frame coding, directional modes, block partitioning, and how H.264, HEVC and AV1 expand the set of intra modes. Written by Nikolay Sapunov, CEO at Fora Soft.
Want to cut the cost of I-frames through better intra-prediction settings?
Send us sample content and settings: we test intra mode and partition options and show the I-frame size and quality changes for your encoder. 250+ video products shipped since 2005.