Keyframe Interval (GOP Size) Calculator
📚 Confused about how this is calculated? Read the full Inside the GOP: I, P, and B Frames, and Why Editing and Streaming Want Opposite Things →
Keyframe Interval (GOP Size) Calculator
Configuring video encoding settings? This calculator converts your desired keyframe interval into the correct GOP size in frames.
GOP Size (frames) = Frame Rate(fps) x Keyframe Interval(seconds)
Example
30 fps footage, 2-second keyframe interval:
GOP Size = 30 x 2 = 60 frames
What GOP Size Controls
GOP (Group of Pictures) size determines how often a full keyframe appears in the encoded video stream - keyframes are complete images, while frames in between reference them to save space.
The Tradeoff Between Seeking and Compression
Shorter keyframe intervals improve seek accuracy (jumping to a specific point in the video) and streaming resilience to dropped packets, while longer intervals improve compression efficiency and reduce file size, since fewer full keyframes need to be stored.