The invention provides an on-site video return coding method and
system, and the method comprises the steps: collecting a video
stream of an on-site scene, judging whether a current video frame in the video
stream responds to a scene switching video frame or not, and marking the current video frame as a
key frame when the current video frame responds to the scene switching video frame; after the current video frame is identified as a
key frame,
visual saliency analysis is performed on the
key frame, and an entropy weight matrix representing regional information importance distribution in the key frame is constructed according to a
visual saliency analysis result and texture information entropies of different blocks in the key frame; adjusting
code rate allocation weights of different blocks in the key frame according to the entropy weight matrix and a
code rate regulation and control strategy of the key frame to obtain
adaptive coding configuration adaptive to content characteristics of the key frame; and performing optimization coding on the key frame through
adaptive coding configuration to obtain a target code
stream in response to a field video return demand. By adopting the scheme of the invention, the dynamic
differential coding of the key video frame in a complex scene can be realized.