CN104202407B - A kind of video file synchronous method and device - Google Patents
A kind of video file synchronous method and device Download PDFInfo
- Publication number
- CN104202407B CN104202407B CN201410458945.8A CN201410458945A CN104202407B CN 104202407 B CN104202407 B CN 104202407B CN 201410458945 A CN201410458945 A CN 201410458945A CN 104202407 B CN104202407 B CN 104202407B
- Authority
- CN
- China
- Prior art keywords
- video file
- pop
- title
- idc
- cryptographic hash
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The embodiment of the invention discloses a kind of video file synchronous method and device, a kind of video file synchronous method, including:Obtain the video metadata information of target video file;According to the correspondence of default video metadata information and Popularity levels value, the class value pop, max_pop for determining target video file popularity are the highest level value of popularity, pop ∈ [0, max_pop);According to the relativeness of pop and max_pop, correction factor α is calculated;According to correction factor α and given area identification i, operator types mark j, calculating needs to receive the quantity C of the Internet data center IDC of target video fileij;C by target video file synchronization to the jLei operators in the i-th regionijOn a IDC.Using above-mentioned technical proposal, the embodiment of the present invention can be differentiated that the video file is synchronized on the IDC in CDN system according to the popularity of video file.While user experience is ensured, synchronous required network overhead is reduced, improves IDC space utilisations.
Description
Technical field
The present invention relates to internet Online Video service technology field, more particularly to a kind of video file synchronous method and dress
Put.
Background technology
The video point provided with the high speed development of internet Online Video business, internet Online Video service provider
Broadcast, direct broadcast service has become one of the most frequently used Internet service of users.As internet Online Video service system
One of subsystem extremely crucial in system, CDN (Content Delivery Network, content distributing network) system is mainly born
Video file is synchronized to edge IDC (the Internet Data in the CDN system nearer apart from user by duty in advance
Center, Internet data center) on, to ensure that the request of the video access of user can obtain quick response.
The existing video file synchronous method based on CDN system, is to be synchronized to this by all videos file is indiscriminate
On each edge IDC in CND systems, network traffics expense is larger, and the synchronizing speed of video file is slower.In addition, for some
The very low video file of rate of people logging in, is synchronized on edge IDC, and the space utilisation of edge IDC can be caused relatively low.
The content of the invention
To solve the above problems, an embodiment of the present invention provides a kind of video file synchronous method and device, particular technique
Scheme is as follows:
A kind of video file synchronous method, including:
Obtain the video metadata information of target video file;
According to the correspondence of default video metadata information and Popularity levels value, the target video file is determined
The class value pop of popularity, wherein, pop ∈ [0, max_pop), max_pop is the highest level value of popularity;
According to the relativeness of pop and max_pop, correction factor α is calculated, wherein, α ∈ (0,1);
According to the correction factor α and given area identification i, operator types mark j, calculating needs described in reception
The quantity C of the Internet data center IDC of target video fileij, wherein, CijFor to (Iij* α+C) value that obtains after rounding, C
For arbitrary constant;
C by the target video file synchronization to the jLei operators in the i-th regionijOn a IDC;
Wherein, IijThe sum of the IDC included for the jLei operators in the i-th region, and i ∈ (0, N], N is according to geographical position
The region sum that confidence breath division obtains;J ∈ (0, M], M is the operator types sum divided according to operator's scale.
Optionally, the correction factor α is:
α=[2(pop/max_pop)-1]。
Optionally, the C by the target video file synchronization to the jLei operators in the i-th regionijOn a IDC,
Including:
Obtain the title that the jLei operators in the title of the target video file, and i-th region include IDC;
To the I obtainedij+ 1 title carries out Hash operation, obtains Iij+ 1 cryptographic Hash;
By corresponding to the cryptographic Hash of the title of the target video file, with being transported corresponding to jth class in i-th region
The cryptographic Hash of the title for the IDC that battalion business includes is compared, and obtains IijA similarity value, wherein, two cryptographic Hash digits are identical
Number it is directly proportional to similarity value;
The target video file synchronization is come into preceding C to similarity valueijThe C of positionijOn IDC corresponding to a cryptographic Hash.
Optionally, the I to being obtainedij+ 1 title carries out Hash operation, obtains Iij+ 1 cryptographic Hash, is specially:
To the I obtainedij+ 1 title carries out MD5 computings, obtains Iij+ 1 cryptographic Hash.
Optionally, the I to being obtainedij+ 1 title carries out Hash operation, obtains Iij+ 1 cryptographic Hash, is specially:
To the I obtainedij+ 1 title carries out SHA-1 computings, obtains Iij+ 1 cryptographic Hash.
A kind of video file sychronisation, including:
Video metadata information acquisition module, for obtaining the video metadata information of target video file;
Popularity levels determining module, for being closed according to default video metadata information is corresponding with Popularity levels value
System, determines the class value pop of the target video file popularity, wherein, pop ∈ [0, max_pop), max_pop is prevalence
The highest level value of degree;
First computing module, the prevalence for the target video file according to determined by the Popularity levels determining module
The relativeness of class value pop and max_pop are spent, correction factor α, α ∈ (0,1) is calculated;
Second computing module, for the correction factor α being calculated according to first computing module and given area
Domain identifier i, operator types mark j, calculate the quantity for the Internet data center IDC for needing to receive the target video file
Cij, wherein, CijFor to (Iij* α+C) value that obtains after rounding, C is arbitrary constant;
Video file synchronization module, for the target video file synchronization to be calculated to second computing module
The i-th region in jLei operators CijOn a IDC;
Wherein, IijThe sum of the IDC included for the jLei operators in the i-th region, and i ∈ (0, N], N is according to geographical position
The region sum that confidence breath division obtains;J ∈ (0, M], M is the operator types sum divided according to operator's scale.
Optionally, the correction factor α is:
α=[2(pop/max_pop)-1]。
Optionally, the video file synchronization module, including:
Title obtains submodule, for obtaining the jth class in the title of the target video file, and i-th region
Operator includes the title of IDC;
Computing submodule, the I obtained for obtaining submodule to the titleij+ 1 title carries out Hash operation, obtains
To Iij+ 1 cryptographic Hash;
Comparison sub-module, for the title corresponding to the target video file for obtaining the operator module arithmetic
Cryptographic Hash, compared with the cryptographic Hash of the title of IDC included corresponding to the i-th region ZhongjLei operators, obtain
Obtain IijA similarity value, wherein, two identical numbers of cryptographic Hash digit are directly proportional to similarity value;
Video file synchronization submodule, for obtained the target video file synchronization to the comparison sub-module
Similarity value comes preceding CijThe C of positionijOn IDC corresponding to a cryptographic Hash.
Optionally, the computing submodule, is specifically used for:
To the I obtainedij+ 1 title carries out MD5 computings, obtains Iij+ 1 cryptographic Hash.
Optionally, the computing submodule, is specifically used for:
To the I obtainedij+ 1 title carries out SHA-1 computings, obtains Iij+ 1 cryptographic Hash.
Using above-mentioned technical proposal, video file synchronous method and device provided in an embodiment of the present invention, can obtain
After the video metadata information of target video file, closed according to default video metadata information is corresponding with Popularity levels value
System, determines the class value pop of the target video file popularity;Afterwards according to the relativeness of pop and max_pop, calculate
Obtain correction factor α;The correction factor α and given area identification i, operator types mark that further basis is calculated
Know j, the quantity C for the Internet data center IDC for needing to receive the target video file is calculatedij, and by the target
Video file is synchronized to the C of the jLei operators in the i-th regionijOn a IDC, wherein, CijFor to (Iij* α+C) after rounding
The value arrived, C are arbitrary constant.
Compared with prior art, the embodiment of the present invention can be differentiated by the video according to the popularity of video file
On IDC in file synchronization to CDN system.Therefore, the higher video file of popularity, can be synchronized on more IDC,
The relatively low video file of popularity, can be synchronized on less IDC, while user experience is ensured, can reduce synchronous
Required network overhead, improves IDC space utilisations.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of video file synchronous method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of embodiment of S105 in Fig. 1 provided in an embodiment of the present invention;
Fig. 3 is video on demand amount distribution map provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of video file sychronisation provided in an embodiment of the present invention;
Fig. 5 is a kind of structure diagram of video file synchronization module 405 in Fig. 4 provided in an embodiment of the present invention.
Embodiment
In order to make those skilled in the art more fully understand the technical solution in the present invention, implement below in conjunction with the present invention
Attached drawing in example, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment
Only part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this area
Art personnel all other embodiments obtained without making creative work, belong to the model that the present invention protects
Enclose.
The video point provided with the high speed development of internet Online Video business, internet Online Video service provider
Broadcast, direct broadcast service has become one of the most frequently used Internet service of users.As internet Online Video service system
One of subsystem extremely crucial in system, CDN (Content Delivery Network, content distributing network) system is mainly born
Video file is synchronized to edge IDC (the Internet Data in the CDN system nearer apart from user by duty in advance
Center, Internet data center) on, to ensure that the request of the video access of user can obtain quick response.Therefore, in not shadow
In the case of ringing user experience, a kind of efficient video file synchronous method is proposed, undoubtedly can be to Online Video service provider
Bring great convenience, an embodiment of the present invention provides a kind of video file synchronous method and device for this.
A kind of video file synchronous method provided in an embodiment of the present invention is illustrated first below.
As shown in Figure 1, a kind of video file synchronous method provided in an embodiment of the present invention, can include:
S101, obtains the video metadata information of target video file.
Optionally, the video metadata information described in the embodiment of the present invention, can include:Performer's title, and/or director's name
Claim.
In addition, the video metadata information described in the embodiment of the present invention, can also include:The manufacturing company of video, video
Title, type, show area, and/or show time.The embodiment of the present invention is not construed as limiting this.
S102, according to the correspondence of default video metadata information and Popularity levels value, determines that the target regards
The class value pop of frequency file popularity, wherein, pop ∈ [0, max_pop), max_pop is the highest level value of popularity.
It is understood that for the higher performer of history box office record such as performer Cheng Long, its video taken part in a performance by
Ratings generally can be higher, and the Popularity levels value of the video also can be higher;Similarly, it is higher for history box office record
Director such as directs Feng little Gang, and the pouplarity of its video directed generally can be higher, the Popularity levels value of the video
Also can be higher.
In embodiments of the present invention, can be according to performer specifically, when the video metadata information is performer's title
The correspondence of title and Popularity levels value, determines the class value pop of the target video file popularity;
Specifically, when the video metadata information is directs title, can be according to director's title and Popularity levels
The correspondence of value, determines the class value pop of the target video file popularity;
Specifically, when the video metadata information for performer's title and director title when, can according to performer's title, lead
Title is drilled, the correspondence with Popularity levels value, determines the class value pop of the target video file popularity.
Certainly, it is only three kinds of embodiments of the embodiment of the present invention above, video flowing is can determine for other
Row degree level method for distinguishing, present invention method are still applicable in.
Exemplary, it is assumed that the highest level value of popularity is 9, at this time, the Popularity levels value pop of target video file
Value range for [0,9).
S103, according to the relativeness of pop and max_pop, is calculated correction factor α, wherein, α ∈ (0,1).
Optionally, in embodiments of the present invention, described repair can be calculated according to the proportionate relationship of pop and max_pop
Positive coefficient α, specifically, the correction factor α can be:α=[2(pop/max_pop)-1]。
Exemplary, it is assumed that the highest level value of popularity is 9, and the Popularity levels value pop of target video file is 8,
At this time, correction factor α=[2(8/9)-1]≈0.8517494246。
S104, identifies j according to the correction factor α and given area identification i, operator types, calculates needs and connect
Receive the quantity C of the Internet data center IDC of the target video fileij, wherein, CijFor to (Iij* α+C) obtain after rounding
Value, C is arbitrary constant.
Wherein, IijThe sum of the IDC included for the jLei operators in the i-th region, and i ∈ (0, N], N is according to geographical position
The region sum that confidence breath division obtains;J ∈ (0, M], M is the operator types sum divided according to operator's scale.
It is exemplary, can according to geographical location by China be divided into northeast, North China, East China, Central China, south China, southwest and
The region of northwest etc. seven, corresponding area identification is respectively 1,2,3,4,5,6,7;Operator can be drawn according to operator's scale
It is divided into three classes:The IDC of unicom and telecommunications is wired as the second class, place as the IDC that the first kind, mobile, Tie Tong and telecommunications are led to
For the IDC of network and education network as three classes, corresponding operator types mark is respectively 1,2,3.Correspondingly, I12For NORTHEAST REGION IN
Moved in domain, the quantity for the IDC that Tie Tong and telecommunications are led to, C12To need to receive the second of the target video file in Northeast Regional
The quantity of the IDC of class operator.
Optionally, in an embodiment of the embodiment of the present invention, the CijCan be to (Iij* α+C) round up
The value obtained afterwards;
Optionally, in the another embodiment of the embodiment of the present invention, the CijCan be to (Iij* α+C) take downwards
The value obtained after whole.
Preferably, in embodiments of the present invention, the CijCan be to (Iij* α) round up after obtained value.
It is exemplary, moved in Northeast Regional, the quantity I for the IDC that Tie Tong and telecommunications are led to12For 10, the amendment of video file
Factor alpha=1.8517494246, then need to receive in the region IDC quantity of the type operator of the video file for "
(10*0.8517494246), i.e. C12=9.
S105, the C by the target video file synchronization to the jLei operators in the i-th regionijOn a IDC.
As seen from Figure 2, the program request distribution situation of video content is a kind of typical long-tail distribution, since program request is concentrated
, can be synchronous by the higher video file of popularity on a small amount of video content, therefore during audio video synchronization is carried out
Onto more IDC, the relatively low video file of popularity can be synchronous on a small quantity.
Specifically, any C for the jLei operators that the target video can be synchronized in the i-th regionijOn a IDC,
The jLei operators that the target video is synchronized in the i-th region can also be met to the C of default screening ruleijOn a IDC.
The embodiment of the present invention is not construed as limiting this.
It can be seen from the above that video file synchronous method provided in an embodiment of the present invention, can obtain target video file
After video metadata information, according to the correspondence of default video metadata information and Popularity levels value, the mesh is determined
Mark the class value pop of video file popularity;Afterwards according to the relativeness of pop and max_pop, correction factor α is calculated;
Further to identify j according to the correction factor α being calculated and given area identification i, operator types, being calculated needs
Receive the quantity C of the Internet data center IDC of the target video fileij, and the target video file synchronization is arrived
The C of jLei operators in i-th regionijOn a IDC, wherein, CijFor to (Iij* α+C) value that obtains after rounding, C is any
Constant.
Compared with prior art, the embodiment of the present invention can be differentiated by the video according to the popularity of video file
On IDC in file synchronization to CDN system.Therefore, the higher video file of popularity, can be synchronized on more IDC,
The relatively low video file of popularity, can be synchronized on less IDC, while user experience is ensured, can reduce synchronous
Required network overhead, improves IDC space utilisations.
Optionally, in one embodiment of the invention, as shown in figure 3, above-mentioned S105, can include:
S105a, the jLei operators obtained in the title of the target video file, and i-th region include IDC
Title.
For example target video file is entitled《Transformer》, the 1st class operator includes 6 IDC, name in the 2nd region
Title is respectively:Beijing unicom 1, Beijing unicom 2, Beijing unicom 3, Beijing Telecom 1, Beijing Telecom 2, Beijing Telecom 3.
S105b, to the I obtainedij+ 1 title carries out Hash operation, obtains Iij+ 1 cryptographic Hash.
Illustrated by taking the example in S105a as an example, obtain " transformer ", " Beijing unicom 1 ", " Beijing unicom 2 ",
" Beijing unicom 3 ", " Beijing Telecom 1 ", " Beijing Telecom 2 " and " after 7 titles such as Beijing Telecom 3 ", respectively to " transformer ",
" Beijing unicom 1 ", " Beijing unicom 2 ", " Beijing unicom 3 ", " Beijing Telecom 1 ", " Beijing Telecom 2 " and " Beijing Telecom 3 " this 7
Title carries out Hash operation.
Optionally, in an embodiment of the embodiment of the present invention, to the I obtainedij+ 1 title carries out MD5 fortune
Calculate, obtain Iij+ 1 cryptographic Hash.
Still this step is illustrated by taking the example in S105a as an example, respectively to " transformer ", " Beijing unicom 1 ",
" Beijing unicom 2 ", " Beijing unicom 3 ", " Beijing Telecom 1 ", " Beijing Telecom 2 " and " this 7 titles progress MD5 of Beijing Telecom 3 "
Computing.
Optionally, in the another embodiment of the embodiment of the present invention, to the I obtainedij+ 1 title carries out SHA-1
Computing, obtains Iij+ 1 cryptographic Hash.
Still this step is illustrated by taking the example in S105a as an example, respectively to " transformer ", " Beijing unicom 1 ",
" Beijing unicom 2 ", " Beijing unicom 3 ", " Beijing Telecom 1 ", " Beijing Telecom 2 " and " this 7 titles progress SHA- of Beijing Telecom 3 "
1 computing.
S105c, by corresponding to the cryptographic Hash of the title of the target video file, with corresponding in i-th region
The cryptographic Hash of the title for the IDC that jLei operators include is compared, and obtains IijA similarity value, wherein, two cryptographic Hash positions
The identical number of number is directly proportional to similarity value.
Still this step is illustrated by taking the example in S105a as an example, will after the cryptographic Hash of each title is obtained
The cryptographic Hash of " transformer " with " compared with the cryptographic Hash of Beijing unicom 1 ", the cryptographic Hash of " transformer " and " Beijing unicom
2 " cryptographic Hash is compared, the cryptographic Hash of " transformer " with " compared with the cryptographic Hash of Beijing unicom 3 ", " transformer "
Cryptographic Hash with " compared with the cryptographic Hash of Beijing Telecom 1 ", the cryptographic Hash of " transformer " and " cryptographic Hash of Beijing Telecom 2 "
Be compared, the cryptographic Hash of " transformer " with " compared with the cryptographic Hash of Beijing Telecom 3 ", the identical digit of cryptographic Hash is got over
More, corresponding similarity value is also bigger.
Exemplary, specific comparison procedure is as follows:After MD5 computings are done to " transformer ", obtained cryptographic Hash is:
ebea7731aefb9c74a35e6ab2dbf7505b;To " Beijing unicom 2 ", after doing MD5 computings, obtained cryptographic Hash is:
8a98cec08eec26f6ca9e96c70b2efba4.The identical digit of both cryptographic Hash is respectively:Tenth, the 20th
Position, and the second sixteen bit, similarity value 3.
It should be noted that above example is only an instantiation of the embodiment of the present invention, bag of the embodiment of the present invention
Include but be not limited to above example.In practical applications, can according to actual needs, the number identical to two cryptographic Hash digits with
The correspondence of similarity value is set, and the embodiment of the present invention is not construed as limiting this.
S105d, preceding C is come by the target video file synchronization to similarity valueijThe C of positionijCorresponding to a cryptographic Hash
On IDC.
The embodiment of the present invention can be according to the similar situation of cryptographic Hash, by the target video file synchronization to similarity value
Larger preceding CijOn a IDC, on the premise of user experience is not influenced, the rationalization for realizing video resource is synchronous.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of video file sychronisation.
As shown in figure 4, a kind of video file sychronisation provided in an embodiment of the present invention, can include:
Video metadata information acquisition module 401, for obtaining the video metadata information of target video file;
Optionally, the video metadata information described in the embodiment of the present invention, can include:Performer's title, and/or director's name
Claim.
In addition, the video metadata information described in the embodiment of the present invention, can also include:The manufacturing company of video, regard
The title of frequency, type, show area, and/or show time.The embodiment of the present invention is not construed as limiting this.
Popularity levels determining module 402, for pair according to default video metadata information and Popularity levels value
It should be related to, determine the class value pop of the target video file popularity, wherein, pop ∈ [0, max_pop), max_pop is
The highest level value of popularity;
First computing module 403, for the target video file according to determined by the Popularity levels determining module 402
Popularity levels value pop and max_pop relativeness, correction factor α, α ∈ (0,1) is calculated;
Second computing module 404, for the correction factor α that is calculated according to first computing module 403 and to
Fixed area identification i, operator types mark j, calculating need to receive the Internet data center IDC of the target video file
Quantity Cij, wherein, CijFor to (Iij* α+C) value that obtains after rounding, C is arbitrary constant;
Video file synchronization module 405, based on by the target video file synchronization to second computing module 404
The C of jLei operators in the i-th obtained regionijOn a IDC;
Wherein, IijThe sum of the IDC included for the jLei operators in the i-th region, and i ∈ (0, N], N is according to geographical position
The region sum that confidence breath division obtains;J ∈ (0, M], M is the operator types sum divided according to operator's scale.
It can be seen from the above that video file sychronisation provided in an embodiment of the present invention, can obtain target video file
After video metadata information, according to the correspondence of default video metadata information and Popularity levels value, the mesh is determined
Mark the class value pop of video file popularity;Afterwards according to the relativeness of pop and max_pop, correction factor α is calculated;
Further to identify j according to the correction factor α being calculated and given area identification i, operator types, being calculated needs
Receive the quantity C of the Internet data center IDC of the target video fileij, and the target video file synchronization is arrived
The C of jLei operators in i-th regionijOn a IDC, wherein, CijFor to (Iij* α+C) value that obtains after rounding, C is any
Constant.
Compared with prior art, the embodiment of the present invention can be differentiated by the video according to the popularity of video file
On IDC in file synchronization to CDN system.Therefore, the higher video file of popularity, can be synchronized on more IDC,
The relatively low video file of popularity, can be synchronized on less IDC, while user experience is ensured, can reduce synchronous
Required network overhead, improves IDC space utilisations.
Optionally, in one embodiment of the invention, the correction factor α is:
α=[2(pop/max_pop)-1]。
Optionally, in one embodiment of the invention, can be with as shown in figure 5, the video file synchronization module 405
Including:
Title obtains submodule 405a, for obtaining the in the title of the target video file, and i-th region
J classes operator includes the title of IDC;
Computing submodule 405b, the I obtained for obtaining submodule 405a to the titleij+ 1 title carries out Hash
Computing, obtains Iij+ 1 cryptographic Hash;
Comparison sub-module 405c, corresponds to target video text for obtain the computing submodule 405b computings
The cryptographic Hash of the title of part, with the cryptographic Hash of the title of IDC that is included corresponding to the i-th region ZhongjLei operators into
Row compares, and obtains IijA similarity value, wherein, two identical numbers of cryptographic Hash digit are directly proportional to similarity value;
Video file synchronization submodule 405d, for by the target video file synchronization to the comparison sub-module 305c
The similarity value obtained comes preceding CijThe C of positionijOn IDC corresponding to a cryptographic Hash.
Optionally, in one embodiment of the invention, the computing submodule 405b, is specifically used for:
To the I obtainedij+ 1 title carries out MD5 computings, obtains Iij+ 1 cryptographic Hash.
Optionally, in another embodiment of the present invention, the computing submodule 405b, is specifically used for:
To the I obtainedij+ 1 title carries out SHA-1 computings, obtains Iij+ 1 cryptographic Hash.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
For convenience of description, it is divided into various modules during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each module can be realized in same or multiple softwares and/or hardware during invention.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there are other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for device
For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is
To instruct relevant hardware to complete by program, the program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (8)
- A kind of 1. video file synchronous method, it is characterised in that the described method includes:The video metadata information of target video file is obtained, wherein, the video metadata information includes:Performer's title, lead Drill title, the manufacturing company of video, the title of video, type, show area, and/or show time;According to the correspondence of default video metadata information and Popularity levels value, determine that the target video file is popular The class value pop of degree, wherein, pop ∈ [0, max_pop), max_pop is the highest level value of popularity;According to the relativeness of pop and max_pop, correction factor α, α=[2 is calculated(pop/max_pop)- 1], wherein, α ∈ (0, 1);According to the correction factor α and given area identification i, operator types mark j, calculating needs to receive the target The quantity C of the Internet data center IDC of video fileij, wherein, CijFor to (Iij* α+C) value that obtains after rounding, C is appoints Meaning constant;C by the target video file synchronization to the jLei operators in the i-th regionijOn a IDC;Wherein, IijThe sum of the IDC included for the jLei operators in the i-th region, and i ∈ (0, N], N is to be believed according to geographical location The region sum that breath division obtains;J ∈ (0, M], M is the operator types sum divided according to operator's scale.
- It is 2. according to the method described in claim 1, it is characterized in that, described by the target video file synchronization to the i-th region In jLei operators CijOn a IDC, including:Obtain the title that the jLei operators in the title of the target video file, and i-th region include IDC;To the I obtainedij+ 1 title carries out Hash operation, obtains Iij+ 1 cryptographic Hash;By corresponding to the cryptographic Hash of the title of the target video file, with corresponding to the i-th region ZhongjLei operators Comprising the cryptographic Hash of title of IDC be compared, obtain IijA similarity value, wherein, identical of two cryptographic Hash digits Number is directly proportional to similarity value;The target video file synchronization is come into preceding C to similarity valueijThe C of positionijOn IDC corresponding to a cryptographic Hash.
- 3. the according to the method described in claim 2, it is characterized in that, I to being obtainedij+ 1 title carries out Hash fortune Calculate, obtain Iij+ 1 cryptographic Hash, is specially:To the I obtainedij+ 1 title carries out MD5 computings, obtains Iij+ 1 cryptographic Hash.
- 4. the according to the method described in claim 2, it is characterized in that, I to being obtainedij+ 1 title carries out Hash fortune Calculate, obtain Iij+ 1 cryptographic Hash, is specially:To the I obtainedij+ 1 title carries out SHA-1 computings, obtains Iij+ 1 cryptographic Hash.
- 5. a kind of video file sychronisation, it is characterised in that described device includes:Video metadata information acquisition module, for obtaining the video metadata information of target video file, wherein, the video Metadata information includes:Performer's title, director title, the manufacturing company of video, the title of video, type, show area and/ Or show time;Popularity levels determining module, for the correspondence according to default video metadata information and Popularity levels value, Determine the class value pop of the target video file popularity, wherein, pop ∈ [0, max_pop), max_pop is popularity Highest level value;First computing module, the popularity level for the target video file according to determined by the Popularity levels determining module The not relativeness of value pop and max_pop, is calculated correction factor α, α=[2(pop/max_pop)- 1], α ∈ (0,1);Second computing module, is marked for the correction factor α being calculated according to first computing module and given region Know i, operator types mark j, calculate the quantity C for the Internet data center IDC for needing to receive the target video fileij, Wherein, CijFor to (Iij* α+C) value that obtains after rounding, C is arbitrary constant;Video file synchronization module, for the target video file synchronization to second computing module is calculated The C of jLei operators in i regionsijOn a IDC;Wherein, IijThe sum of the IDC included for the jLei operators in the i-th region, and i ∈ (0, N], N is to be believed according to geographical location The region sum that breath division obtains;J ∈ (0, M], M is the operator types sum divided according to operator's scale.
- 6. device according to claim 5, it is characterised in that the video file synchronization module, including:Title obtains submodule, for obtaining the jth class operation in the title of the target video file, and i-th region Business includes the title of IDC;Computing submodule, the I obtained for obtaining submodule to the titleij+ 1 title carries out Hash operation, obtains Iij+ 1 cryptographic Hash;Comparison sub-module, for the Kazakhstan for the title corresponding to the target video file for obtaining the operator module arithmetic Uncommon value, compared with the cryptographic Hash of the title of IDC included corresponding to the i-th region ZhongjLei operators, obtains Iij A similarity value, wherein, two identical numbers of cryptographic Hash digit are directly proportional to similarity value;Video file synchronization submodule, it is similar for the target video file synchronization to the comparison sub-module to be obtained Angle value comes preceding CijThe C of positionijOn IDC corresponding to a cryptographic Hash.
- 7. device according to claim 6, it is characterised in that the computing submodule, is specifically used for:To the I obtainedij+ 1 title carries out MD5 computings, obtains Iij+ 1 cryptographic Hash.
- 8. device according to claim 6, it is characterised in that the computing submodule, is specifically used for:To the I obtainedij+ 1 title carries out SHA-1 computings, obtains Iij+ 1 cryptographic Hash.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410458945.8A CN104202407B (en) | 2014-09-10 | 2014-09-10 | A kind of video file synchronous method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410458945.8A CN104202407B (en) | 2014-09-10 | 2014-09-10 | A kind of video file synchronous method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104202407A CN104202407A (en) | 2014-12-10 |
CN104202407B true CN104202407B (en) | 2018-04-13 |
Family
ID=52087632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410458945.8A Active CN104202407B (en) | 2014-09-10 | 2014-09-10 | A kind of video file synchronous method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104202407B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104469392B (en) * | 2014-12-19 | 2018-04-20 | 北京奇艺世纪科技有限公司 | A kind of video file storage method and device |
CN106851343B (en) * | 2017-01-23 | 2020-04-21 | 百度在线网络技术(北京)有限公司 | Method and device for live video |
CN107463342B (en) * | 2017-08-28 | 2021-04-20 | 北京奇艺世纪科技有限公司 | CDN edge node file storage method and device |
CN108174235B (en) * | 2018-01-17 | 2022-05-17 | 北京奇艺世纪科技有限公司 | Video online method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645919A (en) * | 2009-04-01 | 2010-02-10 | 中国科学院声学研究所 | Popularity-based duplicate rating calculation method and duplicate placement method |
CN101645922A (en) * | 2009-04-17 | 2010-02-10 | 中国科学院声学研究所 | CDN network system based on geographical position information encoding and distribution treatment method |
CN102812450A (en) * | 2009-10-30 | 2012-12-05 | 时代华纳有线公司 | Methods And Apparatus For Packetized Content Delivery Over A Content Delivery Network |
KR20130134561A (en) * | 2012-05-31 | 2013-12-10 | 주식회사 지어소프트 | Synchronization apparatus and method for content delivery in cdn |
-
2014
- 2014-09-10 CN CN201410458945.8A patent/CN104202407B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645919A (en) * | 2009-04-01 | 2010-02-10 | 中国科学院声学研究所 | Popularity-based duplicate rating calculation method and duplicate placement method |
CN101645922A (en) * | 2009-04-17 | 2010-02-10 | 中国科学院声学研究所 | CDN network system based on geographical position information encoding and distribution treatment method |
CN102812450A (en) * | 2009-10-30 | 2012-12-05 | 时代华纳有线公司 | Methods And Apparatus For Packetized Content Delivery Over A Content Delivery Network |
KR20130134561A (en) * | 2012-05-31 | 2013-12-10 | 주식회사 지어소프트 | Synchronization apparatus and method for content delivery in cdn |
Also Published As
Publication number | Publication date |
---|---|
CN104202407A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240049108A1 (en) | Network provisioning | |
CN104202407B (en) | A kind of video file synchronous method and device | |
CN104008139B (en) | The creation method and device of video index table, the recommendation method and apparatus of video | |
CN104158891A (en) | Method, device and system of cross-regional data transmission, and server | |
CN109547547A (en) | Return source dispatching method, device and its storage medium | |
CN106155496A (en) | A kind of information displaying method and device | |
CN106030649A (en) | Global comments for media item | |
JP2012530321A5 (en) | ||
EP2894883B1 (en) | Methods and systems for content consumption | |
CN104469392A (en) | Video file storage method and device | |
CN109756584A (en) | Domain name analytic method, domain name mapping device and computer readable storage medium | |
CN106790060A (en) | The right management method and device of a kind of role-base access control | |
CN104615709A (en) | Information display method and device | |
CN103973747B (en) | A kind of method and apparatus for obtaining content | |
CN105243078A (en) | File resource distribution method, system and apparatus | |
CN108566429A (en) | A kind of high in the clouds sharing files method and apparatus | |
CN108377245A (en) | A kind of optimizing demonstration method and system of network insertion request | |
CN110071966B (en) | Block chain networking and data processing method based on cloud platform | |
CN104239423A (en) | Personal connection distance obtaining method and system | |
KR102135075B1 (en) | Method for providing fake news alert service through syntactic analysis of instant messages based on news writing and broadcast guidelines and apparatus thereof | |
CN104253864B (en) | A kind of data hierarchy storage means and system | |
CN106610807B (en) | Input the method, apparatus and system of information multi-section display | |
CN106507137B (en) | A kind of footmark configuration method, server and system | |
CN113098719A (en) | Method and device for mapping service requirement and network capability | |
CN104378329A (en) | Safety verification method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |