Function: venc_set_channel_desc_rc_mode

C Prototype

aclError aclvencSetChannelDescRcMode(aclvencChannelDesc *channelDesc, uint32_t rcMode)

Python Function

ret = acl.media.venc_set_channel_desc_rc_mode(venc_channel_desc, rc_mode)

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.

rc_mode: int, bit rate control mode.

  • 0: default value, CBR mode.
  • 1: variable bit rate (VBR) mode

  • 2: constant bit rate (CBR) mode

    NOTE:

    If this attribute is not set, the default value 0 is used.

    For the Atlas 200/300/500 Inference Product, the default value 0 indicates the CBR mode.

Return Value

ret: int, error code.

Restrictions

None