CN103124412A - Network shaking processing technology based on RTP (real time transport protocol) - Google Patents
Network shaking processing technology based on RTP (real time transport protocol) Download PDFInfo
- Publication number
- CN103124412A CN103124412A CN2012104884676A CN201210488467A CN103124412A CN 103124412 A CN103124412 A CN 103124412A CN 2012104884676 A CN2012104884676 A CN 2012104884676A CN 201210488467 A CN201210488467 A CN 201210488467A CN 103124412 A CN103124412 A CN 103124412A
- Authority
- CN
- China
- Prior art keywords
- data
- packet
- technology based
- real
- transport protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a network shaking processing technology based on RTP (real time transport protocol) and can be mainly applied to the field of network audio and video call. The processing technology comprises receiving data, judging whether the received data is an RTP audio and video data packet, continuously judging whether the data packet is a repeated data packet if the data is an RTP audio and video data packet, sorting the data packet if the data packet is not a repeated data packet, calculating the size of a dynamic cache area according to the sorting result, inserting and storing the data into the dynamic cache area in order, and reading data to play from the cache area by using independent thread. When jam and shaking happen in network transmission, the network shaking processing technology based on RTP can improve the quality of audio call and video call by dynamically adjusting the cache area to store audio data and video data to perform sorting, so that real-time high-quality audio call and video call can be achieved.
Description
Technical field
The present invention relates to field of mobile communication, particularly relate to a kind of network jitter treatment technology based on Real-time Transport Protocol.
Background technology
RTP is a host-host protocol for the upper multimedia data stream of Internet.RTP be defined in one to one or the transmission situation of one-to-many under work, its objective is provides temporal information and realizes that stream is synchronous.The typical case of RTP uses and is based upon on UDP, and itself only guarantees the transmission of real time data, can not provide reliable transfer mechanism for transmitting in order packet, and flow control or congestion control are not provided yet.
Based on the characteristics of RTP, it is the best approach that solves at present Streaming Media real-time Transmission problem, is widely used in audio frequency and video conversation field.But be subject to mobile network's bandwidth and stability problem, often network congestion can occur, make packet not arrive in order, thereby have a strong impact on audio-visual quality.Therefore the demand of real-time video call can be to realize by mobile phone terminal in order satisfying in the mobile network, in the situation that the quality that network jitter guarantees video calling occurs, a kind of new a kind of network jitter treatment technology based on Real-time Transport Protocol need to be to provide.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of network jitter treatment technology based on Real-time Transport Protocol, undesirable at network to solve, produce shake when the network generation is congested in Internet Transmission, thereby the audio-visual quality problem that causes realizes real-time high-quality audio frequency and video conversation.
For achieving the above object, the invention provides a kind of network jitter treatment technology based on Real-time Transport Protocol, described scheme comprises:
Receive data;
Judge whether data are RTP audio frequency and video bags;
If what receive is the packet that the RTP packet continues to determine whether repetition;
If not the packet that repeats sorts packet, respectively deposit in array according to size order transmitting time stamp and the delay time of packet;
Calculate the size in dynamic buffering district according to the time-delay of bag;
Data are inserted in order deposited in the dynamic buffering district;
Separate threads is play from the buffer area reading out data.
Wherein, if reception is not that the RTP packet abandons this bag, continue receive data.
Wherein, the basis for estimation that is whether repetitive data packet is the transmitting time stamp of packet, and whether searching in the timestamp array that determination methods is exists this timestamp.
Wherein, the array of storage transmitting time stamp array and storage time-delay has the size restriction, and the size of data is no more than the packet number of maximum storage, if current array has reached maximum number, with last element deletion, and then stores according to size order.
Wherein, the basis of dynamic buffering is the time-delay in the time-delay array, and increase increases the dynamic buffering zone until predetermined maximum if time-delay continues to reduce, reduces the dynamic buffering size if time-delay continues.
Wherein, separate threads reads during from the memory block reading out data in order, when the timestamp of the data that read during greater than the timestamp play and the time-delay of bag less than the playing duration of memory block, play these data, otherwise abandon the data that read, continue to read.
In sum, by the network jitter treatment technology based on Real-time Transport Protocol provided by the invention, can be undesirable at network, when packet loss occurring, conversation is dynamically adjusted the buffer area storage audio, video data line ordering of going forward side by side and is processed to improve audio frequency and video speech quality, realizes real-time high-quality audio frequency and video conversation.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do simple the introduction to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Figure is schematic flow sheet in the embodiment of the present invention one.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.Obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The invention provides a kind of network jitter treatment technology based on Real-time Transport Protocol, can be undesirable at network, when packet loss occurring, conversation is dynamically adjusted the buffer area storage audio, video data line ordering of going forward side by side and is processed to improve audio frequency and video speech quality, realizes real-time high-quality audio frequency and video conversation.
Embodiment one, referring to accompanying drawing, the method can for:
Step 101: terminal is obtained data by the data channel of having set up;
Step 102: judge whether to get the RTP audio, video data, if do not get execution in step 101, if get execution in step 103;
Step 103: whether the data obtained of judgement repeat, if execution in step 106, if not execution in step 104;
Whether in this step is that the basis for estimation of duplicate packages is the transmitting time stamp of packet;
Step 104: packet is sorted by transmitting time size and delay time size respectively, and store into respectively ranking results in array;
In this step, the size of data of event memory is the number of the bag of largest buffered, when array arrives maximum, sorts after last element is removed again;
Step 105: the size of calculating the dynamic buffering district;
The basis of this step dynamic buffering is the time-delay in the time-delay array, and increase increases the dynamic buffering zone until predetermined maximum if time-delay continues to reduce, reduces the dynamic buffering size if time-delay continues;
Step 106: store in order data into the dynamic buffering district;
Step 107: separate threads is play from the buffer area reading out data;
The timestamp of the data that read in this step during greater than the timestamp play and the time-delay of bag less than the playing duration of memory block, play these data, otherwise abandon the data that read, continue to read.
Therefore, a kind of network jitter treatment technology based on Real-time Transport Protocol provided by the invention, conversation are dynamically adjusted the buffer area storage audio, video data line ordering of going forward side by side and are processed, can be undesirable at network, when packet loss occurring, realize real-time high-quality audio frequency and video conversation.
Those having ordinary skill in the art will appreciate that, realize that all or part of step in above-described embodiment 1 method can complete by the program command related hardware, described program can be stored in computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The above is only the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (9)
1. the network jitter treatment technology based on Real-time Transport Protocol, is characterized in that, described method comprises:
Receive data;
Judge whether data are RTP audio frequency and video bags;
If the RTP packet continues to determine whether the packet of repetition;
If not the packet that repeats sorts packet;
Calculate the size in dynamic buffering district;
Data are inserted in order deposited in the dynamic buffering district;
Separate threads is play from the buffer area reading out data.
2. the network jitter treatment technology based on Real-time Transport Protocol according to claim 1, is characterized in that, if reception is not that the RTP packet abandons this bag, continues receive data.
3. the network jitter treatment technology based on Real-time Transport Protocol according to claim 1, is characterized in that, the basis for estimation that is whether repetitive data packet is the transmitting time stamp of packet.
4. the network jitter treatment technology based on Real-time Transport Protocol according to claim 3, it is characterized in that, no for the repetitive data packet determination methods is to check whether the timestamp array in claim 5 exists the transmitting time of packet to stab, if existence abandons this packet.
5. the network jitter treatment technology based on Real-time Transport Protocol according to claim 1, is characterized in that, sequence is to sort respectively according to the delay time that transmitting time stamp and time of reception deduct transmitting time, and stores in array according to size order respectively.
6. the network jitter treatment technology based on Real-time Transport Protocol according to claim 5, it is characterized in that, the array of storage transmitting time stamp array and storage delay time has the size restriction, the size of data is no more than the packet number of maximum storage, if current array has reached maximum number, last element is deleted, and then stored according to size order.
7. the network jitter treatment technology based on Real-time Transport Protocol according to claim 1, is characterized in that, the basis of dynamic buffering is the time-delay array in claim 5.
8. the network jitter treatment technology based on Real-time Transport Protocol according to claim 1, is characterized in that, the storage organization of storage data is annular chain meter.
9. the network jitter treatment technology based on Real-time Transport Protocol according to claim 1, is characterized in that, separate threads reads during from the memory block reading out data in order, plays during greater than the timestamp play when the timestamp of the data that read, otherwise continue to read.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104884676A CN103124412A (en) | 2012-11-16 | 2012-11-16 | Network shaking processing technology based on RTP (real time transport protocol) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104884676A CN103124412A (en) | 2012-11-16 | 2012-11-16 | Network shaking processing technology based on RTP (real time transport protocol) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103124412A true CN103124412A (en) | 2013-05-29 |
Family
ID=48455229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012104884676A Pending CN103124412A (en) | 2012-11-16 | 2012-11-16 | Network shaking processing technology based on RTP (real time transport protocol) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103124412A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108366044A (en) * | 2017-12-30 | 2018-08-03 | 深圳市潮流网络技术有限公司 | A kind of VoIP remote audio-videos sharing method |
CN110290552A (en) * | 2018-03-19 | 2019-09-27 | 腾讯科技(深圳)有限公司 | Cache the measurement method and device, storage medium, electronic device of depth |
CN111131075A (en) * | 2019-11-21 | 2020-05-08 | 武汉兴图新科电子股份有限公司 | High-concurrency data packet buffering method |
CN111556361A (en) * | 2020-04-29 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Buffer zone setting method, device, equipment and storage medium for Bluetooth audio playing |
CN112019939A (en) * | 2019-05-31 | 2020-12-01 | 青岛海信宽带多媒体技术有限公司 | RTP packet processing method and device and playing terminal |
WO2021174879A1 (en) * | 2020-09-18 | 2021-09-10 | 平安科技(深圳)有限公司 | Ai video call quality analysis method and apparatus, computer device, and storage medium |
CN116055790A (en) * | 2022-07-29 | 2023-05-02 | 荣耀终端有限公司 | Video playing method and system and electronic equipment |
CN116303140A (en) * | 2023-05-19 | 2023-06-23 | 珠海妙存科技有限公司 | Hardware-based sorting algorithm optimization method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101188477A (en) * | 2007-12-25 | 2008-05-28 | 华为技术有限公司 | A data packet sequence receiving method and device |
CN101459693A (en) * | 2008-12-29 | 2009-06-17 | 中兴通讯股份有限公司 | Stream media downloading method and system |
EP2521369A2 (en) * | 2011-03-31 | 2012-11-07 | Juniper Networks, Inc. | Media file storage format and adaptive delivery system |
-
2012
- 2012-11-16 CN CN2012104884676A patent/CN103124412A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101188477A (en) * | 2007-12-25 | 2008-05-28 | 华为技术有限公司 | A data packet sequence receiving method and device |
CN101459693A (en) * | 2008-12-29 | 2009-06-17 | 中兴通讯股份有限公司 | Stream media downloading method and system |
EP2521369A2 (en) * | 2011-03-31 | 2012-11-07 | Juniper Networks, Inc. | Media file storage format and adaptive delivery system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108366044A (en) * | 2017-12-30 | 2018-08-03 | 深圳市潮流网络技术有限公司 | A kind of VoIP remote audio-videos sharing method |
CN108366044B (en) * | 2017-12-30 | 2023-12-12 | 深圳市潮流网络技术有限公司 | VoIP remote audio/video sharing method |
CN110290552A (en) * | 2018-03-19 | 2019-09-27 | 腾讯科技(深圳)有限公司 | Cache the measurement method and device, storage medium, electronic device of depth |
CN110290552B (en) * | 2018-03-19 | 2022-01-04 | 腾讯科技(深圳)有限公司 | Method and device for measuring cache depth, storage medium and electronic device |
CN112019939A (en) * | 2019-05-31 | 2020-12-01 | 青岛海信宽带多媒体技术有限公司 | RTP packet processing method and device and playing terminal |
CN111131075A (en) * | 2019-11-21 | 2020-05-08 | 武汉兴图新科电子股份有限公司 | High-concurrency data packet buffering method |
CN111556361A (en) * | 2020-04-29 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Buffer zone setting method, device, equipment and storage medium for Bluetooth audio playing |
WO2021174879A1 (en) * | 2020-09-18 | 2021-09-10 | 平安科技(深圳)有限公司 | Ai video call quality analysis method and apparatus, computer device, and storage medium |
CN116055790A (en) * | 2022-07-29 | 2023-05-02 | 荣耀终端有限公司 | Video playing method and system and electronic equipment |
CN116055790B (en) * | 2022-07-29 | 2024-03-19 | 荣耀终端有限公司 | Video playing method and system and electronic equipment |
CN116303140A (en) * | 2023-05-19 | 2023-06-23 | 珠海妙存科技有限公司 | Hardware-based sorting algorithm optimization method and device |
CN116303140B (en) * | 2023-05-19 | 2023-08-29 | 珠海妙存科技有限公司 | Hardware-based sorting algorithm optimization method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103124412A (en) | Network shaking processing technology based on RTP (real time transport protocol) | |
CN103916716B (en) | The code rate smoothing method of realtime video transmission under a kind of wireless network | |
EP2383941B1 (en) | Client terminal, method and system for downloading streaming media | |
CN101771599B (en) | Method and device for receiving RTP data packets | |
CN1996935B (en) | A dynamic adjusting method for data packets in the buffer at the streaming receiving end | |
CN104113777A (en) | Audio stream decoding method and device | |
US20080019440A1 (en) | Apparatus and method for transmitting and receiving moving pictures using near field communication | |
CN103533451A (en) | Method and system for regulating jitter buffer | |
US7738513B2 (en) | Method for inverse multiplexing | |
CN101175104B (en) | Dithering caching device and its management method | |
CN105429984A (en) | Media play method, equipment and music teaching system | |
CN102694831A (en) | Data compensation method of streaming media of mobile terminal and data compensation system thereof, and content distribution network | |
CN107295364B (en) | For the real-time streaming transport control method of barrage video, control device | |
KR101472032B1 (en) | Method of treating representation switching in HTTP streaming | |
CN107430496A (en) | Frame is abandoned for long-range display | |
Li et al. | Synchronization in real time multimedia data delivery | |
CN104469538B (en) | RTP video streaming data packet recombination methods towards picture image quality compared with small loss | |
CN103248774B (en) | VoIP server synchronous sound mixing method and system | |
CN107979482B (en) | Information processing method, device, sending end, jitter removal end and receiving end | |
CN111918142A (en) | Smoothing method, device, equipment and medium for converting national standard video code stream into RTP stream | |
CN107197392A (en) | Packet discarding method and packet loss device in barrage video stream transmission procedure | |
CN101459852A (en) | Method and device for predicting video service occurrence delay | |
US20120009892A1 (en) | Wireless communication system and method for adjusting used depth of buffer unit in wireless communication system | |
CN103475906B (en) | Measuring method and measurement apparatus for media stream | |
CN110858930A (en) | Data frame transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130529 |