hi_venc_h265_qvbr
Description
Defines the QVBR attributes of an H.265 encoding channel.
Prototype
typedef struct {
hi_u32 gop;
hi_u32 stats_time;
hi_u32 src_frame_rate;
hi_u32 dst_frame_rate;
hi_u32 target_bit_rate;
}hi_venc_h265_qvbr;
Members
Member |
Description |
|---|---|
gop |
Group of pictures. A video sequence includes several temporal continuous pictures. When a video is encoded, the video sequence is divided into several small picture groups. This parameter refers to a quantity of frames in a picture group. The GOP structure supports only Normalp (the first frame is an I-frame and other frames are P-frames). Therefore, this parameter also indicates the I-frame interval. The encoding of the I-frame does not need to refer to the previous frame, and the encoding quality of the previous frame is not passed on. Therefore, a smaller value means better encoding quality. However, it is recommended that the value be greater than or equal to the frame rate because the I-frame has only intra-frame prediction blocks. In most scenarios, a certain number of P-frames (with inter-frame prediction blocks) is required to ensure encoding quality. Value range: [1, 65536] |
stats_time |
QVBR statistical time, in seconds. You are advised to set it to gop/dst_frame_rate. A longer statistical time indicates that the impact on bit rate adjustment exerted by the bit rate fluctuation of each picture frame is weaker, the bit rate is adjusted more slowly, and the picture quality fluctuation is slighter. Value range: [1, 60] |
src_frame_rate |
Input frame rate of the encoder, in fps, that is, the number of frames that enter the encoder per second. If the bit rate is fixed, a smaller frame rate indicates better encoding quality. However, a bit rate less than 25 can lead to discontinuous frames during playback. Value range: [1, 240] |
dst_frame_rate |
Output frame rate, in fps, that is, the number of frames that exit the encoder per second. If the bit rate is fixed, a smaller frame rate indicates better encoding quality. However, a bit rate less than 25 can lead to discontinuous frames during playback. Value range: [1, src_frame_rate] A fractional frame rate is not supported currently. |
target_bit_rate |
Maximum output bit rate of the encoder, in kbit/s. A larger value indicates better encoding quality. Value range: [2, 614400] |