Function: venc_set_channel_desc_src_rate

C Prototype

aclError aclvencSetChannelDescSrcRate(aclvencChannelDesc *channelDesc, uint32_t srcRate)

Python Function

ret = acl.media.venc_set_channel_desc_src_rate(venc_channel_desc, src_rate)

Function Usage

Sets the description of a video encoding channel.

The Atlas Training Series Product does not support this API.

Input Description

venc_channel_desc: int, pointer address of the description of a video encoding channel.

Call acl.media.venc_create_channel_desc to create data of the aclvencChannelDesc type in advance.

src_rate: int, frame rate of the input stream (fps).

For the Atlas 200/300/500 Inference Product, the value is 0 or in the range of [1, 120].

If it is not set or set to 0, the default value 30 is used. If the difference between the value of this parameter and the actual frame rate of the input stream is too large, the output bit rate is affected.

Return Value

ret: int, error code.

Restrictions

None