Glossary · concept

What is Keyframe (I-frame)?

A keyframe (I-frame) is a video frame that stores a complete picture, independent of any other frames. Unlike P-frames and B-frames which store only differences from neighbors, a keyframe can be decoded standalone. Players can only seek to keyframes; the GOP length determines how often they appear.

Also called:i-frame · iframe · intra-frame

Modern codecs save space by describing most frames as "the previous frame, plus these changes". Those frames cannot be decoded without the previous frames in the same group. Keyframes are the exception: they store a complete still picture and let the decoder start fresh.

When you scrub a YouTube video, the player jumps to the nearest keyframe and decodes forward from there. This is why scrubbing in some heavily-compressed videos feels imprecise — the player can't actually start at your exact frame, only at the nearest keyframe (typically every 5 seconds in YouTube uploads).

For lossless time-range cuts, the cut points must align to keyframes. If you ask for a clip starting at 0:23 and the nearest keyframe is at 0:21, a lossless cut starts at 0:21. To start exactly at 0:23 the clip needs to be re-encoded.

Common questions

Why do video clips sometimes start a few seconds early?
Lossless clips have to start at a keyframe. If your requested start time doesn't fall on one, the clip starts at the nearest preceding keyframe — usually 0-5 seconds early.

Related terms

VidPickr is a free, browser-based YouTube downloader. Every term in this glossary either describes how YouTube delivers video or why your downloads behave the way they do. Try the downloader →