CN109982158A - A kind of distribution method, device and the server of UGC video - Google Patents

A kind of distribution method, device and the server of UGC video Download PDF

Info

Publication number
CN109982158A
CN109982158A CN201910227338.3A CN201910227338A CN109982158A CN 109982158 A CN109982158 A CN 109982158A CN 201910227338 A CN201910227338 A CN 201910227338A CN 109982158 A CN109982158 A CN 109982158A
Authority
CN
China
Prior art keywords
video
ugc
distributed
tag
idc node
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
CN201910227338.3A
Other languages
Chinese (zh)
Other versions
CN109982158B (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 CN201910227338.3A priority Critical patent/CN109982158B/en
Publication of CN109982158A publication Critical patent/CN109982158A/en
Application granted granted Critical
Publication of CN109982158B publication Critical patent/CN109982158B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors
    • H04N21/8405Generation or processing of descriptive data, e.g. content descriptors represented by keywords

Landscapes

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

Abstract

The embodiment of the invention provides distribution method, device and the servers of a kind of UGC video, which comprises obtains target UGC video to be distributed, and determines the first video tab of the UGC video to be distributed;For each Internet data center IDC node in content distributing network CDN, determine the second video tab of the corresponding reference video of IDC node, and utilize first video tab and second video tab, determine whether the corresponding reference video of IDC node and the UGC video to be distributed have similitude, if it is, by the UGC video distribution to be distributed to the IDC node, wherein, corresponding reference video of IDC node are as follows: multiple UGC videos that the user in the IDC node institute coverage is accessed.The embodiment of the present invention can reduce the delay that user accesses UGC video on the basis of not bringing excessive distribution pressure to CDN.

Description

UGC video distribution method and device and server
Technical Field
The invention relates to the technical field of internet, in particular to a UGC video distribution method, a UGC video distribution device and a UGC video distribution server.
Background
With the continuous development of video application platforms, especially the rapid development of short video application platforms, more and more users upload UGC (User Generated Content) videos through the video application platforms.
For the UGC video uploaded by the user, the UGC video is generally distributed to a CDN (Content Delivery Network) under the control of a server. The distribution of various types of videos depends on a distribution tree pre-constructed in the CDN. Fig. 1 shows a schematic diagram of a distribution tree, in the distribution tree shown in fig. 1, a is a global storage node, B to D are regional nodes, such as east China region, northwest region, etc., E to J are provincial nodes, such as Shandong province, Jiangsu province, etc., and K to M are edge nodes, such as Xuzhou city in Jiangsu province, Suzhou city in Jiangsu province, etc. The nodes B to M in the distribution tree are all IDC (Internet Data Center) nodes, each IDC node serves a user in a certain area, and specifically, each IDC node may respond to an access request of a user in an area served by the IDC node.
As the uploading amount of the UGC videos is more and more, if the UGC videos are distributed to each IDC node, enormous distribution pressure is undoubtedly brought to the CDN network. In consideration of the distribution pressure of the CDN network, in the prior art, the distribution process for the UGC video is as follows: and distributing the UGC video to the global storage nodes in the distribution tree.
However, the prior art has at least the following problems: because the UGC video is only distributed to the global storage node, when a user in an area served by a certain IDC node needs to access the UGC video, the access request of the user needs to be sourced from the IDC node to the global storage node layer by layer along the reverse direction of the distribution tree, and the UGC video is provided for the user by the global storage node. This, of course, leads to: the user has a large delay in accessing the UGC video, which affects the user experience.
Therefore, how to reduce the overall delay of the user accessing the UGC video on the premise of not bringing too much distribution pressure to the CDN is a problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the invention aims to provide a UGC video distribution method, a UGC video distribution device and a UGC video distribution server, so that the overall delay of a user for accessing the UGC video is reduced on the premise of not bringing excessive distribution pressure to a CDN. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for distributing UGC video, including:
obtaining a UGC video to be distributed, and determining a first video tag of the UGC video to be distributed;
determining a second video label of a reference video corresponding to each Internet Data Center (IDC) node in the CDN for content delivery;
determining whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag, if so, distributing the UGC video to be distributed to the IDC node, wherein the reference video corresponding to the IDC node is as follows: a plurality of UGC videos accessed by users within an area served by the IDC node.
Optionally, the determining a first video tag of the UGC video to be distributed includes:
acquiring a first video tag set by a first user for the UGC video to be distributed, wherein the first user is a user uploading the UGC video to be distributed; or,
and analyzing the video information of the UGC video to be distributed to obtain a first video tag of the UGC video to be distributed.
Optionally, the determining a second video tag of the reference video corresponding to the IDC node includes:
obtaining an access log in the IDC node, wherein the access log records: information of each UGC video accessed by a user in an area served by the IDC node;
determining video tags of all UGC videos recorded by the access log;
and selecting a second video tag of the reference video corresponding to the IDC node from the determined video tags according to a preset tag selection mode.
Optionally, the number of the first video tags is the same as the number of the second video tags;
the determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag comprises:
comparing each first video label with each second video label to determine a first number of labels with the same label content;
and calculating a ratio of the first number to a second number of target tags, wherein the target tags are the first video tags or the second video tags, and if the ratio is greater than a preset ratio, determining that the reference video corresponding to the IDC node has similarity to the UGC video to be distributed.
Optionally, the determining, by using the first video tag and the second video tag, whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity includes:
generating a first label vector of the UGC video to be distributed by utilizing the label vector of the first video label;
generating a second label vector of the reference video corresponding to the IDC node by using the label vector of the second video label;
and calculating cosine distance values of the first tag vector and the second tag vector, and if the cosine distance values are larger than preset distance values, judging that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
Optionally, before determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag, the method further includes:
judging whether the currently available network bandwidth of the CDN is larger than a preset bandwidth value;
and if so, executing the step of determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by utilizing the first video tag and the second video tag.
Optionally, the method further comprises:
and when the network bandwidth currently available for the CDN is judged to be not larger than the preset bandwidth value, the UGC video to be distributed is distributed to the IDC node to which the user who uploads the UGC video to be distributed belongs.
In a second aspect, an embodiment of the present invention provides a distribution apparatus for a UGC video, including:
the obtaining module is used for obtaining the UGC video to be distributed and determining a first video tag of the UGC video to be distributed;
the determining module is used for determining a second video tag of a reference video corresponding to each Internet Data Center (IDC) node in the CDN;
a first distribution module, configured to determine, by using the first video tag and the second video tag, whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity, and if so, distribute the UGC video to be distributed to the IDC node, where the reference video corresponding to the IDC node is: a plurality of UGC videos accessed by users within an area served by the IDC node.
Optionally, the determining module includes:
the first obtaining unit is used for obtaining a first video tag set by a first user for the UGC video to be distributed, and the first user is a user uploading the UGC video to be distributed; or,
and the analysis unit is used for analyzing the video information of the UGC video to be distributed to obtain a first video tag of the UGC video to be distributed.
Optionally, the determining module includes:
a second obtaining unit, configured to obtain an access log in the IDC node, where: information of each UGC video accessed by a user in an area served by the IDC node;
a first determining unit, configured to determine a video tag of each UGC video recorded by the access log;
and the selecting unit is used for selecting a second video tag of the reference video corresponding to the IDC node from the determined video tags according to a preset tag selecting mode.
Optionally, the number of the first video tags is the same as the number of the second video tags;
the first distribution module includes:
the second determining unit is used for comparing each first video label with each second video label and determining a first number of labels with the same label content;
and the first calculating unit is used for calculating a ratio of the first number to a second number of target tags, wherein the target tags are the first video tags or the second video tags, and if the ratio is greater than a preset ratio, it is determined that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
Optionally, the first distribution module includes:
the first generation unit is used for generating a first label vector of the UGC video to be distributed by utilizing the label vector of the first video label;
the second generation unit is used for generating a second label vector of the reference video corresponding to the IDC node by using the label vector of the second video label;
and the second calculating unit is used for calculating a cosine distance value between the first label vector and the second label vector, and if the cosine distance value is greater than a preset distance value, judging that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
Optionally, the apparatus further comprises:
a determining module, configured to determine whether a currently available network bandwidth of the CDN is greater than a predetermined bandwidth value before the first distributing module determines, by using the first video tag and the second video tag, whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity to each other; if yes, triggering the first distribution module.
Optionally, the apparatus further comprises:
and the second distribution module is configured to distribute the UGC video to be distributed to the IDC node to which the user who uploads the UGC video to be distributed belongs, when the judgment module judges that the network bandwidth currently available to the CDN is not greater than the predetermined bandwidth value.
In a third aspect, an embodiment of the present invention provides a server, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the steps of the UGC video distribution method according to the first aspect when executing the program stored in the memory.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the steps of the method for distributing UGC video according to the first aspect.
In a fifth aspect, embodiments of the present invention provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of a method for distribution of UGC video as described above in the first aspect.
According to the scheme provided by the embodiment of the invention, the UGC video to be distributed is only distributed to the IDC nodes (referred to as distribution nodes for short) of the CDN, wherein the corresponding reference video and the UGC video to be distributed have similarity, so that excessive distribution pressure cannot be brought to the CDN. Moreover, because the reference video corresponding to the distribution node has similarity with the UGC video to be distributed, the possibility that the user in the area served by the distribution node accesses the UGC video to be distributed is high. Then, the UGC video to be distributed is distributed to the distribution node, when the user in the area served by the distribution node accesses the UGC video to be distributed, the distribution node directly provides the UGC video to be distributed to the user, and therefore, compared with the method that the UGC video to be distributed is provided by returning the source to the global storage node layer by layer along the distribution tree, the delay of accessing the UGC video to be distributed by the user can be reduced. Therefore, by the scheme, the overall delay of the user for accessing the UGC video can be reduced on the premise of not bringing excessive distribution pressure to the CDN.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic diagram of a distribution tree in a CDN;
fig. 2 is a flowchart of a UGC video distribution method according to an embodiment of the present invention;
fig. 3 is a flowchart of another UGC video distribution method according to an embodiment of the present invention;
fig. 4 is a structural diagram of a UGC video distribution apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In order to solve the problem of the prior art, the embodiment of the invention provides a UGC video distribution method, a UGC video distribution device and a UGC video distribution server.
It should be noted that the UGC video distribution method provided in the embodiment of the present invention may be applied to a server, and specifically, the server may be a server device of a video application platform, and certainly may also be another device communicating with the server device corresponding to the video application platform. And through the control of the server, each UGC video uploaded by the user can be distributed to the CDN, and specifically, the UGC video can be distributed to some IDC nodes in the CDN.
As shown in fig. 2, a method for distributing UGC video provided in an embodiment of the present invention may include the following steps:
s201, obtaining the UGC video to be distributed, and determining a first video tag of the UGC video to be distributed.
Generally, UGC video refers to video authored by a user himself. For example, the UGC video may be a video shot by the user himself, an animation video created by the user himself, or the like.
When a user uploads the UGC video created by the user through the video application platform, the UGC video is uploaded to a server, and the server can be a server provided by the video application platform. After the server receives the UGC video uploaded by the user, the UGC video can be distributed to the CDN, so that when other users need to access the UGC video, the CDN can provide the UGC video for the other users. Thus, the UGC video uploaded by the user can be regarded as the UGC video to be distributed. The mode for acquiring the UGC video to be distributed by the server is as follows: and the user uploads the UGC video to be distributed to the server on the terminal equipment through the network.
For a UGC video, the UGC video can be described by some video tags. The video tags of a UGC video can be tags that describe the UGC video from a variety of different angles. For example, for the UGC video to be distributed, from the perspective of the geographic area to which the user uploading the UGC video to be distributed belongs, the first video tag of the UGC video to be distributed includes: qinghai province; from the perspective of the category of the UGC video to be distributed, the first video tag of the UGC video to be distributed comprises: laugh, news, music, etc.
Based on this, when the UGC video to be distributed is obtained, the first video tag of the UGC video to be distributed can be determined, so that how to distribute the UGC video to be distributed can be determined in a manner of comparing the video tags in the subsequent steps.
In this embodiment, the first video tag of the UGC video to be distributed is determined, and may be implemented in the following first manner or second manner, for example.
The first implementation mode comprises the following steps: and acquiring a first video tag set by a first user for the UGC video to be distributed, wherein the first user is a user uploading the UGC video to be distributed.
In a first implementation manner, when the first user uploads the to-be-distributed UGC video, the first user may set a first video tag for the to-be-distributed UGC video. Because the first user authors the UGC video to be distributed, the first user knows the related information of the UGC video to be distributed. Then, the first video tag set by the first user can generally describe the UGC video to be distributed more accurately.
Specifically, after receiving the UGC video to be distributed uploaded by the first user, the server may analyze the UGC video to be distributed, so as to obtain and determine the first video tag of the UGC video to be distributed.
The second implementation mode comprises the following steps: and analyzing the video information of the UGC video to be distributed to obtain a first video tag of the UGC video to be distributed.
In a second implementation manner, after receiving the UGC video to be distributed uploaded by the first user, the server may analyze video information of the UGC video to be distributed, and obtain a first video tag of the UGC video to be distributed.
Illustratively, the server may analyze the geographic region described by the first user to determine the first video tag. The server can also analyze the name of the UGC video to be distributed, extract keywords and determine the first video tag according to the keywords. Furthermore, the server can analyze video pictures, audio and the like of UGC video to be distributed in a machine learning mode to determine the first video tag.
In the first or second manner, the number of the first video tags of the UGC video to be distributed may be one or multiple. The number of the first video tags is not limited in the embodiment of the present invention.
S202, aiming at each Internet data center IDC node in the CDN, a second video label of a reference video corresponding to the IDC node is determined.
Wherein, the reference video corresponding to the IDC node is as follows: a plurality of UGC videos accessed by users within an area served by the IDC node.
In the prior art, after a user uploads a UGC video, a server only distributes the UGC video uploaded by the user to a global storage node in a distribution tree in a CDN. When a user in an area served by a certain IDC node in the distribution tree needs to access a certain UGC video, the user can only return to the source from the IDC node along the distribution tree, and finally the UGC video is provided for the user by the global storage node. Obviously, such a distribution causes a large delay in accessing UGC video by the user.
For the above technical problem, in this embodiment, for each IDC node in the CDN, a second video tag of a reference video corresponding to the IDC node may be determined, so that the first video tag of the to-be-distributed UGC video and the second video tag of the reference video corresponding to the IDC node may be further compared to determine whether to distribute the to-be-distributed video to the IDC node.
In this embodiment, determining the second video tag of the reference video corresponding to the IDC node may be implemented by the following steps:
step one, obtaining an access log in the IDC node, wherein the access log records: information of each UGC video accessed by a user in an area served by the IDC node;
determining video tags of all UGC videos recorded by the access log;
and step three, selecting a second video tag of the reference video corresponding to the IDC node from the determined video tags according to a preset tag selection mode.
In order to determine the second video tag of the reference video corresponding to the IDC node, an access log in the IDC node may be obtained first. The above information recorded in the access log may be: a plurality of UGC videos accessed by users within an area served by the IDC node over a period of time. Specifically, in this embodiment, the period of time may be the last day, the last week, or the last month. It will be appreciated that the type of UGC video viewed by a user may change over time, and thus, based on the UGC videos accessed by users in the area served by the IDC node over the last period of time, the user's recent video preferences may be reflected.
The access log may be stored in the server so that the server may obtain the access log locally. The access log may also be stored in the IDC node, and the server may issue a request to the IDC node to obtain the access log. Of course, the access log may also be stored in other devices, and the server may send a request to the other devices to obtain the access log.
In practical application, when receiving the UGC video uploaded by the second user, the server may refer to the first implementation manner or the second implementation manner, obtain or analyze a video tag of the UGC video uploaded by the second user, and store the obtained or analyzed video tag locally. In this way, when the second video tag of the reference video corresponding to the IDC node needs to be determined, after the access log in the IDC node is acquired, the video tag of each UGC video recorded by the access log can be directly extracted from the local.
That is, the server may determine the video tags of the UGC videos uploaded by the second user in advance, so that, when necessary, the video tags of each UGC video recorded by the access log may be directly extracted therefrom.
After the video tags of each UGC video recorded by the access log are determined, a second video tag of the reference video corresponding to the IDC node can be selected from the determined video tags according to a preset tag selection mode.
Optionally, in an implementation manner, the predetermined tag selection manner is: and sequencing the determined video tags according to the occurrence times, and further determining the video tags with the preset number as second video tags of the reference video corresponding to the IDC node.
It can be understood that, in the determined video tags, if the number of occurrences of a video tag is more, the more the UGC video recorded in the access log is, the more videos having the tag are. Thus, determining the first preset number of video tags as the second video tag of the reference video corresponding to the IDC node means: the reference video corresponding to the IDC node can be more accurately described by the second video tag.
Optionally, in another implementation manner, the predetermined tag selection manner is: and judging the occurrence frequency of each determined video tag, judging whether the occurrence frequency is greater than a threshold value, and if so, determining the video tag as a second video tag of the reference video corresponding to the IDC node.
Of course, there may be a plurality of predetermined label selection manners, and the present invention is not limited thereto.
S203, determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag, if so, executing the step S204, and if not, executing the step S205.
After the first video tag of the UGC video to be distributed and the second video tag of the reference video corresponding to the IDC node are determined, whether the UGC video accessed by the user in the area served by the IDC node is similar to the UGC video to be distributed or not can be determined by utilizing the first video tag and the second video tag, and therefore whether the UGC video to be distributed is distributed to the IDC node or not is determined according to the judgment result.
If the reference video corresponding to one IDC node is similar to the UGC video to be distributed, the possibility that a user in the area served by the IDC node requests to access the UGC video to be distributed is high. Then, the next operation can be executed to distribute the UGC video to be distributed to the IDC node. Therefore, when a user in the area served by the IDC node needs to access the UGC video to be distributed, the IDC node can directly provide the UGC video to be distributed for the user. Therefore, the user obtains UGC video to be distributed with less delay, and the user experience is better.
If the reference video corresponding to one IDC node does not have similarity with the UGC video to be distributed, the possibility that a user in the area served by the IDC node requests to access the UGC video to be distributed is low. Then, the UGC video to be distributed may not be distributed to the IDC node, and the process is directly ended.
For clarity of layout, the following detailed description is provided: and determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by utilizing the first video tag and the second video tag.
And S204, distributing the UGC video to be distributed to the IDC node.
In this embodiment, the manner of distributing the UGC video to be distributed to the IDC node may be: firstly, UGC video to be distributed is distributed to a global storage node in the CDN; then, from the global storage node, UGC video to be distributed is distributed to the IDC node layer by layer.
Exemplarily, assuming that the IDC node is a K node in fig. 1, a manner of distributing the UGC video to be distributed to the K node is as follows: distributing UGC videos to be distributed to a global storage node A; then, UGC video to be distributed is distributed to a node B of the next layer from the global storage node A, and then is distributed to a node E of the next layer from the node B; and finally, distributed from the node E to the node K of the next layer. In this way, the distribution of the UGC video to be distributed to the node K in the CDN is completed. It should be noted that, if the reference video corresponding to the node B and the node E respectively has similarity with the UGC video to be distributed, the UGC video to be distributed is also stored in the node B and the node E.
S205 ends the flow.
According to the scheme provided by the embodiment of the invention, the UGC video to be distributed is only distributed to the IDC nodes (referred to as distribution nodes for short) of the CDN, wherein the corresponding reference video and the UGC video to be distributed have similarity, so that excessive distribution pressure cannot be brought to the CDN. Moreover, because the reference video corresponding to the distribution node has similarity with the UGC video to be distributed, the possibility that the user in the area served by the distribution node accesses the UGC video to be distributed is high. Then, the UGC video to be distributed is distributed to the distribution node, when the user in the area served by the distribution node accesses the UGC video to be distributed, the distribution node directly provides the UGC video to be distributed to the user, and therefore, compared with the method that the UGC video to be distributed is provided by returning the source to the global storage node layer by layer along the distribution tree, the delay of accessing the UGC video to be distributed by the user can be reduced. Therefore, by the scheme, the overall delay of the user for accessing the UGC video can be reduced on the premise of not bringing excessive distribution pressure to the CDN.
In a specific application, the determining manner in step 203, by using the first video tag and the second video tag, to determine whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity may be various, and two determining manners are given as examples below.
The first determination method: determining whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag, and realizing the following steps:
comparing each first video tag with each second video tag to determine a first number of tags with the same tag content;
and secondly, calculating a ratio of the first number to a second number of target tags, wherein the target tags are the first video tags or the second video tags, and if the ratio is greater than a preset ratio, judging that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
In the first determination manner, the number of the first video tags is set to be the same as the number of the second video tags. Then, the same number of first video tags and second video tags may be compared, and then, according to the comparison result, it is determined whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity.
The number of the first video tags and the number of the second video tags may be set as desired, such as 5 each. The above alignment specifically means: and comparing the label content of each first video label with each second video label. Illustratively, the first video tag is: a, B, C, D, E, the second video tag is: a, C, D, F, G. Then, the first number of tags with the same tag content is: 3, specifically: a, C and D.
After the first number is determined, further, a ratio of the first number to the second number of the target tags, that is, a ratio of the first number to the second number of the first video tags or the second video tags, may be calculated, so as to determine whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity according to the ratio. In the above example, if the first number is 3 and the second number is 5, then the ratio is: 0.6.
after calculating the ratio of the first number to the second number of target tags, the ratio may be compared to a predetermined ratio. If the calculated ratio is larger than the preset ratio, the following conditions are indicated: the similarity between the first video tag used for describing the UGC video to be distributed and the second video tag used for describing the reference video corresponding to the IDC node is high. Then it can be decided that: and the reference video corresponding to the IDC node has similarity with the UGC video to be distributed. The preset ratio may be set based on experience or demand. For example, the preset ratio is set to 0.5. Then, in the above example, the ratio of the first number to the second number of target tags is 0.6, which is greater than the preset ratio. Then, it can be determined that the reference video corresponding to the IDC node has similarity to the UGC video to be distributed.
The second determination method is as follows: determining whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag, and realizing the following steps:
generating a first label vector of a UGC video to be distributed by using the label vector of a first video label;
generating a second label vector of the reference video corresponding to the IDC node by using the label vector of the second video label;
and step three, calculating cosine distance values of the first tag vector and the second tag vector, and if the cosine distance values are larger than a preset distance value, judging that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
In a second determination manner, a first tag vector of the UGC video to be distributed may be generated by using a tag vector of a first video tag, and a second tag vector of the reference video corresponding to the IDC node may be generated by using a tag vector of a second video tag. Further, cosine distance values of the first label vector and the second label vector can be calculated, so that whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity or not can be determined according to the calculation result.
It is understood that the representations of the first video tag and the second video tag may be words. Then, for convenience of comparison, the first video tag and the second video tag may be converted, and the first video tag and the second video tag in the lexical form are converted into the lexical form of the shape tag of the word vector and converted into the vector form, so as to obtain a tag vector of the first video tag and a tag vector of the second video tag. For example, translation may be by word2vec algorithm. The role of the word2vec algorithm is to convert words in natural language into dense vectors that can be understood by a computer. Specifically, the length of the tag vector may be set in advance at the time of conversion. For example, the length of the tag vector is set to 128 dimensions. Note that, in this embodiment, the lengths of the tag vectors of any one of the first video tag and the second video tag are the same.
In the second determination manner, the number of the first video tags and the number of the second video tags may be one or more. It is not limited whether the number of the first video tags is the same as the number of the second video tags. Namely: the number of the first video tags and the number of the second video tags can be the same or different.
When the number of the first video tags is one, the first tag vector is the tag vector of the first video tag. When the number of the first video tags is multiple, the first tag vector is obtained by integrating the tag vectors of the multiple first video tags. Similarly, when the number of the second video tags is one, the second tag vector is the tag vector of the second video tag. When the number of the second video tags is multiple, the second tag vector is obtained by integrating the tag vectors of the multiple second video tags.
Illustratively, when the number of the first video tags is multiple, the tag vectors of the multiple first video tags may be integrated in a first mode or a second mode to obtain the first tag vector. In the first method, a label vector of each label in a plurality of first video labels may be generated first, then a weight set for each label is multiplied by the label vector of the label to obtain a label vector component corresponding to each label, and finally elements with the same dimension in each label vector component are added to obtain a first label vector. For example, there are 2 first video tags, respectively: tag 1 and tag 2, where the tag vector of tag 1 is (1,2,3), the tag vector of tag 2 is (1,1,2), the weight of the tag vector of tag 1 is 0.4, and the weight of the tag vector of tag 2 is 0.6, and in this case, the tag vector component corresponding to tag 1 is (0.4,0.8,1.2), and the tag vector component corresponding to tag 2 is (0.6,0.6,1.2), and the first tag vector is (1,1.4,2.4) by adding the two.
In the second mode, a tag vector of each tag in the plurality of first video tags may be generated first, and then the tag vectors of the tags are averaged, that is, elements with the same dimension in the tag vectors are averaged to obtain the first tag vector. For example, there are 2 first video tags, respectively: and the label vectors of the label 3 are (2,3,4), the label vectors of the label 4 are (3,5,2), and the average of the two is obtained to obtain a second label vector of (2.5,4, 3).
For example, when the number of the second video tags is multiple, the tag vectors of the multiple second video tags may be integrated in the first or second manner to obtain the second tag vector, and the specific integration manner refers to the integration process of the tag vector related to the first video tag, which is not described herein again.
For example, in the first mode, specifically, when the weight is set for each tag, for a plurality of second video tags, the weight may be set according to the number of occurrences of each second video tag, and a greater weight may be set when one second video tag occurs more frequently, whereas a lesser weight may be set when the number of occurrences is less frequently. For a plurality of first video tags, the popularity statistics of the uploaded UGC video with the first video tags can be analyzed, if the popularity of the uploaded UGC video with a certain first video tag is high, a larger weight can be set, otherwise, the popularity is low, a smaller weight can be set.
After the first tag vector and the second tag vector are generated, cosine distance values of the first tag vector and the second tag vector may be calculated in a313 to determine a degree of similarity between the first tag vector and the second tag vector by a magnitude of the cosine distance values. Specifically, the range of the cosine distance value is [ -1,1 ]. When the cosine distance value is-1, the following is expressed: the first tag vector and the second tag vector are completely different; when the cosine distance value is 0, it represents that: the first tag vector and the second tag vector are not related to each other; when the cosine distance value is 1, it represents that: the first tag vector is identical to the second tag vector.
After the cosine distance value of the first tag vector and the second tag vector is calculated, the cosine distance value may be compared with a preset distance ratio. If the cosine distance value obtained by calculation is larger than the preset distance value, the following steps are shown: the similarity between the first video tag used for describing the UGC video to be distributed and the second video tag used for describing the reference video corresponding to the IDC node is high. Then it can be decided that: and the reference video corresponding to the IDC node has similarity with the UGC video to be distributed. The preset distance value can be set according to experience or requirements. For example, the preset distance value is set to 0.5. Then, if the calculated cosine distance value is 0.6, the cosine distance value is greater than the preset distance value. Then, it can be determined that the reference video corresponding to the IDC node has similarity to the UGC video to be distributed.
On the basis of the embodiment shown in fig. 2, another UGC video distribution method is further provided in the embodiment of the present invention, and as shown in fig. 3, the method may include the following steps:
s301, obtaining the UGC video to be distributed, and determining a first video tag of the UGC video to be distributed.
In this embodiment, S301 may be completely the same as S201 in the embodiment shown in fig. 2, and is not described here again.
S302, determining whether the currently available network bandwidth of the CDN is greater than a predetermined bandwidth value, if so, executing step S303, and if not, executing step S307.
It can be understood that, for the CDN, the occupation situation of the bandwidth resource of the CDN may be different in different time periods. For example, at 7 to 9 pm, the number of times that the user requests to access the UGC video is large, and thus, the bandwidth resource of the CDN is occupied more, that is, the network bandwidth currently available to the CDN is small. Between 1 point and 6 points at night, the number of times that the user requests to access the UGC video is small, and thus, the bandwidth resource occupation of the CDN is small, that is, the network bandwidth currently available to the CDN is large.
Based on this, after the UGC video to be distributed is acquired, whether the network bandwidth currently available to the CDN is greater than a predetermined bandwidth value may be further determined. That is, it is determined whether the currently available bandwidth resources of the CDN are sufficient. And then, executing different distribution strategies on the UGC video to be distributed according to the judgment result. That is to say, the distribution policy of the UGC video to be distributed may be dynamically adjusted according to the current available bandwidth resource of the CDN.
If the network bandwidth currently available by the CDN is greater than the predetermined bandwidth value, it indicates that: the current available bandwidth resources of the CDN are sufficient, and then, for the UGC video to be distributed, a larger distribution range may be provided correspondingly. Specifically, in this embodiment, if the currently available bandwidth resources of the CDN are sufficient, step S303 may be executed.
On the contrary, if the network bandwidth currently available to the CDN is not greater than the predetermined bandwidth value, it indicates that: if the current available bandwidth resources of the CDN are insufficient, then a smaller distribution range may be provided for the UGC video to be distributed. Specifically, in this embodiment, if the currently available bandwidth resources of the CDN are not sufficient, step S307 may be executed.
S303, aiming at each Internet data center IDC node in the CDN, a second video label of the reference video corresponding to the IDC node is determined.
S304, determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag, if so, executing the step S305, and if not, executing the step S306.
And S305, distributing the UGC video to be distributed to the IDC node.
S306, the flow ends.
In this embodiment, S303 to S306 may be respectively identical to S202 to S205 in the embodiment shown in fig. 2, and are not described herein again.
And S307, distributing the UGC video to be distributed to the IDC node to which the user uploading the UGC video to be distributed belongs.
It can be understood that UGC videos that users in the same area like to watch tend to have certain similarities. For example, users in the same Qinghai province often like to watch UGC videos of yak breeding. Moreover, for a user, the UGC video uploaded by the user has a certain correlation with the UGC video which the user likes to watch. For example, a user prefers to watch UGC video of sports category, and the user will also upload UGC video of sports category.
Based on this, in this embodiment, if the network bandwidth currently available to the CDN is not greater than the predetermined bandwidth value, the to-be-distributed UGC video may be distributed only to the IDC node to which the user uploading the to-be-distributed UGC video belongs. In this way, for other users in the IDC node to which the user uploading the UGC video to be distributed belongs, when the other users request to access the UGC video to be distributed, the delay of obtaining the UGC video to be distributed is small.
According to the scheme provided by the embodiment of the invention, the distribution strategy of the UGC video to be distributed can be dynamically adjusted according to the current network bandwidth condition of the CDN. When the current network bandwidth of the CDN is sufficient, since only the reference video corresponding to the UGC video to be delivered is delivered to the IDC node (referred to as a delivery node for short) in the CDN, where the reference video and the UGC video to be delivered have similarity, excessive delivery pressure is not brought to the CDN. In addition, because the reference video corresponding to the distribution node has similarity with the UGC video to be distributed, the possibility that the user in the area served by the distribution node accesses the UGC video to be distributed is high. Then, the UGC video to be distributed is distributed to the distribution node, when the user in the area served by the distribution node accesses the UGC video to be distributed, the distribution node directly provides the UGC video to be distributed to the user, and therefore, compared with the method that the UGC video to be distributed is provided by returning the source to the global storage node layer by layer along the distribution tree, the delay of accessing the UGC video to be distributed by the user can be reduced.
When the network bandwidth currently available to the CDN is insufficient, since the to-be-distributed UGC video is only distributed to the IDC node to which the user who uploaded the to-be-distributed UGC video belongs, excessive distribution pressure is not brought to the CDN. In addition, because the possibility that other users of the IDC node to which the user uploading the UGC video to be distributed belongs access the UGC video to be distributed is high, when the other users request to access the UGC video to be distributed, the delay of the user accessing the UGC video to be distributed can be reduced. Therefore, by the scheme, the overall delay of the user for accessing the UGC video can be reduced on the premise of not bringing excessive distribution pressure to the CDN.
An embodiment of the present invention further provides a distribution apparatus for a UGC video, as shown in fig. 4, the apparatus includes:
an obtaining module 401, configured to obtain a UGC video to be distributed, and determine a first video tag of the UGC video to be distributed;
a determining module 402, configured to determine, for each internet data center IDC node in the content delivery network CDN, a second video tag of a reference video corresponding to the IDC node;
a first distributing module 403, configured to determine, by using the first video tag and the second video tag, whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity, and if so, distribute the UGC video to be distributed to the IDC node, where the reference video corresponding to the IDC node is: a plurality of UGC videos accessed by users within an area served by the IDC node.
According to the scheme provided by the embodiment of the invention, the UGC video to be distributed is only distributed to the IDC nodes (referred to as distribution nodes for short) of the CDN, wherein the corresponding reference video and the UGC video to be distributed have similarity, so that excessive distribution pressure cannot be brought to the CDN. Moreover, because the reference video corresponding to the distribution node has similarity with the UGC video to be distributed, the possibility that the user in the area served by the distribution node accesses the UGC video to be distributed is high. Then, the UGC video to be distributed is distributed to the distribution node, when the user in the area served by the distribution node accesses the UGC video to be distributed, the distribution node directly provides the UGC video to be distributed to the user, and therefore, compared with the method that the UGC video to be distributed is provided by returning the source to the global storage node layer by layer along the distribution tree, the delay of accessing the UGC video to be distributed by the user can be reduced. Therefore, by the scheme, the overall delay of the user for accessing the UGC video can be reduced on the premise of not bringing excessive distribution pressure to the CDN.
Optionally, the obtaining module 401 includes:
the first obtaining unit is used for obtaining a first video tag set by a first user for the UGC video to be distributed, and the first user is a user uploading the UGC video to be distributed; or,
and the analysis subunit is used for analyzing the video information of the UGC video to be distributed to obtain a first video tag of the UGC video to be distributed.
Optionally, the determining module 402 includes:
a second obtaining unit, configured to obtain an access log in the IDC node, where: information of each UGC video accessed by a user in an area served by the IDC node;
a first determining unit, configured to determine a video tag of each UGC video recorded by the access log;
and the selecting unit is used for selecting a second video tag of the reference video corresponding to the IDC node from the determined video tags according to a preset tag selecting mode.
Optionally, the number of the first video tags is the same as the number of the second video tags;
the first distribution module 403 includes:
the second determining unit is used for comparing each first video label with each second video label and determining a first number of labels with the same label content;
and the first calculating unit is used for calculating a ratio of the first number to a second number of target tags, wherein the target tags are the first video tags or the second video tags, and if the ratio is greater than a preset ratio, it is determined that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
Optionally, the first distribution module 403 includes:
the first generation unit is used for generating a first label vector of the UGC video to be distributed by utilizing the label vector of the first video label;
the second generation unit is used for generating a second label vector of the reference video corresponding to the IDC node by using the label vector of the second video label;
and the second calculating unit is used for calculating a cosine distance value between the first label vector and the second label vector, and if the cosine distance value is greater than a preset distance value, judging that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
Optionally, the apparatus further comprises:
a determining module, configured to determine whether a currently available network bandwidth of the CDN is greater than a predetermined bandwidth value before the first distributing module 403 determines, by using the first video tag and the second video tag, whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity to each other; if so, the first distribution module 403 is triggered.
Optionally, the apparatus further comprises:
and the second distribution module is configured to distribute the UGC video to be distributed to the IDC node to which the user who uploads the UGC video to be distributed belongs, when the judgment module judges that the network bandwidth currently available to the CDN is not greater than the predetermined bandwidth value.
The embodiment of the present invention further provides a server, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to implement the UGC video distribution method according to any one of the embodiments described above when executing the program stored in the memory 503, so as to obtain the same technical effect.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In still another embodiment provided by the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the UGC video distribution method of any one of the above embodiments to obtain the same technical effect.
In yet another embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the UGC video distribution method of any one of the above embodiments to achieve the same technical effect.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device/server/storage medium/computer program product embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A method for distributing UGC video, comprising:
obtaining a UGC video to be distributed, and determining a first video tag of the UGC video to be distributed;
determining a second video label of a reference video corresponding to each Internet Data Center (IDC) node in the CDN for content delivery; wherein, the reference video corresponding to the IDC node is as follows: a plurality of UGC videos accessed by users in an area served by the IDC node;
and determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity or not by utilizing the first video tag and the second video tag, and if so, distributing the UGC video to be distributed to the IDC node.
2. The method as claimed in claim 1, wherein the determining the first video tag of the UGC video to be distributed comprises:
acquiring a first video tag set by a first user for the UGC video to be distributed, wherein the first user is a user uploading the UGC video to be distributed; or,
and analyzing the video information of the UGC video to be distributed to obtain a first video tag of the UGC video to be distributed.
3. The method of claim 1, wherein determining the second video label of the reference video corresponding to the IDC node comprises:
obtaining an access log in the IDC node, wherein the access log records: information of each UGC video accessed by a user in an area served by the IDC node;
determining video tags of all UGC videos recorded by the access log;
and selecting a second video tag of the reference video corresponding to the IDC node from the determined video tags according to a preset tag selection mode.
4. The method of claim 1, wherein the number of the first video tags is the same as the number of the second video tags;
the determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by using the first video tag and the second video tag comprises:
comparing each first video label with each second video label to determine a first number of labels with the same label content;
and calculating a ratio of the first number to a second number of target tags, wherein the target tags are the first video tags or the second video tags, and if the ratio is greater than a preset ratio, determining that the reference video corresponding to the IDC node has similarity to the UGC video to be distributed.
5. The method according to claim 1, wherein the determining whether the reference video corresponding to the IDC node has similarity to the UGC video to be distributed by using the first video tag and the second video tag comprises:
generating a first label vector of the UGC video to be distributed by utilizing the label vector of the first video label;
generating a second label vector of the reference video corresponding to the IDC node by using the label vector of the second video label;
and calculating cosine distance values of the first tag vector and the second tag vector, and if the cosine distance values are larger than preset distance values, judging that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
6. The method according to any of claims 1-5, wherein before determining whether the reference video corresponding to the IDC node has similarity to the UGC video to be distributed by using the first video tag and the second video tag, the method further comprises:
judging whether the currently available network bandwidth of the CDN is larger than a preset bandwidth value;
and if so, executing the step of determining whether the reference video corresponding to the IDC node and the UGC video to be distributed have similarity by utilizing the first video tag and the second video tag.
7. The method of claim 6, further comprising:
and when the network bandwidth currently available for the CDN is judged to be not larger than the preset bandwidth value, the UGC video to be distributed is distributed to the IDC node to which the user who uploads the UGC video to be distributed belongs.
8. An apparatus for distributing UGC video, comprising:
the obtaining module is used for obtaining the UGC video to be distributed and determining a first video tag of the UGC video to be distributed;
the determining module is used for determining a second video tag of a reference video corresponding to each Internet Data Center (IDC) node in the CDN;
a first distribution module, configured to determine, by using the first video tag and the second video tag, whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity, and if so, distribute the UGC video to be distributed to the IDC node, where the reference video corresponding to the IDC node is: a plurality of UGC videos accessed by users within an area served by the IDC node.
9. The apparatus of claim 8, wherein the obtaining module comprises:
the first obtaining unit is used for obtaining a first video tag set by a first user for the UGC video to be distributed, and the first user is a user uploading the UGC video to be distributed; or,
and the analysis unit is used for analyzing the video information of the UGC video to be distributed to obtain a first video tag of the UGC video to be distributed.
10. The apparatus of claim 8, wherein the determining module comprises:
a second obtaining unit, configured to obtain an access log in the IDC node, where: information of each UGC video accessed by a user in an area served by the IDC node;
a first determining unit, configured to determine a video tag of each UGC video recorded by the access log;
and the selecting unit is used for selecting a second video tag of the reference video corresponding to the IDC node from the determined video tags according to a preset tag selecting mode.
11. The apparatus of claim 8, wherein the number of the first video tags is the same as the number of the second video tags;
the first distribution module includes:
the second determining unit is used for comparing each first video label with each second video label and determining a first number of labels with the same label content;
and the first calculating unit is used for calculating a ratio of the first number to a second number of target tags, wherein the target tags are the first video tags or the second video tags, and if the ratio is greater than a preset ratio, it is determined that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
12. The apparatus of claim 8, wherein the first distribution module comprises:
the first generation unit is used for generating a first label vector of the UGC video to be distributed by utilizing the label vector of the first video label;
the second generation unit is used for generating a second label vector of the reference video corresponding to the IDC node by using the label vector of the second video label;
and the second calculating unit is used for calculating a cosine distance value between the first label vector and the second label vector, and if the cosine distance value is greater than a preset distance value, judging that the reference video corresponding to the IDC node has similarity with the UGC video to be distributed.
13. The apparatus of any one of claims 8-12, further comprising:
a determining module, configured to determine whether a currently available network bandwidth of the CDN is greater than a predetermined bandwidth value before the first distributing module determines, by using the first video tag and the second video tag, whether a reference video corresponding to the IDC node and the UGC video to be distributed have similarity to each other; if yes, triggering the first distribution module.
14. The apparatus of claim 13, further comprising:
and the second distribution module is configured to distribute the UGC video to be distributed to the IDC node to which the user who uploads the UGC video to be distributed belongs, when the judgment module judges that the network bandwidth currently available to the CDN is not greater than the predetermined bandwidth value.
15. A server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-7.
CN201910227338.3A 2019-03-25 2019-03-25 UGC video distribution method and device and server Active CN109982158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910227338.3A CN109982158B (en) 2019-03-25 2019-03-25 UGC video distribution method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910227338.3A CN109982158B (en) 2019-03-25 2019-03-25 UGC video distribution method and device and server

Publications (2)

Publication Number Publication Date
CN109982158A true CN109982158A (en) 2019-07-05
CN109982158B CN109982158B (en) 2022-04-22

Family

ID=67080418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910227338.3A Active CN109982158B (en) 2019-03-25 2019-03-25 UGC video distribution method and device and server

Country Status (1)

Country Link
CN (1) CN109982158B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460879A (en) * 2019-08-28 2019-11-15 北京奇艺世纪科技有限公司 A kind of video request dispatching method, device, server and storage medium
CN110674349A (en) * 2019-09-27 2020-01-10 北京字节跳动网络技术有限公司 Video POI (Point of interest) identification method and device and electronic equipment
CN114024954A (en) * 2021-10-27 2022-02-08 北京达佳互联信息技术有限公司 Information transmission method, device and storage medium

Citations (3)

* 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
CN108174235A (en) * 2018-01-17 2018-06-15 北京奇艺世纪科技有限公司 A kind of video loading method and device
CN108282668A (en) * 2018-01-26 2018-07-13 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of video

Patent Citations (3)

* 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
CN108174235A (en) * 2018-01-17 2018-06-15 北京奇艺世纪科技有限公司 A kind of video loading method and device
CN108282668A (en) * 2018-01-26 2018-07-13 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of video

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460879A (en) * 2019-08-28 2019-11-15 北京奇艺世纪科技有限公司 A kind of video request dispatching method, device, server and storage medium
CN110674349A (en) * 2019-09-27 2020-01-10 北京字节跳动网络技术有限公司 Video POI (Point of interest) identification method and device and electronic equipment
CN110674349B (en) * 2019-09-27 2023-03-14 北京字节跳动网络技术有限公司 Video POI (Point of interest) identification method and device and electronic equipment
CN114024954A (en) * 2021-10-27 2022-02-08 北京达佳互联信息技术有限公司 Information transmission method, device and storage medium
CN114024954B (en) * 2021-10-27 2024-02-06 北京达佳互联信息技术有限公司 Information transmission method, device, server and storage medium

Also Published As

Publication number Publication date
CN109982158B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
JP6905098B2 (en) Sentence extraction method and system
WO2018192496A1 (en) Trend information generation method and device, storage medium and electronic device
CN109982158B (en) UGC video distribution method and device and server
WO2017118426A1 (en) Method and device for estimating user influence on social platform, and computer storage medium
US10681099B2 (en) Determining a referral source by a mobile application or operating system
CN110290199B (en) Content pushing method, device and equipment
US20120116876A1 (en) Apparatus and methods for providing targeted advertising from user behavior
US11423096B2 (en) Method and apparatus for outputting information
CN109862100B (en) Method and device for pushing information
CN108334516B (en) Information pushing method and device
CN113688310A (en) Content recommendation method, device, equipment and storage medium
CN112507218A (en) Business object recommendation method and device, electronic equipment and storage medium
CN110647634A (en) Method and device for searching media resource, storage medium and electronic device
CN111966842A (en) Multimedia file pushing method, device and equipment
CN114003496B (en) Data processing method, device, system, storage medium and program product
KR101931859B1 (en) Method for selecting headword of electronic document, method for providing electronic document, and computing system performing the same
CN110147481B (en) Media content pushing method and device and storage medium
CN110750708A (en) Keyword recommendation method and device and electronic equipment
CN110708361B (en) System, method and device for determining grade of digital content publishing user and server
CN107483595B (en) Information pushing method and device
WO2018205642A1 (en) Video revenue calculation modeling device and method, video recommendation device and method, server, and storage medium
CN112491939A (en) Multimedia resource scheduling method and system
CN110691143B (en) File pushing method and device, electronic equipment and medium
CN111026913B (en) Video distribution method and device, electronic equipment and storage medium
CN113641909A (en) Information pushing method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
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