hi_venc_h265_cvbr_param

Description

Defines the advanced CVBR parameters of an H.265 encoding channel.

Prototype

hi_venc_h265_qvbr_param = {"max_i_proportion": max_i_proportion,
                           "min_i_proportion": min_i_proportion,
                           "max_reencode_times": max_reencode_times,
                           "qpmap_en": qpmap_en,
                           "qpmap_mode": hi_venc_rc_qpmap_mode,
                           "max_qp": max_qp,
                           "min_qp": min_qp,
                           "max_i_qp": max_i_qp,
                           "min_i_qp": min_i_qp,
                           "min_qp_delta": min_qp_delta,
                           "max_qp_delta": max_qp_delta,
                           "extra_bit_percent": extra_bit_percentm,
                           "long_term_stats_time_unit": long_term_stats_time_unit}

Members

Member

Description

min_i_proportion

Int, reserved.

max_i_proportion

Int, maximum bit rate proportion of I- and P-frames.

Value range: [1, 100]

Default value: 100

max_reencode_times

Int, number of times that each frame is re-encoded. If set to 0, disables re-encoding.

Value range: [0, 3]

Default value: 2

qpmap_en

Int, reserved.

qpmap_en

Int, reserved.

max_qp

Int, maximum QP value of P and B-frames.

Value range: [MinQp, 51]

Default value: 47

min_qp

Int, minimum QP value of P- and B-frames.

Value range: [0, 51]

Default value: 22

max_i_qp

Int, maximum QP value of an I-frame.

Value range: [MinIQp, 51]

Default value: 47

min_i_qp

Int, minimum QP value of an I-frame.

Value range: [0, 51]

Default value: 20

min_qp_delta

Int, difference between the frame-level and CU-level minimum QP values.

I-frame: FrameLevelMinQp = min_qp_delta + min_i_qp

P-/B-frame: FrameLevelMinQp= min_qp_delta+min_qp

Value range: [0, 4]

Default value: 0

max_qp_delta

Int, difference between the frame-level and CU-level maximum QP values.

Max. QP of I-frames = max_i_qp – max_qp_delta

Max. QP of P-/B-frames = max_qp – max_qp_delta

Value range: [0, 4]

Default value: 0

extra_bit_percent

Int, maximum percentage of extra bits in the streams output by the encoder.

When the bit rate is insufficient, the encoder overdraws a certain number of bits to improve the image quality. The bits will be compensated when the encoding pressure is relieved.

Value range: [0, 1000]

Default value: 5

long_term_stats_time_unit

Int, unit of the long-term statistical period (long_term_stats_time), in seconds. For example, if long_term_stats_time_unit is set to 60 and long_term_stats_time is set to 3, the long-term statistical period is 3 minutes.

Value range: [1, 1800]

Default value: 60