CN108282668B - Video acquisition method and system - Google Patents

Video acquisition method and system Download PDF

Info

Publication number
CN108282668B
CN108282668B CN201810076685.6A CN201810076685A CN108282668B CN 108282668 B CN108282668 B CN 108282668B CN 201810076685 A CN201810076685 A CN 201810076685A CN 108282668 B CN108282668 B CN 108282668B
Authority
CN
China
Prior art keywords
video
stored
target
tags
acquisition request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810076685.6A
Other languages
Chinese (zh)
Other versions
CN108282668A (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 CN201810076685.6A priority Critical patent/CN108282668B/en
Publication of CN108282668A publication Critical patent/CN108282668A/en
Application granted granted Critical
Publication of CN108282668B publication Critical patent/CN108282668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations

Abstract

The invention provides a video acquisition method and a video acquisition system, wherein different types of video tags and videos to be stored corresponding to the video tags are stored in a plurality of different Internet Data Centers (IDCs), each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags, namely, different IDCs store different contents. Compare in prior art every IDC mode of the same video of storage, when with prior art storage the same quantity video, can practice thrift the memory space to the video of every IDC storage is different, and then compares in prior art and can store the different video of a greater quantity, can satisfy the user and watch the requirement of more short video, and then can reduce the volume of returning the source.

Description

Video acquisition method and system
Technical Field
The invention relates to the technical field of video storage and scheduling, in particular to a video acquisition method and a video acquisition system.
Background
A video content delivery network CDN is a set of systems capable of providing video streaming services, and generally includes storage, synchronization, source returning, scheduling, and other systems. The storage comprises global storage and edge node storage, wherein the edge nodes are Internet Data Centers (IDCs), and the video content stored by each edge node is the same.
The edge node storage means that only the video file of the hot spot is stored when the edge node stores the video file. For long videos, the hot long videos are few and distributed intensively, and when a user watches the videos, the user mainly visits the hot long videos, so that the hot long videos stored by the edge nodes can meet most requirements of the user.
However, for short videos, hot short videos are more and distributed more dispersedly, and hot short videos accessed by users are also more dispersedly. If the edge node only stores part of the hotspot short videos, when the user requests other non-stored hotspot short videos, the return source amount is large, and the load of the server is increased. If the storage space is enlarged, more hotspot short videos are stored, the source returning amount can be reduced, but the resource waste can be caused because the access amount of each hotspot short video is not high.
Disclosure of Invention
In view of this, the present invention provides a method and a system for acquiring a video, so as to solve the problem that when an edge node only stores a part of hot short videos, and a user requests other non-stored hot short videos, the amount of returned sources is large, which may increase the burden of a server. If the storage space is enlarged, more hotspot short videos are stored, the source returning amount can be reduced, but the problem of resource waste can be caused due to the fact that the access amount of each hotspot short video is not high.
In order to solve the technical problems, the invention adopts the following technical scheme:
a video acquisition method comprises the following steps:
the video memory stores different types of video labels and videos to be stored corresponding to the video labels into a plurality of different Internet data centers IDC, and sends generated position data to the scheduler; each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags; the different IDCs belong to the same scheduling area; the position data is used for representing each video label and the storage position information of a plurality of videos to be stored corresponding to each video label;
the dispatcher receives the position data and a video acquisition request sent by a mobile terminal, and determines a target IDC for storing a target video tag corresponding to the video acquisition request according to the video acquisition request and the position data;
the dispatcher sends the video acquisition request to a video server corresponding to the target IDC;
and the video server processes the video acquisition request.
Preferably, the storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC includes:
acquiring a video label of each video to be stored, a flow share proportion among different IDCs and user access flow of the video corresponding to each video label;
determining the flow proportion among various video labels according to the user access flow of the video corresponding to each video label;
storing different types of video tags and videos to be stored corresponding to the video tags to a plurality of different IDCs according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video tags of each video to be stored and the video tags;
wherein the video storage rules comprise: the difference value of the flow share ratio between any two IDCs and the flow ratio between videos corresponding to at least one video tag stored in the corresponding IDC is within a preset value.
Preferably, the video acquisition request carries a video tag parameter;
the scheduler determines a target IDC storing a target video tag corresponding to the video acquisition request according to the video acquisition request and the position data, and the method comprises the following steps:
the scheduler determines a target video label according to the video label parameter in the video acquisition request;
and the scheduler determines a target IDC for storing the target video label according to the position data.
Preferably, the video server processes the video acquisition request, including:
judging whether a target video tag corresponding to the video acquisition request is stored in the video server or not according to the video acquisition request;
when the target video label corresponding to the video acquisition request is judged to be stored in the video server, judging whether a target video corresponding to the video acquisition request is stored in the video server or not;
and when the target video is judged to be stored in the video server, sending the target video to the mobile terminal.
Preferably, after the video server determines that the target video is not stored in the video server, the method further includes:
the video server acquires the target video from a server comprising the target video;
the video server saves the target video;
and the video server sends the target video to the mobile terminal.
Preferably, before the video memory stores the video tags of different types and the videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC, the method further includes:
the video memory acquires each video to be stored and a label of each video to be stored;
the video memory randomly selects one label from the labels of each video to be stored as the video label of the corresponding video to be stored.
A video acquisition system comprises a video memory, a scheduler and a video server;
the video memory is used for storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different Internet data centers IDC and sending generated position data to the scheduler; each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags; the different IDCs belong to the same scheduling area; the position data is used for representing each video label and the storage position information of a plurality of videos to be stored corresponding to each video label;
the scheduler is used for receiving the position data and a video acquisition request sent by the mobile terminal, determining a target IDC (Internet data center) for storing a target video tag corresponding to the video acquisition request according to the video acquisition request and the position data, and sending the video acquisition request to a video server corresponding to the target IDC;
and the video server is used for processing the video acquisition request.
Preferably, when the video memory is used for storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC, the video memory is specifically used for:
acquiring a video label of each video to be stored, a flow share proportion among different IDCs and user access flow of the video corresponding to each video label;
determining the flow proportion among various video labels according to the user access flow of the video corresponding to each video label;
storing different types of video tags and videos to be stored corresponding to the video tags to a plurality of different IDCs according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video tags of each video to be stored and the video tags;
wherein the video storage rules comprise: the difference value of the flow share ratio between any two IDCs and the flow ratio between videos corresponding to at least one video tag stored in the corresponding IDC is within a preset value.
Preferably, the video acquisition request carries a video tag parameter;
correspondingly, when determining the target IDC storing the target video tag corresponding to the video acquisition request according to the video acquisition request and the position data, the scheduler is specifically configured to:
determining a target video tag according to the video tag parameter in the video acquisition request;
and determining a target IDC for storing the target video tag according to the position data.
Preferably, when the video server is configured to process the video acquisition request, the video server is specifically configured to:
judging whether a target video tag corresponding to the video acquisition request is stored in the video server or not according to the video acquisition request;
when the target video label corresponding to the video acquisition request is judged to be stored in the video server, judging whether a target video corresponding to the video acquisition request is stored in the video server or not;
and when the target video is judged to be stored in the video server, sending the target video to the mobile terminal.
Preferably, after the video server determines that the target video is not stored in the video server, the video server is further configured to:
acquiring the target video from a server comprising the target video;
saving the target video;
and sending the target video to the mobile terminal.
Preferably, before the video memory is used for storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC, the video memory is further used for:
acquiring each video to be stored and a label of each video to be stored;
and randomly selecting one label from the labels of each video to be stored as the video label of the corresponding video to be stored.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a video acquisition method and a video acquisition system, wherein different types of video tags and videos to be stored corresponding to the video tags are stored in a plurality of different Internet Data Centers (IDCs), each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags, namely, different IDCs store different contents. Compare in prior art every IDC mode of the same video of storage, when with prior art storage the same quantity video, can practice thrift the memory space to the video of every IDC storage is different, and then compares in prior art and can store the different video of a greater quantity, can satisfy the user and watch the requirement of more short video, and then can reduce the volume of returning the source.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for acquiring a video according to the present invention;
FIG. 2 is a flow chart of another method for acquiring video according to the present invention;
fig. 3 is a schematic structural diagram of a video acquisition system according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a video acquisition method, which can be applied to any video, but is preferably mainly applied to short videos.
The short video is an internet content transmission mode, and is generally a video transmission content transmitted on a new internet medium within 5 minutes.
Referring to fig. 1, the video acquisition method may include:
s11, the video memory stores different types of video labels and videos to be stored corresponding to the video labels into a plurality of different Internet data centers IDC, and sends generated position data to the scheduler;
each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags; the plurality of different IDCs belong to the same scheduling region. The video storage may be a content delivery network CDN server.
The position data is used for representing each video label and the storage position information of the video to be stored corresponding to each video label.
The video tags may be games, animations, movies, television shows, military, life, sports, and technology tags.
Optionally, on the basis of this embodiment, before step S11, the method further includes:
1) the video memory acquires each video to be stored and a label of each video to be stored;
2) the video memory randomly selects one label from the labels of each video to be stored as the video label of the corresponding video to be stored.
Specifically, each video to be stored may have at least one tag, and when there are multiple tags in the video to be stored, one tag may be selected from the multiple tags of the video as the video tag of the video, where, during selection, according to a certain selection rule, for example, a sequence may be performed on all different types of tags, one tag with a minimum or maximum serial number is selected from the multiple tags of the video as the video tag, and one tag may also be selected randomly from the multiple tags of the video as the video tag.
It should be noted that there is only one video tag per video to be stored.
In addition, there are various ways to determine the tag of each video to be stored, such as dividing according to the content of the video, dividing according to the characteristics of the uploader of the video, and the like.
In this embodiment, before video storage, the video tag of the video can be determined, and then the video can be stored according to the video tag.
S12, the dispatcher receives the position data and a video acquisition request sent by the mobile terminal, and determines a target IDC storing a target video label corresponding to the video acquisition request according to the video acquisition request and the position data;
wherein the video acquisition request is for requesting a video content. The mobile terminal is an electronic device of a user, and the mobile terminal can be a mobile phone, a tablet or a notebook and the like.
Optionally, on the basis of this embodiment, the video acquisition request carries a video tag parameter. The video tag parameter is data representing a video type of the video to be acquired. For example, if an http request is used, the video tag parameter core _ tag may be carried in a movie file or the like. I.e. in this example, a movie content is requested.
Correspondingly, the scheduler determines, according to the video acquisition request and the location data, a target IDC for storing a target video tag corresponding to the video acquisition request, including:
and the scheduler determines a target video label according to the video label parameter in the video acquisition request, and determines a target IDC for storing the target video label according to the position data.
Specifically, the video tag parameter can reflect the video type of the video, and then the target video tag can be determined according to the video type, wherein the target video tag is one of the video tags.
After the target video tag is determined, each video tag and the storage position information of the video to be stored corresponding to each video tag are stored in the position data, so that the storage position of the target video tag can be searched from the position data.
In this embodiment, a process of determining a target IDC by a scheduler is provided, so that which video server serves a user can be determined according to the method in this embodiment.
S13, the dispatcher sends the video acquisition request to a video server corresponding to the target IDC;
specifically, the scheduler sends the video acquisition request to the video server corresponding to the target IDC, so as to redirect the user request to the video server storing the target video.
And S14, the video server processes the video acquisition request.
Optionally, on the basis of this embodiment, step S14 may include:
1) judging whether a target video tag corresponding to the video acquisition request is stored in the video server or not according to the video acquisition request;
specifically, each IDC corresponds to a video server, and distributed video tags and videos to be stored corresponding to the video tags are stored in the video servers.
After receiving the video acquisition request, the video server can also analyze the video acquisition request to obtain a target video tag, wherein the process of analyzing the target video tag by the video server is similar to the process of analyzing the video tag by the scheduler.
2) When the target video label corresponding to the video acquisition request is judged to be stored in the video server, judging whether a target video corresponding to the video acquisition request is stored in the video server or not;
3) and when the target video is judged to be stored in the video server, processing the video acquisition request, namely sending the target video to the mobile terminal.
When the target video tag is judged to be stored in the local memory, the fact that the video corresponding to the target video tag is stored in the video server is explained, at the moment, whether the target video is stored or not is further judged, and when the fact that the target video is stored in the video server is judged, the target video corresponding to the target video tag is sent to the mobile terminal. Wherein, the target video is the video requested by the user.
It should be noted that, when the target video tag is not stored in the video server, it indicates that the user of the mobile terminal is an illegal user, and then the service is rejected.
Further, after the video server determines that the target video is not stored in the video server, the method further includes:
a) the video server acquires the target video from a server comprising the target video;
b) the video server saves the target video;
c) and the video server processes the video acquisition request, namely, the target video is sent to the mobile terminal.
Specifically, when the video server determines that the target video is not stored, a source return operation is performed, that is, the target video is downloaded to a local location from the server including the target video, and then the target video is sent to the mobile terminal. That is, the video server can directly provide the service to the user when the target video is stored therein, and can provide the service to the user after performing the source returning operation when the target video is not stored therein.
In this embodiment, different types of video tags and videos to be stored corresponding to the video tags are stored in a plurality of different internet data centers IDC, each IDC stores at least one type of video tag and a plurality of videos to be stored corresponding to the video tag, that is, different IDCs store different contents. Compare in prior art every IDC mode of the same video of storage, when with prior art storage the same quantity video, can practice thrift the memory space to the video of every IDC storage is different, and then compares in prior art and can store the different video of a greater quantity, can satisfy the user and watch the requirement of more short video, and then can reduce the volume of returning the source.
In addition, by the video acquisition method in the embodiment, the read-write times of the edge node disk can be reduced, and the service life of the storage disk is prolonged.
Optionally, on the basis of any one of the above embodiments of the video acquisition method, referring to fig. 2, the storing different types of video tags and videos to be stored corresponding to the video tags in a plurality of different internet data centers IDC includes:
s21, acquiring a video label of each video to be stored, the flow share proportion among different IDCs and the user access flow of the video corresponding to each video label;
specifically, the video tag of each video to be stored has been described in the above embodiments, and is not described herein again.
The traffic share between IDCs is proportionally limited, for example, if there are two IDCs in a certain scheduling region, i.e. U and V, respectively, the upper limit of the traffic share of U is 100G, the upper limit of the traffic share of V is 60G, then the traffic share ratio of U and V is 100:60, i.e. 10: 6.
the flow rate allocated to each IDC is preset, and the flow rate share of each IDC is obtained and then the flow rate share proportion among the IDCs is calculated.
Through server offline data, such as log data, user access traffic of videos corresponding to each video tag can be checked. Such as 25G for a user viewing a video tagged with a movie.
S22, determining the flow proportion among various video labels according to the user access flow of the video corresponding to each video label;
specifically, the flow ratio among various video tags can be calculated by obtaining the user access flow of the videos corresponding to the different types of video tags.
If the user access flow of the movie class is 25G, the user access flow of the entertainment class is 10G, the user access flow of the game class is 20G, and the user access flow of the animation class is 25G, then the movie: synthesizing: and (3) playing: the ratio of the access traffic of the user of the cartoon is 2.5:1:2: 2.5.
S23, storing different types of video labels and videos to be stored corresponding to the video labels to a plurality of different IDCs according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video labels of each video to be stored and a plurality of video labels;
wherein the video storage rules comprise: the difference value of the flow share ratio between any two IDCs and the flow ratio between videos corresponding to at least one video tag stored in the corresponding IDC is within a preset value.
Specifically, which videos are stored in which IDCs are determined according to the traffic ratio among the various video tags. The storage standard is to make the error between the flow share ratio between any two IDCs and the flow ratio between the videos corresponding to at least one video tag stored in the corresponding IDCs as small as possible.
In the above example, the ratio of the flow shares, e.g., U and V, is 100:60, movie: synthesizing: and (3) playing: and if the ratio of the access flow of the user of the animation is 2.5:1:2:2.5, storing videos of movies and animations in U, and storing videos of entertainment and games in V. The flow ratio of U to V is 5:3, the flow share ratio of U, V is 10: 6, no error.
It should be noted that, because video tags of short videos are numerous and IDCs are generally few, an allocation manner can be always found so that the user proportion of short videos stored in the IDCs is close to the traffic share proportion of the IDCs. If the user proportion of the short videos stored in any two IDCs is different from the traffic share proportion of the IDCs greatly, the video tags of the videos to be stored can be determined again, and therefore the storage position of each video to be stored can be determined again.
And after the storage position of each video to be stored is determined, issuing the corresponding video to the corresponding IDC through global storage.
In this embodiment, the storage location of each video to be stored is determined by the traffic share proportion between the IDCs and the traffic proportion between the video tag of each video to be stored and various video tags, and the like, so that it can be ensured that the access traffic of the video stored in each IDC conforms to the traffic share of the IDC.
Optionally, on the basis of the above embodiment of the video acquisition method, another embodiment of the present invention provides a video acquisition system, referring to fig. 3, including a video memory 101, a scheduler 102, and a video server 103;
the video memory 101 is configured to store different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC, and send generated position data to the scheduler; each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags; the different IDCs belong to the same scheduling area, and the different IDCs have different stored contents; the position data is used for representing each video label and the storage position information of a plurality of videos to be stored corresponding to each video label;
the scheduler 102 is configured to receive the position data and a video acquisition request sent by the mobile terminal, determine, according to the video acquisition request and the position data, a target IDC where a target video tag corresponding to the video acquisition request is stored, and send the video acquisition request to a video server corresponding to the target IDC;
the video server 103 is configured to process the video obtaining request.
Further, the video acquisition request carries a video tag parameter;
correspondingly, when determining the target IDC storing the target video tag corresponding to the video acquisition request according to the video acquisition request and the position data, the scheduler is specifically configured to:
determining a target video tag according to the video tag parameter in the video acquisition request;
and determining a target IDC for storing the target video tag according to the position data.
In this example, a process of determining a target IDC by a scheduler is given, so that which video server serves a user can be determined according to the method in this embodiment.
Further, before the video memory is used for storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC, the video memory is further used for:
acquiring each video to be stored and a label of each video to be stored;
and randomly selecting one label from the labels of each video to be stored as the video label of the corresponding video to be stored.
In this embodiment, before video storage, the video tag of the video can be determined, and then the video can be stored according to the video tag.
Further, when the video server is configured to process the video acquisition request, the video server is specifically configured to:
judging whether a target video tag corresponding to the video acquisition request is stored in the video server or not according to the video acquisition request;
when the target video label corresponding to the video acquisition request is judged to be stored in the video server, judging whether a target video corresponding to the video acquisition request is stored in the video server or not;
and when the target video is judged to be stored in the video server, sending the target video to the mobile terminal.
When the video server judges that the target video is not stored in the video server, the video server is further configured to:
acquiring the target video from a server comprising the target video;
saving the target video; and sending the target video to the mobile terminal.
In this example, the service can be provided to the user directly when the target video is stored in the video server, and the service can be provided to the user after the source return operation is performed when the target video is not stored in the video server.
In this embodiment, different types of video tags and videos to be stored corresponding to the video tags are stored in a plurality of different internet data centers IDC, each IDC stores at least one type of video tag and a plurality of videos to be stored corresponding to the video tag, that is, different IDCs store different contents. Compare in prior art every IDC mode of the same video of storage, when with prior art storage the same quantity video, can practice thrift the memory space to the video of every IDC storage is different, and then compares in prior art and can store the different video of a greater quantity, can satisfy the user and watch the requirement of more short video, and then can reduce the volume of returning the source.
In addition, by the video acquisition method in the embodiment, the read-write times of the edge node disk can be reduced, and the service life of the storage disk is prolonged.
It should be noted that, for the working process of each device in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of the embodiment of the video acquisition system, when the video memory is used to store different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC, the video memory is specifically configured to:
acquiring a video label of each video to be stored, a flow share proportion among different IDCs and user access flow of the video corresponding to each video label;
determining the flow proportion among various video labels according to the user access flow of the video corresponding to each video label;
storing different types of video tags and videos to be stored corresponding to the video tags to a plurality of different IDCs according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video tags of each video to be stored and the video tags;
wherein the video storage rules comprise: the difference value of the flow share ratio between any two IDCs and the flow ratio between videos corresponding to at least one video tag stored in the corresponding IDC is within a preset value.
In this embodiment, the storage location of each video to be stored is determined by data such as the traffic share proportion between different IDCs and the traffic proportion between the video tag of each video to be stored and various video tags, so that it can be ensured that the access traffic of the video stored in each IDC conforms to the traffic share of the IDC.
It should be noted that, for the working process of each device in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method for obtaining video, comprising:
the video memory stores different types of video tags and videos to be stored corresponding to the video tags into a plurality of different Internet Data Centers (IDCs) according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video tags of each video to be stored and a plurality of video tags, so that the data stored in the different IDCs are different, and the generated position data is sent to the scheduler; each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags; the different IDCs belong to the same scheduling area; the position data is used for representing each video label and the storage position information of a plurality of videos to be stored corresponding to each video label;
the dispatcher receives the position data and a video acquisition request sent by a mobile terminal, and determines a target IDC for storing a target video tag corresponding to the video acquisition request according to the video acquisition request and the position data;
the dispatcher sends the video acquisition request to a video server corresponding to the target IDC;
and the video server processes the video acquisition request.
2. The obtaining method according to claim 1, wherein the storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC according to a preset video storage rule, a traffic share ratio between different IDCs, and a traffic ratio between a video tag of each video to be stored and a plurality of types of video tags comprises:
acquiring a video label of each video to be stored, a flow share proportion among different IDCs and user access flow of the video corresponding to each video label;
determining the flow proportion among various video labels according to the user access flow of the video corresponding to each video label;
storing different types of video tags and videos to be stored corresponding to the video tags to a plurality of different IDCs according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video tags of each video to be stored and the video tags;
wherein the video storage rules comprise: the difference value of the flow share ratio between any two IDCs and the flow ratio between videos corresponding to at least one video tag stored in the corresponding IDC is within a preset value.
3. The acquisition method according to claim 1, wherein the video acquisition request carries a video tag parameter;
the scheduler determines a target IDC storing a target video tag corresponding to the video acquisition request according to the video acquisition request and the position data, and the method comprises the following steps:
the scheduler determines a target video label according to the video label parameter in the video acquisition request;
and the scheduler determines a target IDC for storing the target video label according to the position data.
4. The method according to claim 1, wherein the video server processes the video acquisition request, and comprises:
judging whether a target video tag corresponding to the video acquisition request is stored in the video server or not according to the video acquisition request;
when the target video label corresponding to the video acquisition request is judged to be stored in the video server, judging whether a target video corresponding to the video acquisition request is stored in the video server or not;
and when the target video is judged to be stored in the video server, sending the target video to the mobile terminal.
5. The method according to claim 4, wherein when the video server determines that the target video is not stored in the video server, the method further comprises:
the video server acquires the target video from a server comprising the target video;
the video server saves the target video;
and the video server sends the target video to the mobile terminal.
6. The obtaining method according to claim 1, wherein before the video memory stores the video tags of different types and the videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC, the method further comprises:
the video memory acquires each video to be stored and a label of each video to be stored;
the video memory randomly selects one label from the labels of each video to be stored as the video label of the corresponding video to be stored.
7. The video acquisition system is characterized by comprising a video memory, a scheduler and a video server;
the video memory is used for storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different Internet Data Centers (IDCs) according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video tags of each video to be stored and a plurality of types of video tags, so that the data stored in different IDCs are different, and the generated position data is sent to the scheduler; each IDC stores at least one video tag and a plurality of videos to be stored corresponding to the video tags; the different IDCs belong to the same scheduling area; the position data is used for representing each video label and the storage position information of a plurality of videos to be stored corresponding to each video label;
the scheduler is used for receiving the position data and a video acquisition request sent by the mobile terminal, determining a target IDC (Internet data center) for storing a target video tag corresponding to the video acquisition request according to the video acquisition request and the position data, and sending the video acquisition request to a video server corresponding to the target IDC;
and the video server is used for processing the video acquisition request.
8. The obtaining system of claim 7, wherein the video memory is configured to, when storing different types of video tags and videos to be stored corresponding to the video tags into a plurality of different internet data centers IDC according to a preset video storage rule, a traffic share ratio between different IDCs, and a traffic ratio between a video tag of each video to be stored and a plurality of types of video tags, specifically:
acquiring a video label of each video to be stored, a flow share proportion among different IDCs and user access flow of the video corresponding to each video label;
determining the flow proportion among various video labels according to the user access flow of the video corresponding to each video label;
storing different types of video tags and videos to be stored corresponding to the video tags to a plurality of different IDCs according to a preset video storage rule, flow share ratios among different IDCs and flow ratios among the video tags of each video to be stored and the video tags;
wherein the video storage rules comprise: the difference value of the flow share ratio between any two IDCs and the flow ratio between videos corresponding to at least one video tag stored in the corresponding IDC is within a preset value.
9. The acquisition system according to claim 7, wherein the video acquisition request carries a video tag parameter;
correspondingly, when determining the target IDC storing the target video tag corresponding to the video acquisition request according to the video acquisition request and the position data, the scheduler is specifically configured to:
determining a target video tag according to the video tag parameter in the video acquisition request;
and determining a target IDC for storing the target video tag according to the position data.
10. The acquisition system according to claim 7, wherein the video server, when being configured to process the video acquisition request, is specifically configured to:
judging whether a target video tag corresponding to the video acquisition request is stored in the video server or not according to the video acquisition request;
when the target video label corresponding to the video acquisition request is judged to be stored in the video server, judging whether a target video corresponding to the video acquisition request is stored in the video server or not;
and when the target video is judged to be stored in the video server, sending the target video to the mobile terminal.
11. The acquisition system according to claim 10, wherein after the video server determines that the target video is not stored in the video server, the acquisition system is further configured to:
acquiring the target video from a server comprising the target video;
saving the target video;
and sending the target video to the mobile terminal.
12. The acquisition system according to claim 7, wherein the video memory is configured to, before storing different types of video tags and videos to be stored corresponding to the video tags in a plurality of different internet data centers IDC, further:
acquiring each video to be stored and a label of each video to be stored;
and randomly selecting one label from the labels of each video to be stored as the video label of the corresponding video to be stored.
CN201810076685.6A 2018-01-26 2018-01-26 Video acquisition method and system Active CN108282668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810076685.6A CN108282668B (en) 2018-01-26 2018-01-26 Video acquisition method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810076685.6A CN108282668B (en) 2018-01-26 2018-01-26 Video acquisition method and system

Publications (2)

Publication Number Publication Date
CN108282668A CN108282668A (en) 2018-07-13
CN108282668B true CN108282668B (en) 2020-11-24

Family

ID=62805363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810076685.6A Active CN108282668B (en) 2018-01-26 2018-01-26 Video acquisition method and system

Country Status (1)

Country Link
CN (1) CN108282668B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525499A (en) * 2018-12-06 2019-03-26 深圳市子瑜杰恩科技有限公司 The flow managing method and Related product of short Video Applications
CN109982158B (en) * 2019-03-25 2022-04-22 北京奇艺世纪科技有限公司 UGC video distribution method and device and server
CN110392283A (en) * 2019-07-05 2019-10-29 深圳市九洲电器有限公司 A kind of program distribution method, apparatus, server and storage medium
CN110535853B (en) * 2019-08-28 2021-06-22 北京奇艺世纪科技有限公司 Video request scheduling method, device, server and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9063993B2 (en) * 2008-01-31 2015-06-23 Microsoft Technology Licensing, Llc Coexistence tools for synchronizing properties between on-premises customer locations and remote hosting services
CN103281383B (en) * 2013-05-31 2016-03-23 重庆大学 A kind of time sequence information recording method of Based on Distributed data source
CN106603703B (en) * 2016-12-29 2020-09-04 北京奇艺世纪科技有限公司 Return source node determination method and device

Also Published As

Publication number Publication date
CN108282668A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN108282668B (en) Video acquisition method and system
US11870871B2 (en) Methods and apparatus for serving content to customer devices based on dynamic content popularity
CN103430570B (en) For the social networks of bandwidth conservation in video on-demand system
CN110417676B (en) Scheduling method, device and scheduling network
US20150019740A1 (en) Network Bandwidth Allocation Method and Terminal
US20220286718A1 (en) Method for playing back live-streaming video, and device thereof
CN107835437B (en) Dispatching method based on more cache servers and device
CN107147921B (en) Video playing acceleration method and device based on slice and intelligent CDN scheduling
US20120221681A1 (en) Method, apparatus and system for hierarchically requesting contents in a http streaming system
EP4109861A1 (en) Data processing method, apparatus, computer device, and storage medium
CN109348264B (en) Video resource sharing method and device, storage medium and electronic equipment
US11889133B2 (en) Burst traffic processing method, computer device and readable storage medium
CN110460879B (en) Video request scheduling method, device, server and storage medium
WO2023116219A1 (en) Cdn node distribution method and apparatus, electronic device, medium and program product
CN106993014A (en) The method of adjustment of cache contents, apparatus and system
WO2022034619A1 (en) System and method for delivering media content to users
CN113296924B (en) Content distribution method, device, system and storage medium
CN108777802B (en) Method and device for caching VR (virtual reality) video
CN112653632A (en) Flow control realization method and device
CN108270807A (en) A kind of data transmission method and device
CN114077483A (en) Data resource scheduling method, server, system and storage medium
CN116366876A (en) Method and system for deploying and scheduling film and television resources under Bian Yun collaborative scene
US20140215075A1 (en) Load balancing apparatus and method based on estimation of resource usage
US20230333800A1 (en) Screen projection method and apparatus, electronic device and computer readable storage medium
CN112491939B (en) Multimedia resource scheduling method and system

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