WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
Loading...
Searching...
No Matches
Recording

Data Structures

struct  WSCRecordParams
 Recording parameters. More...

Functions

WSCResult WSC_StartRecording (int outputId, const char *filePath, const WSCRecordParams *params)
 Start recording the output to an MP4 file.
WSCResult WSC_StopRecording (int outputId)
 Stop recording.
int WSC_IsRecording (int outputId)
 Check if an output is currently recording.

Detailed Description

H.264 to MP4 via Media Foundation. Uses HW encoder (NVENC/QSV/AMF) when available.

Function Documentation

◆ WSC_StartRecording()

WSCResult WSC_StartRecording ( int outputId,
const char * filePath,
const WSCRecordParams * params )

Start recording the output to an MP4 file.

Parameters
outputIdOutput ID.
filePathUTF-8 path for the output .mp4 file.
paramsRecording parameters, or NULL for defaults.
Returns
WSC_OK on success.

◆ WSC_StopRecording()

WSCResult WSC_StopRecording ( int outputId)

Stop recording.

Parameters
outputIdOutput ID.
Returns
WSC_OK on success.

◆ WSC_IsRecording()

int WSC_IsRecording ( int outputId)

Check if an output is currently recording.

Parameters
outputIdOutput ID.
Returns
1 if recording, 0 otherwise.