Hi,
For setting ROI the internal rate control logic decides the QP value of each frame and you can set QPdelta to ROI blocks. It is not expected if you set ROI sa the whole frame. If your use-case is to control frame bits of whole frame, please configure v4l2_enc_frame_ext_rate_ctrl_params
.
ROI works like:
- QP value of the frame is decided by rate control logic per setting of rate control mode and bitrate
- ROIs are compressed with the QP value + QPdelta
- The other macroblocks are quantized with the QP value
We would expect ROI is smaller than the resolution. It may not work properly if it has same width/height as the resolution.