Video Bitrate Allocation Algorithm Based on Regions of Interest
Pengcheng Lin · 2023
This paper proposes a video bitrate allocation algorithm based on regions of interest (ROIs), taking into account the higher quality requirements of the ROIs as compared to the background. The algorithm is built upon the FFmpeg and X.264 frameworks and utilizes the Yolov7 detection model to extract ROIs from video frames and generate corresponding masks. The backend encoder prioritizes the bitrate allocation to the ROIs based on the generated masks, while sacrificing the bitrate allocation of the background to ensure overall bitrate stability. Experimental results, based on the comparison of QP values, file sizes, and PSNR values, demonstrate the feasibility of the algorithm, which successfully improves the bitrate allocation of ROIs to the designated value.