ScnLib_SetVideoPath()

ScnLib_SetVideoPathA/W()

标准版专业版超级版至尊版
C++ __declspec(dllimport) void __stdcall ScnLib_SetVideoPathA(LPCSTR pcszPath);
__declspec(dllimport) void __stdcall ScnLib_SetVideoPathW(LPCWSTR pcwszPath);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern void ScnLib_SetVideoPathW(string Path);
Basic Public Declare Unicode Sub ScnLib_SetVideoPathW Lib "ScnLib.dll" (ByVal Path As String)
Delphi procedure ScnLib_SetVideoPathA(const Path: PAnsiChar); stdcall; external 'ScnLib.dll';
procedure ScnLib_SetVideoPathW(const Path: PWideChar); stdcall; external 'ScnLib.dll';
  • 描述
    设置视频输出文件路径。

  • 参数
    • Path [in]
      视频输出文件路径。SDK支持的视频格式:MP4、FLV 和 AVI。文件路径可以包含以下预定义变量的任意组合:
      • <num> - 在文件名中加入一个自动递增的数字,确保其唯一性。
      • <date> - 在文件名中包含表示当前日期的字符串。
      • <time> - 在文件名中包含表示当前时间的字符串。
      例如:'C:\<date>\Rec <time>.mp4'
  • 返回值
    无。

  • 备注
    调用此函数设置视频输出文件路径,该路径可以包含上述预定义变量的任意组合。如果您不想使用这些变量,可以自行创建唯一的文件路径。设置为已存在文件的路径将导致文件被覆盖。文件扩展名决定了 SDK 支持的输出视频格式:.MP4、.FLV 和 .AVI。.MP4 和 .FLV 格式使用 H.264 和 AAC 编码,而 .AVI 格式使用 H.264 和 MP3 编码。由于与大多数媒体播放器和操作系统的兼容性更好,推荐使用 .MP4 格式。

    默认情况下,SDK 将视频输出文件路径设置为 "Rec <num>.mp4",其中没有指定文件夹路径意味着文件将保存在默认视频目录中(例如:"C:\Users\YourName\Videos\")。在录制过程中不允许更改视频输出文件路径。要获取当前或上次保存的视频输出文件路径,请调用ScnLib_GetVideoPathA/W()

  • 参见
    ScnLib_GetVideoPathA/W()

下载 SDK API 总览