ScnLib_SetVideoPath()

ScnLib_SetVideoPathA/W()

Std EditionPro EditionMax EditionUltra Edition
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';
  • Description
    Set the video output file path.

  • Parameters
    • Path [in]
      The video output file path. The video format supported by the SDK: MP4, FLV and AVI. The file path may include any combination of following predefined variables:
      • <num> - Incorporate an automatically incrementing number into the file name to ensure its uniqueness.
      • <date> - Include a string representing the current date in the file name.
      • <time> - Include a string representing the current time in the file name.
      e.g. 'C:\<date>\Rec <time>.mp4'
  • Return Value
    None.

  • Remarks
    Use this function to set the video output file path, which can include any combination of the predefined variables mentioned above. If you prefer not to use these variables, you can create a unique file path independently. Setting a path to an already existing file will result in the file being overwritten. The file extension determines the output video format supported by the SDK: .MP4, .FLV, and .AVI. Both .MP4 and .FLV formats utilize H.264 & AAC encoding, whereas the .AVI format employs H.264 & MP3 encoding. The .MP4 format is recommended for its superior compatibility with most media players and operating systems.

    By default, the SDK assigns the video output file path as "Rec <num>.mp4", where the absence of a specified folder path means the file will be saved in the default video directory (e.g., "C:\Users\YourName\Videos\"). Changing the video output file path during the recording process is not permitted. To retrieve the current or last saved video output file path, call ScnLib_GetVideoPathA/W().

  • See Also
    ScnLib_GetVideoPathA/W()

Try the SDK for FREE SDK APIs overview