Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Stream Keyframe and Segment Plan

Plan integer frame counts for keyframes and segment boundaries.

Video workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaFrames per keyframe interval = round(fps*key); Whole keyframe groups per segment = max(1,ceil(segment/key)); Aligned segment duration = max(1,ceil(segment/key))*round(fps*key)/fps
Sources and model references

Worked example

Inputs

Frame rate
30 fps
Keyframe interval
2 s
Target segment length
6 s

Expected results

Frames per keyframe interval
60 frames
Whole keyframe groups per segment
3
Aligned segment duration
6 s

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Plan integer frame counts for keyframes and segment boundaries.
  2. Set frame rate, keyframe interval, target segment length in the indicated units.
  3. Calculate and compare frames per keyframe interval, whole keyframe groups per segment, aligned segment duration.

Try this example

{
  "fps": 30,
  "key": 2,
  "segment": 6
}

Accuracy and scope

Idealized educational model. Enter measured values in the displayed units; real systems may require additional corrections.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.