CV181x/CV180x chip rate control instruction manual introduces the meaning and usage methods of CBR, VBR, AVBR, macroblock-level rate control parameters and rate overshoot dropping frame parameters, and introduces the meaning and usage methods of single reference P frame GOP structure attributes and intelligent P frame GOP structure attributes.
This CVITEK document (version 1.3.0, released 2022-06-13) explains the meaning and use of the rate control parameters for the CV181x/CV180x chip. It gives parameter tables for CBR, VBR and AVBR modes, listing each field, what it controls and the recommended values.
The manual also covers GOP structure parameters for single-reference P-frame and SmartP GOPs, and a chapter on rate control issues: bitrate stability, image quality, avoiding the breathing effect, limiting I-frame QP, reducing motion smear, reducing chroma shift, the starting QP for rate control, low bitrate scenes and precautions. This manual is written in Chinese.
| u32MaxQp (maximum QP limit) | Recommended range 0 to 51 |
|---|---|
| u32MinQp (minimum QP limit) | Recommended range 12 to 20 |
| s32ChangePos (VBR bitrate change threshold) | Recommended range 75 to 90 |
| GOP length for low bitrate scenes | 5 to 10 times the frame rate, e.g. 150 to 300 at 30 fps |
The recommended adjustment range is 75 to 90; use 75 when the bitrate overshoot matters a lot, otherwise 90 is enough.
Set Gop to 5 to 10 times the frame rate (for example 150 to 300 at 30 fps) and set u32StatTime to 5 to 10 seconds so it matches the Gop value.
Set the starting QP through VENC_RC_PARAM_S::s32FirstFrameStartQp; the interface applies it from the first frame after the channel is created.