CN107276910A - The real-time adjusting apparatus of video code rate and system, video server - Google Patents
The real-time adjusting apparatus of video code rate and system, video server Download PDFInfo
- Publication number
- CN107276910A CN107276910A CN201710421791.9A CN201710421791A CN107276910A CN 107276910 A CN107276910 A CN 107276910A CN 201710421791 A CN201710421791 A CN 201710421791A CN 107276910 A CN107276910 A CN 107276910A
- Authority
- CN
- China
- Prior art keywords
- video
- mrow
- real
- time
- video data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
- H04L65/762—Media network packet handling at the source
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/26—Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of real-time adjusting apparatus of video code rate and system, video server, wherein, include in the real-time adjusting apparatus of the video code rate based on wireless network:Processor, for realizing each instruction;And memory, for storing a plurality of instruction, instruction is loaded and performed suitable for processor;A plurality of instruction includes:The packet loss information detected according to video receiver obtains packet loss;The video code rate of network is predicted according to packet loss, obtains predicting code check;The video data confirmation fed back according to video receiver judges whether current network congestion occurs;If so, being adjusted according to prediction code check to real-time code rate, and video data is sent according to the code check after adjustment.It judges whether active wireless network congestion situation occurs according to information such as the packet loss of video receiver, if occurring, according to the transmission code check of adjustment video data in time, to reduce the congestion state of wireless network, so as to improve the efficiency of transmission of video data.
Description
Technical field
The present invention relates to technical field of memory, more particularly to a kind of real-time adjusting apparatus of video code rate and system, video clothes
Business device.
Background technology
With the development of Internet technology, wireless network has obtained swift and violent development, while being convenient for people to Working Life
Performance to wireless network proposes higher requirement, the real-time of such as wireless network.Especially in public safety field, for
The requirement that the transmission of real-time video has round-the-clock, full landform is conducive to existing there is provided the transmission of video that definition is high, time delay is small
The timely grasp of field situation.But, due to the defective of wireless network, easily cause bag phenomenon occur in network transmission.It is general next
Say, packet loss reason can substantially be divided into two classes:One class is due to that network congestion causes, i.e., current network can not carry very high
Code check;Another kind of is due to that wireless losses are caused, such as error code, the reason such as wireless network.Either which kind of reason causes
Packet loss, all greatly affected real-time Transmission of the wireless network to video.
In transmission control protocol (hereinafter referred to as TCP), the mechanism for realizing congestion control includes two parts:Slow turn-on and gather around
Plug is avoided.In order to improve efficiency of transmission, TCP Reno are further introduced into Fast retransmission and fast restoration algorithm, and it need to be according to hair
The duplicate acknowledgment that the side of sending is received judges the loss of packet, without waiting again until packet is overtime, continual data package dropout is occurring with this
In the case of, sender can more effectively carry out congestion control.But this improvement is all just in cable network, for letter
The reason for complicated wireless network environment of road environment, loss of data, is not limited solely to network congestion, and most of packet loss is due to
Link error is caused, and directly using the rule in cable network, certainly will reduce bandwidth availability ratio, it is impossible to give full play of TCP
Performance.
Certainly, also have at present for improving the technical scheme of the efficiencies of transmission of TCP in the wireless context, such as:
1) end-to-end scheme, its agreement only to TCP connections two ends is modified, it is not necessary to consider intermediate node, it is ensured that
The integrality of sender and reciever TCP connections.But, when being coexisted with conventional TCP protocols, it may appear that forcibly occupy other protocol streams
Friendly between the problem of bandwidth, heavy damage different agreement stream.
2) connection scheme is segmented, it is divided into two sections in transport layer, Radio Link is shielded completely to TCP senders, with this
Radio link portion can be in addition using other Research of Congestion Control Techniques, such as SACK (Selective ACK).The device is to moving
The TCP softwares of dynamic main frame and intermediate node will make an amendment, although the TCP of sender realizes unaffected, but destroys end
TCP connections to end are semantic, and the packet of transmission, which does not have, is really sent to recipient.
3) link-local layered scheme, between both the above device, it is using reliably link layer protocol in link layer
Retransmit so as to the packet loss relevant with link to sending end shield.But so link layer protocol and upper-layer protocol have independence
Error Control function, both vie each other, and are unfavorable for improving handling capacity end to end.
The content of the invention
It is an object of the invention to provide a kind of wireless access authentication device and a kind of real-time adjusting apparatus of video code rate and it is
System, video server, efficiently solve the technical problem of video data real-time Transmission in wireless network.
The technical scheme that the present invention is provided is as follows:
A kind of real-time adjusting apparatus of video code rate based on wireless network, including:
Processor, for realizing each instruction;And
Memory, for storing a plurality of instruction, the instruction is loaded and performed suitable for processor;The a plurality of instruction bag
Include:
The packet loss information detected according to video receiver obtains packet loss;
The video code rate of network is predicted according to the packet loss, obtains predicting code check;
The video data confirmation fed back according to video receiver judges whether current network congestion occurs;If so,
Real-time code rate is adjusted according to prediction code check, and video data is sent according to the code check after adjustment.
In the technical program, judge whether active wireless network is gathered around according to information such as the packet loss of video receiver
Plug situation, if occurring, according to the transmission code check of adjustment video data in time, to reduce the congestion state of wireless network, so that
Improve the efficiency of transmission of video data.
It is further preferred that being predicted in instruction according to the packet loss to the video code rate of network, predictive code is obtained
In rate, including:
The timestamp that the video data confirmation fed back according to video receiver includes calculates and obtains round trip delay time;
The video code rate in network is predicted according to packet loss, round trip delay time and retransmission time out time, obtains pre-
Survey code check.
In the technical program, the video code rate of wireless network is predicted according to information such as packet loss, with this basis
The video code rate is adjusted to the real-time code rate in active wireless network.
It is further preferred that it is described according to packet loss, round trip delay time and retransmission time out time to the video codes in network
Rate is predicted, and obtains prediction code check R0, it is specially:
Wherein, P is packet loss, and RTT is round trip delay time, and RTO is re-transmission time-out time.
It is further preferred that judging that current network is in the video data confirmation that instruction is fed back according to video receiver
It is no to occur in congestion, including:
The timestamp included according to video data confirmation, which is calculated, obtains one-way delay, and the one-way delay is video
Delay of the transmitting terminal to video receiver;
Judge whether one-way delay is presented increase trend in default size data amount, if so,
There is congestion in judgement.
It is further preferred that the timestamp included according to video data confirmation calculates and obtains one-way delay
Di, it is specially:
Di=RTT- (Si-Ri)
Wherein, RTT is the round trip delay time of i-th of video data, SiFor video sending end send i-th video data when
Between, RiThe time of i-th of video data confirmation is sent for video receiver.
It is further preferred that whether one-way delay is presented in increase trend in the default size data amount of instruction judgement, bag
Include:
Tendency judgement value is calculated according to preset rules, and judges whether One Way Delay is presented increase and becomes according to tendency judgement value
Gesture, including first trend decision content and second trend decision content are calculated, wherein,
First trend decision content SPCTFor:
Wherein, K is video data packets number in the data volume for preset size,It is equal for l group video data one-way delay
Value,For l-1 group video data one-way delay averages;
Second trend decision content SPDTFor:
Wherein, K is video data packets number in the data volume for preset size,It is equal for l group video data one-way delay
Value,For l-1 group video data one-way delay averages;For K group video data one-way delay averages,For the 1st group
Video data one-way delay average.
In the technical program, according to the congestion of first trend decision content and second trend decision content to active wireless network
Situation is judged, simple and convenient.
It is further preferred that in instruction judges whether One Way Delay is presented increase trend according to tendency judgement value, including:
If first trend decision content is more than the first preset value, and second trend decision content is more than the second preset value, then judges
Increase trend is presented in One Way Delay.
It is further preferred that in instruction is adjusted according to prediction code check to real-time code rate, including:
Compare first trend decision content and second trend decision content, regard higher value as code check adjusted value;
It is adjusted according to the real-time code rate that the code check adjusted value is sent to video data.
It is further preferred that in instruction is adjusted according to code check adjusted value adjustment to real-time code rate, including:
Code check adjusted value is compared with the 3rd preset value;
If code check adjusted value is less than the 3rd preset value, code check will be predicted as correction code check, and real-time code rate is adjusted
For prediction code check;
If code check adjusted value is more than the 3rd preset value, correcting code rate is worth to according to prediction code check and code check adjustment, and
Real-time code rate is adjusted to correct code check, wherein, correction code check RwrfcFor:
Wherein, ROD is code check adjusted value.
It is further preferred that after instruction is adjusted according to code check adjusted value adjustment to real-time code rate, entering one
Step includes:
Real-time code rate is further adjusted according to correction code check and the code check grade selected of user, and according to adjustment after
Code check send video data.
In the technical program, the code check grade selected according to user is adaptive with reference to the link condition of active wireless network
Transmission code check should be adjusted, to improve network transmission efficiency.
Present invention also offers a kind of video server, including the real-time adjusting apparatus of above-mentioned video code rate.
Present invention also offers a kind of video code rate real-time regulating system, including above-mentioned video server, in addition to video
Data acquisition facility and video gateway, wherein, video server obtains equipment with video data respectively and video gateway is connected,
Video data obtains equipment and obtains video data in real time, and sends it to video server;
Video server receives video data and obtains the video data that equipment is obtained, and passes through the real-time adjusting apparatus of video code rate
The code check that adjustment video data is sent in real time, controls video gateway to send video data according to the code check with this.
In the technical program, the code check grade that video code rate real-time regulating system is selected according to user, with reference to currently without
The link circuit condition of gauze network, automatic adjusument sends code check.It is carried out at analysis by the status information to active wireless network
Reason, the size to video code rate is predicted and analyzed, and causes the transmission rate of wireless network to be improved as far as possible with this.Should
Scheme is only changed the Transmission Control Protocol of sender on a small quantity, not only keeps the existing network transmission protocol meaning of one's words and end-to-end (video
Between transmitting terminal and video receiver) semantic integrality, while not changing the Transmission Control Protocol of intermediate node, it is ensured that with other
Friendly between TCP flow.
Brief description of the drawings
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to being inverted quantitative aerosol valve
Above-mentioned characteristic, technical characteristic, advantage and its implementation be further described.
Fig. 1 is a kind of embodiment schematic diagram of store instruction in memory of the present invention;
Fig. 2 is store instruction another embodiment schematic diagram in memory of the present invention;
Fig. 3 is video code rate real-time regulating system system structural representation in the present invention.
Drawing reference numeral explanation:
100- video datas obtain equipment, 200- video servers, 300- gateways, 400- video receivers.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make only to schematically show part related to the present invention in simplified form, each figure, their not generations
Table its as product practical structures.
A kind of present invention video code rate based on wireless network real-time adjusting apparatus, including:The processor of interconnection
And memory, wherein, processor is used to realize each instruction;Memory is used to store a plurality of instruction, and instruction adds suitable for processor
Carry and perform.
Specifically, as shown in figure 1, a plurality of instruction stored in memory includes:The packet loss that S1 is detected according to video receiver
Information obtains packet loss;S2 is predicted according to packet loss to the video code rate of network, obtains predicting code check;S3 connects according to video
The video data confirmation of receiving end feedback judges whether current network congestion occurs;If so, jumping to step S4;S4 is according to pre-
Survey code check to be adjusted real-time code rate, and video data is sent according to the code check after adjustment.
In the present embodiment, after the initialization network information, since slow start stage, video receiver is proceeded by
Packet loss detection, and by the packet loss feedback of the information detected to video sending end.Video sending end after packet loss information is received,
Packet loss is calculated;Afterwards, the packet loss obtained according to calculating is predicted to the video code rate of current Wi-Fi, is obtained
To prediction code check;Then judge whether occur in that congestion in active wireless network, if occurring in that congestion, according to preset rules pair
Current real-time code rate is adjusted, and to reduce the congestion state of wireless network, improves the efficiency of transmission of video data.Illustrate
, packet loss detection is persistently carried out during whole video data is transmitted, since TCP slow start stages.In an example
In, during watching video by wireless network, terminal device persistently detects the packet loss for receiving data in whole process,
And by packet loss feedback of the information to video sending end, be adjusted with the code check to video data transmission of this applicability, especially
In the case where wireless network is unstable, effective video improves the efficiency of data transfer.In another example, to video data
The higher application scenarios of requirement of real-time, it is such as sudden and violent probably emergent, it is effectively ensured using the video code rate method of real-time adjustment
The real-time Transmission of video data.
Specifically, the video code rate of network is predicted obtain prediction code check during, first, according to video reception
The timestamp that the video data confirmation of end feedback includes, which is calculated, obtains round trip delay time;Afterwards, according to packet loss, come and go prolong
When and the retransmission time out time video code rate in network is predicted, obtain prediction code check R0:
Wherein, P is packet loss, and RTT is round trip delay time, and RTO is the TCP retransmission time out times.
Calculated according to the above method and obtain predictive code rate R0Afterwards, the video data confirmation letter fed back according to video receiver
Breath judges whether current network congestion occurs:The timestamp included first according to video data confirmation, which is calculated, obtains unidirectional
It is delayed and is stored, and then judge whether one-way delay is presented increase trend in default size data amount, if so, then determines
Existing congestion.Specifically, one-way delay Di=RTT- (Si-Ri), wherein, RTT is the round trip delay time of i-th of video data, SiFor video
Transmitting terminal sends the time of i-th of video data, RiThe time of i-th of video data confirmation is sent for video receiver.
During whether the one-way delay of each video data bag in judging default size data amount is presented increase trend,
Calculated according to preset rules and obtain tendency judgement value, judge whether One Way Delay is presented increase trend according to tendency judgement value with this,
Including calculating first trend decision content and second trend decision content, specifically:
According to the array arr that the size pre-set is N, video data is transmitted across to N number of video data newest in journey
Corresponding one-way delay is wrapped to be preserved;N number of one-way delay is divided into K packet afterwards (e.g., to divide on a time period, each
The number that packet includes data can be the same or different, and K>3).Based on this, first trend decision content SPCTFor:
Wherein, K is video data packets number in the data volume for preset size,It is equal for l group video data one-way delay
Value,For l-1 group video data one-way delay averages.For I (x) functions, if x is true, I (x)=1, otherwise I (x)
=0, i.e., in the present embodiment, ifThenOtherwise
Second trend decision content SPDTFor:
Wherein, K is video data packets number in the data volume for preset size,It is equal for l group video data one-way delay
Value,For l-1 group video data one-way delay averages;For K group video data one-way delay averages,For the 1st group
Video data one-way delay average.
According to above-mentioned first trend decision content SPCTWith second trend decision content SPDTTo wireless network current congestion situation
During being judged, if first trend decision content is more than the first preset value, and second trend decision content is more than second and preset
Value, then judge that increase trend is presented in One Way Delay.
In one example, it is 0.66 by the first default settings, is 0.55 by the second default settings, then in decision process
In, obtain first trend decision content S if calculatingPCT=0.5<0.66, second trend decision content SPDT=0.6>0.55, judge only have
Second trend decision content SPDTIncrease trend is all presented, and then judges that congestion does not occur for active wireless network, without to current net
The real-time code rate that network sends data video is adjusted.
In one example, it is 0.66 by the first default settings, is 0.55 by the second default settings, then in decision process
In, obtain first trend decision content S if calculatingPCT=0.7>0.66, second trend decision content SPDT=0.6>0.55, judge first
Tendency judgement value SPCTWith second trend decision content SPDTIncrease trend is all presented, and then judges that congestion occurs for active wireless network,
Need to be adjusted the real-time code rate that current network sends data video.
Calculated according to the above method and obtain first trend decision content SPCTWith second trend decision content SPDT, and judge currently without
Gauze network occurs after congestion, and first trend decision content S is compared immediatelyPCTWith second trend decision content SPDT, using higher value as
Code check adjusted value ROD=MAX (SPCT,SPDT), and according to the value by changing key frame interval or adjustment two field picture compression ratio
The real-time code rate that video data is sent is adjusted.
During adjustment, if code check adjusted value is less than the 3rd preset value, code check will be predicted as correction code check, and
Real-time code rate is adjusted to predict code check, i.e. Rwfrc=R0。
If code check adjusted value is more than the 3rd preset value, according to prediction code check R0Correcting code is obtained with code check adjusted value ROD
Rate, and real-time code rate is adjusted to correction code check, wherein, correction code check RwrfcFor:
Here the 3rd preset value is not specifically limited, it is e.g., in one example, pre- by the 3rd depending on actual conditions
If value is set as 0.66, as shown in table 1, if code check adjusted value ROD<0.66, then correct code check Rwfrc=R0, by key frame interval
It is set as 30s;If code check adjusted value ROD>0.66, then correct code checkAnd according to different brackets pair
The key frame interval time is set, specifically, when 0.66<ROD<0.72, key frame interval is set as 20s;When 0.72<ROD<
0.78, key frame interval is set as 10s;When 0.78<ROD<0.85, key frame interval is set as 5s;When 0.85<ROD<
0.90, key frame interval is set as 3s;When 0.90<ROD<0.95, key frame interval is set as 2s;When 0.95<ROD<
0.99, key frame interval is set as 1s.
Table 1:
Above-mentioned embodiment is improved and obtains present embodiment, as shown in Fig. 2 in the present embodiment, memory
The a plurality of instruction of middle storage includes:The packet loss information that S1 is detected according to video receiver obtains packet loss;S2 is according to packet loss pair
The video code rate of network is predicted, and obtains predicting code check;The video data confirmation that S3 feeds back according to video receiver is sentenced
Whether disconnected current network there is congestion;If so, jumping to step S4;S4 is adjusted to real-time code rate according to prediction code check and obtained
Correct code check;The code check grade that S5 is selected according to correction code check and user is further adjusted to real-time code rate, and according to tune
Code check after whole sends video data.
In the present embodiment, before being adjusted to video code rate, code check grade, such as table 2 are selected by user first
It show the relation between each code check grade and code check;Afterwards, the network information is initialized, since slow start stage, video connects
Receiving end proceeds by packet loss detection, and by the packet loss feedback of the information detected to video sending end.Video sending end is being received
After packet loss information, packet loss is calculated;Afterwards, video codes of the packet loss obtained according to calculating to current Wi-Fi
Rate is predicted, and obtains predicting code check;Then judge whether occur in that congestion in active wireless network, if occurring in that congestion,
Current real-time code rate is adjusted according to preset rules and obtains correcting code check;And the code for selecting the correction code check and user
Rate grade is compared, if correction code check is more than the corresponding code check of code check grade that user selectes, real-time code rate is adjusted to
The corresponding code check of code check grade that user selectes;On the contrary, real-time code rate is adjusted to correct code check, to reduce gathering around for wireless network
Plug-like state, improves the efficiency of transmission of video data.
Table 2:
Code check grade | Code check (kbps) |
It is smooth | 256 |
Clearly | 512 |
SD | 1024 |
High definition | 4800 |
It is super clear | 9600 |
In one example, if the code check grade that user selectes is " SD ", and calculating obtains correcting code rate RwrfcFor
5000kbps, then be adjusted to 1024kbps, and send video data with this by real-time code rate.
In one example, if the code check grade that user selectes is " super clear ", and calculating obtains correcting code rate RwrfcFor
5000kbps, then be adjusted to 5000kbps, and send video data with this by real-time code rate.
Present invention also offers a kind of video server, including the real-time adjusting apparatus of above-mentioned video code rate.In Video service
During device sends video data, since TCP slow start stages, video receiver (such as smart mobile phone, notebook computer
Deng) proceed by packet loss detection, and by the packet loss feedback of the information detected to video server.Video server is lost receiving
After package informatin, packet loss and timestamp information are calculated;Afterwards, according to calculate obtained packet loss and round trip delay time to currently without
The video code rate that gauze road can be carried carries out reasonable prediction, obtains predicting code check;Then, using the One Way Delay of network transmission,
Judge whether active wireless network occurs in that congestion, if occurring in that congestion, current real-time code rate is entered according to preset rules
Row adjustment, to reduce the congestion state of wireless network, improves the efficiency of transmission of video data.
Present invention also offers a kind of video code rate real-time regulating system, as shown in figure 3, being wrapped in the real-time regulating system
Above-mentioned video server 200 is included, in addition to video data obtains equipment 100 and video gateway 300, wherein, video server point
Equipment is not obtained with video data and video gateway is connected.
In the course of the work, video data obtains equipment 100 and obtains video data in real time, and sends it to Video service
Device 200;Video server 200 receives video data and obtains the video data that equipment obtains to be sent to regarding by gateway 300 immediately
Frequency receiving terminal 400, and adjusted in real time by the real-time adjusting apparatus of video code rate built in video server 200 during transmission
The code check that whole video data is sent, controls video gateway 300 to send video data according to the code check with this.
During to code check adjust in real time, the packet loss information fed back according to receiving terminal calculates packet loss;According to
Timestamp in video data confirmation calculates the round trip delay time of video data bag, can to active wireless network with reference to packet loss
The code stream size of carrying is predicted, and obtains predicting code check;Afterwards, the timestamp in video data confirmation is calculated and regarded
The one-way delay information of frequency packet, and judge whether occur substantially gathering around in active wireless network according to the one-way delay information
Plug.If there is congestion, prediction code check is corrected and obtains correcting code check, and by obtained correction code check and current code in real time
Rate is compared, and transmission code check is adjusted with this, and control gateway is carried out according to the code check after the adjustment to follow-up video data bag
Send.
On this basis, before to code check adjust in real time, user selectes code check grade, with this, by correcting
To correction code check after, according to user select code check and correction code check real-time code rate is adjusted, and control gateway according to be somebody's turn to do
Code check after adjustment is transmitted to follow-up video data bag.Its code check grade selected according to user, with reference to current wireless
The link circuit condition of network, automatic adjusument sends code check, substantially increases the transmission rate of wireless network.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, is not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (12)
1. a kind of real-time adjusting apparatus of video code rate, it is characterised in that the real-time adjusting apparatus of video code rate includes:
Processor, for realizing each instruction;And
Memory, for storing a plurality of instruction, the instruction is loaded and performed suitable for processor;The a plurality of instruction includes:
The packet loss information detected according to video receiver obtains packet loss;
The video code rate of network is predicted according to the packet loss, obtains predicting code check;
The video data confirmation fed back according to video receiver judges whether current network congestion occurs;If so,
Real-time code rate is adjusted according to prediction code check, and video data is sent according to the code check after adjustment.
2. the real-time adjusting apparatus of video code rate as claimed in claim 1, it is characterised in that in instruction according to the packet loss pair
The video code rate of network is predicted, and is obtained in prediction code check, including:
The timestamp that the video data confirmation fed back according to video receiver includes calculates and obtains round trip delay time;
The video code rate in network is predicted according to packet loss, round trip delay time and retransmission time out time, predictive code is obtained
Rate.
3. the real-time adjusting apparatus of video code rate as claimed in claim 2, it is characterised in that it is described according to packet loss, come and go and prolong
When and the retransmission time out time video code rate in network is predicted, obtain prediction code check R0, it is specially:
<mrow>
<msub>
<mi>R</mi>
<mn>0</mn>
</msub>
<mo>=</mo>
<mfrac>
<mn>1</mn>
<mrow>
<mi>R</mi>
<mi>T</mi>
<mi>T</mi>
<msqrt>
<mrow>
<mfrac>
<mrow>
<mn>2</mn>
<mi>P</mi>
</mrow>
<mn>3</mn>
</mfrac>
<mo>+</mo>
<mi>R</mi>
<mi>T</mi>
<mi>O</mi>
<mrow>
<mo>(</mo>
<mn>3</mn>
<msqrt>
<mfrac>
<mrow>
<mn>3</mn>
<mi>P</mi>
</mrow>
<mn>8</mn>
</mfrac>
</msqrt>
<mo>)</mo>
</mrow>
</mrow>
</msqrt>
<mi>P</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>+</mo>
<mn>32</mn>
<msup>
<mi>P</mi>
<mn>2</mn>
</msup>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
</mrow>
Wherein, P is packet loss, and RTT is round trip delay time, and RTO is re-transmission time-out time.
4. the real-time adjusting apparatus of video code rate as described in claim 1-3 any one, it is characterised in that regarded in instruction basis
The video data confirmation of frequency receiving terminal feedback judges whether current network occurs in congestion, including:
The timestamp included according to video data confirmation, which is calculated, obtains one-way delay, and the one-way delay sends for video
Hold the delay of video receiver;
Judge whether one-way delay is presented increase trend in default size data amount, if so,
There is congestion in judgement.
5. the real-time adjusting apparatus of video code rate as claimed in claim 4, it is characterised in that described according to video data confirmation letter
The timestamp that breath includes calculates and obtains one-way delay Di, it is specially:
Di=RTT- (Si-Ri)
Wherein, RTT is the round trip delay time of i-th of video data, SiThe time of i-th of video data, R are sent for video sending endi
The time of i-th of video data confirmation is sent for video receiver.
6. the real-time adjusting apparatus of video code rate as claimed in claim 4, it is characterised in that judge default size data in instruction
Whether one-way delay is presented in increase trend in amount, including:
Tendency judgement value is calculated according to preset rules, and judges whether One Way Delay is presented increase trend according to tendency judgement value,
Including calculating first trend decision content and second trend decision content, wherein,
First trend decision content SPCTFor:
<mrow>
<msub>
<mi>S</mi>
<mrow>
<mi>P</mi>
<mi>C</mi>
<mi>T</mi>
</mrow>
</msub>
<mo>=</mo>
<mfrac>
<mrow>
<msubsup>
<mi>&Sigma;</mi>
<mrow>
<mi>l</mi>
<mo>=</mo>
<mn>2</mn>
</mrow>
<mi>K</mi>
</msubsup>
<mi>I</mi>
<mrow>
<mo>(</mo>
<msub>
<mover>
<mi>D</mi>
<mo>&OverBar;</mo>
</mover>
<mi>l</mi>
</msub>
<mo>></mo>
<msub>
<mover>
<mi>D</mi>
<mo>&OverBar;</mo>
</mover>
<mrow>
<mi>l</mi>
<mo>-</mo>
<mn>1</mn>
</mrow>
</msub>
<mo>)</mo>
</mrow>
</mrow>
<mrow>
<mi>K</mi>
<mo>-</mo>
<mn>1</mn>
</mrow>
</mfrac>
</mrow>
Wherein, K is video data packets number in the data volume for preset size,For l group video data one-way delay averages,For l-1 group video data one-way delay averages;
Second trend decision content SPDTFor:
<mrow>
<msub>
<mi>S</mi>
<mrow>
<mi>P</mi>
<mi>D</mi>
<mi>T</mi>
</mrow>
</msub>
<mo>=</mo>
<mfrac>
<mrow>
<msub>
<mover>
<mi>D</mi>
<mo>&OverBar;</mo>
</mover>
<mi>K</mi>
</msub>
<mo>-</mo>
<msub>
<mover>
<mi>D</mi>
<mo>&OverBar;</mo>
</mover>
<mn>1</mn>
</msub>
</mrow>
<mrow>
<msubsup>
<mi>&Sigma;</mi>
<mrow>
<mi>l</mi>
<mo>=</mo>
<mn>2</mn>
</mrow>
<mi>K</mi>
</msubsup>
<mo>|</mo>
<msub>
<mover>
<mi>D</mi>
<mo>&OverBar;</mo>
</mover>
<mi>l</mi>
</msub>
<mo>-</mo>
<msub>
<mover>
<mi>D</mi>
<mo>&OverBar;</mo>
</mover>
<mrow>
<mi>l</mi>
<mo>-</mo>
<mn>1</mn>
</mrow>
</msub>
<mo>|</mo>
</mrow>
</mfrac>
</mrow>
Wherein, K is video data packets number in the data volume for preset size,For l group video data one-way delay averages,For l-1 group video data one-way delay averages;For K group video data one-way delay averages,For the 1st group of video
Data one-way delay average.
7. the real-time adjusting apparatus of video code rate as claimed in claim 6, it is characterised in that sentenced in instruction according to tendency judgement value
Whether disconnected One Way Delay is presented in increase trend, including:
If first trend decision content is more than the first preset value, and second trend decision content is more than the second preset value, then judges unidirectional
Increase trend is presented in time delay.
8. the real-time adjusting apparatus of video code rate as claimed in claims 6 or 7, it is characterised in that in instruction according to prediction code check
In being adjusted to real-time code rate, including:
Compare first trend decision content and second trend decision content, regard higher value as code check adjusted value;
It is adjusted according to the real-time code rate that the code check adjusted value is sent to video data.
9. the real-time adjusting apparatus of video code rate as claimed in claim 8, it is characterised in that adjusted in instruction according to the code check
During value adjustment is adjusted to real-time code rate, including:
Code check adjusted value is compared with the 3rd preset value;
If code check adjusted value is less than the 3rd preset value, code check will be predicted as correction code check, and real-time code rate is adjusted to pre-
Survey code check;
If code check adjusted value is more than the 3rd preset value, correcting code rate is worth to according to prediction code check and code check adjustment, and will be real
When code check be adjusted to correct code check, wherein, correction code check RwrfcFor:
<mrow>
<msub>
<mi>R</mi>
<mrow>
<mi>w</mi>
<mi>f</mi>
<mi>r</mi>
<mi>c</mi>
</mrow>
</msub>
<mo>=</mo>
<msub>
<mi>R</mi>
<mn>0</mn>
</msub>
<mo>*</mo>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
<mi>R</mi>
<mi>O</mi>
<mi>D</mi>
<mo>)</mo>
</mrow>
</mrow>
Wherein, ROD is code check adjusted value.
10. the real-time adjusting apparatus of video code rate as claimed in claim 9, it is characterised in that adjusted in instruction according to the code check
After whole value adjustment is adjusted to real-time code rate, further comprise:
Real-time code rate is further adjusted according to the code check grade that correction code check and user select, and according to the code after adjustment
Rate sends video data.
11. a kind of video server, it is characterised in that the video server is included such as claim 1-10 any one institute
The real-time adjusting apparatus of video code rate stated.
12. a kind of video code rate real-time regulating system, it is characterised in that the video code rate real-time regulating system is included as weighed
Profit requires that the video server described in 11, in addition to video data obtain equipment and video gateway, wherein, video server difference
Equipment is obtained with video data and video gateway is connected,
Video data obtains equipment and obtains video data in real time, and sends it to video server;
Video server receives video data and obtains the video data that equipment is obtained, real-time by the real-time adjusting apparatus of video code rate
The code check that video data is sent is adjusted, controls video gateway to send video data according to the code check with this.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710421791.9A CN107276910A (en) | 2017-06-07 | 2017-06-07 | The real-time adjusting apparatus of video code rate and system, video server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710421791.9A CN107276910A (en) | 2017-06-07 | 2017-06-07 | The real-time adjusting apparatus of video code rate and system, video server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107276910A true CN107276910A (en) | 2017-10-20 |
Family
ID=60065991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710421791.9A Pending CN107276910A (en) | 2017-06-07 | 2017-06-07 | The real-time adjusting apparatus of video code rate and system, video server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107276910A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108833930A (en) * | 2018-06-20 | 2018-11-16 | 广州华多网络科技有限公司 | Live data transfer control method, device, live streaming equipment and storage medium |
CN108848415A (en) * | 2018-05-04 | 2018-11-20 | 北京大学 | A kind of the network real-time video transmission method and device of adaptive learning |
CN108966022A (en) * | 2018-06-29 | 2018-12-07 | 广州市千钧网络科技有限公司 | A kind of live broadcasting method, device and terminal |
CN109525861A (en) * | 2018-12-05 | 2019-03-26 | 北京邮电大学 | A kind of method and device of video needed for determining user |
CN109729396A (en) * | 2017-10-31 | 2019-05-07 | 华为技术有限公司 | Video slicing data transmission method and device |
CN109996087A (en) * | 2019-03-21 | 2019-07-09 | 武汉大学 | A kind of code rate adaptive approach and device towards net cast based on finite state machine |
CN110012324A (en) * | 2019-03-28 | 2019-07-12 | 武汉大学 | A kind of the code rate adaptive approach and system of embedded radio transmission of video |
CN110337026A (en) * | 2019-06-18 | 2019-10-15 | 厦门立林科技有限公司 | A kind of video code rate self-adapting regulation method of cloud intercom system |
CN110505532A (en) * | 2019-09-04 | 2019-11-26 | 睿魔智能科技(深圳)有限公司 | Low delay image transfer method, device, equipment and storage medium |
CN110809127A (en) * | 2019-10-10 | 2020-02-18 | 北京邮电大学 | Video call method and device based on deep simulation learning |
CN110971936A (en) * | 2019-12-06 | 2020-04-07 | 中车青岛四方车辆研究所有限公司 | Video data processing method, server and video receiving end |
CN111416999A (en) * | 2020-03-09 | 2020-07-14 | 西安万像电子科技有限公司 | Data transmission method, terminal and system |
CN111491201A (en) * | 2020-04-08 | 2020-08-04 | 深圳市昊一源科技有限公司 | Method for adjusting video code stream and video frame loss processing method |
CN111629210A (en) * | 2020-05-22 | 2020-09-04 | 北京大米科技有限公司 | Data processing method and device and electronic equipment |
CN112448827A (en) * | 2019-08-27 | 2021-03-05 | 中国移动通信有限公司研究院 | Information processing method, device, equipment and computer readable storage medium |
CN113891172A (en) * | 2021-09-02 | 2022-01-04 | 西北工业大学 | Adaptive code rate control method based on RTT (round trip time) and suitable for wireless Mesh network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110222431A1 (en) * | 2009-09-30 | 2011-09-15 | Nobuaki Oue | Transmitting apparatus, receiving apparatus, transmitting and receiving system, and transmitting and receiving method |
CN103648058A (en) * | 2013-10-28 | 2014-03-19 | 南京邮电大学 | 3G media stream cross-layer rate control method based on channel measurement |
CN103888846A (en) * | 2014-03-04 | 2014-06-25 | 浙江大学 | Wireless video streaming service self-adaption rate control method based on QoE |
CN104113884A (en) * | 2013-04-18 | 2014-10-22 | 南京邮电大学 | Real-time multimedia transmission rate control mechanism in wireless network |
CN105430532A (en) * | 2015-11-18 | 2016-03-23 | 南京创维信息技术研究院有限公司 | Control method and system for adaptive adjustment of video data transmission |
-
2017
- 2017-06-07 CN CN201710421791.9A patent/CN107276910A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110222431A1 (en) * | 2009-09-30 | 2011-09-15 | Nobuaki Oue | Transmitting apparatus, receiving apparatus, transmitting and receiving system, and transmitting and receiving method |
CN104113884A (en) * | 2013-04-18 | 2014-10-22 | 南京邮电大学 | Real-time multimedia transmission rate control mechanism in wireless network |
CN103648058A (en) * | 2013-10-28 | 2014-03-19 | 南京邮电大学 | 3G media stream cross-layer rate control method based on channel measurement |
CN103888846A (en) * | 2014-03-04 | 2014-06-25 | 浙江大学 | Wireless video streaming service self-adaption rate control method based on QoE |
CN105430532A (en) * | 2015-11-18 | 2016-03-23 | 南京创维信息技术研究院有限公司 | Control method and system for adaptive adjustment of video data transmission |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729396A (en) * | 2017-10-31 | 2019-05-07 | 华为技术有限公司 | Video slicing data transmission method and device |
CN109729396B (en) * | 2017-10-31 | 2022-03-11 | 华为技术有限公司 | Video slicing data transmission method and device |
CN108848415A (en) * | 2018-05-04 | 2018-11-20 | 北京大学 | A kind of the network real-time video transmission method and device of adaptive learning |
CN108848415B (en) * | 2018-05-04 | 2021-01-15 | 北京大学 | Network real-time video transmission method and device for adaptive learning |
CN108833930A (en) * | 2018-06-20 | 2018-11-16 | 广州华多网络科技有限公司 | Live data transfer control method, device, live streaming equipment and storage medium |
CN108833930B (en) * | 2018-06-20 | 2020-10-02 | 广州华多网络科技有限公司 | Live broadcast data transmission control method and device, live broadcast equipment and storage medium |
CN108966022A (en) * | 2018-06-29 | 2018-12-07 | 广州市千钧网络科技有限公司 | A kind of live broadcasting method, device and terminal |
CN109525861A (en) * | 2018-12-05 | 2019-03-26 | 北京邮电大学 | A kind of method and device of video needed for determining user |
CN109996087A (en) * | 2019-03-21 | 2019-07-09 | 武汉大学 | A kind of code rate adaptive approach and device towards net cast based on finite state machine |
CN110012324A (en) * | 2019-03-28 | 2019-07-12 | 武汉大学 | A kind of the code rate adaptive approach and system of embedded radio transmission of video |
CN110012324B (en) * | 2019-03-28 | 2020-10-13 | 武汉大学 | Code rate self-adaption method, WIFI camera, control device and code rate self-adaption system for embedded wireless video transmission |
CN110337026A (en) * | 2019-06-18 | 2019-10-15 | 厦门立林科技有限公司 | A kind of video code rate self-adapting regulation method of cloud intercom system |
CN110337026B (en) * | 2019-06-18 | 2021-07-13 | 厦门立林科技有限公司 | Video code rate self-adaptive adjustment method of cloud intercom system |
CN112448827B (en) * | 2019-08-27 | 2022-07-19 | 中国移动通信有限公司研究院 | Information processing method, device, equipment and computer readable storage medium |
CN112448827A (en) * | 2019-08-27 | 2021-03-05 | 中国移动通信有限公司研究院 | Information processing method, device, equipment and computer readable storage medium |
CN110505532A (en) * | 2019-09-04 | 2019-11-26 | 睿魔智能科技(深圳)有限公司 | Low delay image transfer method, device, equipment and storage medium |
CN110809127B (en) * | 2019-10-10 | 2021-03-19 | 北京邮电大学 | Video call method and device based on deep simulation learning |
CN110809127A (en) * | 2019-10-10 | 2020-02-18 | 北京邮电大学 | Video call method and device based on deep simulation learning |
CN110971936A (en) * | 2019-12-06 | 2020-04-07 | 中车青岛四方车辆研究所有限公司 | Video data processing method, server and video receiving end |
CN111416999A (en) * | 2020-03-09 | 2020-07-14 | 西安万像电子科技有限公司 | Data transmission method, terminal and system |
CN111491201A (en) * | 2020-04-08 | 2020-08-04 | 深圳市昊一源科技有限公司 | Method for adjusting video code stream and video frame loss processing method |
CN111629210A (en) * | 2020-05-22 | 2020-09-04 | 北京大米科技有限公司 | Data processing method and device and electronic equipment |
CN113891172A (en) * | 2021-09-02 | 2022-01-04 | 西北工业大学 | Adaptive code rate control method based on RTT (round trip time) and suitable for wireless Mesh network |
CN113891172B (en) * | 2021-09-02 | 2022-10-04 | 西北工业大学 | Adaptive code rate control method based on RTT (round trip time) and suitable for wireless Mesh network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107276910A (en) | The real-time adjusting apparatus of video code rate and system, video server | |
US7707303B2 (en) | Method and devices for controlling retransmissions in data streaming | |
CN107864084B (en) | The transmission method and device of data packet | |
EP2119171B1 (en) | Improved data transfer method, system and protocol | |
CN105991462B (en) | Sending method, sending device and the system of transmission control protocol TCP data packet | |
CN103905328B (en) | A kind of data transfer control system, method and relevant apparatus | |
US8514715B2 (en) | Congestion window control based on queuing delay and packet loss | |
US10660112B2 (en) | Transmission rate regulation method | |
US9813933B2 (en) | Multi-stream service concurrent transmission method, subsystem, system and multi-interface terminal | |
CN103716136B (en) | A kind of data transferring method and system | |
CN106254202A (en) | A kind of multidiameter delay transmission method based on fountain codes and device | |
CN102664718B (en) | The method and apparatus that wireless side tcp data retransmits | |
CN107342848A (en) | A kind of adaptive code stream transmission method, device and equipment | |
CN103269260A (en) | Data transmission method, data receiving terminal, data sending terminal and data transmission system | |
CN102148662B (en) | Adjusting method and device for data transmitting speed | |
CN110418376A (en) | Data transmission method and device | |
CN110417650A (en) | Multilink data distribution method, device and electronic equipment | |
CN110311758A (en) | Data low latency transmission method, device and equipment and storage medium | |
CN105024940A (en) | Link adaptation-based heterogeneous network TCP congestion control method | |
WO2004051954A2 (en) | A method for enhancing transmission quality of streaming media | |
CN103326831A (en) | Link processing method and mobile terminal in multichannel transmission control protocol | |
KR20060121938A (en) | Codec-assisted capacity enhancement of wireless voip | |
CN111865828A (en) | Data transmission method, system, electronic device and storage medium | |
US20210266261A1 (en) | Communication apparatus, communication method, and program | |
EP3742745A1 (en) | Method and device for retransmitting packet via wireless fidelity link |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 200233 three floor of No. 333, No. 41, Qinjiang Road, Xuhui District, Shanghai Applicant after: Di'aisi information technology Limited by Share Ltd Address before: 200233 three floor of No. 333, No. 41, Qinjiang Road, Xuhui District, Shanghai Applicant before: Shanghai DS Communication Equipment Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171020 |