Function: venc_set_channel_desc_src_rate

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

x

Atlas A3 products

x

Atlas A2 products

x

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Sets the description of a video encoding channel.

Prototype

  • C Prototype
    1
    aclError aclvencSetChannelDescSrcRate(aclvencChannelDesc *channelDesc, uint32_t srcRate)
    
  • Python Function
    1
    ret = acl.media.venc_set_channel_desc_src_rate(venc_channel_desc, src_rate)
    

Parameters

Parameter

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 Atlas 200I/500 A2 inference products, the value is 0 or in the range of [1, 240].

For Atlas inference products, the value is 0 or in the range of [1, 240].

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 Values

Return Value

Description

ret

Int, error code: 0 on success; else, failure.