ZD Screen Recorder SDK API – ScnLib_SetVideoBitrate()

ScnLib_SetVideoBitrate()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetVideoBitrate(int nKbps);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_SetVideoBitrate(int Kbps);
Basic Public Declare Sub ScnLib_SetVideoBitrate Lib "ScnLib.dll" (ByVal Kbps As Int32)
Delphi procedure ScnLib_SetVideoBitrate(Kbps: Integer); stdcall; external 'ScnLib.dll';
  • Description
    Set the video bitrate.

  • Parameters
    • Kbps [in]
      The video bitrate, quantified in Kbps (kilobits per second).
  • Return Value
    None.

  • Remarks
    Use this function set the video bitrate. Set Kbps to a positive bitrate to activate bitrate-based video encoding mode, or set Kbps to 0 to switch to quality-based encoding mode. Higher bitrate values generally yield better quality but larger file sizes, while lower bitrates increase compression and may lead to noticeable quality degradation.

    By default, the video bitrate is set to 0. If you’re unsure about the ideal bitrate, start with 2000 Kbps and adjust based on your assessment of the output. If the video quality seems inadequate, increase the bitrate. Conversely, if the file size is too large, decrease the bitrate. Typically, halving the bitrate should result in approximately half the file size, and vice versa.

    Note that altering the video bitrate during the recording process is not permitted. To check the current video bitrate setting, call ScnLib_GetVideoBitrate(). Note that bitrate-based mode takes precedence over quality-based mode; if both bitrate and quality are set to positive values, the SDK will prioritize bitrate-based encoding.

    Furthermore, streaming bitrate overrides video recording bitrate; if both video recording and streaming bitrates are set, the SDK will use the streaming bitrate for both purposes. For more details, refer to ScnLib_SetStreamingBitrate().

  • See Also
    ScnLib_GetVideoBitrate()
    ScnLib_SetVideoQuality()
    ScnLib_SetStreamingBitrate()
    ScnLib_SetVideoPresetProfileA/W()

Shopping Cart
  • Your cart is empty.
Scroll to Top