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

forced_keyframe_interval

:Integer permalink

API Versions: V1, V2

Parent: outputs

Valid Values: A positive integer

Compatible Job Types: All

Example: 10

Description:

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
    }
  ]
}
      
<api_request>
  <input>s3://zencodertesting/test.mov</input>
  <outputs type="array">
    <output>
      <forced_keyframe_interval type="integer">10</forced_keyframe_interval>
    </output>
  </outputs>
</api_request>