CN105519121B - A kind of method and media server of key frame routing - Google Patents
A kind of method and media server of key frame routing Download PDFInfo
- Publication number
- CN105519121B CN105519121B CN201480010649.XA CN201480010649A CN105519121B CN 105519121 B CN105519121 B CN 105519121B CN 201480010649 A CN201480010649 A CN 201480010649A CN 105519121 B CN105519121 B CN 105519121B
- Authority
- CN
- China
- Prior art keywords
- key frame
- media server
- recipient
- last
- request
- 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
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000001172 regenerating effect Effects 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 238000004321 preservation Methods 0.000 abstract description 3
- 238000012546 transfer Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention discloses the method and media server of a kind of key frame routing.The method of the present invention includes:Media server caches the last one effective key frame of each user terminal;When receiving the key frame of only one recipient request sender, the last one effective key frame of the described sender of own cache is routed to the recipient by media server.The solution of the present invention can be realized directed routing, reduces network pressure, avoids the problem that a certain or certain recipient's whole network pressure as caused by the crucial frame loss of preservation rise sharply.
Description
Technical field
The present invention relates to multimedia technology field, in particular to key frame routes in a kind of multimedia interconnection method and matchmaker
Body server.
Background technique
Currently, the promotion of continuous maturation and terminal device performance and the network coverage with Internet service, multimedia
Technology is quickly grown.
Usual media server and multi-user (such as user A, user B, user C and user D) carry out interaction of multimedia information,
As shown in Fig. 1.When user A requests key frame to user B, user B can be asked user A by media server in the prior art
The key frame asked while routing to the user B, user C and user D being connected with media server.
In the implementation of the present invention, at least there are the following problems for the above-mentioned prior art of inventor's discovery:
When user A requests key frame to user B, user C and user D does not need the key that user B is sent at this time in fact
Frame, and the key frame that unconditional forwarding (omnidirectional routing) the user B of media server is generated is to other unwanted users, meeting
Cause the waste of transfer resource, the network pressure of whole network can growth at double.
Summary of the invention
Based on the above issues, the embodiment of the invention provides the methods and media server of a kind of routing of key frame, with solution
Certainly in the prior art network pressure caused by omnidirectional routing the problem of.
According to one aspect of the present invention, the embodiment of the invention provides a kind of methods of key frame routing, including:Media
The last one effective key frame of each user terminal of server buffer;Request sender's when receiving only one recipient
When key frame, the last one effective key frame of the described sender of own cache is routed to the reception by media server
Side.
Optionally, the method also includes:When receiving the key frame of at least two recipients request described sender,
Media server judges the corresponding receiving time of request of at least two recipient.
Optionally, the media server judges the corresponding receiving time of request of at least two recipient
Later, the method also includes:
If the receiving time is located at preset time range, media server notice described sender regenerates new pass
Key frame, and other each recipients are routed to after receiving the new key frame that described sender regenerates, it updates simultaneously
The effective key frame of the last one of the described sender of own cache.
Optionally, the media server judges the corresponding receiving time of request of at least two recipient
Later, the method also includes:
If the receiving time exceeds preset time range, the original that media server requests at least two recipient
Because being judged;
If the reason of request is the key that one or more recipients save frame loss, media server is by own cache
The effective key frame of the last one of described sender is routed to one or more of recipients;
If the reason of request is that one or more recipients are gone wrong when using crucial frame decoding, media server
Notice described sender regenerates new key frame, and in the new key frame way of escape for receiving described sender and regenerating
By giving other each recipients, while updating the last one effective key frame of the described sender of own cache.
Optionally, the method also includes:
Media server periodically examines the last one effective key frame of each user terminal of own cache
It surveys;
If it is detected that the last one effective key frame of some user terminal of own cache is no longer valid, described in notice
User terminal regenerates new key frame, and is routed to after receiving the new key frame that the user terminal regenerates
Other each user terminals, while updating the last one effective key frame of the user terminal of own cache.
Another aspect according to the present invention, the embodiment of the invention provides a kind of media servers, including:
Cache unit, for caching the last one effective key frame of each user terminal;
First routing unit, for that described will delay when receiving the key frame of only one recipient request sender
The last one effective key frame of the described sender of memory cell caching is routed to the recipient.
Optionally, media server further includes:Time judging unit receives at least two recipients request institute for working as
When stating the key frame of sender, the corresponding receiving time of request of at least two recipient is judged.
Optionally, media server further includes:Secondary route unit asks at least two recipient for described
After asking corresponding receiving time to be judged, if the receiving time is located at preset time range, described sender weight is notified
Newly-generated new key frame, and other each receptions are routed to after receiving the new key frame that described sender regenerates
Side, while updating the last one effective key frame of the described sender of the cache unit caching.
Optionally, media server further includes:
Reason judging unit, when reception corresponding for request of the media server at least two recipient
Between judged after, if the receiving time exceed preset time range, at least two recipient request the reason of
Judged;
Third routing unit, if being the key that one or more recipients save frame loss for the reason of request, by institute
The last one the effective key frame for stating the described sender of cache unit caching is routed to one or more of recipients;
4th routing unit, if being one or more recipients appearance when using crucial frame decoding for the reason of request
Problem, notice described sender regenerate new key frame, and in the new key for receiving described sender and regenerating
It is routed to other each recipients after frame, while updating the last one effective pass of the described sender of the cache unit caching
Key frame.
Optionally, media server further includes:
Cycle detection unit, the last one for each user terminal periodically to cache unit caching are effectively closed
Key frame is detected;
Processing unit, for if it is detected that the last one of some user terminal of cache unit caching is effectively crucial
Frame is no longer valid, then notifies the user terminal to regenerate new key frame, and give birth to again receiving the user terminal
At new key frame after be routed to other each user terminals, while updating the user terminal of cache unit caching
The last one effective key frame.
Beneficial effects of the present invention are:The present invention by media server cache each user terminal the last one effectively
Key frame, when receiving the key frame of only one recipient request sender, media server will be described in own cache
The effective key frame of the last one of sender is routed to the technical solution of the recipient, is no longer regenerated by the sender new
Key frame and other each user terminals being routed in multimedia interconnection by media server, solve in the prior art by
The problem of being risen sharply when one party key frame loss using whole network pressure caused by omnidirectional routing;Skill of the invention simultaneously
Art scheme also allows for actual scene, in multiple users multimedia interconnection, if only one receiving direction sender asks
It seeks key frame, is since the single recipient is lost the key frame of the sender, at this time only in the reason of request very big situation
The key frame for needing to be requested is routed to the single recipient, and other users terminal does not need the key of the sender
Frame, therefore technical solution of the present invention is while reducing network pressure, also can largely avoid follow-up data without
The problem of method parses.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Brief Description Of Drawings
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the network diagram in multimedia interconnection in the prior art;
Fig. 2 shows the flow charts for the method that key frame in a kind of multimedia interconnection of one embodiment of the invention routes;
Fig. 3 shows the flow chart for the method that key frame routes in a kind of multimedia interconnection of another embodiment of the present invention;
Fig. 4 shows a kind of structure chart of media server of another embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Major technique design of the invention is that media server caches the last one effective key of each user terminal
Frame, when receiving only one recipient and requesting the key frame of sender, media server is by the transmission of own cache
The last one effective key frame direct routing of side gives the recipient, and will no longer be asked by described sender by media server
The key frame asked is routed to other each user terminals being connected with media server.The present invention can be realized directed routing, subtract
The waste of few transfer resource, reduces network pressure, and can largely guarantee the parsing of follow-up data;User terminal compared with
When more, the whole network pressure as caused by omnidirectional routing in one party key frame loss in the prior art can be significantly solved
The problem of power rises sharply at geometric multiple.
According to corresponding application scenarios, each user terminal being connected in the embodiment of the present invention with media server both can be with
As sender, recipient can also be used as, and be not specifically limited.
Fig. 2 shows the processes of the method for key frame routing in a kind of multimedia interconnection according to an embodiment of the invention
Figure.As shown in Fig. 2, the method that key frame routes in a kind of multimedia interconnection that one embodiment of the invention provides, including walk as follows
Suddenly:
S11, media server cache the last one effective key frame of each user terminal.
Frame is the basic unit for forming video image.Key frame is also I frame (I frame), is the volume of full frame compression
Code frame;Only use the data of I frame with regard to restructural complete image when decoding;I frame is generated without necessarily referring to other pictures.I frame is also known as
For Intra pictures (intra picture), first frame of usually each GOP (Group of Pictures, picture group).
One GOP is exactly one group of continuous picture, is MPEG (Moving Pictures Experts Group, dynamic image expert
Group) used in a kind of video compression technology.
Picture (i.e. frame) is divided into tri- kinds of I, P, B by mpeg encoded, and I is intra-coded frame, and P is forward predicted frame, and B is two-way
Interpolation frame.I frame is a complete picture, and P frame and B frame recording is variation relative to I frame.Because I frame is subsequent P frame
With the reference frame of B frame, the quality of each frame after I frame quality directly influences in same group relies on so P frame and B frame have I frame
Property, there is no I frame, P frame and B frame can not just decode.For I frame is compared to more subsequent P frame and B frame, I frame is to scheme greatly, shared data
Information content it is bigger.
In multimedia interconnection, what the last time for each user terminal that media server pair is connected with itself was sent has
Effect I frame is cached, in case forwarding uses.
S12, when receiving only one recipient and requesting the key frame of sender, media server is by own cache
The effective key frame of the last one of the sender is routed to the recipient.
When user terminal only has two sides, the routing plan of the key frame of the embodiment of the present invention compared with prior art, though
All be finally so the key frame of sender is routed to recipient by media server, but unlike sender in the prior art
It needs to regenerate key frame and is sent to media server, the key frame which regenerates is received by media server
It is routed to recipient again afterwards;And the embodiment of the present invention is that the last one by media server by its own sender cached has
Key frame direct routing is imitated to recipient.
When user terminal is more than two sides (be more than or equal to tripartite), for the scheme for clearly illustrating the embodiment of the present invention, below
It is illustrated with four user terminals (user A, user B, user C and user D) for example.
When only user A requests key frame to user B, in the prior art, the key frame that user B can request user A
The user B being connected with media server, user C and user D are routed to simultaneously by media server;That is the key frame of user B
It needs to transmit 1+3=4 times in a network.And in embodiments of the present invention, media server only need to be by the user B's of own cache
The last one effective key frame is sent to user A, i.e. the key frame of user B only needs to transmit 0+1=1 times in a network.
It is appreciated that the effect that the scheme of the embodiment of the present invention reduces network pressure is more significant when user terminal is more.
In fact, in multiple users multimedia interconnection, if only one receiving direction sender requests key frame,
It is the only hair that need to be requested at this time since the single recipient itself is lost the key frame of the sender in very big situation
The key frame for the side of sending is routed to the single recipient, and other users terminal does not need the key frame of the sender.It is existing
That of technology is omnidirectional routing plan, does not consider the actual needs of each user terminal, once there is a recipient to request hair
The key frame for the side of sending, i.e., by key frame that the sender regenerates while to be routed to the connected each user of media server whole
End, it is clear that cause the waste of transfer resource, cause network pressure can growth at double.What is especially routed is key frame I frame,
I frame is to scheme greatly, and the information content of shared data is bigger, be will lead to whole as caused by the crucial frame loss of a certain user terminal appearance
The problem of a network pressure rises sharply.
Embodiment of the present invention method uses the last one effective key frame that media server caches each user terminal,
When receiving only one recipient and requesting the key frame of sender, media server is by the described sender of own cache
The last one effective key frame direct routing gives the scheme of the recipient, and directed routing may be implemented, reduce the wave of transfer resource
Take, is risen sharply when solving in the prior art as one party key frame loss using whole network pressure caused by omnidirectional routing
The problem of, and while significantly reducing network pressure, it also can largely avoid the problem that follow-up data can not parse.
There are two types of the transmissions of key frame, and one is recipients to request key frame, and one is sender's active transmission key frames;
Master of the present invention to be processed is the case where recipient requests key frame.Recipient requested there are mainly two types of the reason of key frame, and one
Kind is crucial frame loss, and such case is very common;Another goes wrong when being using crucial frame decoding, such as P frame is utilizing I
There is mistake when restoring in frame.
Based on above description, Fig. 3 shows key frame road in a kind of multimedia interconnection according to another embodiment of the present invention
By method flow chart.As shown in figure 3, another embodiment of the present invention provides a kind of multimedia interconnection in key frame routing
Method includes the following steps:
S31, media server cache the last one effective key frame of each user terminal.
S32, media server receive the request that at least two recipients request the key frame of sender.
S33, media server judge the corresponding receiving time of the request of at least two recipient, if the reception
Time is located at preset time range, is transferred to step S35;If the receiving time exceeds preset time range, it is transferred to step S34.
Specifically, whether in preset time range media server judges the receiving time, the wherein preset time model
Enclosing preferably to be [0,500ms], but be not limited to that this.
If the receiving time is located at preset time range, it can be considered as while receive asking at least two recipient
It asks.
If the receiving time exceeds preset time range, different time can be considered as and receive at least two recipient
Request.
For example, media server receives user A, user C and user D when all requesting the key frame of user B, media services
Device first judges the receiving time for receiving user A, user C and user D tri- requests, if when the reception of three requests
Between concentrate in the time range of 1s, then be considered as while receiving these three requests;If receiving time exceeds the time range of 1s,
Then be considered as not is to receive these three requests simultaneously.
S34, media server judge the reason of request of at least two recipient, if the reason of request is one
A or multiple recipients are gone wrong when using crucial frame decoding, then are transferred to step S35;If the reason of request is one or more
The crucial frame loss that a recipient saves, is transferred to step S36.
When determining that not receiving at least two recipients simultaneously requests the key frame of same sender, media server
The reason of further request at least two recipient, is analyzed and determined.
This is because multiple recipients request the key frame of same sender time span it is larger when, reason for claim is very
It is likely to be for a variety of, such as part recipient is the key that be requested due to preservation frame loss or part recipient
It is that there is a problem when sending out now with existing crucial frame decoding.The embodiment of the present invention to not receiving at least two receptions simultaneously
Side requests the reason for claim of the key frame of same sender to distinguish, and can further realize directed routing, reduces network pressure
Power avoids the problem that a certain or certain recipient's whole network pressure as caused by the crucial frame loss of preservation rise sharply.
In a kind of implementation of the present embodiment, the reason of recipient being requested, is comprising in the request or matchmaker
Body server can be analyzed the reason of obtaining recipient's request according to the request received, and the embodiment of the present invention is not limited to
In this, details are not described herein.
S35, media server notify the sender to regenerate new key frame, and give birth to again receiving the sender
At new key frame after be routed to other each user terminals, while the last one of the sender for updating own cache has
Imitate key frame.
The last one effective key frame of the described sender of own cache is routed to this by S36, media server
Or multiple recipients.
When multiple recipients request key frame to a sender simultaneously, illustrate that multiple recipients require the sender
Key frame, very big possibility is the key that occur asking when using sender's frame decoding due to these recipients at this time
Topic, needs to be generated at this time new key frame by the recipient and is routed to other each user terminals by media server, simultaneously
Update the last one effective key frame of the sender of own cache.
In embodiments of the present invention, media server requests more than one recipient the receiving time of the same recipient
Judged quite it is necessary to.This is because:If user A, user C and user D request key frame to user B simultaneously,
No matter how simultaneously, successive is received three requests by user B.
If three key frames can be continuously generated according to prior art user B then successively while to be routed by media server
To user A, user C and user D;The scheme of the prior art is used, the key frame of user B needs to transmit (1+3) * in a network
3=12 times.
If the receiving time that media server receives these three requests concentrates on according to the scheme of the embodiment of the present invention
It within the scope of certain time, will be regarded as receiving these three requests simultaneously, then only need that a user B is notified to regenerate key frame,
Then user A, user C and user D are routed to by media server simultaneously;I.e. the key frame of user B only needs to pass in a network
Defeated (1+3) * 1=4 times.
In one embodiment of the invention, to avoid media server due to the last one of some sender of caching
Effective key frame failure, goes wrong, media server can be periodically when will lead to other recipients using the key frame decoding
Ground detects the last one effective key frame of each user terminal of own cache, if it is detected that certain user terminal is most
The effective key frame of the latter is no longer valid, then notifies the user terminal to regenerate new key frame, and receiving the user
It is routed to other each user terminals after the new key frame that terminal regenerates, while updating the user terminal of own cache
The last one effective key frame.The inventive method embodiment can guarantee each user terminal of media server caching most
The effective key frame of the latter is in effective status always.
Based on inventive concept same as mentioned above, Fig. 4 shows a kind of media according to another embodiment of the present invention
The structure chart of server.As shown in figure 4, another embodiment of the present invention provides a kind of media server 400, including:
Cache unit 410, for caching the last one effective key frame of each user terminal;
First routing unit 420 will be described for when receiving only one recipient and requesting the key frame of sender
The last one the effective key frame for the described sender that cache unit 410 caches is routed to the recipient.
In a kind of embodiment, media server 400 provided in an embodiment of the present invention further includes:
Time judging unit, for when receive at least two recipients request described sender key frame when, to institute
The corresponding receiving time of request for stating at least two recipients judges.
Further, media server 400 provided in an embodiment of the present invention further includes:
Secondary route unit judges for the corresponding receiving time of request at least two recipient
Later, if the receiving time is located at preset time range, notice described sender regenerates new key frame, and is receiving
Other each recipients are routed to after the new key frame regenerated to described sender, while it is slow to update the cache unit
The effective key frame of the last one for the described sender deposited.
In another embodiment, media server 400 provided in an embodiment of the present invention further includes:
Reason judging unit, when reception corresponding for request of the media server at least two recipient
Between judged after, if the receiving time exceed preset time range, at least two recipient request the reason of
Judged;
Third routing unit, if being the key that one or more recipients save frame loss for the reason of request, by institute
The last one the effective key frame for stating the described sender of cache unit caching is routed to one or more of recipients;
4th routing unit, if being one or more recipients appearance when using crucial frame decoding for the reason of request
Problem, notice described sender regenerate new key frame, and in the new key for receiving described sender and regenerating
It is routed to other each recipients after frame, while updating the last one effective pass of the described sender of the cache unit caching
Key frame.
Preferably, in a further embodiment, media server 400 provided in an embodiment of the present invention further includes:
Cycle detection unit, the last one for each user terminal periodically to cache unit caching are effectively closed
Key frame is detected;
Processing unit, for if it is detected that the last one of some user terminal of cache unit caching is effectively crucial
Frame is no longer valid, then notifies the user terminal to regenerate new key frame, and give birth to again receiving the user terminal
At new key frame after be routed to other each user terminals, while updating the user terminal of cache unit caching
The last one effective key frame.
The specific working mode of each unit, may refer to aforementioned present invention in the media server of product of the present invention embodiment
Related content in embodiment of the method, details are not described herein.
In conclusion a kind of media server according to the present invention, the last one by caching each user terminal has
Key frame is imitated, when receiving the key frame of only one recipient request sender, by the described sender of own cache
The last one effective key frame is routed to the technical solution of the recipient, no longer regenerates new key frame simultaneously by the sender
Other each user terminals being routed in multimedia interconnection by media server, solve in the prior art due to one party
The problem of being risen sharply when crucial frame loss using whole network pressure caused by omnidirectional routing;Technical solution of the present invention simultaneously
In view of actual scene, in multiple users multimedia interconnection, if only one receiving direction sender requests key frame,
It is only to need to be asked at this time since the single recipient is lost the key frame of the sender in the reason of request very big situation
The key frame asked is routed to the single recipient, and other users terminal does not need the key frame of the sender, therefore this
The technical solution of invention also can largely avoid what follow-up data can not parse from asking while reducing network pressure
Topic.
Further, when multiple recipients request key frame to a sender simultaneously, illustrate that multiple recipients need
Will the sender key frame, very big possibility is the key that since these recipients are when using sender's frame decoding at this time
It there is a problem, the embodiment of the present invention regenerates new key frame using media server notice described sender, and is connecing
Other each user terminals are routed to after receiving the new key frame that described sender regenerates, while updating own cache
The technical solution of the effective key frame of the last one of the sender can largely guarantee the parsing of follow-up data.
Further, when not receiving the key frame of more than one recipient's request described sender simultaneously, the present invention
Embodiment use to do not receive simultaneously more than one recipient request some sender key frame reason for claim carry out area
The technical solution divided can further realize directed routing, reduce network pressure, avoid a certain or certain recipients due to protecting
The problem of whole network pressure caused by the crucial frame loss deposited rises sharply, at the same also can largely avoid follow-up data without
The problem of method parses.
Further, the embodiment of the present invention is using media server periodically to each user terminal of own cache
The technical solution that the last one effective key frame is detected, it is ensured that each user terminal of media server caching is most
The effective key frame of the latter is in effective status always.
It should be noted that:
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize one of some or all components according to embodiments of the present invention
A little or repertoire.The present invention is also implemented as setting for executing some or all of method as described herein
Standby or program of device (for example, computer program and computer program product).It is such to realize that program of the invention deposit
Storage on a computer-readable medium, or may be in the form of one or more signals.Such signal can be from because of spy
It downloads and obtains on net website, be perhaps provided on the carrier signal or be provided in any other form.
" one embodiment ", " embodiment " or " one or more embodiment " referred to herein it is meant that in conjunction with
Special characteristic, structure or the characteristic of embodiment description are included at least one embodiment of the present invention.Further, it is noted that
Here word example " in one embodiment " is not necessarily all referring to the same embodiment.
Furthermore, it should also be noted that language used in this specification primarily to readable and introduction purpose and select
Select, rather than in order to explain or defining the subject matter of the present invention and select.Therefore, without departing from the appended claims
In the case where scope and spirit, many modifications and changes are all apparent for those skilled in the art
's.For the scope of the present invention, the disclosure that the present invention is done be it is illustrative and not restrictive, the scope of the present invention by
The appended claims limit.
Claims (8)
1. a kind of method of key frame routing, which is characterized in that the method includes:
Media server caches the last one effective key frame of each user terminal;
When receiving only one recipient and requesting the key frame of sender, media server is by the transmission of own cache
The last one effective key frame of side is routed to the recipient;
When receiving the key frame of at least two recipients request described sender, media server connects to described at least two
The corresponding receiving time of the request of debit judges;
After the media server judges the corresponding receiving time of request of at least two recipient, if this connects
It is located at preset time range between time receiving, is then considered as while receiving the request of at least two recipient, if the receiving time is super
Preset time range out is then considered as the request that different time receives at least two recipient.
2. the method according to claim 1, wherein the media server is at least two recipient's
After requesting corresponding receiving time to be judged, the method also includes:
If the receiving time is located at preset time range, media server notice described sender regenerates new key
Frame, and other each recipients are routed to after receiving the new key frame that described sender regenerates, while updating certainly
The last one effective key frame of the described sender of body caching.
3. the method according to claim 1, wherein the media server is at least two recipient's
After requesting corresponding receiving time to be judged, the method also includes:
If the receiving time exceeds preset time range, the reason of media server requests at least two recipient into
Row judgement;
If the reason of request is the key that one or more recipients save frame loss, media server will be described in own cache
The effective key frame of the last one of sender is routed to one or more of recipients;
If the reason of request is that one or more recipients are gone wrong when using crucial frame decoding, media server notice
Described sender regenerates new key frame, and is routed to after receiving the new key frame that described sender regenerates
Other each recipients, while updating the last one effective key frame of the described sender of own cache.
4. method according to claim 1-3, which is characterized in that the method also includes:
Media server periodically detects the last one effective key frame of each user terminal of own cache;
If it is detected that the last one effective key frame of some user terminal of own cache is no longer valid, the user is notified
Terminal regenerates new key frame, and is routed to other after receiving the new key frame that the user terminal regenerates
Each user terminal, while updating the last one effective key frame of the user terminal of own cache.
5. a kind of media server, which is characterized in that including:
Cache unit, for caching the last one effective key frame of each user terminal;
First routing unit, for when receiving only one recipient and requesting the key frame of sender, singly by the caching
The last one effective key frame of the described sender of member caching is routed to the recipient;
Further include:
Time judging unit, for when receive at least two recipients request described sender key frame when, to it is described extremely
The corresponding receiving time of request of few two recipients judges, if the receiving time is located at preset time range, is considered as
The request of at least two recipient is received simultaneously, if the receiving time exceeds preset time range, is considered as different time
Receive the request of at least two recipient.
6. media server according to claim 5, which is characterized in that further include:
Secondary route unit carries out judging it for the corresponding receiving time of request at least two recipient
Afterwards, if the receiving time is located at preset time range, notice described sender regenerates new key frame, and is receiving
Other each recipients are routed to after the new key frame that described sender regenerates, while updating the cache unit caching
Described sender the last one effective key frame.
7. media server according to claim 5, which is characterized in that further include:
Reason judging unit, for the media server to the corresponding receiving time of request of at least two recipient into
After row judgement, if the receiving time exceeds preset time range, the reason of at least two recipient request, is carried out
Judgement;
Third routing unit will be described slow if being the key that one or more recipients save frame loss for the reason of request
The last one effective key frame of the described sender of memory cell caching is routed to one or more of recipients;
4th routing unit, if being that one or more recipients are asked when using crucial frame decoding for the reason of request
Topic, notice described sender regenerate new key frame, and in the new key frame for receiving described sender and regenerating
After be routed to other each recipients, while update cache unit caching described sender the last one is effectively crucial
Frame.
8. according to the described in any item media servers of claim 5-7, which is characterized in that further include:
Cycle detection unit, the last one effective key frame for each user terminal periodically to cache unit caching
It is detected;
Processing unit, for if it is detected that the cache unit caching some user terminal the last one effective key frame
Through failing, then the user terminal is notified to regenerate new key frame, and receiving what the user terminal regenerated
It is routed to other each user terminals after new key frame, while updating the user terminal of the cache unit caching most
The effective key frame of the latter.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/080968 WO2015196457A1 (en) | 2014-06-27 | 2014-06-27 | Method for routing key frame and media server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105519121A CN105519121A (en) | 2016-04-20 |
CN105519121B true CN105519121B (en) | 2018-11-23 |
Family
ID=54936518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201480010649.XA Active CN105519121B (en) | 2014-06-27 | 2014-06-27 | A kind of method and media server of key frame routing |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105519121B (en) |
WO (1) | WO2015196457A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110798734A (en) * | 2018-08-02 | 2020-02-14 | 广州视源电子科技股份有限公司 | Video frame caching and forwarding method and device and computer equipment |
CN110636333A (en) * | 2019-08-19 | 2019-12-31 | 西安万像电子科技有限公司 | Frame loss processing method and device |
CN113965714B (en) * | 2021-09-10 | 2023-06-23 | 北京百度网讯科技有限公司 | Video stream processing method and device, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101742271A (en) * | 2008-11-10 | 2010-06-16 | 华为技术有限公司 | Method, system and device for transmitting stream media data |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060114080A (en) * | 2005-04-27 | 2006-11-06 | 삼성전자주식회사 | Multimedia streaming service system and method |
US20080100694A1 (en) * | 2006-10-27 | 2008-05-01 | Microsoft Corporation | Distributed caching for multimedia conference calls |
CN101132521A (en) * | 2007-09-25 | 2008-02-27 | 华为技术有限公司 | Method and device for switching IPTV channels |
CN102118653B (en) * | 2009-12-31 | 2012-12-26 | 华为技术有限公司 | Method and device for ensuring service quality of live broadcast of web television |
US8731152B2 (en) * | 2010-06-18 | 2014-05-20 | Microsoft Corporation | Reducing use of periodic key frames in video conferencing |
US8666042B2 (en) * | 2011-11-02 | 2014-03-04 | Cisco Technology, Inc. | Techniques for performing key frame requests in media servers and endpoint devices |
CN103533387B (en) * | 2013-10-21 | 2016-08-17 | 腾讯科技(深圳)有限公司 | A kind of live video control, equipment and system |
-
2014
- 2014-06-27 CN CN201480010649.XA patent/CN105519121B/en active Active
- 2014-06-27 WO PCT/CN2014/080968 patent/WO2015196457A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101742271A (en) * | 2008-11-10 | 2010-06-16 | 华为技术有限公司 | Method, system and device for transmitting stream media data |
Also Published As
Publication number | Publication date |
---|---|
WO2015196457A1 (en) | 2015-12-30 |
CN105519121A (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230208900A1 (en) | System and Method for Streaming Content from Multiple Servers | |
US8631091B2 (en) | Content distribution network using a web browser and locally stored content to directly exchange content between users | |
US9204180B2 (en) | Method, server and terminal for audio and video on demand | |
US9313015B2 (en) | HTTP-based synchronization method and apparatus | |
CN106886680A (en) | A kind of ultrasonic remote real-time consultation system | |
WO2019128800A1 (en) | Content service implementation method and device, and content delivery network node | |
JP2004527028A5 (en) | ||
CN108848060A (en) | A kind of multimedia file processing method, processing system and computer readable storage medium | |
CN102055718B (en) | Method, device and system for layering request content in http streaming system | |
CN109462631B (en) | Data processing method, data processing device, storage medium and electronic device | |
CN105556922B (en) | DASH in network indicates adaptive | |
CN105519121B (en) | A kind of method and media server of key frame routing | |
US11503098B2 (en) | Embedding MQTT messages in media streams | |
WO2015120766A1 (en) | Video optimisation system and method | |
CN103250382B (en) | Distribution method, apparatus and system | |
CN105872858A (en) | Video sharing method and system, video processing system and client side | |
CN106657206A (en) | Virtual desktop infrastructure web video redirection method | |
CN102439935B (en) | Media adaptation method and apparatus | |
CN111131843A (en) | A system and method for live broadcasting | |
WO2016180284A1 (en) | Service node allocation method, device, cdn management server and system | |
CN106911732A (en) | A kind of website visiting accelerating method and device | |
CN110881046A (en) | Method, device, medium and terminal equipment for docking WebRTC protocol by cloud mobile phone | |
CN107809681A (en) | The method and device of section transmission of video | |
CN104079656B (en) | The efficiency optimizing apparatus and method of soap message in webService | |
CN115297095B (en) | Back source processing method, device, computing equipment and storage medium |
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 | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080 Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602 Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. |