ScnLib_SetVideoPresetProfile()

ScnLib_SetVideoPresetProfileA/W()

标准版专业版超级版至尊版
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';
  • 描述
    设置x264编码器的预设和配置设置。

  • 参数
    • Preset [in]
      x264编码器的预设,包括一系列预先确定的设置,决定视频编码的质量和效率。这些预设按压缩比升序和编码速度降序排列:
      • ultrafast
      • superfast
      • veryfast
      • faster
      • fast
      • medium
      • slow
      • slower
      • veryslow
      • placebo
    • Profile [in]
      H.264配置,指定编码器可以使用的特性范围。这些配置对于确保具有不同解码能力的设备之间的兼容性至关重要,因为它们定义了编码器和解码器都可以处理的共同特性集。可用的配置包括:
      • baseline
      • main
      • high
  • 返回值
    无。

  • 备注
    调用此函数来设置x264编码器的预设和配置设置。预设设置影响视频编码的性能和压缩比,而配置设置决定了录制视频的解码兼容性。默认设置是预设为'superfast'(超级快)和配置为'high'(高级)。要检测x264编码器的当前预设和配置设置,请调用ScnLib_GetVideoPresetProfileA/W()

  • 参见
    ScnLib_GetVideoPresetProfileA/W()
    ScnLib_SetVideoQuality()
    ScnLib_SetVideoBitrate()

下载 SDK API 总览