Keyframe Interval Calculator

Enter your frame rate and desired keyframe spacing to get the exact GOP size for your encoder.

Encoding Parameters

Common targets: HLS/DASH streaming = 2 s • Broadcast = 1 s • VOD scrubbing = 2–4 s • Archive/edit = 10–15 s
GOP Size (keyframe interval)
60
frames  •  every 2 s at 30 fps
FFmpeg flag
-g 60
GOP at common frame rates
FPS GOP Exact?
Copied!

Summary

Enter your frame rate and desired keyframe spacing to get the exact GOP size for your encoder.

How it works

  1. Enter your video frame rate (e.g. 24, 30, 60 fps).
  2. Set the desired seconds between keyframes (2 seconds is standard for streaming).
  3. The calculator multiplies frame rate by the interval to get GOP size.
  4. Copy the GOP value and paste it into your encoder settings.
  5. Use the FFmpeg or HandBrake command snippet shown below the result.

Use cases

  • Setting the correct GOP for HLS/DASH adaptive streaming.
  • Configuring OBS or streaming software for low-latency broadcast.
  • Calculating keyframe spacing before exporting from a video editor.
  • Optimizing scrubbing performance for video-on-demand files.
  • Verifying encoder settings match a delivery spec (e.g. 2-second GOP).
  • Comparing GOP sizes across common frame rates at a glance.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu