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

forced_keyframe_rate

:Floating point number permalink

API Versions: V1, V2

Parent: outputs

Valid Values: 0.001 to 100

Compatible Job Types: All

Example: 0.1

Description:

Set the forced keyframe interval by specifying number of keyframes per second, taking frame rate into account.

This option is ignored if forced_keyframe_interval is specified.

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

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "forced_keyframe_rate": "0.1"
    }
  ]
}
      
<api_request>
  <input>s3://zencodertesting/test.mov</input>
  <outputs type="array">
    <output>
      <forced_keyframe_rate>0.1</forced_keyframe_rate>
    </output>
  </outputs>
</api_request>