
What Is Intra Refresh?
Intra refresh is a video encoding technique that refreshes selected parts of a picture across multiple frames. The encoder uses intra coding for those regions, encoding them without prediction from other pictures, while other regions can continue using inter-frame prediction.
This distributes refresh information over time, reducing reliance on periodically sending a complete intra-coded picture. For example, x265’s periodic intra refresh mode moves a column of intra-coded blocks across successive frames.
How Intra Refresh Works
Refresh Regions Across Frames
Video compression often predicts picture content from previously decoded information. This saves data, but errors in a reference picture can affect subsequent pictures.
With gradual intra refresh, the encoder selects regions to encode without temporal prediction. Successive frames refresh additional regions until the refresh process covers the picture.
A refresh pattern might move through rows, columns, or other groups of blocks. The exact behavior depends on the encoder and its configuration.
Control Prediction Dependencies
Simply inserting intra-coded blocks does not guarantee clean recovery. Refreshed regions must avoid inheriting corruption through prediction dependencies, including dependencies on neighboring regions.
Properly designed refresh behavior can gradually remove reliance on damaged picture information. Recovery still depends on receiving the necessary data; continuing packet loss can interrupt that process.
For developers, this means intra refresh should be evaluated as part of the complete encoder and decoder workflow.
Intra Refresh vs. Periodic IDR Frames
In H.264, an instantaneous decoding refresh (IDR) picture establishes a refresh point after which subsequent pictures do not depend on pictures preceding it. Gradual recovery spreads the process across multiple pictures.
These approaches create different delivery characteristics:
| Function | Periodic IDR frames | Gradual intra refresh |
|---|---|---|
| Refresh allocation | A complete intra-coded picture at a refresh point | Selected regions across several pictures |
| Data distribution | Refresh information is concentrated in one picture | Refresh information is distributed over time |
| Recovery behavior | Provides a discrete decoder refresh point | Recovery can require a sequence of pictures |
| Joining a stream | Can begin from an appropriate IDR access point | Requires support for the stream’s recovery process |
H.264 defines both IDR-based and gradual recovery procedures. Applications should verify which behavior their playback and packaging workflows support.
