CN108174235A - A kind of video loading method and device - Google Patents

A kind of video loading method and device Download PDF

Info

Publication number
CN108174235A
CN108174235A CN201810043518.1A CN201810043518A CN108174235A CN 108174235 A CN108174235 A CN 108174235A CN 201810043518 A CN201810043518 A CN 201810043518A CN 108174235 A CN108174235 A CN 108174235A
Authority
CN
China
Prior art keywords
standard grade
region
video
reaching
reached
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810043518.1A
Other languages
Chinese (zh)
Other versions
CN108174235B (en
Inventor
丁浩
吴岩
胡文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810043518.1A priority Critical patent/CN108174235B/en
Publication of CN108174235A publication Critical patent/CN108174235A/en
Application granted granted Critical
Publication of CN108174235B publication Critical patent/CN108174235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2743Video hosting of uploaded data from client

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of video loading method and devices, and applied in distribution source server, this method includes:The video file to be reached the standard grade for carrying label that client is sent is received, the video file to be reached the standard grade is issued to global storage server;The destination node for meeting the first preset condition is determined based on the label of the video file to be reached the standard grade;Wherein, the global storage server is used to the video file to be reached the standard grade being issued to the destination node;After the reception for receiving all destination nodes returns successful message, successful message is uploaded to video file to be reached the standard grade described in client return;Wherein, the destination node is used to described receive successful message receiving described after video file of reaching the standard grade and return, can be ensured that video file to be reached the standard grade has been issued to most of node so that the upload of video file and reaching the standard grade for static page are synchronous as possible, improve treatment effeciency.

Description

A kind of video loading method and device
Technical field
The present invention relates to technical field of video processing, more particularly to a kind of video loading method and device.
Background technology
Content distributing network (Content Delivery Network, CDN) be by the edge of server distribution to network, So as to avoid the backbone network of congestion, can according to network flow, the connection of each node, load condition and user away from The request of user is re-directed on the service node nearest from user from integrated informations such as, response times.Wherein, in CDN One important concept is exactly to synchronize, i.e., by the content in global storage server in layer be synchronized to lower level servers In.
At present, in video reaches the standard grade technical field, editorial staff makes video content and relevant static page After, video content is uploaded to by global storage server by distribution source, is uploaded successfully when global storage server returns After message, static page is published on the homepage of website by editorial staff again.
But inventor has found during the technical solution for implementing the application, and when static page is reached the standard grade, video content It may be issued to Edge Server not yet, therefore user during static page access video by that can cause returning for Edge Server Source, the speed of download for leading to Hui Yuan is very slow, phenomena such as causing video cardton, seriously reduces treatment effeciency.
Invention content
In view of this, the present invention provides a kind of video loading method and device, to overcome the above problem or at least part Ground solves the above problems.
To achieve the above object, the present invention provides following technical solution:
A kind of video loading method, applied in distribution source server, this method includes:
The video file to be reached the standard grade for carrying label that client is sent is received, the video file to be reached the standard grade is issued to Global storage server;
The destination node for meeting the first preset condition is determined based on the label of the video file to be reached the standard grade;Wherein, it is described Global storage server is used to the video file to be reached the standard grade being issued to the destination node;
After the reception for receiving all destination nodes returns successful message, treated to described in client return Video file of reaching the standard grade uploads successful message;Wherein, the destination node be used for receive it is described after video file of reaching the standard grade Return to the successful message of reception.
Preferably, the label based on the video file to be reached the standard grade determines the target section for meeting the first preset condition Point, including:
It determines to reach the standard grade and belongs to same with the video file to be reached the standard grade in video based on the label of the video file to be reached the standard grade The target of type is reached the standard grade video;
The video of reaching the standard grade of the target in first time period is obtained to reach the standard grade in the target of having reached the standard grade each area that reaches the standard grade of video The flow consumption figures in domain;
Determine that the reach the standard grade region of reaching the standard grade of video of target that the flow consumption figures meets preset threshold condition is reached the standard grade for target Region;
It is searched in correspondence of the pre-stored region with node and is with the target corresponding node in region of reaching the standard grade Meet the destination node of the first preset condition.
Preferably, the label based on the video file to be reached the standard grade determine to reach the standard grade in video with the video to be reached the standard grade The target that file belongs to same type is reached the standard grade video, including:
Meet the upper of predetermined threshold value with the similarity of the label of the video file to be reached the standard grade by being found in database Line video is determined as reaching the standard grade video with the target that the video file to be reached the standard grade belongs to same type;
Wherein, each video of reaching the standard grade is stored in the database in the flow of the second time period with its region of reaching the standard grade to disappear Consumption value;Wherein, the time span of the first time period is more than or equal to the time span of the second time period.
Preferably, it is described to determine that the flow consumption figures target that meets preset threshold condition is reached the standard grade the region of reaching the standard grade of video It reaches the standard grade region for target, including:
The reach the standard grade flow consumption figures of video of all targets described in region of reaching the standard grade is arranged according to sequence from high to low Sequence;
Determine that integrated flux consumption figures reaches the target of the preset percentage of total flow consumption figures and reaches the standard grade the upper of video for the first time Line region;Wherein, the total flow consumption figures reaches the standard grade video in the sum of the flow consumption figures in all regions of reaching the standard grade for the target; The integrated flux consumption figures carries out cumulative flow by sequence from high to low and consumes aggregate-value for target video of reaching the standard grade;
Reach the standard grade region of reaching the standard grade on the basis of region by first, using default calculation calculate the benchmark reach the standard grade region and its Whether the reach the standard grade ratio of flow consumption figures in region of the difference of the flow consumption figures in adjacent next region of reaching the standard grade and the benchmark is more than Default ratio, if so, stopping calculating;
If it is not, base then will be changed to the current base adjacent next region of reaching the standard grade in region of reaching the standard grade using default substitute mode Standard is reached the standard grade region, continues to reach the standard grade using the benchmark that the default calculation is calculated after replacing adjacent thereto next in region that reach the standard grade Whether the difference of the flow consumption figures in region is more than the default ratio with the reach the standard grade ratio of flow consumption figures in region of benchmark after replacing Value, is calculated successively by the default substitute mode and the default calculation, until benchmark is reached the standard grade, region is adjacent thereto The reach the standard grade ratio of flow consumption figures in region of difference and benchmark of flow consumption figures in next region of reaching the standard grade be more than the default ratio When stop calculate;
All regions of reaching the standard grade before region of reaching the standard grade comprising identified benchmark when stopping calculating are determined as target to reach the standard grade Region;
Wherein, the described first region of reaching the standard grade reaches default the hundred of total flow consumption figures for identified integrated flux consumption figures The target of point ratio reach the standard grade video region of reaching the standard grade in sort last region.
Preferably, the successful message of reception for receiving all destination nodes and returning, including:
Receive the successful message of reception that the destination node directly returns or receive the destination node pass through it is described The successful message of reception that global storage server returns.
A kind of video eedle threader, applied in distribution source server, which includes:
Issuance unit is received, for receiving the video file to be reached the standard grade for carrying label of client transmission, is treated described Video file of reaching the standard grade is issued to global storage server;
Node unit is determined, for determining the mesh for meeting the first preset condition based on the label of the video file to be reached the standard grade Mark node;Wherein, the global storage server is used to the video file to be reached the standard grade being issued to the destination node;
Message elements are returned to, for after the reception for receiving all destination nodes returns successful message, to institute Video file to be reached the standard grade described in stating client return uploads successful message;Wherein, the destination node is used for receiving It states and the successful message of reception is returned after video file of reaching the standard grade.
Preferably, the determining node unit, including:
First determining module is treated in video for determining to reach the standard grade based on the label of the video file to be reached the standard grade with described The target that line video file belongs to same type is reached the standard grade video;
First acquisition module is reached the standard grade for obtaining the video of reaching the standard grade of the target in first time period in the target of having reached the standard grade The flow consumption figures in each region of reaching the standard grade of video;
Regions module is determined, for determining that target that the flow consumption figures meets preset threshold condition is reached the standard grade video It reaches the standard grade region for target in line region;
It determines node module, reaches the standard grade for being searched in the correspondence in pre-stored region and node with the target The corresponding node in region is the destination node for meeting the first preset condition.
Preferably, first determining module is specifically used for find in database and the video file to be reached the standard grade The similarity of label meet the video of reaching the standard grade of predetermined threshold value and be determined as the mesh for belonging to same type with the video file to be reached the standard grade Put on line video;
Wherein, each flow of the video in the second time period for reaching the standard grade region with it of reaching the standard grade is stored in the database Consumption figures;Wherein, the time span of the first time period is more than or equal to the time span of the second time period.
Preferably, the determining regions module, including:
First sorting module, for by all targets described in region of reaching the standard grade reach the standard grade video flow consumption figures according to by height It is ranked up to low sequence;
Second determining module, for determining that integrated flux consumption figures reaches the preset percentage of total flow consumption figures for the first time Target is reached the standard grade the region of reaching the standard grade of video, wherein, the total flow consumption figures reaches the standard grade video in all regions of reaching the standard grade for all targets The sum of flow consumption figures;The integrated flux consumption figures for the target reach the standard grade the sequence of video from high to low carry out it is cumulative Flow consumes aggregate-value;
First computing module for reaching the standard grade region of reaching the standard grade on the basis of region by first, acquires default calculation and calculates institute Reach the standard grade the reach the standard grade flow in region of difference and benchmark of flow consumption figures in region next region of reaching the standard grade adjacent thereto of benchmark is stated to consume Whether the ratio of value is more than default ratio, if so, stopping calculating;If it is not, it will then be reached the standard grade using default substitute mode with current base Adjacent next in region reaches the standard grade region of reaching the standard grade on the basis of region is replaced, after continuing to calculate using the default calculation and replacing The reach the standard grade difference of flow consumption figures in region next region of reaching the standard grade adjacent thereto of benchmark is reached the standard grade the stream in region with the benchmark after replacing Whether the ratio for measuring consumption figures is more than the default ratio, by the default substitute mode and the default calculation successively It calculates, until the benchmark is reached the standard grade, the difference of the flow consumption figures in region next region of reaching the standard grade adjacent thereto is reached the standard grade with the benchmark The ratio of the flow consumption figures in region stops calculating when being more than the default ratio;
Third determining module, for all areas that reach the standard grade before region that identified benchmark when including stopping calculating being reached the standard grade Domain is determined as target and reaches the standard grade region;
Wherein, the described first region of reaching the standard grade reaches default the hundred of total flow consumption figures for identified integrated flux consumption figures The target of point ratio is reached the standard grade last region of sorting in region of reaching the standard grade residing for video.
Preferably, it is described return message elements be used to receiving the successful message of reception that the destination node directly returns or Person receives the successful message of reception that the destination node is returned by the global storage server.
It can be seen via above technical scheme that compared with prior art, the embodiment of the invention discloses a kind of videos to reach the standard grade Method, applied to distribution source server in, including:The video file to be reached the standard grade for carrying label that client is sent is received, it will The video file to be reached the standard grade is issued to global storage server, determines to meet first in advance based on the label of video file to be reached the standard grade If the destination node of condition, wherein, the overall situation storage server is used to the video file to be reached the standard grade being issued to the mesh Node is marked, after the reception for receiving all destination nodes returns successful message, video file to be reached the standard grade is returned to client Successful message is uploaded, wherein, the destination node is used to described return to the reception after video file of reaching the standard grade receiving Successful message.It can be seen that the application currently all destination node can be received after video file of reaching the standard grade in fact, then to visitor Family end returns to video file to be reached the standard grade and uploads successful message so that static page is published to the homepage of website by editorial staff again On, it can be ensured that video file to be reached the standard grade has been issued to most of node in this way so that the upload of video file It is synchronous as possible with reaching the standard grade for static page, improve treatment effeciency.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the structure diagram of CDN disclosed by the invention;
Fig. 2 is a kind of flow diagram of video loading method disclosed in one embodiment of the invention;
Fig. 3 is that the disclosed label based on the video file to be reached the standard grade of one embodiment of the invention determines to meet first in advance If the flow diagram of the step of destination node of condition;
Fig. 4 is a kind of flow diagram of video loading method disclosed in another embodiment of the present invention;
Fig. 5 is a kind of flow diagram of video loading method disclosed in further embodiment of this invention;
Fig. 6 is a kind of structure diagram of video eedle threader disclosed in one embodiment of the invention;
Fig. 7 is the structure diagram that regions module is determined disclosed in further embodiment of this invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
The invention discloses a kind of video loading method and device, applied in distribution source server, the distribution source service Device is the node in CDN (Content Delivery Network, content distributing network), wherein, in the present invention it is possible to it will Node in CDN is classified, as shown in Figure 1, a kind of concrete structure for CDN interior joints, i.e. node in CDN includes first Grade node, second level node, third level node and fourth stage node, first order node can be used as distribution source server, the Two-level node can be used as global storage server, and at least part node in third level node can be used as destination node, the Level Four node can be used as fringe node.Wherein, distribution source server is to receive the video that editorial staff is uploaded by client The server of file.And global storage server can be configured based on operator, such as each operator corresponds to one entirely Office's storage server, for example, telecom operators correspond to a global storage server, mobile operator corresponds to a global storage service Device, unicom operator correspond to a global storage server.
But it should be noted that, the set-up mode present invention of global storage server does not limit, can set it is more or Less quantity, such as in part, operator is not provided with global storage server or more overall situations is set to deposit in part operator Storage server is possible to.Destination node is true for institute in the next stage node and the application of global storage server Fixed node, specific method of determination can be discussed in detail later.
Specifically, after distribution source server receives the video file of client upload, video file can be synchronized to Global storage server, then be synchronized on next stage node by global storage, it is synchronized on fringe node by next stage node, By issuing for level-one level-one, video file is synchronized on all nodes by final realize.
It should be noted that in the present invention, node may refer to as IDC (Internet Data Center, interconnection netting index According to center) computer room.For example, Beijing area has many nodes, can be respectively beijing_cnc, beijing2_cnc, Beijing3_cnc, beijing_ct, beijing2_ct, beijing3_ct, beijing4_ct, wherein, cnc references unicom, Ct refers to telecommunications.
One embodiment of the invention discloses a kind of video loading method, as shown in Fig. 2, this method includes the following steps:
Step 201:The video file to be reached the standard grade for carrying label that client is sent is received, by the video text to be reached the standard grade Part is issued to global storage server;
When need to reach the standard grade some video when, video file to be reached the standard grade can be sent to distribution by upload personnel by client Source server, specifically, the video file to be reached the standard grade carries label, which is used to mark the classification of video file to be reached the standard grade Attribute.Label can include following type but be not limited to that following type:
PGC (Professionally-generated Content, professional production content);
UGC (User-generated Content, user produce content);
Type (TV play, film, animation etc.);
Content type (youth, terror, action).
For example, video file to be reached the standard grade is《Transformer 5》, label can be (PGC, film, science fiction, action).
In an alternative embodiment of the invention, when distribution source server receive video file to be reached the standard grade, can also be to client End is returned for characterizing the information that video is issuing, such as " being issued, please later ".
Step 202:The destination node for meeting the first preset condition is determined based on the label of the video file to be reached the standard grade;
It should be noted that video file to be reached the standard grade is issued to the action of global storage server with above-mentioned steps 202 simultaneously There is no the restriction of sequencing, you can, can also be under to determine destination node while video file to be reached the standard grade is issued It sends out and destination node is determined after video file of reaching the standard grade.
Destination node is the next stage node of global storage server, and global storage server is receiving video to be reached the standard grade After file, for video file to be reached the standard grade to be issued to destination node.
Distribution source server receiving after video file of reaching the standard grade, the label based on video file to be reached the standard grade from the overall situation The destination node for meeting the first preset condition is determined in the next stage node of storage server communication.In this application, mainly It chooses and the flow consumption figures bigger section reached the standard grade region corresponding to of the video file to be reached the standard grade for the video of reaching the standard grade of same type Point is destination node, specifically, as shown in figure 3, the label based on the video file to be reached the standard grade determines to meet the first default item The destination node of part, including procedure below:
Step 301:The target for belonging to same type with the video file to be reached the standard grade in video that determines to reach the standard grade is reached the standard grade video;
Step 302:The video of reaching the standard grade of the target in first time period is obtained to reach the standard grade the every of video in the target of having reached the standard grade The one flow consumption figures for reaching the standard grade region;
In the present invention, each reach the standard grade each period (second of the video in each region of reaching the standard grade is stored in database Period) flow Expenditure Levels.Wherein, the video reached the standard grade is referred to as video of reaching the standard grade, the geographic region that video of reaching the standard grade is reached the standard grade Domain is referred to as region of reaching the standard grade, for example, a certain video has been reached the standard grade in A cities, B cities, C cities, then A cities, B cities, C cities are that this is reached the standard grade The region of reaching the standard grade of video.And each video of reaching the standard grade is respectively provided with the label for characterizing its category attribute, each video of reaching the standard grade has At least level-one label, for marking the classification of the video of reaching the standard grade, therefore distribution source server can be based on video file to be reached the standard grade Label determine in the database and video file to be reached the standard grade belongs to the target of same type and reaches the standard grade video.
When the determining target with belonging to same type wait video file of reaching the standard grade reaches the standard grade video, a kind of method of determination is to determine The target that video is same type of reaching the standard grade of label comprising the video file to be reached the standard grade is reached the standard grade video.For example, video to be reached the standard grade With three-level label, respectively (PGC, film, science fiction), then, at least there is three-level label, and three-level label in video of reaching the standard grade Also the video of reaching the standard grade for being respectively (PGC, film, science fiction) is to reach the standard grade video with target that video to be reached the standard grade is same type.Certainly, also There can be other methods of determination, can specifically be described in detail later.
It should be noted that being stored with the order program data of each video of reaching the standard grade in video server daily record data, therefore it is based on Video server daily record data can count each flow of the video in each region of reaching the standard grade each period of reaching the standard grade and disappear in advance Consumption value, and store in the database.
Specifically, the region of reaching the standard grade for video of reaching the standard grade can be divided into various region ranks, such as with provincial progress It reaches the standard grade the division in region, naturally it is also possible to the division in the region that at county level or city-level reach the standard grade.Specifically can with when, day, week In the period as statistics flow Expenditure Levels.For example, it is counted by video server daily record data《Transformer 5》At certain One day, the flow of 500GB is consumed in total in Beijing area, and in the flow of Efficiency in Buildings in Tianjin Area consumption 300GB, which is stored in In database.
Distribution source server is reached the standard grade in the target for determining and belonging to wait video file of reaching the standard grade same type after video, needs to obtain In first time period the target reach the standard grade video the target of having reached the standard grade reach the standard grade video each region of reaching the standard grade flow consumption Value.
The first time period can be preset based on actual conditions, the flow consumption for video of reaching the standard grade for statistics target The time span of value, if first time period is to receive the time of video file to be reached the standard grade as the starting point past one to distribute source server The period of a month, then, then the time of video file to be reached the standard grade was received as the past one month of statistics to distribute source server Target reach the standard grade the flow consumption figures of video.
It should be noted that database is previously stored with each each second time period of the video in each region of reaching the standard grade of reaching the standard grade Flow Expenditure Levels, the time span of first time period is more than or equal to the time span of second time period, for example, the second time The time span of section is one day, then, the time span of first time period can be 30 days, i.e., one month, then just count The target in past one month is reached the standard grade flow consumption figures of the video in each region of reaching the standard grade.And if the time span of second time period It it is one month, the time span of first time period is also one month, then the same of past one month is obtained directly from database The target of type is reached the standard grade flow consumption figures of the video in each region of reaching the standard grade.
Step 303:Determine that the reach the standard grade region of reaching the standard grade of video of target that the flow consumption figures meets preset threshold condition is Target is reached the standard grade region;
Step 304:It is searched in correspondence of the pre-stored region with node corresponding with target region of reaching the standard grade Node be meet the first preset condition destination node.
Preset threshold condition can be set based on actual conditions, as a kind of mode, it may be determined that flow consumption figures The reach the standard grade region of reaching the standard grade of video of target for reaching preset targets threshold is reached the standard grade region for target, for example, the preset target threshold Value can be determined based on the temperature of each video, and the present invention does not limit.Certainly the invention also discloses predetermined threshold value items Other realization methods of part, can specifically be described in detail later.
In the present invention, the correspondence of region and node is previously stored with, which can be stored in advance in distribution In source server, it can also store in the database.
As shown in table 1, with the division in the provincial region that reach the standard grade, it is previously stored with that each province is corresponding with node to close System, node corresponding with Beijing include node A, B;Node corresponding with Guangzhou includes node C, D and E;Section corresponding with Fujian Point includes node D, F and G.
Table 1
Province Node
Beijing A B
Guangzhou C D E
Fujian D F G
In the present invention, the correspondence of region and node is previously stored with, it should be noted that, node corresponding with region It may refer to the node used for the region set by the region, naturally it is also possible to it is referred to as set by other regions, The node used for the region.As can be seen from Table 1, node D was not only corresponding with Guangzhou, but also corresponding with Fujian.If that is, In some regions, when some operators are not provided with node, the node in other areas can be used, such as uses the section of adjoining area Point.
Step 203:After the reception for receiving all destination nodes returns successful message, returned to the client It returns the video file to be reached the standard grade and uploads successful message.
When global storage server receive wait reach the standard grade video file after, video file to be reached the standard grade can be issued to next stage Node, and when destination node receive that global storage server issues wait reach the standard grade video file after, it is successful that reception can be returned Message.Since distribution source server has determined which node for destination node, can detect whether all destination nodes The successful message of reception is sent to, after the reception for receiving all destination nodes returns successful message, to client End returns to video file to be reached the standard grade and uploads successful message.
In the present invention, distribution source server can be returned directly and receive successful message by destination node;It can also be to Global storage server, which returns, receives successful message, then return to destination node from global storage server to distribution source server The successful message of reception of return.The successful message of reception that all destination nodes return is received, including:Receive institute It states the successful message of reception that destination node directly returns or receives the destination node and pass through the global storage server The successful message of reception of return.
Upload personnel are received by client after video file of reaching the standard grade uploads successful message, determine video to be reached the standard grade File uploads successfully, and then static page is published on the page of website again, wherein, static page, which includes, have been uploaded The page of the broadcast address of video file to be reached the standard grade.
It can be seen that in the present embodiment, it, will by receiving the video file to be reached the standard grade for carrying label of client transmission The video file to be reached the standard grade is issued to global storage server, determines to meet first in advance based on the label of video file to be reached the standard grade If the destination node of condition, wherein, the overall situation storage server is used to the video file to be reached the standard grade being issued to the mesh Node is marked, after the reception for receiving all destination nodes returns successful message, video file to be reached the standard grade is returned to client Upload successful message.Therefore the application currently all destination node can be received after video file of reaching the standard grade in fact, then to visitor Family end returns to video file to be reached the standard grade and uploads successful message so that static page is published to the homepage of website by editorial staff again On, it can be ensured that video file to be reached the standard grade has been issued to most of node in this way so that the upload of video file It is synchronous as possible with reaching the standard grade for static page, improve treatment effeciency.
Another embodiment of the present invention discloses a kind of video loading method, as shown in figure 4, this method includes the following steps:
Step 401:The video file to be reached the standard grade for carrying label that client is sent is received, by the video text to be reached the standard grade Part is issued to global storage server;
The label of the video file to be reached the standard grade can include the label of different stage, at least with level-one label, on treating The label of line video file is【First level label, second level label, third level label ... N level labels】It carries out Definition.For example, video file to be reached the standard grade is《Transformer 5》, label can be (PGC, film, science fiction, action).
Step 402:To be found in database meet with the similarity of the label of the video file to be reached the standard grade it is default The video of reaching the standard grade of threshold value is determined as reaching the standard grade video with the target that the video file to be reached the standard grade belongs to same type;
Wherein, each flow consumption of the video in each second time period for reaching the standard grade region of reaching the standard grade is stored in database Value;Specifically, each video of reaching the standard grade is respectively provided with the label for characterizing its category attribute, each video of reaching the standard grade has at least level-one Label for marking the type of the video, and is stored with the order program data of each video of reaching the standard grade in video server daily record data, Therefore each video of reaching the standard grade can be counted in each region of reaching the standard grade each period based on video server daily record data in advance The flow consumption figures of (second time period), and store in the database.
And the predetermined threshold value of label can be set based on actual conditions, as predetermined threshold value is video file to be reached the standard grade The similarity of the label of label and video of reaching the standard grade is 80%, then, the similarity of label and the label of video file to be reached the standard grade exists More than 80% video of reaching the standard grade is and video to be reached the standard grade belongs to the target of same type and reaches the standard grade video.
Specifically, the label of the same levels of reach the standard grade video and video file to be reached the standard grade in database can be carried out pair Than with the similarity of the label for the video that determines to reach the standard grade and the label of video file to be reached the standard grade.For example, the mark of video file to be reached the standard grade Label include first level label, second level label and third level label, if the label for video file of reaching the standard grade is also at least Comprising the first level label identical with video file to be reached the standard grade, second level label and third level label, then similarity It is 100%, if the label for video file of reaching the standard grade only includes the first level label identical with video file to be reached the standard grade, then, Similarity is 33.3%.
Wherein, step 402 is that the target for belonging to same type with the video file to be reached the standard grade in video that determines to reach the standard grade is reached the standard grade The specific implementation of the step of video.
Step 403:The video of reaching the standard grade of the target in first time period is obtained to reach the standard grade the every of video in the target of having reached the standard grade The one flow consumption figures for reaching the standard grade region;
Wherein, the time span of first time period is more than or equal to the time span of the second time period, for example, database Middle storage is each flow consumption figures reached the standard grade the every day of video in each region of reaching the standard grade, then, it can count over Either pass by within three months one month or target flow of the video in each region of reaching the standard grade of reaching the standard grade of the same type of one week disappears in the past Consumption value.
Step 404:Determine flow consumption figures meet preset threshold condition target reach the standard grade video region of reaching the standard grade for target It reaches the standard grade region;
Step 405:It is searched in correspondence of the pre-stored region with node corresponding with target region of reaching the standard grade Node be meet the first preset condition destination node;
Step 406:After the reception for receiving all destination nodes returns successful message, returned to the client It returns the video file to be reached the standard grade and uploads successful message.
It can be seen that in the present embodiment, it, will by receiving the video file to be reached the standard grade for carrying label of client transmission The video file to be reached the standard grade is issued to global storage server, determines to meet first in advance based on the label of video file to be reached the standard grade If the destination node of condition, wherein, the overall situation storage server is used to the video file to be reached the standard grade being issued to the mesh Node is marked, after the reception for receiving all destination nodes returns successful message, video file to be reached the standard grade is returned to client Upload successful message.Therefore the application currently all destination node can be received after video file of reaching the standard grade in fact, then to visitor Family end returns to video file to be reached the standard grade and uploads successful message so that static page is published to the homepage of website by editorial staff again On, it can be ensured that video file to be reached the standard grade has been issued to most of node in this way so that the upload of video file It is synchronous as possible with reaching the standard grade for static page, improve treatment effeciency.
Further embodiment of this invention discloses a kind of video loading method, as shown in figure 5, this method includes the following steps:
Step 501:The video file to be reached the standard grade for carrying label that client is sent is received, by the video text to be reached the standard grade Part is issued to global storage server;
Step 502:Based on the video file to be reached the standard grade label determine to reach the standard grade in video with the video text to be reached the standard grade The target that part belongs to same type is reached the standard grade video;
Step 503:The video of reaching the standard grade of the target in first time period is obtained to reach the standard grade the every of video in the target of having reached the standard grade The one flow consumption figures for reaching the standard grade region;
Step 504:By all targets described in region of reaching the standard grade reach the standard grade video flow consumption figures it is suitable according to from high to low Sequence is ranked up;
The target of same type reach the standard grade video in each region of reaching the standard grade with a flow consumption figures, in the present embodiment, being will be every The reach the standard grade flow consumption figures of video of one target for reaching the standard grade region is ranked up according to sequence from high to low.
Illustrate, it is assumed that by target in all regions of reaching the standard grade reach the standard grade video flow consumption figures it is suitable according to from high to low Sequence sequence is as follows:
A-quadrant (1000), B area (900), C regions (600), D regions (300), E regions (250) and F regions (150)。
Step 505:Determine that integrated flux consumption figures reaches the target of the preset percentage of total flow consumption figures and reaches the standard grade for the first time The region of reaching the standard grade of video;
Wherein, the sum of the flow consumption figures of total flow consumption figures for all areas.
Integrated flux consumption figures carries out cumulative flow by sequence from high to low and consumes aggregate-value for target video of reaching the standard grade. That is, when first judging that integrated flux consumption figures is only highest flow consumption figures, whether reach total flow consumption figures Preset percentage, if so, stopping calculating, if it is not, then tiring out highest flow consumption figures and the second high flow consumption figures Add, judge that integrated flux consumption figures reaches the preset percentage of total flow consumption figures, and so on.
The value present invention of the preset percentage does not limit, if preset percentage is 50%.
It is still illustrated with the example above, is reached the standard grade by calculating target video of reaching the standard grade in A-F the total flow consumption figures in region For (1000+900+600+300+250+150)=3200.Assuming that preset percentage is 55%, then, first judge the mesh of a-quadrant Whether the flow consumption figures for putting on line video reaches the 55% of total flow consumption figures, through judging that determining that the target of a-quadrant is reached the standard grade regards The flow consumption figures 1000 of frequency is not up to the 55% of total flow consumption figures, and then the reach the standard grade flow of video of the target of a-quadrant disappears The reach the standard grade flow consumption figures of video of consumption value and the target of B area is added, and judges whether integrated flow consumption figures 1900 reaches total stream The 55% of consumption figures is measured, through judging, determines that 1900 reach the 55% of 3200, accordingly, it is determined that integrated flux consumption figures reaches for the first time The target of the preset percentage of total flow consumption figures reach the standard grade video reach the standard grade region include a-quadrant and B area.
Step 506:It reaches the standard grade region of reaching the standard grade on the basis of region by first, the benchmark is calculated using default calculation and is reached the standard grade The difference of the flow consumption figures in region next region of reaching the standard grade adjacent thereto and the benchmark reach the standard grade region flow consumption figures ratio Whether default ratio is more than, if so, stopping calculating and entering step 508;If it is not, enter step 507;
First region of reaching the standard grade reaches the preset percentage of total flow consumption figures for identified integrated flux consumption figures Target is reached the standard grade last region of sorting in region of reaching the standard grade residing for video.
In the application, with benchmark reach the standard grade adjacent next in region reach the standard grade region for target reach the standard grade video flow consumption figures from When high to Low sequence sorts, corresponding flow consumption figures is only second to the area for the flow consumption figures that benchmark is reached the standard grade corresponding to region Domain.
Wherein, the concrete numerical value present invention for presetting ratio does not limit.
In the example above, first reaches the standard grade region as B area, i.e., region of reaching the standard grade on the basis of B area, reaches the standard grade region with benchmark C regions is in adjacent next region of reaching the standard grade, then the difference for calculating the flow consumption figures of B area and the flow consumption figures in C regions is 300=(900-600), and then be 300/900 with the ratio of the flow consumption figures of B area, it is assumed that default ratio is 0.4, it is clear that small In default ratio, then enter step 507.
Step 507:It will be changed to using default substitute mode with the current base adjacent next region of reaching the standard grade in region of reaching the standard grade Benchmark is reached the standard grade region, continues to reach the standard grade on adjacent thereto next in region using the benchmark that the default calculation is calculated after replacing Whether the difference of the flow consumption figures in line region is more than default ratio with the reach the standard grade ratio of flow consumption figures in region of benchmark after replacing, It is calculated successively by the default substitute mode and the default calculation, until the benchmark is reached the standard grade, region is adjacent thereto Next region of reaching the standard grade flow consumption figures difference and the benchmark reach the standard grade region flow consumption figures ratio be more than it is described default Stop calculating during ratio;
When reach the standard grade by first region is reached the standard grade on the basis of region when, benchmark is reached the standard grade region next region of reaching the standard grade adjacent thereto The difference of flow consumption figures and the benchmark reach the standard grade the ratio of flow consumption figures in region when being less than or equal to default ratio, then replace benchmark It reaches the standard grade region.If first reaches the standard grade region of reaching the standard grade on the basis of region, then will then reach the standard grade the adjacent next area that reaches the standard grade in region with first Domain is reached the standard grade region on the basis of replacing, and adjacent thereto using the benchmark that the default calculation is calculated after replacing region of reaching the standard grade The difference of the flow consumption figures in next region of reaching the standard grade with replace after benchmark reach the standard grade region flow consumption figures ratio whether be more than it is pre- If ratio, if so, stop calculating, reach the standard grade region if not, continuing to replace benchmark, region and its phase until the benchmark is reached the standard grade The reach the standard grade ratio of flow consumption figures in region of the difference of the flow consumption figures in adjacent next region of reaching the standard grade and the benchmark is more than default ratio Stop calculating during value.
In the example above, need replacing benchmark and reach the standard grade region, i.e., region of reaching the standard grade on the basis of C regions are replaced, and continue It is calculated using above-mentioned calculation, (600-300)/600 is determined by calculation>0.4, therefore stop calculating.
Step 508:All regions of reaching the standard grade before region of reaching the standard grade comprising identified benchmark when stopping calculating are determined as Target is reached the standard grade region;
It is ranked up by the reach the standard grade flow consumption figures of video of target in all regions of reaching the standard grade according to sequence from high to low Afterwards, the corresponding region of reaching the standard grade of video of reaching the standard grade with target, which is equivalent to, has also carried out corresponding sequence, is that will sort in this step It is determined as target comprising all regions of reaching the standard grade that identified benchmark is reached the standard grade before region when stopping calculating in region of reaching the standard grade afterwards It reaches the standard grade region.
In the example above, target reach the standard grade region include a-quadrant, B area and C regions.
Wherein, step 504-508 is to determine that the flow consumption figures target that meets preset threshold condition is reached the standard grade video Reach the standard grade region for target reach the standard grade region the step of specific implementation.
In order to make it easy to understand, it illustrates again:
If region is as unit of provincial, then by the target of same type in all provinces reach the standard grade video flow consumption figures by It sorts according to sequence from high to low, determines that integrated flux consumption figures reaches the province of total flow consumption figures 50%, then with this It calculates downwards, when the flow difference in two neighboring province is more than default ratio with the ratio in current province, stops calculating and true It all provinces before settled preceding province reaches the standard grade region for target.
It is for example, as follows according to the sequence of flow consumption figures from high to low:
1. Beijing 500;2. Shanghai 300;3. Guangzhou 280;4. Shandong 210;5. Henan 200;6. Guangxi 180;7. Hunan 80; 8....。
Assuming that all province total flow consumption figures in the whole nation are 2800, then tired to the 5th Henan by calculating then cut-off Meter flow consumption figures has reached 1490 (500+300+280+210+200), the half more than 2800.So, since Henan, It is compared downwards successively, the ratio of the difference and Henan in Henan and Guangxi is 0.1 (default ratio 0.2), therefore Guangxi also complies with It is required that continuing comparison downwards, the ratio of the difference and Guangxi in Guangxi and Hunan is 0.56, has been more than default ratio 0.2, therefore stop Only calculate.So far, the target determined in this example reaches the standard grade region as (Beijing, Shanghai, Guangzhou, Shandong, Henan, Guangxi).
Step 509:It is searched in correspondence of the pre-stored region with node corresponding with target region of reaching the standard grade Node be meet the first preset condition destination node;
According to region and the correspondence of node, it can determine that outflow consumes the more node reached the standard grade corresponding to region For destination node.
Step 510:After the reception for receiving all destination nodes returns successful message, returned to the client It returns the video file to be reached the standard grade and uploads successful message.
Assuming that above-mentioned 6 provinces one share 15 destination nodes, then are determining this video file to be reached the standard grade uploaded It needs after being at least all distributed to this 15 destination nodes, video file upload to be reached the standard grade can be just returned to client and is successfully disappeared Breath.
It should be noted that if some destination node is no for a long time to receive successful information, it can be to the target section Point sends warning message, operation maintenance personnel to be prompted to be handled.
It can be seen that in the present embodiment, it, will by receiving the video file to be reached the standard grade for carrying label of client transmission The video file to be reached the standard grade is issued to global storage server, determines to meet first in advance based on the label of video file to be reached the standard grade If the destination node of condition, wherein, the overall situation storage server is used to the video file to be reached the standard grade being issued to the mesh Node is marked, after the reception for receiving all destination nodes returns successful message, video file to be reached the standard grade is returned to client Successful message is uploaded, wherein, the destination node is used to described return to the reception after video file of reaching the standard grade receiving Successful message.Therefore it currently all destination node can receive after video file of reaching the standard grade, then be treated to client return in fact Video file of reaching the standard grade uploads successful message so that static page is published on the homepage of website by editorial staff again, passes through this Kind mode can be ensured that video file to be reached the standard grade has been issued to most of node so that the upload of video file and static page Reach the standard grade as possible synchronous, improve treatment effeciency.
It is corresponding with a kind of above-mentioned video loading method, the embodiment of the invention also discloses a kind of video eedle threader, with It is described by several embodiments down, specifically:
One embodiment of the invention discloses a kind of video eedle threader, as shown in fig. 6, the device includes:Reception issues Unit 601 determines node unit 602 and returns to message elements 603;Wherein:
Issuance unit 601 is received, for receiving the video file to be reached the standard grade for carrying label of client transmission, by described in Video file to be reached the standard grade is issued to global storage server;
When need to reach the standard grade some video when, video file to be reached the standard grade can be sent to distribution by upload personnel by client Source server, specifically, the video file to be reached the standard grade carries label, which is used to mark the classification of video file to be reached the standard grade Attribute.Label can include following type but be not limited to that following type:
PGC (Professionally-generated Content, professional production content);
UGC (User-generated Content, user produce content);
Type (TV play, film, animation etc.);
Content type (youth, terror, action).
For example, video file to be reached the standard grade is《Transformer 5》, label can be (PGC, film, science fiction, action).
In an alternative embodiment of the invention, which can also include:First returning unit, for when distribution source server Video file to be reached the standard grade is received, is returned to client for characterizing the information that video is issuing, such as " it is being issued, Please later ".
Node unit 602 is determined, for determining to meet the first preset condition based on the label of the video file to be reached the standard grade Destination node;
Destination node is the next stage node of global storage server, and global storage server is receiving video to be reached the standard grade After file, for video file to be reached the standard grade to be issued to destination node.
Wherein it is determined that node unit 602, including:First determining module 6021, determines region at first acquisition module 6022 Module 6023 and determining node module 6024.
First determining module 6021, for based on the label of the video file to be reached the standard grade determine to reach the standard grade in video with it is described The target that video file to be reached the standard grade belongs to same type is reached the standard grade video;
First acquisition module 6022 reaches the standard grade video in the target of having reached the standard grade for obtaining the target in first time period Reach the standard grade video each region of reaching the standard grade flow consumption figures;
In the present invention, each reach the standard grade each period (second of the video in each region of reaching the standard grade is stored in database Period) flow Expenditure Levels.Wherein, the video reached the standard grade is referred to as video of reaching the standard grade, the geographic region that video of reaching the standard grade is reached the standard grade Domain is referred to as region of reaching the standard grade.And each video of reaching the standard grade is respectively provided with the label for characterizing its category attribute, each video tool of reaching the standard grade There is at least level-one label, for marking the classification of the video of reaching the standard grade, therefore distribution source server can be based on treating in the database The label of video file of reaching the standard grade is determined and video file to be reached the standard grade belongs to the target of same type and reaches the standard grade video in the database.
The order program data of each video of reaching the standard grade is stored in video server daily record data, therefore based on video server day Will data can count each flow consumption figures of the video in each region of reaching the standard grade each period of reaching the standard grade in advance, and be stored in In database.
Specifically, the region of reaching the standard grade for video of reaching the standard grade can be divided into various region ranks, such as with provincial progress Reach the standard grade the division in region, naturally it is also possible to the division in the region that at county level or city-level reach the standard grade, specifically can with when, day, week In the period as statistics flow Expenditure Levels.For example, it is counted by video server daily record data《Transformer 5》At certain One day, the flow of 500GB is consumed in total in Beijing area, and in the flow of Efficiency in Buildings in Tianjin Area consumption 300GB, which is stored in In database.
Distribution source server is reached the standard grade in the target for determining and belonging to wait video file of reaching the standard grade same type after video, needs to obtain The target of same type video of reaching the standard grade is reached the standard grade each region of reaching the standard grade of video in the target of having reached the standard grade in first time period Flow consumption figures.
The first time period can be preset based on actual conditions, the flow consumption for video of reaching the standard grade for statistics target The time span of value.
It should be noted that the time span of first time period is more than or equal to the time span of second time period.
Regions module 6023 is determined, for determining that target that the flow consumption figures meets preset threshold condition is reached the standard grade video Region of reaching the standard grade reach the standard grade region for target;
Preset threshold condition can be set based on actual conditions, as a kind of mode, it may be determined that flow consumption figures The reach the standard grade region of reaching the standard grade of video of target for reaching preset targets threshold is reached the standard grade region for target, which can be with Temperature based on each video is preset, and the present invention does not limit.Certainly the invention also discloses preset threshold conditions Other realization methods, can specifically be described in detail later.
Node module 6024 is determined, for being searched and the target in the correspondence in pre-stored region and node The corresponding node in region of reaching the standard grade is the destination node for meeting the first preset condition.
In the present invention, the correspondence of region and node is previously stored with, which can be stored in advance in distribution In source server, it can also store in the database.It should be noted that node corresponding with region can be appointed as the region institute The node used for the region of setting, naturally it is also possible to be referred to as set by other regions, for what is used for the region Node.
Message elements 603 are returned, for after the reception for receiving all destination nodes returns successful message, to Video file to be reached the standard grade described in the client return uploads successful message.
Wherein, return message elements 603 have can be used for receiving the reception that the destination node directly returns it is successful Message receives the successful message of reception that the destination node is returned by the global storage server.
When global storage server receive wait reach the standard grade video file after, video file to be reached the standard grade can be issued to next stage Node, and when destination node receive that global storage server issues wait reach the standard grade video file after, it is successful that reception can be returned Message.Due to having determined which node as destination node, all destination nodes can be detected whether by returning to message elements The successful message of reception is sent to, after the reception for receiving all destination nodes returns successful message, to client End returns to video file to be reached the standard grade and uploads successful message.
Upload personnel are received by client after video file of reaching the standard grade uploads successful message, determine video to be reached the standard grade File uploads successfully, and then static page is published on the page of website again, wherein, static page, which includes, have been uploaded The page of the broadcast address of video file to be reached the standard grade.
It can be seen that in the present embodiment, it, will by receiving the video file to be reached the standard grade for carrying label of client transmission The video file to be reached the standard grade is issued to global storage server, determines to meet first in advance based on the label of video file to be reached the standard grade If the destination node of condition, wherein, the overall situation storage server is used to the video file to be reached the standard grade being issued to the mesh Node is marked, after the reception for receiving all destination nodes returns successful message, video file to be reached the standard grade is returned to client Upload successful message.Therefore the application currently all destination node can be received after video file of reaching the standard grade in fact, then to visitor Family end returns to video file to be reached the standard grade and uploads successful message so that static page is published to the homepage of website by editorial staff again On, it can be ensured that video file to be reached the standard grade has been issued to most of node in this way so that the upload of video file It is synchronous as possible with reaching the standard grade for static page, improve treatment effeciency.
In an alternative embodiment of the invention, the first determining module be specifically used for will be found in database on described treat The video of reaching the standard grade that the similarity of the label of line video file meets threshold condition is determined as belonging to the video file to be reached the standard grade The target of same type is reached the standard grade video.
Wherein, each flow consumption of the video in the second time period for reaching the standard grade region with it of reaching the standard grade is stored in database Value.
The time span of first time period is more than or equal to the time span of second time period.The video stored in database Flow consumption figures is the flow consumption figures of video of reaching the standard grade, specifically, each video of reaching the standard grade is respectively provided with to characterize its category attribute Label, for marking the classification of the video, and the program request number of each video of reaching the standard grade is stored in video server daily record data According to, therefore each video of reaching the standard grade can be counted in each region of reaching the standard grade each time based on video server daily record data in advance The flow consumption figures of section (second time period), and store in the database.
And specifically, the predetermined threshold value of label can be set based on actual conditions, if predetermined threshold value is to wait to reach the standard grade to regard The similarity of the label of the label of frequency file and video of reaching the standard grade is 80%, then, label and the label of video file to be reached the standard grade Reach the standard grade video of the similarity more than 80% is and video to be reached the standard grade belongs to the target of same type and reaches the standard grade video.
Specifically, the label of the same levels of reach the standard grade video and video file to be reached the standard grade in database can be carried out pair Than with the similarity of the label for the video that determines to reach the standard grade and the label of video file to be reached the standard grade.
In still another embodiment of the process, as shown in fig. 7, determining regions module, including:First sorting module 7022A, Two determining module 7022B, the first computing module 7022C and third determining module 7022D;Wherein:
First sorting module 7022A, for by all targets described in region of reaching the standard grade reach the standard grade video flow consumption figures by It is ranked up according to sequence from high to low;
The target of the same type reach the standard grade video in each region of reaching the standard grade with a flow consumption figures, in the present embodiment, be The reach the standard grade flow consumption figures of video of the target of the same type in each region of reaching the standard grade is ranked up according to sequence from high to low.
Second determining module 7022B, for determining that integrated flux consumption figures reaches default the hundred of total flow consumption figures for the first time The target of point ratio is reached the standard grade the region of reaching the standard grade of video file;
Wherein, the sum of the flow consumption figures of the total flow consumption figures for all areas.Integrated flux consumption figures is described The target sequence of video from high to low of reaching the standard grade carries out cumulative flow consumption aggregate-value.That is, first judge that integrated flux disappears When consumption value is only highest flow consumption figures, whether reach the preset percentage of total flow consumption figures, if so, stop calculating, If otherwise highest flow consumption figures and the second high flow consumption figures add up, judge that integrated flux consumption figures reaches total The preset percentage of flow consumption figures, and so on.
The value present invention of the preset percentage does not limit, if preset percentage is 50%.
First computing module 7022C for reaching the standard grade region of reaching the standard grade on the basis of region by first, acquires default calculation meter Reach the standard grade difference and the benchmark of flow consumption figures in region next region of reaching the standard grade adjacent thereto of the benchmark is calculated to reach the standard grade the flow in region Whether the ratio of consumption figures is more than default ratio, if so, stopping calculating;It if it is not, then will be with current base using default substitute mode Adjacent next in region that reach the standard grade reaches the standard grade region of reaching the standard grade on the basis of region is replaced, and continues to calculate using the default calculation and replace The reach the standard grade difference of flow consumption figures in region next region of reaching the standard grade adjacent thereto of benchmark afterwards is reached the standard grade region with the benchmark after replacing The ratio of flow consumption figures whether be more than default ratio, by the default substitute mode and the default calculation successively It calculates, until the benchmark is reached the standard grade, the difference of the flow consumption figures in region next region of reaching the standard grade adjacent thereto is reached the standard grade with the benchmark The ratio of the flow consumption figures in region stops calculating when being more than default ratio;
First region of reaching the standard grade reaches the preset percentage of total flow consumption figures for identified integrated flux consumption figures The target reach the standard grade video region of reaching the standard grade in sort last region, as integrated flux consumption figures reaches total flow consumption figures Preset percentage region of reaching the standard grade in flow consumption figures minimum region.
Third determining module 7022D, identified benchmark is reached the standard grade all before region when stopping calculating for that will include Region of reaching the standard grade is determined as target and reaches the standard grade region.
It can be seen that in the present embodiment, it, will by receiving the video file to be reached the standard grade for carrying label of client transmission The video file to be reached the standard grade is issued to global storage server, determines to meet first in advance based on the label of video file to be reached the standard grade If the destination node of condition, wherein, the overall situation storage server is used to the video file to be reached the standard grade being issued to the mesh Node is marked, after the reception for receiving all destination nodes returns successful message, video file to be reached the standard grade is returned to client Successful message is uploaded, wherein, the destination node is used to described return to the reception after video file of reaching the standard grade receiving Successful message.Therefore the application currently all destination node can be received after video file of reaching the standard grade in fact, then to client It returning to video file to be reached the standard grade and uploads successful message so that static page is published on the homepage of website by editorial staff again, It can be ensured that video file to be reached the standard grade has been issued to most of node in this way so that the upload of video file and quiet Reaching the standard grade for the state page is synchronous as possible, improves treatment effeciency.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is said referring to method part It is bright.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide range caused.

Claims (10)

1. a kind of video loading method, which is characterized in that applied in distribution source server, this method includes:
The video file to be reached the standard grade for carrying label that client is sent is received, the video file to be reached the standard grade is issued to the overall situation Storage server;
The destination node for meeting the first preset condition is determined based on the label of the video file to be reached the standard grade;Wherein, the overall situation Storage server is used to the video file to be reached the standard grade being issued to the destination node;
After the reception for receiving all destination nodes returns successful message, wait to reach the standard grade to described in client return Video file uploads successful message;Wherein, the destination node is used to return receiving described after video file of reaching the standard grade It is described to receive successful message.
2. according to the method described in claim 1, it is characterized in that, the label based on the video file to be reached the standard grade determines Meet the destination node of the first preset condition, including:
It determines to reach the standard grade and belongs to same type with the video file to be reached the standard grade in video based on the label of the video file to be reached the standard grade Target reach the standard grade video;
The video of reaching the standard grade of the target in first time period is obtained to reach the standard grade in the target of having reached the standard grade each region of reaching the standard grade of video Flow consumption figures;
Determine that the reach the standard grade region of reaching the standard grade of video of target that the flow consumption figures meets preset threshold condition is reached the standard grade region for target;
It is searched in correspondence of the pre-stored region with node and reaches the standard grade the corresponding node in region as satisfaction with the target The destination node of first preset condition.
3. according to the method described in claim 2, it is characterized in that, the label based on the video file to be reached the standard grade determines The target for belonging to same type with the video file to be reached the standard grade in video of reaching the standard grade is reached the standard grade video, including:
It will be found in database and meet reaching the standard grade for predetermined threshold value with the similarity of the label of the video file to be reached the standard grade and regard Frequency is determined as reaching the standard grade video with the target that the video file to be reached the standard grade belongs to same type;
Wherein, each video of reaching the standard grade is stored in the database to consume in the flow of the second time period with its region of reaching the standard grade Value;Wherein, the time span of the first time period is more than or equal to the time span of the second time period.
4. according to the method described in claim 2, it is characterized in that, described determine that the flow consumption figures meets predetermined threshold value item The reach the standard grade region of reaching the standard grade of video of the target of part is reached the standard grade region for target, including:
The reach the standard grade flow consumption figures of video of all targets described in region of reaching the standard grade is ranked up according to sequence from high to low;
Determine that integrated flux consumption figures reaches the target of the preset percentage of total flow consumption figures and reaches the standard grade the area that reaches the standard grade of video for the first time Domain;Wherein, the total flow consumption figures reaches the standard grade video in the sum of the flow consumption figures in all regions of reaching the standard grade for the target;It is described Integrated flux consumption figures carries out cumulative flow by sequence from high to low and consumes aggregate-value for target video of reaching the standard grade;
It reaches the standard grade region of reaching the standard grade on the basis of region by first, it is adjacent thereto to calculate benchmark region of reaching the standard grade using default calculation Next region of reaching the standard grade flow consumption figures difference and the benchmark reach the standard grade region flow consumption figures ratio whether be more than it is default Ratio, if so, stopping calculating;
If it is not, then using default substitute mode by with current base reach the standard grade the adjacent next region of reaching the standard grade in region replace on the basis of on Line region continues to reach the standard grade region next region of reaching the standard grade adjacent thereto using the benchmark that the default calculation is calculated after replacing Flow consumption figures difference with replace after benchmark reach the standard grade region flow consumption figures ratio whether be more than the default ratio, lead to It crosses the default substitute mode and the default calculation calculates successively, adjacent thereto next in region until benchmark is reached the standard grade Difference and the benchmark of flow consumption figures in region of reaching the standard grade is reached the standard grade when the ratio of flow consumption figures in region is more than the default ratio and is stopped It calculates;
It reaches the standard grade target is determined as comprising all regions of reaching the standard grade that identified benchmark is reached the standard grade before region when stopping calculating region;
Wherein, the described first region of reaching the standard grade reaches the preset percentage of total flow consumption figures for identified integrated flux consumption figures The target reach the standard grade video region of reaching the standard grade in sort last region.
5. the according to the method described in claim 1, it is characterized in that, reception for receiving all destination nodes and returning Successful message, including:
It receives the successful message of reception that the destination node directly returns or receives the destination node and pass through the overall situation The successful message of reception that storage server returns.
6. a kind of video eedle threader, which is characterized in that applied in distribution source server, which includes:
Issuance unit is received, for receiving the video file to be reached the standard grade for carrying label of client transmission, waits to reach the standard grade by described Video file is issued to global storage server;
Node unit is determined, for determining the target section for meeting the first preset condition based on the label of the video file to be reached the standard grade Point;Wherein, the global storage server is used to the video file to be reached the standard grade being issued to the destination node;
Message elements are returned to, for after the reception for receiving all destination nodes returns successful message, to the visitor Video file to be reached the standard grade described in the return of family end uploads successful message;Wherein, the destination node is used to receive described treat It reaches the standard grade to return after video file and described receives successful message.
7. device according to claim 6, which is characterized in that the determining node unit, including:
First determining module, for based on the label of the video file to be reached the standard grade determine to reach the standard grade in video with it is described wait to reach the standard grade regard The target that frequency file belongs to same type is reached the standard grade video;
First acquisition module is reached the standard grade video for obtaining the video of reaching the standard grade of the target in first time period in the target of having reached the standard grade Each region of reaching the standard grade flow consumption figures;
Regions module is determined, for determining that target that the flow consumption figures meets preset threshold condition is reached the standard grade the area that reaches the standard grade of video It reaches the standard grade region for target in domain;
It determines node module, reaches the standard grade region with the target for being searched in the correspondence in pre-stored region and node Corresponding node is the destination node for meeting the first preset condition.
8. device according to claim 7, which is characterized in that first determining module is specifically used for look into database The video of reaching the standard grade for meeting predetermined threshold value with the label of the video file to be reached the standard grade similarity that is finding is determined as treating with described The target that video file of reaching the standard grade belongs to same type is reached the standard grade video;
Wherein, each flow consumption of the video in the second time period for reaching the standard grade region with it of reaching the standard grade is stored in the database Value;Wherein, the time span of the first time period is more than or equal to the time span of the second time period.
9. device according to claim 7, which is characterized in that the determining regions module, including:
First sorting module, for by all targets described in region of reaching the standard grade reach the standard grade video flow consumption figures according to from high to low Sequence be ranked up;
Second determining module, for determining that integrated flux consumption figures reaches the target of the preset percentage of total flow consumption figures for the first time It reaches the standard grade the region of reaching the standard grade of video, wherein, the total flow consumption figures is reached the standard grade stream of the video in all regions of reaching the standard grade for all targets Measure the sum of consumption figures;The integrated flux consumption figures carries out cumulative flow for the target sequence of video from high to low of reaching the standard grade Consume aggregate-value;
First computing module for reaching the standard grade region of reaching the standard grade on the basis of region by first, acquires default calculation and calculates the base Reach the standard grade difference and the benchmark of flow consumption figures in region next region of reaching the standard grade adjacent thereto of standard is reached the standard grade the flow consumption figures in region Than whether being more than default ratio, if so, stopping calculating;If it is not, it will then be reached the standard grade using default substitute mode with current base region Adjacent next region of reaching the standard grade is reached the standard grade region on the basis of replacing, and continues to calculate the benchmark after replacing using the default calculation The difference of flow consumption figures in region next region of reaching the standard grade adjacent thereto of reaching the standard grade disappears with the reach the standard grade flow in region of benchmark after replacing Whether the ratio of consumption value is more than the default ratio, is counted successively by the default substitute mode and the default calculation It calculates, until the benchmark is reached the standard grade, difference and the benchmark of the flow consumption figures in region next region of reaching the standard grade adjacent thereto are reached the standard grade area The ratio of the flow consumption figures in domain stops calculating when being more than the default ratio;
Third determining module, it is true for all regions of reaching the standard grade before region that identified benchmark when including stopping calculating being reached the standard grade It is set to target to reach the standard grade region;
Wherein, the described first region of reaching the standard grade reaches the preset percentage of total flow consumption figures for identified integrated flux consumption figures The target reach the standard grade last region of sorting in region of reaching the standard grade residing for video.
10. device according to claim 6, which is characterized in that the return message elements are used to receive the target section The successful message of reception or receive the destination node connecing by the global storage server return that point directly returns Receive successful message.
CN201810043518.1A 2018-01-17 2018-01-17 Video online method and device Active CN108174235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810043518.1A CN108174235B (en) 2018-01-17 2018-01-17 Video online method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810043518.1A CN108174235B (en) 2018-01-17 2018-01-17 Video online method and device

Publications (2)

Publication Number Publication Date
CN108174235A true CN108174235A (en) 2018-06-15
CN108174235B CN108174235B (en) 2022-05-17

Family

ID=62515106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810043518.1A Active CN108174235B (en) 2018-01-17 2018-01-17 Video online method and device

Country Status (1)

Country Link
CN (1) CN108174235B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218447A (en) * 2018-10-29 2019-01-15 中国建设银行股份有限公司 Media file distribution method and file distributing platform
CN109982158A (en) * 2019-03-25 2019-07-05 北京奇艺世纪科技有限公司 A kind of distribution method, device and the server of UGC video
CN110392283A (en) * 2019-07-05 2019-10-29 深圳市九洲电器有限公司 A kind of program distribution method, apparatus, server and storage medium
CN113505906A (en) * 2021-07-01 2021-10-15 上海哔哩哔哩科技有限公司 Object reservation method and device
CN115250368A (en) * 2021-04-26 2022-10-28 北京字跳网络技术有限公司 Video preheating method, device, equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130179541A1 (en) * 2012-01-06 2013-07-11 Comcast Cable Communications, Llc Streamlined delivery of video content
CN103986977A (en) * 2014-04-15 2014-08-13 上海聚力传媒技术有限公司 Method and device for preloading video in content distribution network
CN104202407A (en) * 2014-09-10 2014-12-10 北京奇艺世纪科技有限公司 Video file synchronization method and video file synchronization device
CN104284201A (en) * 2014-09-26 2015-01-14 北京奇艺世纪科技有限公司 Video content processing method and device
CN104918051A (en) * 2015-06-01 2015-09-16 无锡天脉聚源传媒科技有限公司 Video processing method and device
CN104918067A (en) * 2014-03-12 2015-09-16 乐视网信息技术(北京)股份有限公司 Method and system for performing curve processing on video hot degree
CN105187848A (en) * 2015-08-18 2015-12-23 浪潮软件集团有限公司 Content distribution network system and method
CN105407004A (en) * 2015-12-08 2016-03-16 清华大学深圳研究生院 Method and device for performing content distribution based on edge wireless hotspots
CN105554149A (en) * 2015-12-31 2016-05-04 康佳集团股份有限公司 Video cloud storage load equalizing method and system based on video ranks
CN106603627A (en) * 2016-11-09 2017-04-26 北京奇艺世纪科技有限公司 Data center online video file synchronization method and synchronous scheduler
CN106993054A (en) * 2017-05-05 2017-07-28 腾讯科技(深圳)有限公司 Document distribution method, node and system
CN107087038A (en) * 2017-06-29 2017-08-22 珠海市魅族科技有限公司 A kind of method of data syn-chronization, synchronizer, device and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130179541A1 (en) * 2012-01-06 2013-07-11 Comcast Cable Communications, Llc Streamlined delivery of video content
CN104918067A (en) * 2014-03-12 2015-09-16 乐视网信息技术(北京)股份有限公司 Method and system for performing curve processing on video hot degree
CN103986977A (en) * 2014-04-15 2014-08-13 上海聚力传媒技术有限公司 Method and device for preloading video in content distribution network
CN104202407A (en) * 2014-09-10 2014-12-10 北京奇艺世纪科技有限公司 Video file synchronization method and video file synchronization device
CN104284201A (en) * 2014-09-26 2015-01-14 北京奇艺世纪科技有限公司 Video content processing method and device
CN104918051A (en) * 2015-06-01 2015-09-16 无锡天脉聚源传媒科技有限公司 Video processing method and device
CN105187848A (en) * 2015-08-18 2015-12-23 浪潮软件集团有限公司 Content distribution network system and method
CN105407004A (en) * 2015-12-08 2016-03-16 清华大学深圳研究生院 Method and device for performing content distribution based on edge wireless hotspots
CN105554149A (en) * 2015-12-31 2016-05-04 康佳集团股份有限公司 Video cloud storage load equalizing method and system based on video ranks
CN106603627A (en) * 2016-11-09 2017-04-26 北京奇艺世纪科技有限公司 Data center online video file synchronization method and synchronous scheduler
CN106993054A (en) * 2017-05-05 2017-07-28 腾讯科技(深圳)有限公司 Document distribution method, node and system
CN107087038A (en) * 2017-06-29 2017-08-22 珠海市魅族科技有限公司 A kind of method of data syn-chronization, synchronizer, device and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218447A (en) * 2018-10-29 2019-01-15 中国建设银行股份有限公司 Media file distribution method and file distributing platform
CN109218447B (en) * 2018-10-29 2021-09-17 中国建设银行股份有限公司 Media file distribution method and file distribution platform
CN109982158A (en) * 2019-03-25 2019-07-05 北京奇艺世纪科技有限公司 A kind of distribution method, device and the server of UGC video
CN109982158B (en) * 2019-03-25 2022-04-22 北京奇艺世纪科技有限公司 UGC video distribution method and device and server
CN110392283A (en) * 2019-07-05 2019-10-29 深圳市九洲电器有限公司 A kind of program distribution method, apparatus, server and storage medium
CN115250368A (en) * 2021-04-26 2022-10-28 北京字跳网络技术有限公司 Video preheating method, device, equipment and storage medium
CN113505906A (en) * 2021-07-01 2021-10-15 上海哔哩哔哩科技有限公司 Object reservation method and device
CN113505906B (en) * 2021-07-01 2024-02-20 上海哔哩哔哩科技有限公司 Object reservation method and device

Also Published As

Publication number Publication date
CN108174235B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN108174235A (en) A kind of video loading method and device
CN103295147B (en) method, device and system for advertising
CN103647800B (en) Recommend the method and system of application resource
CN103944932B (en) Search for, determine the method and server of active regions
CN108055264A (en) Dispatching device, method and the computer readable storage medium of stream pushing server
CN106776660A (en) A kind of information recommendation method and device
CN104199891B (en) Data processing method and device for thermodynamic chart
CN109254901B (en) A kind of Monitoring Indexes method and system
CN109815419B (en) Interest point indexing method, device, medium and electronic equipment based on geographic position
CN104363282B (en) A kind of cloud computing resource scheduling method and device
CN105989142A (en) Data query method and device
CN103353888A (en) System and method for automatically allocating court judgment cases
CN106096021A (en) A kind of static page gray scale dissemination method and system
CN103810350A (en) Automatic pel creating method and creating device thereof
CN106485555A (en) A kind of advertising resource distribution method and device
CN105898391A (en) On-line media service bandwidth distribution method and system
CN113987002A (en) Data exchange method based on mass data analysis platform
CN103218411B (en) Website related information acquisition methods and device
CN108959439B (en) Data template generation method and system
CN109729186B (en) Allocation strategy determination method and device
CN107133339A (en) Circuit query method and apparatus and storage medium, processor
CN109086339A (en) It is a kind of for generating the data processing method and device of index recombination rate
CN113190947A (en) Feed line group dividing method and device
CN102810104A (en) Information adjusting method and device
CN103488844A (en) Power grid net rack graph automatic wiring method based on power station geographic information

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant