ZD Screen Recorder SDK API – ScnLib_SetVideoQuality()

ScnLib_SetVideoQuality()

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

  • Parameters
    • CRF [in]
      The CRF (Constant Rate Factor) value of the video quality, ranges from 1 to 51, with -1 indicating the use of bitrate-based video encoding mode instead.
  • Return Value
    None.

  • Remarks
    Use this function to set the video quality. Set CRF (Constant Rate Factor) to a value between 1 and 51 to enable quality-based video encoding, or set it to -1 to switch to bitrate-based encoding. The CRF scale ranges from 1 to 51, where lower numbers yield higher quality videos with larger file sizes, while higher numbers lead to more compression and potential quality loss at certain levels.

    The default CRF value is set to 23. If you’re uncertain about the appropriate CRF level, start with the default and adjust based on your assessment of the output quality. If the quality is insufficient, opt for a lower CRF; if the file size is too large, choose a higher CRF. Typically, a CRF adjustment of ±6 can halve or double the file size, though results may vary.

    Note that changes to video quality during the recording process are not permitted. To check the current video quality setting, call ScnLib_GetVideoQuality(). Remember, bitrate-based mode takes precedence over quality-based mode; for more details, refer to ScnLib_SetVideoBitrate().

  • See Also
    ScnLib_GetVideoQuality()
    ScnLib_SetVideoBitrate()
    ScnLib_SetVideoPresetProfileA/W()

Shopping Cart
  • Your cart is empty.
Scroll to Top