The invention relates to the technical field of video acquisition coding and transmission, and provides a
WebRTC-based method for reducing
transmission bandwidth and improving transmission stability, which comprises the following steps: S1, a video acquisition module acquires a video frame from a camera and sends the video frame to a video coding module; s2, performing AI scene detection on the video frame to obtain a picture scene of the video frame, and performing region-of-interest ROI detection on the video frame to obtain a region-of-interest ROI range of the video frame; s3, optimizing the original funnel
algorithm, setting different code rates for different video frames according to different video frame scenes, and setting different code rates for different areas of the video frames according to different ROI (
Region of Interest) ranges of the video frames; s4, encoding the video frame, and sending the encoded video frame to a receiving end; s5, the receiving end
decodes the received compressed video data into original video frames by using a
video decoder; and S6, transmitting the decoded video frame to a rendering module for video rendering and display. The
transmission bandwidth is reduced, and the transmission stability is improved.