VideoEncoder(pyVencConfig, pyVencCallBacker, deviceId, channelId)
Function Usage
Constructor of the VideoEncoder class.
If the memory is insufficient, pyVencCallBacker does not register the callback, or the processor cannot be identified, the "std::runtime_error: exception occurs.
Input Parameter Description
Parameter |
Type |
Description |
|---|---|---|
pyVencConfig |
VencConfig |
Video encoding parameter. The maximum resolution (width x height) for video encoding cannot exceed 4096 x 2304. |
pyVencCallBacker |
VencCallBacker |
VencCallBacker that binds callbacks. (A call must be registered. Otherwise, VideoEncoder throws an exception.) |
deviceId |
int |
Processor where the video encoder is deployed. The default ID is 0. Value range: [0, Number of identified processors - 1]. |
channelId |
int |
Video stream index of the video encoder.
|
Return Parameter Description
VideoEncoder objects.
Parent topic: VideoEncoder