Keyframe interval is an encoder setting that controls how frequently full keyframes are inserted into a compressed video stream, typically measured in seconds. A keyframe interval of two seconds means a complete reference frame appears every two seconds, with intermediate frames storing only differences. Shorter keyframe intervals improve the viewer experience during seeking and speed up stream recovery after packet loss or reconnection, but increase overall stream size. Longer intervals improve compression efficiency but slow recovery and seeking.