CN105450969B - A kind of real time video data transmission method and electronic equipment - Google Patents
A kind of real time video data transmission method and electronic equipment Download PDFInfo
- Publication number
- CN105450969B CN105450969B CN201410268450.9A CN201410268450A CN105450969B CN 105450969 B CN105450969 B CN 105450969B CN 201410268450 A CN201410268450 A CN 201410268450A CN 105450969 B CN105450969 B CN 105450969B
- Authority
- CN
- China
- Prior art keywords
- message
- information
- transmission
- electronic equipment
- data packet
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of real time video data transmission method and electronic equipments, transmitting terminal sends video compress frame data to receiving end, this method comprises: determining that corresponding first priority tag, the priority tag are sent to receiving end according to the importance of each data packet;Receive the re-transmission sequence of message information for the message to loss that the receiving end is generated based on the priority tag;After receiving the re-transmission sequence of message information, corresponding message is selected to be retransmitted according to the re-transmission sequence of message information.The quality of video calling can be improved in method and apparatus disclosed by the invention;And the efficiency and bandwidth availability ratio of re-transmission can be increased.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of real time video data transmission methods and electronic equipment.
Background technique
With the continuous development of 3G network and perfect, the usage amount of 3G business is also increasingly increasing, wherein video calling industry
Business is especially concerned by people.Video calling has broken the previous traditional communication way of people, makes interpersonal exchange more straight
It connects, is warmer, furthered interpersonal distance significantly.It can be said that video calling is one of the 3G network epoch important
Mark.Video call service contains huge business opportunity and challenge, in today of telecommunication market competition fierceness, major telecom operation
Quotient attaches great importance to video traffic.The service quality for how promoting video call service improves the satisfaction of client, seizes city
Advantageous first chance, improve the occupation rate and competitiveness in market, be to put one in face of major telecom operators real to ask
Topic.
The program is used to improve the call transfer quality problems in video call process, in realtime video transmission solution
Middle udp protocol is widely used, and most of the Internet phone software products also all operate on UDP.Udp protocol is as transmission
Agreement can guarantee the real-time of multi-medium data transmission.
In realizing the embodiment of the present application during technical solution, the discovery prior art exists as follows present inventor
Technical problem:
UDP is a connectionless protocol, and source and terminal do not establish connection before transmitting data, when as UDP, it thinks transmission
It just simply goes to grab the data from application program, and it is thrown on network as quickly as possible.In transmitting terminal, UDP transmission
The speed of data is only to be limited by speed, the ability of computer and the transmission bandwidth that application program generates data;It is receiving
End, UDP are put each message section in the queue, and application program reads a message section from queue every time.UDP is exerted using most maximum
Power is delivered, i.e., does not guarantee reliably to deliver.So existing retransmission efficiency is low when being carried out data transmission using udp protocol and wastes band
Wide problem.
Summary of the invention
The present invention provides a kind of real time video data transmission method and electronic equipment, method and apparatus provided by the present invention
Existing retransmission efficiency is low when solving the problems, such as to carry out data transmission using udp protocol in the prior art and waste bandwidth.
The present invention provides a kind of real time video data transmission method, and this method is applied in the first electronic equipment, when first
When electronic equipment and the second electronic equipment carry out video data transmission, if the first electronic equipment sends video to the second electronic equipment
Compressed frame data, when video compress frame data are divided into the transmission of multiple data packets, this method comprises:
The historical information of each data packet sent is recorded, and it is determining described each to carry out analysis to the video compression frames
The importance of data packet, and the first priority tag corresponding with each data packet is generated according to determining importance, it will be described
Historical information is combined with the priority tag to be formed the first precedence information and is sent to the second electronic equipment;
Receive the re-transmission message sequence for the message to loss that the second electronic equipment is generated based on first precedence information
Column information;
After receiving the re-transmission sequence of message information, it is ranked up according to the re-transmission sequence of message information to message is retransmitted,
And corresponding message is selected to be retransmitted from historical record message according to the sequence and the re-transmission sequence of message information.
More optimized scheme, the importance for carrying out the determining each data packet of analysis to the video compression frames include:
It detects the parameter in the heading of the video compression frames and determines key frame and reference frame in the video compression frames;
Determine that the importance of data packet corresponding to the key frame is higher than data packet corresponding to the reference frame.
More optimized scheme, described be ranked up according to first precedence information to re-transmission message include:
It is determined according to the time factor of the first precedence information received and the data packet received and retransmits data packet
The packet priority that priority is higher than given threshold is entered retransmission queue by retransmission priority.
The historical information is combined to form the transmission of the first precedence information by more optimized scheme with the priority tag
Include: to the second electronic equipment
Before the transmission of every frame data message, by media transmission protocol by the historical information and the priority tag
The first precedence information that combination is formed is sent to the second electronic equipment.
The embodiment of the present invention also provides another real time video data transmission method, and this method is applied to third electronics and sets
In standby, when third electronic equipment and the 4th electronic equipment progress video data transmission, if third electronic equipment receives the 4th electricity
Sub- equipment sends video compress frame data, when video compress frame data are divided into the transmission of multiple data packets, this method comprises:
Third electronic equipment receives the first precedence information that the 4th electronic equipment is sent, wherein first priority
In information include the historical information for each data packet that the 4th electronic equipment is sent and is generated according to the importance of each data packet
The first priority tag corresponding with each data packet;
The sequence for losing message retransmission is determined according to first precedence information, and is sequentially generated re-transmission report according to described
Literary sequence information;
The 4th electronic equipment is sent by the re-transmission sequence of message information, reports the 4th electronic equipment according to the re-transmission
Literary sequence is ranked up to message is retransmitted, and according to the sequence and the re-transmission sequence of message information from historical record message
Corresponding message is selected to be retransmitted.
More optimized scheme, it is described to send the 4th electronic equipment for the re-transmission sequence of message information and include:
The 4th electronic equipment is sent by the re-transmission sequence of message information by media control protocol.
More optimized scheme, this method further include:
Determine whether to have received the first data packet corresponding to default frame according to first precedence information, if do not had
Have, then the Buffer output strategy of the first data packet according to preset first rule adjustment.
For first method the present invention also provides a kind of corresponding electronic equipment, which is sending ending equipment,
When sending ending equipment and receiving device carry out video data transmission, if sending ending equipment sends video pressure to receiving device
Contracting frame data, when video compress frame data are divided into the transmission of multiple data packets, which includes:
First sending module, for record send each data packet historical information, and to the video compression frames into
Row analysis determines the importance of each data packet, and generates corresponding with each data packet first according to determining importance
Priority tag, combines with the priority tag historical information to form the first precedence information and be sent to receiving end and sets
It is standby;
First receiving module, for receive the receiving device based on first precedence information generate to loss
Message re-transmission sequence of message information;
Retransmission module, for after receiving the re-transmission sequence of message information, according to the re-transmission sequence of message information counterweight
Pass message be ranked up, and according to it is described sequence and the re-transmission sequence of message information selected from historical record message it is corresponding
Message is retransmitted.
More optimized scheme, first sending module carry out analysis to the video compression frames and determine each data
The importance of packet includes:
It detects the parameter in the heading of the video compression frames and determines key frame and reference frame in the video compression frames;
Determine that the importance of data packet corresponding to the key frame is higher than data packet corresponding to the reference frame.
More optimized scheme, the first sending module are also used to before every frame data message is sent, are assisted by media transmission
View the historical information combines the first precedence information to be formed with the priority tag and is sent to receiving device.
For second method the present invention also provides another electronic equipment, which is receiving device, when
When sending ending equipment and receiving device carry out video data transmission, if receiving device receives sending ending equipment and sends video pressure
Contracting frame data, when video compress frame data are divided into the transmission of multiple data packets, which includes:
Second receiving module, the first precedence information sent for receiving sending ending equipment, wherein described first is excellent
In first grade information include the historical information for each data packet that sending ending equipment is sent and is given birth to according to the importance of each data packet
At the first priority tag corresponding with each data packet;
Sequence information generation module, for determining the sequence for losing message retransmission according to first precedence information, and
Sequence of message information is retransmitted according to described be sequentially generated;
Second sending module makes the transmitting terminal for sending sending ending equipment for the re-transmission sequence of message information
Equipment is ranked up according to the re-transmission sequence of message to message is retransmitted, and according to the sequence and re-transmission sequence of message letter
Breath selects corresponding message to be retransmitted from historical record message.
More optimized scheme, second sending module are also used to the re-transmission sequence of message through media control protocol
Information is sent to sending ending equipment.
More optimized scheme, electronic equipment further include:
Module is adjusted, for determining whether to have received first corresponding to default frame according to first precedence information
Data packet, if it is not, the Buffer output strategy of the first data packet according to preset first rule adjustment.
One or two of above-mentioned technical proposal at least has the following technical effect that
Method and apparatus provided by the embodiment of the present invention first confirm that the importance of each data packet, then according to number
According to the important new carry out priority ranking of packet;Receiving end determines that those data packets are important in received data packet, according to priority
But be not received by, then determine retransmit when, the high packet priority of priority is retransmitted.Make through the above scheme
Receiving end can determine the data of preemptive re-transmission according to the importance of data message, so if when network state is bad,
The quality of video calling can be improved;And the efficiency and bandwidth availability ratio of re-transmission can be increased.
Detailed description of the invention
Fig. 1 is a kind of (one) of embodiment of the present invention flow chart of real time video data transmission method;
Fig. 2 is a kind of (two) of embodiment of the present invention flow chart of real time video data transmission method;
Fig. 3 is a kind of (three) of embodiment of the present invention flow chart of real time video data transmission method;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided by method for (one) of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by method for (two) of the embodiment of the present invention.
Specific embodiment
UDP is a connectionless protocol, and source and terminal do not establish connection before transmitting data, when as UDP, it thinks transmission
It just simply goes to grab the data from application program, and it is thrown on network as quickly as possible.In transmitting terminal, UDP transmission
The speed of data is only to be limited by speed, the ability of computer and the transmission bandwidth that application program generates data;It is receiving
End, UDP are put each message section in the queue, and application program reads a message section from queue every time.UDP is exerted using most maximum
Power is delivered, i.e., does not guarantee reliably to deliver.So existing retransmission efficiency is low when being carried out data transmission using udp protocol and wastes band
Wide problem.
If in addition, video data by interframe compression (Interframe compression) formed video compression frames,
It is that there is two frames of continuous front and back based on many videos or animation very big correlation (to have between i.e. continuous its consecutive frame of video
Have redundancy) the characteristics of to realize implement compression by comparing the data between different frame on time shaft, further increase
Compression ratio, usually lossless compression.It, can be to entire if key frame has been lost including key frame and reference frame in condensed frame
Data transmission has a huge impact.Different re-transmission plans is used to the data of different importance so needing to provide a kind of scheme
Slightly, a kind of real time video data transmission method is provided based on this thought present invention, this method specifically includes:
This method is applied in the first electronic equipment, when the first electronic equipment and the second electronic equipment carry out video data biography
When defeated, if the first electronic equipment sends video compress frame data to the second electronic equipment, video compress frame data are divided into multiple numbers
When according to packet transmission, this method comprises:
The historical information of each data packet sent is recorded, and it is determining described each to carry out analysis to the video compression frames
The importance of data packet, and the first priority tag corresponding with each data packet is generated according to determining importance, it will be described
Historical information is combined with the priority tag to be formed the first precedence information and is sent to the second electronic equipment;
Receive the re-transmission message sequence for the message to loss that the second electronic equipment is generated based on first precedence information
Column information;
After receiving the re-transmission sequence of message information, it is ranked up according to the re-transmission sequence of message information to message is retransmitted,
And corresponding message is selected to be retransmitted from historical record message according to the sequence and the re-transmission sequence of message information.
Method provided by the present invention first confirms that the importance of each data packet, then according to data packet it is important newly into
The sequence of row major grade;Receiving end determines that those data packets are important but are not connect in received data packet, according to priority
It receives, then when determining re-transmission, the high packet priority of priority is retransmitted.Make receiving end can be with through the above scheme
The data of preemptive re-transmission are determined according to the importance of data message, so if video can be improved when network state is bad
The quality of call;And the efficiency and bandwidth availability ratio of re-transmission can be increased.
Various embodiments of the present invention and various aspects are illustrated below with reference to following details, attached drawing will illustrate each
Kind embodiment.Following description and drawings are to exemplary illustration of the invention, without that should regard limitation of the present invention as.Description
A large amount of details are to provide the detailed understanding to various embodiments of the invention.It but in some cases, will not be to known
Or traditional details be described, to provide brief description to the embodiment of the present invention.
Certain parts of following detailed description are showed in the form of algorithm, these algorithms include for computer
The operation that the data stored in memory carry out.Algorithm generally refers to cause the self-consistent sequence of the operation of required result.These
Operation usually requires or is related to physical manipulation or physical quantity.Usually (but not being inevitable), this tittle takes electric signal or magnetic to believe
Number form, these signals can be stored, transmit, merge, compare and otherwise be manipulated.It is proved that sometimes
(primarily to usually used reason) is convenient these signals are known as position, value, element, symbol, character, item, number etc.
's.
But one should keep in mind that, these and similar all terms are associated with appropriate physical quantity, and only
It is the convenient label applied to this tittle.Unless outside being hereinafter significantly otherwise noted otherwise, in the whole instruction
Using the explanation that " processing " or " calculating " or the terms such as " judgement " or " display " are carried out can refer to data processing system or
With physics in the register and memory of the movement and processing that like carries out, the movement and processing maneuvering calculation machine
(electronics) amount indicate data and convert thereof into the system memory or register (or other this category informations storage, transmission
Or the device of display) in other data for similarly being indicated in the form of physical quantity.
The present invention can be related to the equipment for executing one or more operations in operation described herein.The equipment
Can for required purpose special configuration, or also may include general purpose computer, the general purpose computer is by being stored in this
Computer program in computer selectively activates (activate) or reconstruct (reconfigure).Such computer journey
Sequence, which can be stored in machine (such as computer) readable medium or be stored in, to be instructed suitable for stored electrons and couples respectively
Into any type of media of bus, the computer-readable medium includes but is not limited to any kind of disk (including floppy disk, light
Disk, CD-ROM and magneto-optic disk), read-only memory (ROM), random access memory (RAM), erasable programmable ROM
(EPROM), electrically erasable ROM (EEPROM), flash memory, magnetic card or optical card.
Machine readable media includes for store or transmit appointing for information by the readable form of machine (such as computer)
What mechanism.For example, machine readable media includes read-only memory (ROM);Random access memory (RAM), disk storage media,
Optical storage medium, flash memory device, signal (such as the carrier wave, infrared letter propagated in the form of electricity, light, sound or other
Number, digital signal etc.) etc..
Example one, as shown in Figure 1, the embodiment of the present invention provides a kind of real time video data transmission method, the embodiment
Method is the description carried out based on transmitting terminal to entire scheme, with reference to the accompanying drawings of the specification to a specific embodiment of the invention
It is described in detail:
This method is applied in the first electronic equipment, when the first electronic equipment and the second electronic equipment carry out video data biography
When defeated, if the first electronic equipment (i.e. sending ending equipment) sends video compress frame number to the second electronic equipment (i.e. receiving device)
According to, when video compress frame data are divided into the transmission of multiple data packets, this method comprises:
Step 101, the historical information of each data packet of transmission is recorded, and analysis determination is carried out to the video compression frames
The importance of each data packet, and the first priority mark corresponding with each data packet is generated according to determining importance
Label combine with the priority tag historical information to form the first precedence information and be sent to the second electronic equipment;
In embodiments of the present invention, the importance packet that analysis determines each data packet is carried out to the video compression frames
It includes:
Mode one, it is determined whether key frame corresponds to different importance:
It detects the parameter in the heading of the video compression frames and determines key frame and reference frame in the video compression frames;
Determine that the importance of data packet corresponding to the key frame is higher than data packet corresponding to the reference frame.
Mode two, the importance parameter for presetting each data packet, and the importance parameter is stored in heading
In.For electronic equipment when detection data packet importance, then the importance parameter for detecting setting can determine whether each data packet
Importance.
In the embodiment, combine with the priority tag historical information to form the first precedence information and be sent to
Second electronic equipment includes:
Before the transmission of every frame data message, by media transmission protocol by the historical information and the priority tag
The first precedence information that combination is formed is sent to the second electronic equipment.
Step 102, the weight for the message to loss that the second electronic equipment is generated based on first precedence information is received
Pass sequence of message information;
It in embodiments of the present invention, is data sending terminal (i.e. the first electronic equipment) basis with the maximum difference of the prior art
After transmitting terminal carries out importance assessment (generating corresponding priority tag according to the importance of data packet) to each data packet,
When data receiver (i.e. the second electronic equipment) determines re-transmission data, then which the result that can be assessed according to the importance determines
A little packet priorities retransmit.Packet is ranked up to message is retransmitted according to first precedence information described in inventive embodiments
It includes:
It is determined according to the time factor of the first precedence information received and the data packet received and retransmits data packet
The packet priority that priority is higher than given threshold is entered retransmission queue by retransmission priority.
In this embodiment, when determining the retransmission priority of some data packet, first according in the first precedence information
The first priority tag determine it is each retransmit data packet importance priority;In addition, it is also necessary to consider the time of data packet
Factor (the transmission delay factor of such as data packet);After two kinds of situations are comprehensively considered, determine that the re-transmission of data packet is excellent
First grade.
Step 103, after receiving the re-transmission sequence of message information, according to the re-transmission sequence of message information to retransmit message into
Row sequence, and select corresponding message to carry out from historical record message according to the sequence and the re-transmission sequence of message information
It retransmits.
Example two, as shown in Fig. 2, the embodiment of the present invention provides a kind of real time video data transmission method, the embodiment
Method is the description carried out based on receiving end to entire scheme, with reference to the accompanying drawings of the specification to a specific embodiment of the invention
It is described in detail:
This method is applied in third electronic equipment, when third electronic equipment and the 4th electronic equipment carry out video data biography
When defeated, if third electronic equipment (i.e. receiving device) receives the 4th electronic equipment (i.e. sending ending equipment) and sends video compression frames
Data, when video compress frame data are divided into the transmission of multiple data packets, this method comprises:
Step 201, third electronic equipment receives the first precedence information that the 4th electronic equipment is sent, wherein described the
It include the historical information for each data packet that the 4th electronic equipment is sent and the weight according to each data packet in one precedence information
The first priority tag corresponding with each data packet that the property wanted generates;
Step 202, the sequence for losing message retransmission is determined according to first precedence information, and raw according to the sequence
At re-transmission sequence of message information;
Step 203, the 4th electronic equipment is sent by the re-transmission sequence of message information, makes the 4th electronic equipment according to institute
It states re-transmission sequence of message and is ranked up to message is retransmitted, and remember according to the sequence and the re-transmission sequence of message information from history
Corresponding message is selected to be retransmitted in record message.
In this embodiment, the mode for sending the 4th electronic equipment for the re-transmission sequence of message information can be with
It is: the 4th electronic equipment is sent for the re-transmission sequence of message information by media control protocol.
In this embodiment, outside the priority that data re-transmission is determined except through first priority, those are being determined
After data packet is important, the adjustment of adaptability can also be done to the condition of acceptance of important data packet.So in the present embodiment
Middle data receiver, can also be according to first priority after receiving the first precedence information that transmitting terminal is sent
In further adjust the Buffer output strategy of data packet to the description information of data packet importance, specific implementation can be with
It is:
Determine whether to have received the first data packet corresponding to default frame according to first precedence information, if do not had
Have, then the Buffer output strategy of the first data packet according to preset first rule adjustment.
Example three, as shown in figure 3, the embodiment of the present invention provides a kind of real time video data transmission method, the embodiment
Method is the description carried out according to the data interaction process of receiving end and transmitting terminal, with reference to the accompanying drawings of the specification to of the invention
Specific embodiment is described in detail:
Step 301, transmitting terminal generates history message accounting table and priority tag table;
In order to facilitate using in the present embodiment, history of forming message after situation is recorded can be sent the packet within and remembered
Record table;The priority mark of importance priority and data packet corresponding relationship is generated according to the importance priority difference of each data packet
Sign table.
In this embodiment, when video compress frame data divided stator frame, the message of transmission is saved in history message accounting
In table, while message priority label list is generated according to the importance of message in frame and frame, the content of the table includes data message
Sequence number, mark the label of the packet weights of importance.It is sent before the transmission of every frame data message by media transmission protocol
To receiving end.
Step 302, receiving end, which generates, retransmits sequence of message;
Receiving end counts the frame data of buffering, generates to the message of loss according to rule and retransmits message queue table,
The rule calculates the preferential of re-transmission according to the factors such as the message priority label list received and the time for receiving data packet
Grade, the high packet of retransmission priority preferentially enters retransmission queue, and the low packet of retransmission priority comes behind queue, packet loss it is serious and
Give up low priority message when bandwidth is inadequate and do not enter queue, and is sent by media control protocol and retransmit sequence of message table to hair
Sending end.On the other hand, according to message priority label list, receiving end can the Buffer output strategy to important frame do dynamic and control
System.
Step 303, transmitting terminal retransmits data;
Receive after retransmitting response message (i.e. retransmission queue), transmitting terminal according to the priority tag table of historical record message,
Second of priority ranking is done to sequence of message table is retransmitted, and selects corresponding message weight from historical record message according to sequence
It passes.
Method provided by the present invention first confirms that the importance of each data packet, then according to data packet it is important newly into
The sequence of row major grade;Receiving end determines that those data packets are important but are not connect in received data packet, according to priority
It receives, then when determining re-transmission, the high packet priority of priority is retransmitted.Make receiving end can be with through the above scheme
The data of preemptive re-transmission are determined according to the importance of data message, so if video can be improved when network state is bad
The quality of call;And the efficiency and bandwidth availability ratio of re-transmission can be increased.
As shown in figure 4, for embodiment one provide method the present invention also provides a kind of electronic equipment, which is
Sending ending equipment, when sending ending equipment and receiving device progress video data transmission, if sending ending equipment is set to receiving end
Preparation send video compress frame data, and when video compress frame data are divided into the transmission of multiple data packets, which includes:
First sending module 401, for recording the historical information of each data packet sent, and to the video compression frames
It carries out the importance that analysis determines each data packet, and generates corresponding with each data packet the according to determining importance
One priority tag combines with the priority tag historical information to form the first precedence information and be sent to receiving end
Equipment;
Wherein, which carries out the weight that analysis determines each data packet to the video compression frames
The property wanted includes:
It detects the parameter in the heading of the video compression frames and determines key frame and reference frame in the video compression frames;
Determine that the importance of data packet corresponding to the key frame is higher than data packet corresponding to the reference frame.
In addition, first sending module 401 is also used to before every frame data message is sent, it will by media transmission protocol
The historical information combines the first precedence information to be formed with the priority tag and is sent to receiving device.
First receiving module 402, pair generated for receiving the receiving device based on first precedence information
The re-transmission sequence of message information of the message of loss;
Retransmission module 403, for after receiving the re-transmission sequence of message information, according to the re-transmission sequence of message information pair
It retransmits message to be ranked up, and is selected from historical record message with the re-transmission sequence of message information according to the sequence corresponding
Message retransmitted.
As shown in figure 5, for embodiment two provide method the present invention also provides another electronic equipment, which sets
Standby is receiving device, when sending ending equipment and receiving device progress video data transmission, if receiving device receives hair
Sending end equipment sends video compress frame data, when video compress frame data are divided into the transmission of multiple data packets, the receiving device packet
It includes:
Second receiving module 501, the first precedence information sent for receiving sending ending equipment, wherein described
In one precedence information include sending ending equipment send each data packet historical information and according to the important of each data packet
Property generate the first priority tag corresponding with each data packet;
Sequence information generation module 502, for determining the sequence for losing message retransmission according to first precedence information,
And sequence of message information is retransmitted according to described be sequentially generated;
Second sending module 503 makes the transmission for sending sending ending equipment for the re-transmission sequence of message information
End equipment is ranked up according to the re-transmission sequence of message to message is retransmitted, and according to the sequence and the re-transmission sequence of message
Information selects corresponding message to be retransmitted from historical record message.
Wherein, which is also used to send out the re-transmission sequence of message information by media control protocol
It is sent to sending ending equipment.
In addition, in this embodiment, outside the priority that data re-transmission is determined except through first priority, in determination
After those data packets are important, the adjustment of adaptability can also be done to the condition of acceptance of important data packet.So the implementation
Electronic equipment in example further include:
Module 504 is adjusted, for determining whether to have received corresponding to default frame according to first precedence information
First data packet, if it is not, the Buffer output strategy of the first data packet according to preset first rule adjustment.
Said one or multiple technical solutions in the embodiment of the present application, at least have the following technical effect that:
Method provided by the present invention and electronic equipment first confirm that the importance of each data packet, then according to data
Wrap important new carry out priority ranking;Receiving end determines that those data packets are important in received data packet, according to priority
But be not received by, then when determining re-transmission, the high packet priority of priority is retransmitted.Make through the above scheme
Receiving end can determine the data of preemptive re-transmission according to the importance of data message, so if when network state is bad, it can
To improve the quality of video calling;And the efficiency and bandwidth availability ratio of re-transmission can be increased.
Method of the present invention is not limited to embodiment described in specific embodiment, those skilled in the art according to
Technical solution of the present invention obtains other embodiments, also belongs to the scope of the technical innovation of the present invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (13)
1. a kind of real time video data transmission method, this method is applied in the first electronic equipment, when the first electronic equipment and the
When two electronic equipments carry out video data transmission, if the first electronic equipment sends video compress frame data to the second electronic equipment,
It is characterized in that, when video compress frame data are divided into the transmission of multiple data packets, this method comprises:
The historical information of each data packet sent is recorded, and analysis is carried out to the video compression frames and determines each data
The importance of packet, and the first priority tag corresponding with each data packet is generated according to determining importance, by the history
Information is combined with the priority tag to be formed the first precedence information and is sent to the second electronic equipment;
Receive the re-transmission sequence of message letter for the message to loss that the second electronic equipment is generated based on first precedence information
Breath, wherein the second electronic equipment is ranked up according to first precedence information to message is retransmitted;
After receiving the re-transmission sequence of message information, it is ranked up according to the re-transmission sequence of message information to message is retransmitted, and according to
Corresponding message is selected to be retransmitted from historical record message according to the sequence and the re-transmission sequence of message information.
2. the method as described in claim 1, which is characterized in that carry out analysis to the video compression frames and determine every number
Include: according to the importance of packet
It detects the parameter in the heading of the video compression frames and determines key frame and reference frame in the video compression frames;
Determine that the importance of data packet corresponding to the key frame is higher than data packet corresponding to the reference frame.
3. the method as described in claim 1, which is characterized in that it is described according to first precedence information to retransmit message into
Row sorts
The re-transmission for retransmitting data packet is determined according to the time factor of the first precedence information received and the data packet received
The packet priority that priority is higher than given threshold is entered retransmission queue by priority.
4. method a method according to any one of claims 1-3, which is characterized in that by the historical information and the priority tag group
Conjunction the first precedence information of formation is sent to the second electronic equipment and includes:
Before the transmission of every frame data message, combined the historical information with the priority tag by media transmission protocol
The first precedence information formed is sent to the second electronic equipment.
5. a kind of real time video data transmission method, this method is applied in third electronic equipment, when third electronic equipment and the
When four electronic equipments carry out video data transmission, if third electronic equipment receives the 4th electronic equipment and sends video compress frame number
According to, which is characterized in that when video compress frame data are divided into the transmission of multiple data packets, this method comprises:
Third electronic equipment receives the first precedence information that the 4th electronic equipment is sent, wherein first precedence information
In include the 4th electronic equipment send each data packet historical information and according to the importance of each data packet generate with
Corresponding first priority tag of each data packet;
The sequence for losing message retransmission is determined according to first precedence information, and message sequence is retransmitted according to described be sequentially generated
Column information;
The 4th electronic equipment is sent by the re-transmission sequence of message information, makes the 4th electronic equipment according to the re-transmission message sequence
Column are ranked up to message is retransmitted, and are selected from historical record message according to the sequence and the re-transmission sequence of message information
Corresponding message is retransmitted.
6. method as claimed in claim 5, which is characterized in that described to send the 4th electricity for the re-transmission sequence of message information
Sub- equipment includes:
The 4th electronic equipment is sent by the re-transmission sequence of message information by media control protocol.
7. the method as described in claim 5 or 6 is any, which is characterized in that this method further include:
Determine whether to have received the first data packet corresponding to default frame according to first precedence information, if not provided,
The then Buffer output strategy of the first data packet according to preset first rule adjustment.
8. a kind of electronic equipment, which is sending ending equipment, when sending ending equipment and receiving device carry out video counts
When according to transmission, if sending ending equipment sends video compress frame data to receiving device, which is characterized in that video compress frame data
When being divided into the transmission of multiple data packets, which includes:
First sending module for recording the historical information of each data packet sent, and divides the video compression frames
Analysis determines the importance of each data packet, and generates corresponding with each data packet first preferentially according to determining importance
Grade label combines with the priority tag historical information to form the first precedence information and be sent to receiving device;
First receiving module, the report to loss generated for receiving the receiving device based on first precedence information
The re-transmission sequence of message information of text, wherein receiving device is ranked up according to first precedence information to message is retransmitted;
Retransmission module, for being reported according to the re-transmission sequence of message information to re-transmission after receiving the re-transmission sequence of message information
Text is ranked up, and corresponding message is selected from historical record message according to the sequence and the re-transmission sequence of message information
It is retransmitted.
9. electronic equipment as claimed in claim 8, which is characterized in that first sending module to the video compression frames into
Row analysis determines that the importance of each data packet includes:
It detects the parameter in the heading of the video compression frames and determines key frame and reference frame in the video compression frames;
Determine that the importance of data packet corresponding to the key frame is higher than data packet corresponding to the reference frame.
10. the electronic equipment as described in claim 8 or 9 is any, which is characterized in that the first sending module is also used in every frame number
Before sending according to message, it is excellent to be formed first the historical information to be combined with the priority tag by media transmission protocol
First grade information is sent to receiving device.
11. a kind of electronic equipment, which is receiving device, when sending ending equipment and receiving device carry out video counts
When according to transmission, if receiving device receives sending ending equipment and sends video compress frame data, which is characterized in that video compress frame number
When according to being divided into the transmission of multiple data packets, which includes:
Second receiving module, the first precedence information sent for receiving sending ending equipment, wherein first priority
In information include the historical information for each data packet that sending ending equipment is sent and is generated according to the importance of each data packet
The first priority tag corresponding with each data packet;
Sequence information generation module, for the sequence according to the determining loss message retransmission of first precedence information, and according to
Described be sequentially generated retransmits sequence of message information;
Second sending module makes the sending ending equipment for sending sending ending equipment for the re-transmission sequence of message information
According to the re-transmission sequence of message to retransmit message be ranked up, and according to it is described sequence and the re-transmission sequence of message information from
Corresponding message is selected to be retransmitted in historical record message.
12. electronic equipment as claimed in claim 11, which is characterized in that second sending module is also used to through media control
The re-transmission sequence of message information is sent sending ending equipment by agreement processed.
13. the electronic equipment as described in claim 11 or 12 is any, which is characterized in that electronic equipment further include:
Module is adjusted, for determining whether to have received the first data corresponding to default frame according to first precedence information
Packet, if it is not, the Buffer output strategy of the first data packet according to preset first rule adjustment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410268450.9A CN105450969B (en) | 2014-06-16 | 2014-06-16 | A kind of real time video data transmission method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410268450.9A CN105450969B (en) | 2014-06-16 | 2014-06-16 | A kind of real time video data transmission method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105450969A CN105450969A (en) | 2016-03-30 |
CN105450969B true CN105450969B (en) | 2019-01-15 |
Family
ID=55560698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410268450.9A Active CN105450969B (en) | 2014-06-16 | 2014-06-16 | A kind of real time video data transmission method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105450969B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10616383B2 (en) * | 2016-09-26 | 2020-04-07 | Samsung Display Co., Ltd. | System and method for electronic data communication |
CN107846475B (en) * | 2017-12-06 | 2020-08-18 | 中国水利水电科学研究院 | Intelligent water conservancy information measurement and control device |
CN110933455B (en) * | 2019-12-16 | 2023-03-14 | 云粒智慧科技有限公司 | Video screening method and device, electronic equipment and storage medium |
CN114362891A (en) * | 2020-09-28 | 2022-04-15 | 华为技术有限公司 | Communication method and device |
CN114040023B (en) * | 2021-10-15 | 2023-09-08 | 山东云海国创云计算装备产业创新中心有限公司 | High-speed bus message error processing method, controller and storage medium |
CN115001632A (en) * | 2022-06-09 | 2022-09-02 | 咪咕文化科技有限公司 | Information transmission method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222311A (en) * | 2008-01-29 | 2008-07-16 | 杭州华三通信技术有限公司 | Real-time packet loss recovery method, system and receiving terminal unit |
CN101753275A (en) * | 2008-12-15 | 2010-06-23 | 华为技术有限公司 | Method, device and system for retransmission of video messages |
CN101990082A (en) * | 2010-11-03 | 2011-03-23 | 中兴通讯股份有限公司 | Method and device for implementing video telephone |
CN102447910A (en) * | 2012-01-06 | 2012-05-09 | 南京邮电大学 | H.264 coding video data wireless transmission method and wireless video monitoring system |
CN103814582A (en) * | 2013-11-05 | 2014-05-21 | 华为技术有限公司 | Data transmission method, data receiving device and data sending device for video service |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101511674B1 (en) * | 2007-01-06 | 2015-04-13 | 삼성전자주식회사 | Apparatus and method for controlling of intra-refreshing in video telephony communication system |
US20090303309A1 (en) * | 2008-06-04 | 2009-12-10 | Pantech Co., Ltd. | Mobile terminal and method for transmitting video data in video telephony system |
-
2014
- 2014-06-16 CN CN201410268450.9A patent/CN105450969B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222311A (en) * | 2008-01-29 | 2008-07-16 | 杭州华三通信技术有限公司 | Real-time packet loss recovery method, system and receiving terminal unit |
CN101753275A (en) * | 2008-12-15 | 2010-06-23 | 华为技术有限公司 | Method, device and system for retransmission of video messages |
CN101990082A (en) * | 2010-11-03 | 2011-03-23 | 中兴通讯股份有限公司 | Method and device for implementing video telephone |
CN102447910A (en) * | 2012-01-06 | 2012-05-09 | 南京邮电大学 | H.264 coding video data wireless transmission method and wireless video monitoring system |
CN103814582A (en) * | 2013-11-05 | 2014-05-21 | 华为技术有限公司 | Data transmission method, data receiving device and data sending device for video service |
Also Published As
Publication number | Publication date |
---|---|
CN105450969A (en) | 2016-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105450969B (en) | A kind of real time video data transmission method and electronic equipment | |
CN100435525C (en) | Block communication method and block communication system, block transmitting apparatus and block receiving apapratus and block receiver-transmitter | |
CN107979449B (en) | Data transmission method and device | |
CN100407698C (en) | Data transmission method for wireless link control layer | |
CN103763073B (en) | A kind of method and terminal that packet loss retransmits | |
EP1463228A3 (en) | Communication device, transmission control method, and program product for controlling retransmission of data | |
CN102859921A (en) | System and method for achieving accelerated throughput | |
CN106209915A (en) | A kind of real time flow medium radio transmitting method and system thereof | |
JP2003078565A (en) | Wireless communication equipment | |
RU2002104934A (en) | METHOD AND DEVICE FOR DATA TRANSMISSION BY FEEDBACK IN A MOBILE COMMUNICATION SYSTEM | |
WO2008049434A1 (en) | Method and system for firewall friendly mobile real-time communication | |
CN103346963A (en) | MPTCP data scheduling method based on forecast arrival time | |
CN103329609A (en) | Method and system for minimizing latencies for content protection in audio/video networks | |
CN105681160B (en) | The method and device of conversation message random ordering is corrected in a kind of instantaneous communication system | |
CN107342848A (en) | A kind of adaptive code stream transmission method, device and equipment | |
CN102143078A (en) | Forwarding equipment as well as method and system for processing message | |
CN104486243A (en) | Data transmission method, equipment and system | |
CN101616316A (en) | A kind of transmission of video data, receiving system and sending, receiving method | |
CN107333296A (en) | A kind of data transmission method, device and base station | |
CN103686446A (en) | Method and system for retransmitting lost packet in video data transmission | |
CN110506403A (en) | Flow control for wireless device | |
CN103338184A (en) | Data transmitting method and apparatus, data receiving apparatus and data transmission system | |
CN109673050A (en) | Data-reusing transmission method, network side equipment and communication system | |
CN104104924A (en) | Third-generation (3G) network based video monitoring system bandwidth self-adaption transmission method | |
CN103780869B (en) | Method for dynamically adjusting video transmission efficiency in video session |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |