The invention relates to the technical field of
video monitoring, and provides an intelligent
code rate control method for the field of indoor
video monitoring, which comprises the following steps: S1, a camera continuously collects video streams of an indoor monitoring scene and pushes the video streams to a streaming
media server; s2, decoding the received video
stream data to obtain YUV format data, preprocessing the YUV format data, inputting the preprocessed YUV format data into a personnel dynamic detection model based on a
deep learning algorithm, and identifying and outputting the motion state of indoor personnel; s3, a constant
code rate factor CRF value of an
encoder is adjusted in real
time based on the personnel dynamic detection result, a low CRF value is adopted in a static scene to reduce the
code rate, and the CRF value is adjusted in a graded mode according to the personnel number and the motion intense degree in a dynamic scene to improve the code rate; s4, writing the latest calculated constant code rate factor CRF value into an
encoder, and performing intelligent decoding on the video
stream data; and S5, carrying out storage or network transmission. And dynamically updating the constant code rate factor CRF value of the
encoder according to the model detection result, thereby achieving the effect of balancing the code rate and the
image quality.