ZD Screen Recorder SDK API – ScnLib_SetVideoPresetProfile()

ScnLib_SetVideoPresetProfileA/W()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetVideoPresetProfileA(LPCSTR pcszPreset, LPCSTR pcszProfile);
__declspec(dllimport) void __stdcall ScnLib_SetVideoPresetProfileW(LPCWSTR pcwszPreset, LPCWSTR pcwszProfile);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern void ScnLib_SetVideoPresetProfileW(string Preset, string Profile);
Basic Public Declare Unicode Sub ScnLib_SetVideoPresetProfileW Lib "ScnLib.dll" (ByVal Preset As String, ByVal Profile As String)
Delphi procedure ScnLib_SetVideoPresetProfileA(const Preset: PAnsiChar; const Profile: PAnsiChar); stdcall; external 'ScnLib.dll';
procedure ScnLib_SetVideoPresetProfileW(const Preset: PWideChar; const Profile: PWideChar); stdcall; external 'ScnLib.dll';
  • Description
    Configure the preset and profile settings for the x264 codec.

  • Parameters
    • Preset [in]
      The x264 codec preset, including a series of predetermined settings that check the quality and efficiency of video encodings. These presets are organized in ascending order of compression ratio and in descending order of encoding speed:
      • ultrafast
      • superfast
      • veryfast
      • faster
      • fast
      • medium
      • slow
      • slower
      • veryslow
      • placebo
    • Profile [in]
      The H.264 profile, specifies the range of features that an encoder can utilize. These profiles are crucial for ensuring compatibility between devices with varying decoding capabilities, as they define a mutual feature set manageable by both the encoder and decoder. The available profiles include:
      • baseline
      • main
      • high
  • Return Value
    None.

  • Remarks
    Use this function to configure the preset and profile settings for the x264 codec. The preset setting influences the video encoding performance and compression ratio, while the profile setting determines the decoding compatibility of the recorded videos. The default settings are ‘superfast’ for the preset and ‘high’ for the profile. To check the current preset and profile settings for the x264 codec, call ScnLib_GetVideoPresetProfileA/W().

  • See Also
    ScnLib_GetVideoPresetProfileA/W()
    ScnLib_SetVideoQuality()
    ScnLib_SetVideoBitrate()

Shopping Cart
  • Your cart is empty.
Scroll to Top