Home » API Reference » Encoding Settings » Frame Rate » Forced Keyframe Interval


:Integer permalink

API Versions: V1, V2

Parent: outputs

Valid Values: A positive integer

Compatible Job Types: All

Example: 10


Forces keyframes to be created at the specified frame interval (every N frames), while still allowing the encoder to place keyframes elsewhere, such as at scene cuts. As opposed to fixed_keyframe_interval which only puts keyframes at the specified interval.

This option only applies when using the H.264 or HEVC video_codec.

  "input": "s3://zencodertesting/test.mov",
  "outputs": [
      "forced_keyframe_interval": 10
  <outputs type="array">
      <forced_keyframe_interval type="integer">10</forced_keyframe_interval>