Keyframe interval calculator

Streaming software asks for the keyframe interval in seconds; encoders often want the GOP size in frames. Enter the frame rate and one of them to get the other, plus how many keyframes a video of a given length has.

I know
fps
s
min
GOP size (frames)60
GOP to enter (whole frames)60
Keyframes per minute
30
Keyframes in the video
300

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Choose whether you know the interval in seconds or the GOP in frames.
  2. Enter the frame rate, for example 30, 60, 25 or 29.97.
  3. Enter the interval or the GOP size, and the length of the video in minutes.

How it works

GOP (frames) = frame rate × interval (s); interval = GOP ÷ frame rate. Keyframes per minute = 60 ÷ interval. The number of keyframes in a video is its length divided by the interval, rounded up, because the first frame is always a keyframe.

Worked example

30 fps with a 2-second interval: GOP = 30 × 2 = 60 frames, 30 keyframes per minute, and a 10-minute video has 600 ÷ 2 = 300 keyframes. The other way, 60 fps with a GOP of 250 gives 250 ÷ 60 = 4.167 s between keyframes and 14.4 per minute.

Tips

  • Set a fixed interval rather than “auto” when a platform asks for one; otherwise the encoder may place keyframes irregularly.
  • For video files meant for editing, a shorter GOP makes scrubbing smoother.
  • The bitrate calculator helps choose the bitrate that goes with these settings.

Frequently asked questions

What keyframe interval should I use for streaming?

Many live platforms ask for a keyframe every 2 seconds, and some accept up to 4. Check the ingest settings of your platform; at 30 fps a 2-second interval is a GOP of 60 frames.

What is a GOP?

A group of pictures: one keyframe (a frame stored whole) followed by frames stored as changes from it. The GOP size is the number of frames from one keyframe to the next.

Why does 29.97 fps give 59.94 frames?

29.97 × 2 = 59.94. An encoder needs a whole number of frames, so the calculator also shows the rounded value, 60, which is 2.002 s at that rate.

How does the interval affect quality?

Keyframes take many more bits than other frames. Fewer keyframes leave more bitrate for detail, while more keyframes make seeking faster and let viewers join a stream sooner.

More in Unit converters

All tools in this category: Unit converters ·Updated November 7, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.