RTMP live code rate self-adaptive method

An adaptive, bit-rate technology, applied in Internet-related fields, can solve problems such as live broadcast stuttering, affecting viewing experience, and network conditions, and achieve the effects of improving video quality, maintaining smooth live broadcasting, and reducing bit rate

Inactive Publication Date: 2019-08-13
杭州米络星科技(集团)有限公司
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The existing RTMP live broadcast technology is suitable for situations where the uplink speed is relatively constant, such as a fixed network. For the live broadcast of mobile devices, the movement of the device location has a great impact on the network conditions. There is no bit rate adaptive technology. The pre-set bit rate sends the data table, resulting in serious live broadcast stuttering, which seriously affects the viewing experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • RTMP live code rate self-adaptive method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0019] A kind of RTMP live code rate adaptive method, specifically comprises the following steps:

[0020] (1) The encoding thread regularly encodes video frames according to the frame rate and puts them in the sending buffer queue;

[0021] (2) The sending thread continuously obtains data packets from the sending buffer queue to send, and deletes one frame from the sending buffer queue after sending one frame;

[0022] (3) Judge the network status according to the number of video frames in the sending buffer queue, and set the video frame number parameters BufCount_min, BufCount_max; when the network is good, the sending thread takes video frames from the sending buffer queue faster than the encoding thread puts them in. If the speed of the sending buffer queue is fast, then the number of video frames in the sending buffer queue fluctuates be...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an RTMP live code rate self-adaption method. The method specifically comprises the following steps that: an encoding thread encodes video frames at regular time according to aframe rate and places the video frames in a sending buffer queue; the sending thread continuously obtains the data packet from the sending buffer queue and sends the data packet, and one frame is deleted from the sending buffer queue when one frame is sent; the network condition is judged according to the video frame number condition of the sending buffer queue, and video frame number parameters BufCount _ min and BufCount _ max are set; the coding thread puts the compiled video frames in a sending buffer queue to obtain the video frame number of the current sending buffer queue; when the number of the video frames of the current sending buffer queue reaches BufCount _ max, the video coding rate is reduced; when the video frame number of the current sending buffer queue is smaller than BufCount _ min, the video coding rate is increased; and if the video frame number of the current sending buffer queue is between BufCount _ min and BufCount _ max, the current code rate is kept. The method has the beneficial effects that the coding rate of the video is quickly adjusted according to the network condition so as to adapt to different network conditions, and the optimal live broadcast effect is achieved.

Description

technical field [0001] The invention relates to the technical field related to the Internet, in particular to an RTMP live broadcast code rate adaptive method. Background technique [0002] The existing RTMP live broadcast technology is suitable for situations where the uplink speed is relatively constant, such as a fixed network. For the live broadcast of mobile devices, the movement of the device location has a great impact on the network conditions. There is no bit rate adaptive technology. The pre-set bit rate sends the data table, resulting in serious live broadcast stuttering, which seriously affects the viewing experience. Contents of the invention [0003] The present invention aims to overcome the above-mentioned deficiencies in the prior art, and provides an RTMP live code rate self-adaptive method with good heat insulation effect, long service life of sound insulation material and good sound insulation effect. [0004] In order to achieve the above object, the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/2662H04N21/262H04N21/2187
CPCH04N21/2187H04N21/26208H04N21/2662
Inventor 杨海平
Owner 杭州米络星科技(集团)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products