A kind of method and device for recommending video definition
Technical field
The present invention relates to video technique field more particularly to a kind of method and devices for recommending video definition.
Background technique
Existing video network plays, and for identical video content, content distributing network (CDN) server can be visitor
Family end provides the video of a variety of clarity corresponding with video content, such as: for TV play A (A is TV play title), CDN
Server can provide SD video, HD video or super clear video, and the corresponding video of various clarity is mutually indepedent, respectively possess
Different broadcasting source addresses;The video that user can choose oneself desired clarity on the client plays out.Difference etc.
There are larger differences for the code rate of the clarity of grade, for example, the code rate of HD video is 1Mbps, the code rate of super clear video is
The CDN server bandwidth of 1.5Mbps, the higher video of play clarity, occupancy are bigger.
In city, user, which watches video, has certain tide, i.e. different periods, watches the number of users difference of video
It is very big.Since the total bandwidth of CDN server is limited, in the period of a large number of users viewing video, CDN server is usually connect
Nearly oepration at full load, however, since user can not know in client the working condition of CDN server, the use being largely newly added
Family still selects the higher video of clarity, and the bandwidth that will lead to CDN server is insufficient, and it is frequent to cause client video playing
Ground Caton influences the video playing experience of user.
Summary of the invention
Technical problem
In view of this, the technical problem to be solved by the present invention is to, provide it is a kind of recommend clarity method and apparatus, with to
Client recommends suitable video playing clarity, to reduce Caton, improves the video playing experience of user.
Solution
In order to solve the above-mentioned technical problem, one aspect of the present invention provides a kind of method for recommending video definition, this method
It include: to be configured according to the relevant statistical information of from content distribution network CDN service device, working condition to CDN server
Each video definition setting;The playing request of client is received, includes letter related with the client in the playing request
Breath;In response to the playing request, searches the video definition to match with the information and be arranged;According to the view to match
The setting of frequency clarity, Xiang Suoshu client issue the notice of the video definition about recommendation.
In order to solve the above-mentioned technical problem, another aspect of the present invention provides a kind of method for recommending video definition, the party
Method includes: to send playing request to server-side, includes information related with the client in the playing request;Described in reception
The notice for the video definition about recommendation that server-side issues, wherein the notice is according to the view to match with the information
Frequency clarity setting and generate;The clarity for playing video is determined according to the video definition of the recommendation in the notice.
In order to solve the above-mentioned technical problem, another aspect of the present invention provides a kind of device for recommending video definition, the dress
Setting includes: arrangement components, for according to from content distribution network CDN service device, the working condition to CDN server is related
Statistical information, configure the setting of each video definition;Receiving part, for receiving the playing request of client, the broadcasting is asked
It include information related with the client in asking;Component is searched, for searching and the information in response to the playing request
The video definition setting to match;Video definition component is issued, is arranged according to the video definition to match, to institute
State the notice for the video definition that client is issued about recommendation.
In order to solve the above-mentioned technical problem, another aspect of the present invention provides a kind of device for recommending video definition, the dress
Setting includes: transmission component, includes related with the client in the playing request for sending playing request to server-side
Information;Receiving part, for receiving the notice for the video definition about recommendation that the server-side issues, wherein the notice
It is to be generated according to the video definition setting to match with the information;Component is determined, for according in the notice
The video definition of recommendation determines the clarity for playing video.
Beneficial effect
The method provided in an embodiment of the present invention for recommending video definition, server-side can be according to the work with CDN server
Make the relevant statistical information of state, configures each video definition and be arranged, the playing request at customer in response end, and according to playing request
In include client-side information search the video definition to match with the information and be arranged, set according to the video definition
It sets, the notice of the video definition about recommendation is issued to client.By above-mentioned technological means, server-side can be used automatically
Video definition is recommended at family, avoids working condition of the user due to that can not know CDN server, has selected unsuitable video
Clarity and cause play Caton, improve user watch video experience satisfaction.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect
It is clear.
Detailed description of the invention
Comprising in the description and constitute the attached drawing of part of specification and specification together illustrate it is of the invention
Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the flow chart of the method according to an embodiment of the invention for recommending video definition;
Fig. 2 shows the flow charts of the method according to another embodiment of the present invention for recommending video definition;
Fig. 3 shows the structure chart of the device according to an embodiment of the invention for recommending video definition;
Fig. 4 shows another structure chart of the device according to an embodiment of the invention for recommending video definition;
Fig. 5 shows the structure chart of the device according to another embodiment of the present invention for recommending video definition;
Fig. 6 shows another structure chart of the device according to another embodiment of the present invention for recommending video definition;
Fig. 7 shows a kind of structural block diagram of recommendation video definition equipment of another embodiment of the invention.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing
Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific embodiment below.
It will be appreciated by those skilled in the art that without certain details, the present invention equally be can be implemented.In some instances, for
Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight purport of the invention.
Embodiment 1
Fig. 1 shows the flow chart of the method according to an embodiment of the invention for recommending video definition.This method can be applied
In server-side, as shown in Figure 1, the method for the recommendation video definition specifically includes that
Step 101, according to the relevant system of working condition from content distribution network CDN service device, to CDN server
Information is counted, each video definition setting is configured;
Step 102, the playing request of client is received, includes letter related with the client in the playing request
Breath;
Step 103, it in response to the playing request, searches the video definition to match with the information and is arranged;
Step 104, it is arranged according to the video definition to match, Xiang Suoshu client issues the video about recommendation
The notice of clarity.
The method provided in an embodiment of the present invention for recommending video definition, server-side can be according to the work with CDN server
Make the relevant statistical information of state, configures each video definition and be arranged, the playing request at customer in response end, and according to playing request
In include client-side information search the video definition to match with the information and be arranged, set according to the video definition
It sets, the notice of the video definition about recommendation is issued to client.By above-mentioned technological means, server-side can be used automatically
Video definition is recommended at family, avoids working condition of the user due to that can not know CDN server, has selected unsuitable video
Clarity and cause play Caton, improve user watch video experience satisfaction.
In one example, statistical information may include that CDN server is used in the bandwidth of day part in above-mentioned steps 101
Rate, bandwidth utilization rate are the ratio that CDN server has used bandwidth and total bandwidth;Configure each video definition setting can include:
According to bandwidth utilization rate, the video definition of the day part of the service covering territorial scope of CDN server is arranged in configuration pin.
For example, it can be respectively arranged CDN server in different geographical, each CDN server services covering region model for it
Client in enclosing provides video playing service.For example, CDN server can be respectively arranged in Beijing, Wuhan, respectively Beijing,
The client (including mobile APP (mobile application)) in Wuhan provides video playing service.Each CDN server is statistics available and records not
With the bandwidth utilization rate of period, the bandwidth utilization rate of the different periods of statistics can be reported to server-side, server-side can also be actively
Each CDN server is accessed to obtain the bandwidth utilization rate of each CDN server different periods.Server-side can be according to CDN server
Bandwidth utilization rate configures corresponding video definition setting, for example, in the case where bandwidth utilization rate reaches 50% situation below, it can
It is super clear for configuring video definition;In the case where bandwidth utilization rate reaches 50% to 85%, can configure video definition is height
Clearly;In the case where bandwidth utilization rate reaches 85% or more, can configure video definition is SD.Server-side obtains different geographical
CDN server after the bandwidth utilization rate of day part, can according to aforesaid way be each CDN server configure video definition set
It sets.It is 30%, when can configure this in the bandwidth utilization rate of 1:30 to CDN server between 8:00 by taking Pekinese's CDN server as an example
The clarity of section is super clear;It is 65% in the bandwidth utilization rate of 8:00 to CDN server between 19:00, can configure the clear of the period
Clear degree is high definition;The bandwidth utilization rate of the CDN server of remaining period is 90%, can configure the clarity of remaining period as mark
Clearly, to obtain for Beijing (the service covering territorial scope of the CDN server), and it is directed to the video definition of day part
It is provided that
1:30 to 8:00: super clear, 8:00 is to 19:00: high definition, remaining period: SD.
Server-side can monitor the situation of change of the bandwidth utilization rate of each CDN server in real time, the change according to bandwidth utilization rate
Change situation and periodically carry out the update of video definition setting, for example, can progress primary video clarity setting in every 30 minutes more
Newly.
In one example, statistical information may include that CDN server is asked for the broadcasting of each operator in above-mentioned steps 101
The response success rate asked, response success rate are the ratio of the number of success response playing request and the total degree of playing request;Match
Set each video definition setting can include: success rate according to response, configuration pin cover territorial scope to the service of CDN server
The video definition of each operator is arranged.
For example, the client for moving APP (such as can be moved, be joined by different Mobile Network Operator
The operators such as logical, telecommunications) it is connect with CDN server, the video that the stable case of operator mobile network will affect mobile APP is broadcast
Fluency is put, and CDN server can objectively reflect that each operator moves for the response success rate of the playing request of each operator
The stable case of dynamic network.Each CDN server is statistics available and recording needle is to the response success rate of the playing request of each operator, can
The response success rate of statistics is reported into server-side, server-side can also access each CDN server actively to obtain each CDN server
For the response success rate of the playing request of each operator.Server-side can be directed to the playing request of operator according to CDN server
Response success rate, configure the setting of corresponding video definition.For example, in the case where response success rate is 60% situation below, it can
Configuration video definition is SD, in the case where responding success rate greater than 60%, can configure video definition and is high definition or surpasses
Clearly.It, can foundation after the response success rate for the playing request that each CDN server that server-side obtains different geographical is directed to each operator
Each operator configuration video definition setting that aforesaid way is serviced by each CDN server.It is with Pekinese's CDN server
Example, CDN server are greater than 60% for the response success rate of the playing request of Mobile Network Operator, then can configure and be directed to Beijing
, and high definition or super clear is set as the video definition of Mobile Network Operator.
Server-side can monitor each CDN server in real time for the variation feelings of the response success rate of the playing request of each operator
Condition, the update for the video definition setting that the situation of change according to response success rate periodically carries out, for example, can carry out for every 30 minutes
The update of primary video clarity setting.
In one example, statistical information can include bandwidth utilization rate in above-mentioned steps 101, and including responding successfully
Rate configures each video definition setting can include: according to bandwidth utilization rate, it may be determined that be directed to CDN server in this case
Service covering territorial scope day part the first video definition setting;Success rate is responded according to playing request, it may be determined that
For the second video definition setting of each operator of the service covering territorial scope of CDN server;Based on described in day part
Video definition junior in the setting of first video definition and second video definition setting, can configure and be directed to CDN
The video definition setting of the day part of each operator of the service covering territorial scope of server.
By taking the Mobile Network Operator that Pekinese's CDN server and the CDN server are serviced as an example, due to CDN service
Device is directed to the response success rate whole day day part of the playing request of Mobile Network Operator all 60% or more, therefore can determine complete
Its day part is high definition or super clear setting for the video definition of Mobile Network Operator;But since CDN server is being worked as
The bandwidth utilization rate of this period in its 19:00 to second days morning 1:30 reaches 90% or more, therefore can determine the period needle again
Video definition to Mobile Network Operator is SD setting, and when both setting conflicts, it is lower to can use video definition
Setting (i.e. SD setting) as Pekinese's CDN server for serviced Mobile Network Operator the period video
Thus clarity is obtained for Beijing and for the following video definition setting of Mobile Network Operator:
1:30 to 8:00: super clear, 8:00 is to 19:00: high definition, remaining period: SD.
It is illustrated so that statistical information is bandwidth utilization rate or response success rate as an example above, however art technology
Personnel should be understood that statistical information is without being limited thereto, can also be other statistical informations, as long as its work for being able to reflect CDN server
Make state, helps to recommend suitable video definition.
In one example, in above-mentioned steps 102 information related with client may include region where client and
The IP address of client at least one.
For example, different IP address sections can be distributed for different operators in a network, as some movement APP (visitor
Family end) when accessing the mobile network of certain operator, which distributes in the IP address section that it is distributed for movement APP
One IP address.Therefore, the operator that client is accessed can be analyzed from the IP address of client.Server-side can receive client
The playing request at end, and playing request is responded, information related with client matches with include in playing request for lookup
Video definition setting is recommended.Each video definition setting of configuration has been illustrated in the examples described above can be according to not
CDN server with region is directed to the playing request of each operator in the bandwidth utilization rate of day part and/or each CDN server
Success rate is responded, therefore, information related with client may include the IP address of the region and/or client where client,
In order to which server-side is searched, is matched in video definition setting according to above- mentioned information.For example, if request in institute
The information for including indicates that the client be location is Beijing, and operator is Mobile Network Operator, then can match
It is arranged to the video definition above configured:
1:30 to 8:00: super clear, 8:00 is to 19:00: high definition, remaining period: SD.
In one example, each video definition setting is configured in above-mentioned steps 101 can include: generate clarity script text
Part, the clarity script file may include each video definition setting configured.
For example, server-side can to client recommendation video definition in order to automated to respond to the playing request of client
According to the relevant statistical information of working condition from content distribution network CDN service device, to CDN server, it is clear to generate
Script file is spent, clarity script file includes each video definition setting configured.Server-side receives broadcasting for client
After putting request, can be searched in clarity script file according to the information related with client for including in playing request,
Matching, and can according to matched video definition be arranged and issue the notice of the video definition about recommendation to client.
The notice can be corresponding with the matched video definition setting of institute, for example, the notice can reflect it is following
Recommendation information:
1:30 to 8:00: recommend to play super clear, 8:00 to 19:00: recommending to play high definition, remaining period: recommending to play mark
Clearly.
In one example, server-side can issue broadcast information to client, and broadcast information may include that different video is clear
The broadcasting source address of the video of degree, for example including for super clear video source the broadcasting source address, high definition for same video content
Video source plays source address and SD video source plays source address.The broadcast information can be the playing request in response to client
And issue, client, can be clear according to the video playing recommended in the notice that server-side is sent after receiving these addresses
Clear degree automatic or manual is linked to corresponding broadcasting source address, is downloaded or is played with the clarity of recommendation.
Embodiment 2
Fig. 2 shows the flow charts of the method according to another embodiment of the present invention for recommending video definition.This method can answer
For client, the meaning of feature identical to embodiment illustrated in fig. 1 and term is similar, repeats no more herein to be concise.Such as Fig. 2
Shown, the method for the recommendation video definition specifically includes that
Step 201, playing request is sent to server-side, includes letter related with the client in the playing request
Breath;
Step 202, the notice for the video definition about recommendation that the server-side issues is received, wherein the notice is
It is generated according to the video definition setting to match with the information;
Step 203, the clarity for playing video is determined according to the video definition of the recommendation in the notice.
Wherein, client can with the video definition recommended in the notice directly as the clarity for playing video,
Various mechanism can also be used in client, be further determined that based on the video definition of recommendation and play the clear of video
Degree, so that the actual clarity for playing video is suitble to the practical working situation of CDN server and client as far as possible,
To avoid Caton as far as possible.Some examples of the adoptable mechanism of client are given below.
In one example, it is determined and is played according to the video definition of the recommendation in the notice in above-mentioned steps 203
The clarity of video, it may include: record the network-caching speed of client;Judge whether recorded network-caching speed is supported
Code rate corresponding with the video definition of recommendation, it is clear with the lower video of video definition than recommendation if not supporting
It spends as the clarity for playing video.
For example, client can record newest network-caching speed, it is assumed that the newest network-caching speed is about
650Kbps, and the video definition that client receives the recommendation that server-side issues is super clear.Due to super clear corresponding code rate
About 1.5Mbps can determine whether that the network-caching speed does not support the super clear corresponding code rate recommended, than the super clear grade of recommendation
The lower video definition of video definition grade is high definition or SD, is based on above-mentioned similar comparison, the newest network
Caching speed does not support the corresponding code rate of high definition (about 1Mbps) yet, but supports the corresponding code rate of SD (about
500Kbps).Therefore using SD as the clarity for playing video.Assume that the newest network-caching speed is about again
1.1Mbps, and the video definition that client receives the recommendation that server-side issues is super clear.Due to super clear corresponding code rate
About 1.5Mbps can determine whether that the network-caching speed does not support the super clear corresponding code rate recommended, than the super clear grade of recommendation
The lower video definition of video definition grade is high definition or SD, is based on above-mentioned similar comparison, the newest network
Caching speed can support the corresponding code rate of high definition, can also support the corresponding code rate of SD.At this point, video in the two can be chosen
The higher high definition of clarity is as the clarity for playing video.Above example can be user according to current network condition automatically
Most suitable video definition is selected, i.e., broadcasting caused by the excessively high video definition of avoidable option code rate is unsmooth, and can
The poor user's perception of the video definition bring for avoiding selection code rate too low can be used while guaranteeing to play smooth
Family provides optimal viewing experience.
In one example, it is determined and is played according to the video definition of the recommendation in the notice in above-mentioned steps 203
The clarity of video, if may also include that, the network-caching speed recorded supports code corresponding with the video definition recommended
Rate, then using the video definition of recommendation as the clarity for playing video.
For example, client can record newest network-caching speed, it is assumed that the newest network-caching speed is about
1.8Mbps, and the video definition that client receives the recommendation that server-side issues is super clear.Due to super clear corresponding code rate
About 1.5Mbps can determine whether that the network-caching speed supports the super clear corresponding code rate recommended, then can be by the super clear work of recommendation
For the clarity for playing video.
In one example, it is determined and is played according to the video definition of the recommendation in the notice in above-mentioned steps 203
The clarity of video may also include that the network-caching speed of record client;Whether can determine whether recorded network-caching speed
Support that code rate corresponding with the video definition recommended can view more lower than the video definition of recommendation if not supporting
(correspondingly, if supporting, the video definition that can recommend is as playing as the clarity undetermined for playing video for frequency clarity
The clarity undetermined of video);It is described undetermined to clarity whether the detectable corresponding hardware device of client is supported, if not propping up
Hold, then can video definition more lower than clarity undetermined as play video clarity (correspondingly, if support, can
Using clarity undetermined as the clarity for playing video).
For example, client can record newest network-caching speed, it is assumed that the newest network-caching speed is about
1.1Mbps, and client receive the recommendation that server-side issues video definition be it is super clear, due to super clear corresponding code rate
About 1.5Mbps can determine whether that the network-caching speed does not support the super clear corresponding code rate recommended, than the super clear grade of recommendation
The lower video definition of video definition grade is that high definition (corresponding code rate is about 1Mbps) or SD are (corresponding
Code rate is about 500Kbps), it is based on above-mentioned similar comparison, which can support the corresponding code of high definition
Rate can also support the corresponding code rate of SD.At this point, the higher high definition of video definition in the two can be chosen as broadcasting video
Clarity undetermined.The corresponding hardware device of detectable mobile APP, if the hardware device is monokaryon CPU, the frequency of CPU <
0.7GHz can determine whether that the mobile corresponding hardware device of APP does not support high definition (clarity undetermined), then can be than clarity undetermined more
Low SD is as the clarity for playing video.Above example can be according to the broadcasting of current network condition and hardware device
Ability is that user selects most suitable video definition automatically, further can guarantee to provide while playing smooth for user
Optimal viewing experience.
In one example, where information related with client may include the client in above-mentioned steps 201
The IP address of region and the client at least one.Explanation about information related with client can be found in embodiment
1, for the sake of simplicity, do not repeating.
In one example, the method for recommending video definition may also include that the network of real-time monitoring client is slow
Deposit speed;If the network-caching slows, it is not enough to support code rate corresponding with the clarity of currently playing video, then
The clarity for playing video is switched into lower clarity;If the network-caching speed becomes faster, it is sufficient to support with than current
The corresponding code rate of the higher clarity of clarity of video is played, then it is higher clear to switch to the clarity for playing video
Degree.
For example, it is assumed that the currently playing clarity of client is the view of super clear (corresponding code rate is about 1.5Mbps)
Frequency program, client downloads from super clear video program play source address, buffered video programme content.Client can supervise in real time
Network-caching speed is surveyed, network-caching slows if monitoring, such as drops to 1.1Mbps, network-caching speed by 1.8Mbps
Degree is not enough to support currently super clear corresponding code rate, then super peaceful sliding cutting can be shifted to high definition by backstage.For example, client
Play super clear video program, the current play time of video program be 20 points 10 seconds, the video program content pair cached
The time point answered be 23 points 10 seconds, from the background can automatically from the video program play source address of high definition, since 23 points 10 seconds under
The video program content for carrying high definition, when video program play was by 23 points and 10 seconds, the super clear view that will can be played automatically from the background
Frequency program switches to the video program of high definition, and user will not realize backstage when watching video program and switch over, to use
Bring the video viewing experience of smooth and seamless in family.Based on same principle, if network-caching speed becomes faster, it is sufficient to support compared to working as
When the corresponding code rate of the higher video definition of preceding play clarity, then the clarity for playing video can be put down by backstage
Sliding cutting shifts to higher video definition.
In another example, it is assumed that the currently playing clarity of client is the video of super clear (corresponding code rate is about 1.5Mbps)
Program, client can real time monitoring network cache speed, if monitoring, network-caching slows, such as is declined by 1.8Mbps
To 1.1Mbps, it is clear can also to carry out video in client to support current super clear corresponding code rate for network-caching underspeed
The switching of clear degree.For example, reminding user since network-caching underspeed need to switch to high definition in client, user's confirmation is laggard
Row switching, client records the current play time of video program (such as 20 points and 10 seconds), automatically from the video program of high definition
It plays in source address, downloads and play the video program content of high definition 10 seconds since 20 points, seamless video is brought to user
Viewing experience.Based on same principle, if network-caching speed becomes faster, it is sufficient to support higher compared to current play clarity
When the corresponding code rate of video definition, then it is clear the clarity for playing video can be switched into higher video by client
Degree.
The clarity played according to the variation switching of network-caching speed may be implemented in above example, so that playing clear
Clear degree is suitable for client operation situation and Network status, further avoids Caton, improves the broadcasting experience of user.
Embodiment 3
Fig. 3 shows the structure chart of the device 300 according to an embodiment of the invention for recommending video definition.The device 300
It can be applied to server-side.As shown in figure 3, the device 300 includes:
Arrangement components 301, for according to working condition from content distribution network CDN service device, with CDN server
Relevant statistical information configures each video definition setting;
Receiving part 302 includes having in the playing request with the client for receiving the playing request of client
The information of pass;
Component 303 is searched, for the video definition to match with the information being searched and being set in response to the playing request
It sets;
Video definition component 304 is issued, for being arranged according to the video definition to match, Xiang Suoshu client
Issue the notice of the video definition about recommendation.
The device provided in an embodiment of the present invention for recommending video definition, can be according to the working condition with CDN server
Relevant statistical information configures each video definition setting, the playing request at customer in response end, and includes according in playing request
Client-side information search the video definition to match with the information and be arranged, be arranged according to the video definition, to visitor
Family end issues the notice of the video definition about recommendation.The present apparatus can recommend video definition automatically for user, avoid
Working condition of the user due to that can not know CDN server has selected unsuitable video definition and has caused to play Caton, mentioned
High user watches the experience satisfaction of video.
In one example, the statistical information that arrangement components 301 are utilized may include bandwidth of the CDN server in day part
Utilization rate, bandwidth utilization rate are the ratio that CDN server has used bandwidth and total bandwidth;It is clear that arrangement components 301 configure each video
Clear degree setting can include: according to bandwidth utilization rate, view of the configuration pin to the day part of the service covering territorial scope of CDN server
The setting of frequency clarity.
For example, it can be respectively arranged CDN server in different geographical, each CDN server services covering region model for it
Client in enclosing provides video playing service.For example, CDN server can be respectively arranged in Beijing, Wuhan, respectively Beijing,
The client (including mobile APP (mobile application)) in Wuhan provides video playing service.Each CDN server is statistics available and records not
With the bandwidth utilization rate of period, the bandwidth utilization rate of the different periods of statistics can be reported to arrangement components 301, arrangement components
301 can also access each CDN server actively to obtain the bandwidth utilization rate of each CDN server different periods.Arrangement components 301 can
According to the bandwidth utilization rate of CDN server, corresponding video definition setting is configured, for example, reaching 50% in bandwidth utilization rate
In situation below, it is super clear for can configure video definition;In the case where bandwidth utilization rate reaches 50% to 85%, can configure
Video definition is high definition;In the case where bandwidth utilization rate reaches 85% or more, can configure video definition is SD.Configuration
Component 301 obtains the CDN server of different geographical after the bandwidth utilization rate of day part, can be each CDN clothes according to aforesaid way
Business device configuration video definition setting.By taking Pekinese's CDN server as an example, make in the bandwidth of 1:30 to CDN server between 8:00
It is 30% with rate, the clarity that arrangement components 301 can configure the period is super clear;In 8:00 to the band of CDN server between 19:00
Wide utilization rate is 65%, and the clarity that arrangement components 301 can configure the period is high definition;The band of the CDN server of remaining period
Wide utilization rate is 90%, and the clarity that arrangement components 301 can configure remaining period is SD, to obtain for Beijing (CDN
The service of server covers territorial scope), and be provided that for the video definition of day part
1:30 to 8:00: super clear, 8:00 is to 19:00: high definition, remaining period: SD.
Arrangement components 301 can also monitor the situation of change of the bandwidth utilization rate of each CDN server in real time, use according to bandwidth
The situation of change of rate periodically carries out the update of video definition setting, for example, arrangement components 301 can once be regarded for every 30 minutes
The update of frequency clarity setting.
In one example, the statistical information that arrangement components 301 are utilized may include CDN server for each operator
The response success rate of playing request, response success rate are the ratio of the number of success response playing request and the total degree of playing request
Rate;Arrangement components 301 configure each video definition setting can include: success rate according to response, clothes of the configuration pin to CDN server
The video definition setting of each operator of business covering territorial scope.
For example, the client for moving APP (such as can be moved, be joined by different Mobile Network Operator
The operators such as logical, telecommunications) it is connect with CDN server, the video that the stable case of operator mobile network will affect mobile APP is broadcast
Fluency is put, and CDN server can objectively reflect that each operator moves for the response success rate of the playing request of each operator
The stable case of dynamic network.Each CDN server is statistics available and recording needle is to the response success rate of the playing request of each operator, can
The response success rate of statistics is reported into arrangement components 301, arrangement components 301 can also access each CDN server actively to obtain
Response success rate of each CDN server for the playing request of each operator.Arrangement components 301 can be directed to according to CDN server
The response success rate of the playing request of operator configures corresponding video definition setting.For example, being 60% in response success rate
In situation below, it is SD that arrangement components 301, which can configure video definition, in the case where responding success rate greater than 60%,
It is high definition or super clear that arrangement components 301, which can configure video definition,.Each CDN server of the acquisition different geographical of arrangement components 301
After the response success rate of the playing request of each operator, each fortune that can be serviced according to aforesaid way by each CDN server
It seeks quotient and configures video definition setting.By taking Pekinese's CDN server as an example, CDN server is broadcast for Mobile Network Operator
The response success rate for putting request is greater than 60%, then can configure and be directed to Pekinese, and is clear for the video of Mobile Network Operator
Clear degree is set as high definition or super clear.
Arrangement components 301 can also monitor each CDN server in real time for the response success rate of the playing request of each operator
Situation of change, according to response success rate situation of change periodically carry out video definition setting update, for example, configuration section
Part 301 can carry out the update of primary video clarity setting for every 30 minutes.
In one example, the statistical information that arrangement components 301 are utilized can include bandwidth utilization rate, and including response
Success rate, in this case, arrangement components 301 configure each video definition setting can include:, can be true according to bandwidth utilization rate
Surely for the first video definition setting of the day part of the service covering territorial scope of CDN server;It is rung according to playing request
Answer success rate, it may be determined that be arranged for the second video definition of each operator of the service covering territorial scope of CDN server;
Based on the first video definition described in day part setting and second video definition setting in video definition junior,
The video definition setting of the day part of each operator of the configurable service covering territorial scope for CDN server.
By taking the Mobile Network Operator that Pekinese's CDN server and the CDN server are serviced as an example, due to CDN service
Device for the playing request of Mobile Network Operator response success rate whole day day part all 60% or more, therefore arrangement components
301 video definitions that can determine that whole day day part is directed to Mobile Network Operator are high definition or super clear setting;But due to CDN
Server bandwidth utilization rate of this period in 19:00 to second days morning 1:30 on the day of reaches 90% or more, therefore configuration section
The video definition that part 301 can determine that the period is directed to Mobile Network Operator again is SD setting, when both setting conflicts
When, arrangement components 301 can use the lower setting (i.e. SD setting) of video definition as Pekinese's CDN server for being taken
Thus video definition of the Mobile Network Operator of business in the period obtains runing for Beijing and for mobile network
The following video definition setting of quotient:
1:30 to 8:00: super clear, 8:00 is to 19:00: high definition, remaining period: SD.
It is illustrated so that statistical information is bandwidth utilization rate or response success rate as an example above, however art technology
Personnel should be understood that statistical information is without being limited thereto, can also be other statistical informations, as long as its work for being able to reflect CDN server
Make state, helps to recommend suitable video definition.
In one example, receiving part 302 where received information related with client may include client
The IP address of region and client at least one.Explanation about information related with client can be found in embodiment 1, this
Place for brevity, is not repeating.
In one example, arrangement components 301 configure each video definition setting can include: generate clarity script text
Part, the clarity script file may include each video definition setting configured.
For example, which recommends video clear for the playing request for automated toing respond to client to client
Degree, can be by arrangement components 301 according to from content distribution network CDN service device, the working condition to CDN server is related
Statistical information, generate clarity script file, clarity script file include configured each video definition setting.It receives
After component 302 receives the playing request of client, the playing request can be sent to and search component 303, search component 303
It can be searched, be matched in clarity script file according to the information related with client for including in playing request, and can
From issue video definition component 304 according to matched video definition be arranged issued to client it is clear about the video of recommendation
The notice of clear degree.
The notice can be corresponding with the matched video definition setting of institute, for example, the notice can reflect it is following
Recommendation information:
1:30 to 8:00: recommend to play super clear, 8:00 to 19:00: recommending to play high definition, remaining period: recommending to play mark
Clearly.
Fig. 4 shows another structure chart of the device 300 according to an embodiment of the invention for recommending video definition.
In one example, which, which may also include that, issues broadcast information component 305, is used for broadcast under client
Information is put, broadcast information may include the broadcasting source address of the video of different video clarity, for example including for being directed to same view
The super clear video source of frequency content plays source address, HD video source plays source address and SD video source plays source address.This is broadcast
Putting information can be the playing request in response to client and is issued by issuing broadcast information component 305, and client is receiving
Behind these addresses, phase can be linked to according to the video playing clarity automatic or manual recommended in the notice that server-side is sent
The broadcasting source address answered is downloaded or is played with the clarity of recommendation.
Embodiment 4
Fig. 5 shows the structure chart of the device 500 according to another embodiment of the present invention for recommending video definition.The device
500 can be applied to client.As shown in figure 5, the device 500 specifically includes that
Component 501 is sent, includes having with the client in the playing request for sending playing request to server-side
The information of pass;
Receiving part 502, for receiving the notice for the video definition about recommendation that the server-side issues, wherein institute
Stating notice is generated according to the video definition setting to match with the information;
Component 503 is determined, for determining the clarity for playing video according to the video definition of the recommendation in the notice.
Wherein, which can be with the video definition recommended in the notice directly as playing the clear of video
Degree can also use various mechanism, the clarity for playing video is further determined that based on the video definition of recommendation, thus
So that the actual clarity for playing video is suitble to the practical working situation of CDN server and client as far as possible, thus to the greatest extent
It is possible to avoid Caton.Some examples of the adoptable mechanism of device 500 are given below.
In one example, it determines that component 503 is also used to: recording the network-caching speed of client;What judgement was recorded
Whether network-caching speed supports code rate corresponding with the video definition recommended, if not supporting, with the video than recommendation
The lower video definition of clarity is as the clarity for playing video.
For example, determine that component 503 can record newest network-caching speed, it is assumed that the newest network-caching speed
About 650Kbps, and the video definition that receiving part 502 receives the recommendation that server-side issues is super clear.Due to super clear phase
Corresponding code rate is about 1.5Mbps, and it is super clear corresponding to determine that component 503 can determine whether that the network-caching speed is not supported to recommend
Code rate, video definition than the super clear grade video definition more lower grade of recommendation is high definition or SD, is based on above-mentioned phase
As compare, which does not support the corresponding code rate of high definition (about 1Mbps) yet, but supports SD pair
The code rate (about 500Kbps) answered.It is thus determined that component 503 can be using SD as the clarity for playing video.This is assumed again most
New network-caching speed is about 1.1Mbps, and the video definition that receiving part 502 receives the recommendation that server-side issues is
It is super clear.Since super clear corresponding code rate is about 1.5Mbps, determine that component 503 can determine whether that the network-caching speed is not supported to push away
The super clear corresponding code rate recommended, video definition than the super clear grade video definition more lower grade of recommendation be high definition or
SD, is based on above-mentioned similar comparison, which can support the corresponding code rate of high definition, can also support to mark
Clear corresponding code rate.At this point, determining that component 503 can choose the higher high definition of video definition in the two as broadcasting video
Clarity.Device 500 can be that user selects most suitable video clear according to current network condition automatically in above example
It is unsmooth to can avoid broadcasting caused by the excessively high video definition of option code rate, and can avoid the view for selecting code rate too low for degree
The poor user's perception of frequency clarity bring can guarantee to provide optimal viewing body while playing smooth for user
It tests.
In one example, determine that component 503 can also be used in: if the network-caching speed recorded supports the view with recommendation
The corresponding code rate of frequency clarity, then using the video definition of recommendation as the clarity for playing video.
For example, determine that component 503 can record newest network-caching speed, it is assumed that the newest network-caching speed
About 1.8Mbps, and the video definition that receiving part 502 receives the recommendation that server-side issues is super clear.Due to super clear opposite
The code rate answered is about 1.5Mbps, determines that component 503 can determine whether that the network-caching speed supports the super clear corresponding code recommended
Rate, it is determined that component 503 can be by the super clear as the clarity for playing video of recommendation.
In one example, it determines that component 503 can also be used in: recording the network-caching speed of client;It can determine whether to be remembered
Whether the network-caching speed of record supports code rate corresponding with the video definition recommended, can be than recommending if not supporting
The lower video definition of video definition as play video clarity undetermined (correspondingly, if support, can recommend
Video definition as play video clarity undetermined);It is described whether the detectable corresponding hardware device of client is supported
It is undetermined to clarity, if not supporting, can video definition more lower than clarity undetermined as play video clarity
(correspondingly, if supporting, can be using clarity undetermined as the clarity for playing video).
For example, determine that component 503 can record newest network-caching speed, it is assumed that the newest network-caching speed
About 1.1Mbps, and receiving part 502 receive the recommendation that server-side issues video definition be it is super clear, due to super clear phase
Corresponding code rate is about 1.5Mbps, and it is super clear corresponding to determine that component 503 can determine whether that the network-caching speed is not supported to recommend
Code rate, video definition than the super clear grade video definition more lower grade of recommendation are that (corresponding code rate is about high definition
1Mbps) or SD (corresponding code rate is about 500Kbps), it is based on above-mentioned similar comparison, newest network-caching speed
Degree can support the corresponding code rate of high definition, can also support the corresponding code rate of SD.At this point, determining that component 503 can be chosen
The middle higher high definition of video definition is as the clarity undetermined for playing video.Determine that the also detectable mobile APP of component 503 is corresponding
Hardware device determine that component 503 can determine whether mobile APP if the hardware device is monokaryon CPU, frequency < 0.7GHz of CPU
Corresponding hardware device does not support high definition (clarity undetermined), it is determined that component 503 can be with mark more lower than clarity undetermined
The clear clarity as broadcasting video.Device 500 can be according to current network condition and hardware device in above example
Ability to play is that user selects most suitable video definition automatically, can further be user while guaranteeing to play smooth
Optimal viewing experience is provided.
In one example, it sends where information related with client transmitted by component 501 may include client
The IP address of region and client at least one.Explanation about information related with client can be found in embodiment 1, this
Place for brevity, is not repeating.
Fig. 6 shows another structure chart of the device 500 according to another embodiment of the present invention for recommending video definition.
In one example, which may also include that
Monitoring component 504, the network-caching speed for real-time monitoring client;
Switching part 505, if slowing for the network-caching, it is clear with currently playing video to be not enough to support
Corresponding code rate is spent, then the clarity for playing video is switched into lower clarity;
It becomes faster if the switching part 505 is also used to the network-caching speed, it is sufficient to support and than currently playing video
The corresponding code rate of the higher clarity of clarity, then the clarity for playing video is switched into higher clarity.
For example, switching part 505 can be applied to backstage.Assuming that the currently playing clarity of client is super clear (opposite
The code rate answered is about 1.5Mbps) video program, client downloads from super clear video program play source address, caches view
Frequency programme content.Monitoring component 504 can real time monitoring network cache speed, if monitoring, network-caching slows, for example, by
1.8Mbps drops to 1.1Mbps, and network-caching underspeed can then pass through application to support current super clear corresponding code rate
Super peaceful sliding cutting is shifted to high definition by the switching part 505 in backstage.For example, the super clear video program of client terminal playing, video
The current play time of program be 20 points 10 seconds, the video program content cached corresponding time point be 23 points 10 seconds, after
Platform can download the video program content of high definition 10 seconds since 23 points automatically from the video program play source address of high definition, when
When video program play was by 23 points and 10 seconds, the super clear video that will can be played automatically applied to the switching part 505 in backstage
Program switches to the video program of high definition, and user will not realize backstage when watching video program and switch over, and gives user
Bring the video viewing experience of smooth and seamless.Based on same principle, if network-caching speed becomes faster, it is sufficient to support compared to current
The higher video definition of play clarity corresponding code rate when, then can be by the switching part 505 that is applied in backstage
The clarity for playing video is smoothly switched to higher video definition.
In another example switching part 505 can also be applied to client.Assuming that the currently playing clarity of client is super clear (phase
Corresponding code rate is about 1.5Mbps) video program, monitoring component 504 can real time monitoring network cache speed, if monitoring net
Network caching slows, such as drops to 1.1Mbps by 1.8Mbps, and network-caching underspeed is current super clear opposite to support
The code rate answered can also carry out the switching of video definition by the switching part 505 being applied in client.For example, in visitor
Family end reminds user since network-caching underspeed need to switch to high definition, and switching part 505 switches over after user's confirmation, visitor
Family end records the current play time of video program (such as 20 points and 10 seconds), automatically from the video program play source address of high definition
In, the video program content of high definition is downloaded and played 10 seconds since 20 points, seamless video viewing experience is brought to user.Base
In same principle, if network-caching speed becomes faster, it is sufficient to support compared to the current higher video definition of play clarity
When corresponding code rate, then the clarity for playing video can be switched to more by the switching part 505 being applied in client
High video definition.
The clarity played according to the variation switching of network-caching speed may be implemented in device 500 in above example, thus
So that play clarity is suitable for client operation situation and Network status, Caton is further avoided, the playing body of user is improved
It tests.
Embodiment 5
Fig. 7 shows a kind of structural block diagram of recommendation video definition equipment of another embodiment of the invention.It is described
Video definition equipment 1100 is recommended to can be the host server for having computing capability, personal computer PC or can carry
Portable computer or terminal etc..The specific embodiment of the invention does not limit the specific implementation of calculate node.
The recommendation video definition equipment 1100 includes processor (processor) 1110, communication interface
(Communications Interface) 1120, memory (memory) 1130 and bus 1140.Wherein, processor 1110,
Communication interface 1120 and memory 1130 pass through bus 1140 and complete mutual communication.
Communication interface 1120 is used for and network device communications, and wherein the network equipment includes such as Virtual Machine Manager center, is total to
Enjoy storage etc..
Processor 1110 is for executing program.Processor 1110 may be a central processor CPU or dedicated collection
At circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the present invention
One or more integrated circuits of embodiment.
Memory 1130 is for storing file.Memory 1130 may include high speed RAM memory, it is also possible to further include non-
Volatile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 1130 is also possible to deposit
Memory array.Memory 1130 is also possible to by piecemeal, and described piece can be combined into virtual volume by certain rule.
In a kind of possible embodiment, above procedure can be the program code for including computer operation instruction.The journey
Sequence is particularly used in the operation for realizing each step in embodiment 1 or embodiment 2.
Those of ordinary skill in the art may be aware that each exemplary cell and algorithm in embodiment described herein
Step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions actually with hardware also
It is software form to realize, the specific application and design constraint depending on technical solution.Professional technician can be directed to
It is specific that described function is realized using different methods is selected, but this realization is it is not considered that exceed model of the invention
It encloses.
If realizing the function and when sold or used as an independent product in the form of computer software,
To a certain extent it is believed that all or part (such as the part that contributes to existing technology) of technical solution of the present invention is
It embodies in form of a computer software product.The computer software product is generally stored inside computer-readable non-volatile
In storage medium, including some instructions are used so that computer equipment (can be personal computer, server or network to set
It is standby etc.) execute all or part of the steps of various embodiments of the present invention method.And storage medium above-mentioned include USB flash disk, mobile hard disk,
Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic
The various media that can store program code such as dish or CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.