CN104378602A - Video transmission method and device - Google Patents
Video transmission method and device Download PDFInfo
- Publication number
- CN104378602A CN104378602A CN201410695512.4A CN201410695512A CN104378602A CN 104378602 A CN104378602 A CN 104378602A CN 201410695512 A CN201410695512 A CN 201410695512A CN 104378602 A CN104378602 A CN 104378602A
- Authority
- CN
- China
- Prior art keywords
- frame
- video message
- numbering
- video
- abandon
- 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.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a video transmission method and device. The video transmission method includes the steps that the number of tokens in a token bucket is determined, and the number of the tokens is used for identifying the size of the real-time bandwidth; a first video frame message is received at the first time, the serial number of the discarded video frame message is determined according to the number of the tokens and the serial number of the first video frame message, and the serial number of the first video frame message is used for marking the type of the first video frame message; furthermore, a second video frame message is received at the second time, if the serial number of the second video frame message is larger than that of the discarded video frame message, the second video frame message is discarded, and the serial number of the second video frame message is used for marking the type of the second video frame message. According to the video transmission method and device, the serial number of the discarded video frame message is determined through the number of the tokens and the serial numbers of the video frame messages, so that under the situation that the bandwidth is insufficient, the video frame messages of lower influences on videos played on a terminal are discarded, and thus it can be guaranteed that continuous video playing can be maintained under the situation that the bandwidth is deteriorated.
Description
Technical field
The present invention relates to video transmission technologies, particularly relate to a kind of video transmission method and device.
Background technology
With the development of mobile broadband network technology (3G, 4G), the increasing vehicles (public transport, learner-driven vehicle, subway etc.) all have employed independently mobile wireless video monitoring system, are used for ensureing the personal safety and safety of property of the people.Wherein, wireless network video monitoring system is the photographic technique system based on wireless network, and typical wireless network video monitoring system is made up of four parts: front end surveillance device (relating to video acquisition, digital coding etc.), the wireless router (relating to transfer of data), wireless network and the display client that are connected with watch-dog.But, mobile wireless network is larger by surrounding environment influence, the environmental factors such as such as building, weather (rainwater, haze etc.), crowd density all can have an impact to the stability of wireless network, thus affect the bandwidth of wireless link, cause bandwidth unstable, once bandwidth is not enough, then connect and be easy to occur chain rupture, client terminal playing will be interrupted immediately.
By adjusting the parameter of Video coding according to the situation of change of current network transmission channel in prior art, the video flowing of generation is made to be applicable to current network transmission channel bandwidth, be generally, if transmission channel worsens, then reduce video flowing code rate, if channel width is recovered, then heighten video flowing code rate.
But for not supporting the headend equipment of variable code rate function, said method cannot solve the problem that bandwidth degradation causes video disconnection.
Summary of the invention
The embodiment of the present invention provides a kind of video transmission method and device, to overcome the problem that bandwidth degradation in prior art causes video disconnection.
First aspect present invention provides a kind of video transmission method, comprising:
Determine the token number in token bucket, described token number is for identifying the size of real-time bandwidth;
At the first reception first frame of video message;
Numbering according to described token number and described first frame of video message is determined to abandon frame of video message numbering, the numbering of described first frame of video message is for identifying the type of described first frame of video message, and the size of described numbering is corresponding with the priority of described first frame of video message;
At the second reception second frame of video message;
If abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message, and the size of described numbering is corresponding with the priority of described second frame of video message.
In the first possible implementation of first aspect, described token number is positive number, and the described numbering according to described token number and described first frame of video message is determined to abandon frame of video message numbering, comprising:
Described first frame of video message is exported through described token bucket;
Token number in described token bucket is deducted the length of described first frame of video message, obtain the residue token number in described token bucket;
If described residue token number is negative and the numbering of described first frame of video message is greater than the 3rd frame of video message numbering, abandon the numbering that frame of video message numbering is described first frame of video message described in determining, described 3rd frame of video message numbering is the numbering of the default frame of video message that should abandon.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, described residue token number is negative, if abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, before then abandoning described second frame of video message, also comprise:
Judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering;
If abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, then abandon described second frame of video message, specifically comprise:
If the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be greater than described in abandon frame of video message numbering, then abandon described second frame of video message;
Described judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering after, also comprise:
If the numbering of described second frame of video message is less than or equal to described 3rd frame of video message numbering, then described second frame of video message is exported through described token bucket.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, described judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering after, also comprise:
If abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, and the numbering of described second frame of video message be less than or equal to described in abandon frame of video message numbering, described second frame of video message is exported through described token bucket;
The numbering that frame of video message numbering is described second frame of video message is abandoned described in renewal.
In conjunction with the implementation that the first or the second of first aspect are possible, in the third possible implementation of first aspect, described by described second frame of video message after described token bucket exports, also comprise:
Token number in described token bucket is deducted the length of described second frame of video message;
Upgrade the token number in described token bucket.
Second aspect present invention provides a kind of video frequency transmitter, comprising:
First determination module, for determining the token number in token bucket, described token number is for identifying the size of real-time bandwidth;
First receiver module, at the first reception first frame of video message;
Second determination module, the numbering of the first frame of video message received for the described token number determined according to described first determination module and described first receiver module is determined to abandon frame of video message numbering, the numbering of described first frame of video message is for identifying the type of described first frame of video message, and the size of described numbering is corresponding with the priority of described first frame of video message;
Second receiver module, at the second reception second frame of video message;
Judge module, if for the numbering of described second frame of video message be greater than described second determination module determine described in abandon frame of video message numbering, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message, and the size of described numbering is corresponding with the priority of described second frame of video message.
In the first possible implementation of second aspect, described token number is positive number, described second determination module specifically for:
Described first frame of video message is exported through described token bucket;
Token number in described token bucket is deducted the length of described first frame of video message, obtain the residue token number in described token bucket;
If described residue token number is negative and the numbering of described first frame of video message is greater than the 3rd frame of video message numbering, abandon the numbering that frame of video message numbering is described first frame of video message described in determining, described 3rd frame of video message numbering is the numbering of the default frame of video message that should abandon.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described residue token number is negative, described judge module also for:
Judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering;
If the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be greater than described in abandon frame of video message numbering, then abandon described second frame of video message;
Described video streaming device, also comprise: output module, after judging at described judge module whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, if the numbering of described second frame of video message is less than or equal to described 3rd frame of video message numbering, then described second frame of video message is exported through described token bucket.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, also comprise, the 3rd determination module:
If the numbering for described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be less than or equal to described in abandon frame of video message numbering, described second frame of video message is exported through described token bucket;
The numbering that frame of video message numbering is described second frame of video message is abandoned described in renewal.
In conjunction with the implementation that the first or the second of second aspect are possible, in the third possible implementation of second aspect, also comprise: computing module and update module,
Described computing module be used for described second determination module or the 3rd determination module will described second frame of video message after described token bucket output, the token number in described token bucket is deducted the length of described second frame of video message;
Described update module is for upgrading the token number in described token bucket.
In the present invention, first determine the token number in token bucket, described token number is for identifying the size of real-time bandwidth; Then at the first reception first frame of video message, the numbering according to described token number and described first frame of video message is determined to abandon frame of video message numbering, and the numbering of described first frame of video message is for identifying the type of described first frame of video message; Further, at the second reception second frame of video message, if abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message.Wherein, determine to abandon frame of video message numbering by the numbering of token number and frame of video message, when bandwidth deficiency, can abandon and little frame of video message is affected on terminal plays video, thus also can maintain video when bandwidth degradation and connect not disconnection.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of the video transmission method that Fig. 1 provides for the embodiment of the present invention;
The structural representation of the video frequency transmitter that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the video frequency transmitter that Fig. 3 provides for another embodiment of the present invention;
The structural representation of the video frequency transmitter that Fig. 4 provides for further embodiment of this invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The flow chart of the video transmission method that Fig. 1 provides for the embodiment of the present invention, as shown in Figure 1, the method for the present embodiment can comprise:
Step 101, the token number determined in token bucket, described token number is for identifying the size of real-time bandwidth.
Wherein, real-time bandwidth is the available bandwidth of transport layer.
Concrete, first, be the available bandwidth of transport layer by the real-time estimate bandwidth conversion of link, and generate token according to available bandwidth, the token of generation is put into token bucket, to increase the token number in token bucket, thus according to the transmission means of the token number determination frame of video message in token bucket.
Wherein, the conversion method being the available bandwidth of transport layer by the real-time estimate bandwidth conversion of link is specifically as follows and real-time estimate bandwidth is multiplied by conversion coefficient (coefficient range is 0.8-0.9), can be available bandwidth by the bandwidth conversion of real-time estimate, such as, real-time estimate bandwidth is 5Hz, and conversion coefficient is 0.8, then available bandwidth is 5Hz × 0.8=4Hz, wherein, the 1Hz of reservation is used for real-time estimate bandwidth etc.The present invention is not limited the conversion method by real-time estimate bandwidth conversion being available bandwidth.
Step 102, at the first reception first frame of video message.
Step 103, determine to abandon frame of video message numbering according to the numbering of described token number and described first frame of video message, the numbering of described first frame of video message is for identifying the type of described first frame of video message, and the size of described numbering is corresponding with the priority of described first frame of video message.
Concrete, first at the first reception first frame of video message, suppose the first reception to the first frame of video message be first the frame of video message received, token number now in token bucket must be positive number, just the first frame of video message directly can be exported through token bucket, and the token number in token bucket deducts the length of the first frame of video message, obtain token bucket transfer the first frame of video message after residue token number, if after transferring the first frame of video message in token bucket, in token bucket, remaining token number is positive number, show that bandwidth is now sufficient in the transmission supporting complete frame of video message, without the need to carrying out corresponding discard processing to the follow-up frame of video message just received, and directly export subsequently received frame of video message through token bucket, if after transferring the first frame of video message in token bucket, in token bucket, remaining token number is negative, the bandwidth showing now has been not enough to the transmission supporting complete frame of video message, just needs to carry out corresponding discard processing to the follow-up frame of video message just received.
Wherein, first frame of video message is exported through token bucket and is specifically as follows: such as: the token number in token bucket is 10, the length of the positive message of the first video received is 6 bytes, the frame of video message of a transmission byte needs consumption token, then being exported by token bucket by the first frame of video message needs the token number consumed to be 6, and now in token bucket, remaining token number is 4; Optionally, when the length of the first frame of video message received is 15, then exported by token bucket by the first frame of video message and need the token number consumed to be 15, now in token bucket, remaining token number is-5.
To the method that the follow-up frame of video message just received carries out corresponding discard processing be specifically: first, after receiving frame of video message, for the ease of determining the frame of video type of message needing to abandon, needs are numbered frame of video message according to the type of frame of video message and priority, preferably, can by numbering corresponding less for frame of video message high for priority, the priority number that the frame of video message that priority is low is corresponding higher, such as, can be 1 to control frame message numbering, I frame message numbering is 2, B frame message numbering is 3, P frame message numbering is 4 etc., the present invention is not limited the mode of frame of video message numbering.
Due in the transmitting procedure of frame of video message, control frame message and I frame message can form complete video without the need to other messages, therefore in order to ensure that video playback connects not disconnection, all control frame messages of receiving and I frame message must export client to, therefore control frame message and I frame message can not be abandoned, also namely, according to above-mentioned description, the numbering of the frame of video message received must be greater than 2 and just likely be dropped.
And after transferring the first frame of video message, token number in token bucket is negative, and the numbering of the first frame of video message is greater than the 3rd frame of video message numbering, and (described 3rd frame of video message numbering is the numbering of the default frame of video message that should abandon, for the sake of clarity, all the 3rd frame of video message numbering is replaced with presetting the numbering abandoning frame of video message) in following examples, just can determine to abandon the numbering that frame of video message numbering is the first frame of video message, described presetting abandons the message numbering 2 that frame of video message numbering can be the I frame in above-mentioned citing.
When after subsequently received frame of video message, according to the frame of video message numbering received and the relation of frame of video message numbering can be abandoned the need of abandoning.
Step 104, at the second reception second frame of video message.
If abandon frame of video message numbering described in the numbering of the described second frame of video message of step 105 is greater than, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message, and the size of described numbering is corresponding with the priority of described second frame of video message.
Optionally, when the token number in token bucket is negative.
Concrete, at the second reception second frame of video message, and be numbered the second frame of video message received, the mode of concrete numbering is identical with to the mode of the first number of video frames, repeats no more herein.
Optionally, also first can judge whether the numbering of the second frame of video message received is greater than to preset and abandon frame of video message numbering, also namely first judge whether the message received is control frame message or I frame message, if the frame of video message received is control frame message or I frame message, then directly transmit the frame of video message received through token bucket, and without the need to considering the token number in token bucket, and the token number in described token bucket is deducted the length of described second frame of video message, upgrade the token number in described token bucket.
Optionally, if the numbering of described second frame of video message is greater than described presetting abandon frame of video message numbering, determine whether to abandon described second frame of video message according to the described frame of video message numbering that abandons.
Judge the numbering of the second frame of video message and abandon the relation of frame of video message numbering, determine whether to abandon the second frame of video message, be specially, if the numbering of the second frame of video message now received is greater than abandon frame of video message numbering, then directly abandon the second frame of video message.
If abandon frame of video message numbering described in the numbering of the second frame of video message now received is less than or equal to, described second frame of video message is exported through described token bucket, and abandons the numbering that frame of video message numbering is the second frame of video message described in upgrading.
Such as, in the attainable mode of one of the present invention, preset abandon frame of video message be numbered 2, when the first frame of video message received is No. 3 messages, and the first frame of video message length is 9, the token number in token bucket is 10, now directly can transmit described first frame of video message by token bucket, after transferring the first frame of video message, in token bucket, remaining token number is 1.
Receive the second frame of video message, that supposes the second frame of video message received is numbered 5, and the length of the second frame of video message is 14, at the same time, also can generate token according to real-time bandwidth and token is added in token bucket, suppose that the token number after now adding is 6, because the token number in token bucket is positive number, directly can transmit described second frame of video message by token bucket, after transferring the second frame of video message, in token bucket, remaining token number is-8, visible, bandwidth now has been not enough to transmit complete frame of video message, need to determine to abandon frame of video message numbering, and the second frame of video message be numbered 5, known second frame of video message is greater than the numbering 2 of I frame message, known the second frame of video message is now ordinary video frame message, and determine that abandoning frame of video message numbering is 5.
A kind of possibility receiving the 3rd frame of video message is: that supposes the 3rd frame of video message received is numbered 6, at the same time, also can generate token according to real-time bandwidth and token is added in token bucket, suppose that the token number after now adding is-3, visible, bandwidth now has been not enough to transmit complete frame of video message, need judge the numbering of the 3rd frame of video message received and abandon the relation of frame of video message numbering, and the numbering 6 of the 3rd frame of video message now received is greater than and abandons frame of video message numbering 5, then direct the 3rd frame of video received to be abandoned.
The another kind of possibility receiving the 3rd frame of video message is, that supposes the 3rd frame of video message received is numbered 4, at the same time, also can generate token according to real-time bandwidth and token is added in token bucket, suppose that the token number after now adding is-3, visible, bandwidth now has been not enough to transmit complete frame of video message, need judge the numbering of the 3rd frame of video message received and abandon the relation of frame of video message numbering, and the numbering 4 of the 3rd frame of video message now received is less than and abandons frame of video message numbering 5, then by token bucket transmission the 3rd frame of video message, and the token paid in advance in token bucket.
And in the attainable mode of another kind of the present invention, preset abandon frame of video message be numbered 2, when the first frame of video message received is No. 2 messages, and the first frame of video message length is 9, token number in token bucket is 5, because the token number in token bucket is positive number, directly can transmit described first frame of video message by token bucket, after transferring the first frame of video message, in token bucket, remaining token number is-4, visible, bandwidth now has been not enough to transmit complete frame of video message, need to determine that dropping packets is numbered, and the first frame of video message be numbered 2, known first frame of video message be not greater than preset abandon number of video frames, that therefore need not determine the first frame of video message received is numbered dropping packets numbering.
Continue reception second frame of video message, that supposes the second frame of video message received is numbered 5, and the length of the second frame of video message is 14, at the same time, also can generate token according to real-time bandwidth and token is added in token bucket, suppose that the token number in the token bucket after now adding still is negative, now need the numbering of the second frame of video message judging to receive and preset the magnitude relationship abandoning frame of video message numbering, due to the second frame of video message be numbered 5 be greater than preset abandon frame of video message numbering, therefore the second frame of video message is directly abandoned.
Suppose to receive the second frame of video message be numbered 1, and the length of the second frame of video message is 14, at the same time, also can generate token according to real-time bandwidth and token is added in token bucket, it is so negative that the token number supposing in the token bucket after now adding is appointed, now need the numbering of the second frame of video message judging to receive and preset the magnitude relationship abandoning frame of video message numbering, due to the second frame of video message be numbered 1 be less than preset abandon frame of video message numbering, therefore need the token paid in advance in token bucket to transmit the second frame of video message.
It should be noted that, default in the embodiment of the present invention abandons frame of video message numbering and abandons frame of video message numbering and represent different implications, wherein, preset the numbering abandoning the frame of video message that the self-defining needs of frame of video message numbering representative system abandon, and to abandon frame of video message numbering be the numbering of carrying out the frame of video message abandoned according to the needs of how many real-time calculating of token number in token bucket, this is two kinds of diverse concepts, can not obscure.
The video transmission method that the embodiment of the present invention provides, comprising: first determine the token number in token bucket, and described token number is for identifying the size of real-time bandwidth; Then at the first reception first frame of video message, the numbering according to described token number and described first frame of video message is determined to abandon frame of video message numbering, and the numbering of described first frame of video message is for identifying the type of described first frame of video message; Further, at the second reception second frame of video message, if abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message.Wherein, determine to abandon frame of video message numbering by the numbering of token number and frame of video message, when bandwidth deficiency, can abandon and little frame of video message is affected on terminal plays video, thus also can maintain video when bandwidth degradation and connect not disconnection.
The structural representation of the video frequency transmitter that Fig. 2 provides for the embodiment of the present invention, as shown in Figure 2, the device of the present embodiment can comprise:
First determination module 201, for determining the token number in token bucket, described token number is for identifying the size of real-time bandwidth;
First receiver module 202, at the first reception first frame of video message;
Second determination module 203, the numbering of the first frame of video message received for the described token number determined according to described first determination module 201 and described first receiver module 202 is determined to abandon frame of video message numbering, and the numbering of described first frame of video message is for identifying the type of described first frame of video message;
Second receiver module 204, at the second reception second frame of video message;
Judge module 205, if for the numbering of described second frame of video message be greater than described second determination module 203 determine described in abandon frame of video message numbering, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message.
Optionally, described token number is positive number, described second determination module 203 specifically for:
Described first frame of video message is exported through described token bucket;
Token number in described token bucket is deducted the length of described first frame of video message, obtain the residue token number in described token bucket;
If described residue token number is negative and the numbering of described first frame of video message is greater than the 3rd frame of video message numbering, abandon the numbering that frame of video message numbering is described first frame of video message described in determining, described 3rd frame of video message numbering is the numbering of the default frame of video message that should abandon.
Optionally, described residue token number is negative, described judge module 204 specifically for:
Judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering;
If the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be greater than described in abandon frame of video message numbering, then abandon described second frame of video message;
Further, as shown in Figure 3, described video streaming device, also comprise: output module 206, after judging at described judge module whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, if abandon frame of video message numbering described in the numbering of described second frame of video message is less than or equal to, then described second frame of video message is exported through described token bucket.
Optionally, as shown in Figure 3, described video frequency transmitter also comprises: the 3rd determination module 207:
If abandon frame of video message numbering described in being greater than for the numbering of described second frame of video message, and the numbering of described second frame of video message be less than or equal to described in abandon frame of video message numbering, described second frame of video message is exported through described token bucket;
The numbering that frame of video message numbering is described second frame of video message is abandoned described in renewal.
As shown in Figure 4, described video frequency transmitter also comprises: computing module 208 and update module 209,
Described computing module 208 for described second determination module 203 or the 3rd determination module 207 by described second frame of video message after described token bucket exports, the token number in described token bucket is deducted the length of described second frame of video message;
Described update module 209 is for upgrading the token number in described token bucket.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 1, it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a video transmission method, is characterized in that, comprising:
Determine the token number in token bucket, described token number is for identifying the size of real-time bandwidth;
At the first reception first frame of video message;
Numbering according to described token number and described first frame of video message is determined to abandon frame of video message numbering, the numbering of described first frame of video message is for identifying the type of described first frame of video message, and the size of described numbering is corresponding with the priority of described first frame of video message;
At the second reception second frame of video message;
If abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message, and the size of described numbering is corresponding with the priority of described second frame of video message.
2. method according to claim 1, is characterized in that, described token number is positive number, and the described numbering according to described token number and described first frame of video message is determined to abandon frame of video message numbering, comprising:
Described first frame of video message is exported through described token bucket;
Token number in described token bucket is deducted the length of described first frame of video message, obtain the residue token number in described token bucket;
If described residue token number is negative and the numbering of described first frame of video message is greater than the 3rd frame of video message numbering, abandon the numbering that frame of video message numbering is described first frame of video message described in determining, described 3rd frame of video message numbering is the numbering of the default frame of video message that should abandon.
3. method according to claim 2, is characterized in that, described residue token number is negative, if the numbering of described second frame of video message be greater than described in abandon frame of video message numbering, then before abandoning described second frame of video message, also comprise:
Judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering;
If abandon frame of video message numbering described in the numbering of described second frame of video message is greater than, then abandon described second frame of video message, specifically comprise:
If the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be greater than described in abandon frame of video message numbering, then abandon described second frame of video message;
Described judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering after, also comprise:
If the numbering of described second frame of video message is less than or equal to described 3rd frame of video message numbering, then described second frame of video message is exported through described token bucket.
4. method according to claim 3, is characterized in that, described judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering after, also comprise:
If the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be less than or equal to described in abandon frame of video message numbering, described second frame of video message is exported through described token bucket;
The numbering that frame of video message numbering is described second frame of video message is abandoned described in renewal.
5. the method according to claim 3 or 4, is characterized in that, described by described second frame of video message after described token bucket exports, also comprise:
Token number in described token bucket is deducted the length of described second frame of video message;
Upgrade the token number in described token bucket.
6. a video frequency transmitter, is characterized in that, comprising:
First determination module, for determining the token number in token bucket, described token number is for identifying the size of real-time bandwidth;
First receiver module, at the first reception first frame of video message;
Second determination module, the numbering of the first frame of video message received for the described token number determined according to described first determination module and described first receiver module is determined to abandon frame of video message numbering, the numbering of described first frame of video message is for identifying the type of described first frame of video message, and the size of described numbering is corresponding with the priority of described first frame of video message;
Second receiver module, at the second reception second frame of video message;
Judge module, if for the numbering of described second frame of video message be greater than described second determination module determine described in abandon frame of video message numbering, then abandon described second frame of video message, the numbering of described second frame of video message is for identifying the type of described second frame of video message, and the size of described numbering is corresponding with the priority of described second frame of video message.
7. device according to claim 6, is characterized in that, described token number is positive number, described second determination module specifically for:
Described first frame of video message is exported through described token bucket;
Token number in described token bucket is deducted the length of described first frame of video message, obtain the residue token number in described token bucket;
If described residue token number is negative and the numbering of described first frame of video message is greater than the 3rd frame of video message numbering, abandon the numbering that frame of video message numbering is described first frame of video message described in determining, described 3rd frame of video message numbering is the numbering of the default frame of video message that should abandon.
8. device according to claim 7, is characterized in that, described residue token number is negative, described judge module also for:
Judge whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering;
If the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be greater than described in abandon frame of video message numbering, then abandon described second frame of video message;
Described video streaming device, also comprise: output module, after judging at described judge module whether the numbering of described second frame of video message is greater than described 3rd frame of video message numbering, if the numbering of described second frame of video message is less than or equal to described 3rd frame of video message numbering, then described second frame of video message is exported through described token bucket.
9. device according to claim 8, is characterized in that, also comprises, the 3rd determination module:
If the numbering for described second frame of video message is greater than described 3rd frame of video message numbering, and the numbering of described second frame of video message be less than or equal to described in abandon frame of video message numbering, described second frame of video message is exported through described token bucket;
The numbering that frame of video message numbering is described second frame of video message is abandoned described in renewal.
10. device according to claim 8 or claim 9, is characterized in that, also comprise: computing module and update module,
Described computing module be used for described second determination module or the 3rd determination module will described second frame of video message after described token bucket output, the token number in described token bucket is deducted the length of described second frame of video message;
Described update module is for upgrading the token number in described token bucket.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410695512.4A CN104378602B (en) | 2014-11-26 | 2014-11-26 | Video transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410695512.4A CN104378602B (en) | 2014-11-26 | 2014-11-26 | Video transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104378602A true CN104378602A (en) | 2015-02-25 |
CN104378602B CN104378602B (en) | 2017-06-23 |
Family
ID=52557220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410695512.4A Active CN104378602B (en) | 2014-11-26 | 2014-11-26 | Video transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104378602B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017161999A1 (en) * | 2016-03-22 | 2017-09-28 | 华为技术有限公司 | Packet processing method and related device |
WO2023036163A1 (en) * | 2021-09-10 | 2023-03-16 | 中兴通讯股份有限公司 | Video packet processing method and apparatus, computer device, and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070248014A1 (en) * | 2006-04-24 | 2007-10-25 | Huawei Technologies Co., Ltd. | Access Device and Method for Controlling the Bandwidth |
CN101094180A (en) * | 2007-07-20 | 2007-12-26 | 杭州华三通信技术有限公司 | Method and device for watching and controlling compressed flux |
US20090232202A1 (en) * | 2004-12-10 | 2009-09-17 | Koninklijke Philips Electronics, N.V. | Wireless video streaming using single layer coding and prioritized streaming |
CN101848167A (en) * | 2010-06-01 | 2010-09-29 | 北京星网锐捷网络技术有限公司 | Weighted fair queue dispatching method and device based on category |
CN102420773A (en) * | 2012-01-05 | 2012-04-18 | 北京网御星云信息技术有限公司 | Token-bucket-algorithm-based data transmission method and traffic control device |
-
2014
- 2014-11-26 CN CN201410695512.4A patent/CN104378602B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090232202A1 (en) * | 2004-12-10 | 2009-09-17 | Koninklijke Philips Electronics, N.V. | Wireless video streaming using single layer coding and prioritized streaming |
US20070248014A1 (en) * | 2006-04-24 | 2007-10-25 | Huawei Technologies Co., Ltd. | Access Device and Method for Controlling the Bandwidth |
CN101094180A (en) * | 2007-07-20 | 2007-12-26 | 杭州华三通信技术有限公司 | Method and device for watching and controlling compressed flux |
CN101848167A (en) * | 2010-06-01 | 2010-09-29 | 北京星网锐捷网络技术有限公司 | Weighted fair queue dispatching method and device based on category |
CN102420773A (en) * | 2012-01-05 | 2012-04-18 | 北京网御星云信息技术有限公司 | Token-bucket-algorithm-based data transmission method and traffic control device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017161999A1 (en) * | 2016-03-22 | 2017-09-28 | 华为技术有限公司 | Packet processing method and related device |
WO2023036163A1 (en) * | 2021-09-10 | 2023-03-16 | 中兴通讯股份有限公司 | Video packet processing method and apparatus, computer device, and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104378602B (en) | 2017-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100542341C (en) | Realize the method and apparatus of data sharing between portable terminal | |
CN105472477A (en) | Data transmission method, device and equipment | |
WO2006116483A3 (en) | Bandwidth management in a network | |
GB2428821B (en) | Premises management system | |
CN101924924A (en) | Adaptive transmission method and system for wireless remote video monitoring | |
MX2010001912A (en) | Data transmission control methods and devices. | |
WO2008005866A3 (en) | Apparatus and method for providing security and monitoring in a networking architecture | |
WO2009016618A3 (en) | Method and system for identifying udp communications | |
US9680890B2 (en) | Streaming media delivery composite | |
CN104394484A (en) | Wireless live streaming media transmission method | |
CN103607665A (en) | Multilink wireless real-time video transmission method and system | |
WO2008085776A3 (en) | Resource management in ad-hoc wireless communications system with increased spatial reuse of signal spectrum | |
CN106507024A (en) | A kind of self-adaption code rate method of adjustment and device | |
CN104601521A (en) | Method, device and system for dynamically selecting communication transmission protocol | |
CN104427286A (en) | Method and system for making video call | |
CN112865910A (en) | Data transmission method, device, terminal equipment and storage medium | |
CN104378602A (en) | Video transmission method and device | |
CN104243020A (en) | Optical module matching detection method and optical module matching detection device | |
CN102164276A (en) | Method and system for processing streaming media | |
CN106921588A (en) | A kind of flow control methods, device and equipment | |
US7809834B2 (en) | Methods, systems, and computer program products for communicating using a hybrid physical network | |
CN103986560B (en) | A kind of data transmission method and device | |
CN102340389B (en) | Wireless digital communication method | |
CN103229442B (en) | Information transferring method, light intersection website and information transmission system | |
CN106067007A (en) | The credit statistical method of network courses and system |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor Patentee after: RUIJIE NETWORKS CO., LTD. Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor Patentee before: Fujian Xingwangruijie Network Co., Ltd. |