ZD Screen Recorder SDK API – ScnLib_SetVideoKeyFrameInterval()

ScnLib_SetVideoKeyFrameInterval()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetVideoKeyFrameInterval(double dSeconds);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_SetVideoKeyFrameInterval(double Seconds);
Basic Public Declare Sub ScnLib_SetVideoKeyFrameInterval Lib "ScnLib.dll" (ByVal Seconds As Double)
Delphi procedure ScnLib_SetVideoKeyFrameInterval(Seconds: Double); stdcall; external 'ScnLib.dll';
  • Description
    Adjust the video key frame interval.

  • Parameters
    • Seconds [in]
      The video key frame interval, measured in seconds. Use 0.0 to set it to an automatic interval.
  • Return Value
    None.

  • Remarks
    Use this function to adjust the video key frame interval. A shorter interval results in better seek performance but larger file sizes, and the opposite is true for longer intervals. By default, or if you pass 0.0 as the argument, the encoder will automatically check the key frame interval. Note that some online video platforms might have specific recommendations for the Group of Pictures (GOP) in uploaded videos. For instance, YouTube suggests a GOP of half the frame rate, which would translate to a key frame interval of 0.5 seconds. Modifying the video key frame interval during the recording process is not possible. To check the current video key frame interval, call ScnLib_GetVideoKeyFrameInterval().

  • See Also
    ScnLib_SetVideoFrameRate()
    ScnLib_GetVideoKeyFrameInterval()

Shopping Cart
  • Your cart is empty.
Scroll to Top