CN114615550A - Video acquisition method and device - Google Patents

Video acquisition method and device Download PDF

Info

Publication number
CN114615550A
CN114615550A CN202210265734.7A CN202210265734A CN114615550A CN 114615550 A CN114615550 A CN 114615550A CN 202210265734 A CN202210265734 A CN 202210265734A CN 114615550 A CN114615550 A CN 114615550A
Authority
CN
China
Prior art keywords
video
videos
network address
target
playing time
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
CN202210265734.7A
Other languages
Chinese (zh)
Other versions
CN114615550B (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 CN202210265734.7A priority Critical patent/CN114615550B/en
Publication of CN114615550A publication Critical patent/CN114615550A/en
Application granted granted Critical
Publication of CN114615550B publication Critical patent/CN114615550B/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/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/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • 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/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The embodiment of the application provides a video obtaining method and device, wherein a network address of a first video can be determined from video access data in a first preset time period, the network address of the first video is also related to the watching action of a user, then a network address of a second video can be obtained according to the network address of the first video, and a video server can download the second video according to the network address of the second video, wherein the second video and the first video belong to the same video set, namely the second video and the first video have certain correlation, and the second video which is related to the first video is also related to the watching action of the user and is likely to be watched by the user. When the user needs to watch the second video, the video server can directly spit the second video to the user, so that the user can watch the video which the user wants to watch more quickly, the waiting time of the user is shortened, and the experience of the user is further optimized.

Description

Video acquisition method and device
Technical Field
The present application relates to the field of computers, and in particular, to a video acquisition method and apparatus.
Background
With the continuous progress of science and technology, watching movie and television videos is becoming one of the more popular entertainment ways. In the prior art, video downloading is completed by a Content Delivery Network (CDN), and a video CDN refers to a set of CDN systems capable of providing video streaming services, and generally includes systems such as storage, synchronization, source return, scheduling, and video file parsing. The basic principle of the CDN is to widely adopt various cache servers (CDN edge nodes), distribute the cache servers to a region or a network where user access is relatively concentrated, and when a user accesses a website, point the user access to a cache server that is closest to the working state by using a global load technology, and directly respond to a user request by the cache server.
When a user watches videos at a client, a video stream file is downloaded in the following mode, after the client initiates a request, an analysis list of video files is firstly obtained from a video file analysis server, and then downloading is carried out in sequence according to the files in the list. When downloading each file, the client needs to make a request to the scheduler once, and downloads the file from the designated CDN edge node according to the result returned by the scheduler. If the downloading request of the file reaches the edge node, and the node stores the file, directly spitting data to the client; if the file is not stored, a file downloading request needs to be sent to an upstream node, data is spitted to a client after the data of the upstream node is received, the file is stored locally, and if the same file request exists next time, the file does not need to be requested upstream. If the upstream node does not have the file, a request needs to be sent upstream of the upstream node. The link of the download request finally forms a tree structure, the edge node is a leaf node of the tree, and the back source node is a middle node and a root store of the tree. The downloading mode of the tree-like hierarchical files is called a source return mode, and most of the files which are hot can be sent to the whole network by using the mode.
However, when the file requested by the client is not stored in the edge node, a download request needs to be sent to an upstream node at this time, which may cause problems of a long source return link and a slow source return speed, resulting in that the user cannot obtain the desired video file in time, the waiting time of the user is prolonged, and the user experience is greatly reduced.
Disclosure of Invention
In view of the above, an object of the present application is to provide a video acquisition method and apparatus, which can download related videos in advance by closely combining with the viewing behavior of the user. The specific scheme is as follows:
in a first aspect, the present application provides a video acquisition method, including:
determining a network address of a first video from video access data in a first preset time period;
acquiring a network address of a second video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video; the second video and the first video belong to the same video set; the video collection comprises a plurality of videos with video contents having relevance.
Optionally, a target video is sliced according to a playing time interval to obtain a plurality of sub-videos with continuous playing time intervals, the plurality of sub-videos form the video set, and the playing time interval of the first video in the target video is prior to the playing time interval of the second video in the target video.
Optionally, a plurality of target videos belonging to the same album are respectively sliced according to playing time intervals to obtain a plurality of sub-videos, the plurality of sub-videos form one video set, the first target video and the second target video are two videos of the plurality of target videos, the playing time intervals of the first video are adjacent to each other, the first target video is prior to the second target video, the playing time interval of the first video is located at the end position of the first target video, and the playing time interval of the second video is located at the start position of the second target video.
Optionally, the determining a network address of the first video from the video access data in the first preset time period includes:
acquiring video access data in a first preset time period; the video access data comprises network addresses of a plurality of accessed videos accessed at least once;
sequencing the network addresses of the accessed videos from at least one according to the access times;
determining the network addresses of the first N accessed videos as the network address of the first video; and N is a positive integer.
Optionally, there is a positive correlation between the N and the remaining disk space of the video server.
Optionally, the obtaining a network address of a second video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video, includes:
acquiring a network address of a second video and a network address of a third video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video and downloads the third video according to the network address of the third video; the third video and the first video belong to the same video set.
Optionally, the method further comprises:
and if the access information of the second video is not collected in a second preset time period, controlling the video server to delete the second video.
In a second aspect, an embodiment of the present application further provides a video obtaining apparatus, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a network address of a first video from video access data in a first preset time period;
the acquisition unit is used for acquiring a network address of a second video according to the network address of the first video so that the video server can download the second video according to the network address of the second video; the second video and the first video belong to the same video set; the video collection comprises a plurality of videos with video contents having relevance.
Optionally, a target video is sliced according to a playing time interval to obtain a plurality of sub-videos with continuous playing time intervals, the plurality of sub-videos form the video set, and the playing time interval of the first video in the target video is prior to the playing time interval of the second video in the target video.
Optionally, a plurality of target videos belonging to the same album are respectively sliced according to playing time intervals to obtain a plurality of sub-videos, the plurality of sub-videos form one video set, the first target video and the second target video are two videos of the plurality of target videos, the playing time intervals of the first video are adjacent to each other, the first target video is prior to the second target video, the playing time interval of the first video is located at the end position of the first target video, and the playing time interval of the second video is located at the start position of the second target video.
Optionally, the determining unit is configured to:
acquiring video access data in a first preset time period; the video access data comprises network addresses of a plurality of accessed videos accessed at least once;
sequencing the network addresses of the accessed videos from at least one according to the access times;
determining the network addresses of the first N accessed videos as the network address of the first video; and N is a positive integer.
Optionally, there is a positive correlation between the N and the remaining disk space of the video server.
Optionally, the determining unit is configured to:
acquiring a network address of a second video and a network address of a third video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video and downloads the third video according to the network address of the third video; the third video and the first video belong to the same video set.
Optionally, the apparatus further comprises:
and the deleting unit is used for controlling the video server to delete the second video if the access information of the second video is not collected in a second preset time period.
The embodiment of the application provides a video acquisition method and a video acquisition device, wherein a network address of a first video can be determined from video access data in a first preset time period, the network address of the first video is related to the viewing behavior of a user because the video access data is related to the viewing behavior of the user, then a network address of a second video can be acquired according to the network address of the first video, a video server can download the second video according to the network address of the second video, wherein the second video and the first video belong to the same video set, the video set comprises a plurality of videos with video contents having relevance, namely the second video and the first video have certain relevance, and because the network address of the first video is related to the viewing behavior of the user, the second video with relevance to the first video is also related to the viewing behavior of the user, it is highly likely that the user will go to watch it later. Therefore, the network address of the related second video can be determined according to the watching behavior of the user, so that the second video is downloaded in advance by the video server, when the user needs to watch the second video, the second video can be directly sent out by the video server to the user without going back to the source through the superior node, and the user can watch the video which the user wants to watch more quickly, so that the waiting time of the user is shortened, and the experience of the user is further optimized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 illustrates a schematic structural diagram of a video acquisition system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a video acquisition method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating determining a first video according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a video capture device disclosed in the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the present application are described in detail below with reference to the accompanying drawings.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways than those described herein, and it will be appreciated by those skilled in the art that the present application may be practiced without departing from the spirit and scope of the present application, and that the present application is not limited to the specific embodiments disclosed below.
As described in the background art, when there is a client request, if the edge node does not store the file, and at this time, it needs to send a download request to an upstream node, there are problems of long backlog link and slow backlog speed. The inventors have also found that, generally speaking, if a file is newly online or is a relatively cold file, and the edge node is likely not to store the file, the user needs to wait for the file to be sourced back to the edge node for a long time; or if the file is large, such as a high-bit rate file, if the file starts to return to the source after the request of the client, the waiting time of the user is longer, and the user experience is greatly reduced. Although there are various optimization means for the transmission technology of the return source, when a client requests to download a certain video file, it still cannot be guaranteed that the file is stored in the edge node, and a user cannot acquire the file in time. Therefore, in the prior art, the user cannot obtain the desired video file in time due to the fact that the user cannot combine with the personal film watching habit of the user, and user experience is reduced.
Based on the above technical problem, embodiments of the present application provide a video obtaining method and apparatus, where a network address of a first video may be determined from video access data within a first preset time period, the network address of the first video is related to a viewing behavior of a user because the video access data is related to the viewing behavior of the user, and then a network address of a second video may be obtained according to the network address of the first video, a video server may download the second video according to the network address of the second video, where the second video and the first video belong to a same video set, the video set includes multiple videos having video contents with correlation, that is, the second video and the first video have a certain correlation, and the second video having correlation with the first video because the network address of the first video is related to the viewing behavior of the user, and also with respect to the user's view, is likely to be viewed by the user at a later time. Therefore, the network address of the related second video can be determined according to the watching behavior of the user, so that the second video is downloaded in advance by the video server, when the user needs to watch the second video, the second video can be directly sent out by the video server to the user without going back to the source through the superior node, and the user can watch the video which the user wants to watch more quickly, so that the waiting time of the user is shortened, and the experience of the user is further optimized.
In this embodiment, referring to fig. 1, a schematic structural diagram of a video acquisition system provided in this embodiment includes an origin server, a video server, and a client. The source server is located at a root node of the tree structure, video file resources are provided for the video servers at leaf nodes through the tree structure, the video servers at the leaf nodes are directly connected with the client and used for providing the video file resources for the client, and the video servers can store video files so that a user can download the video files from the video servers through the client.
In addition, the system can also comprise an analysis server, or an analysis module is arranged in the video server, and the analysis module or the analysis server is used for providing a film watching behavior analysis service for the user; the system may further include a meta-information server, or a meta-information module is disposed in the video server, where the meta-information server or the meta-information module is configured to store meta-information of the video, and the meta-information of the video includes an album to which the video belongs, the number of the albums to which the video belongs, and a playing time interval, for example, the video belongs to the 6 th album of the tv series a, and the playing time interval is from 10 th minute to 15 th minute. The video server, the analysis server and the meta-information server may be placed in the same video room, and certainly, the meta-information server may also be disposed outside the video room where the video server is located.
In the embodiment of the application, when a user wants to acquire a video file, a downloading request can be sent to a video server connected with the user through a client, and if the video file is stored in the video server, the video server can send the video file to the client; if the video server does not store the video file, the video server needs to acquire the video file from a video server located at an upstream node through a CDN system and then send the video file to the client.
For convenience of understanding, a video acquisition method and a video acquisition apparatus provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a schematic flow chart of a video acquisition method provided in this embodiment of the present application is shown, and the method is applied to the above analysis server or an analysis module in a video server, and may include the following steps.
S101, determining a network address of a first video from video access data in a first preset time period.
In the embodiment of the application, the access log is stored in the video server, and the access log records the network address of the video when the user accesses the video once through the video server. The access log may include a network address, an access time, and the like of the accessed video, and the analysis server or an analysis module in the video server may collect the access log from the video server, so that the video access data may be obtained from the access log of the video server, and the video access data may be expressed as, for example, that the first user accesses the video one at 7 o 'clock and 10 o' clock. The first preset time period is not specifically limited herein, and may be, for example, 5 minutes granularity, and if the first preset time period is shorter, it may be considered to collect the access log of the user in real time. Therefore, at least one accessed video can be determined from the video access data, and the at least one accessed video is determined as a first video, and the network address of the first video refers to the network address of the at least one accessed video. It is understood that the network address may be considered a Uniform Resource Locator (URL).
In the embodiment of the present application, due to the limitation of the disk space of the video server, it may not be possible to determine all accessed videos as the first video, so S101 has various implementations. The first video may be determined according to the sequence of the access time, specifically, the videos are sorted according to the sequence of the access time, and the first N accessed videos are determined as the first video. The first video may also be randomly selected, and specifically, the network address of the first video may be randomly determined from the video access data within the first preset time period.
In another implementation manner of determining the first video, the first video may also be determined according to the number of accesses, and referring to fig. 3, a flowchart for determining the first video provided for the embodiment of the present application, that is, S101 may include the following steps.
S1011, acquiring video access data in a first preset time period; the video access data includes network addresses of a plurality of accessed videos that are accessed at least once.
In the embodiment of the application, when the user accesses the video, the access log records the video, so that the video access data comprises the network addresses of a plurality of accessed videos which are accessed at least once. For example, a video server stores a video one, a video two, a video three, a video four and a video five, within a preset time, the number of times that the video one is accessed is 100, the number of times that the video two is accessed is 120, the number of times that the video three is accessed is 115, the number of times that the video four is accessed is 200, and the number of times that the video five is accessed is 0, then the video access data includes the network addresses of the video one, the video two, the video three and the video four, and does not include the network address of the video five.
And S1012, sequencing the network addresses of the accessed videos from at least one according to the access times.
In the embodiment of the application, one video server can be accessed by one user for multiple times and can also be accessed by multiple users for multiple times, so that the network address of a certain video can be accessed for multiple times, and the application can sort all the network addresses of accessed videos according to the number of the access times. The more the video is accessed, the higher the ranking position of the video. Thus, the more the number of visits is, the more people watching the video are, the more the popularity of the video is, and the closer the combination of the watching action of the user is. For example, the four accessed videos are respectively recorded as video one, video two, video three and video four, the access times of the four accessed videos are respectively 100, 120, 115 and 200, the four accessed videos are sequentially ordered according to the access times, and the ordering result is video four, video two, video three and video one.
S1013, determining the network addresses of the first N accessed videos as the network address of the first video; n is a positive integer.
In the embodiment of the present application, due to the limitation of the disk space of the video server, the network addresses of the first N accessed videos may be determined as the network address of the first video. For example, the number of N may be 20, 5, or 8. The network address of the first 5 accessed videos may be determined as the network address of the first video.
In the embodiment of the present application, an analysis module in an analysis server or a video server may obtain a performance index of the video server, such as a remaining disk space. The N has positive correlation with the remaining disk space of the video server, and the larger the remaining disk space is, the larger the N is. Specifically, if the remaining disk space of the video server is large, a large value may be taken for N, and the number of network addresses of the first video is large; if the remaining disk space of the video server is small, a small value can be taken for N, and the number of network addresses of the first video is small.
S102, acquiring a network address of a second video according to the network address of the first video, so that the video server downloads the second video according to the network address of the second video.
In the embodiment of the present application, the second video and the first video belong to the same video set, and one video set includes a plurality of videos whose video contents have relevance. A video set comprises a plurality of videos, and the videos have a certain correlation and can all belong to the same album, such as the same movie or the same television show. The video information may be written into a database in the meta information server, and an index service may be established, where the video information may be a video set to which the video belongs, for example, the video information of the first video is the video set to which the first video belongs.
In the embodiment of the application, an analysis server or a video server with a built-in analysis module sends a query request to a meta information server or a meta information module in the video server, wherein the query request is used for querying a video set to which a first video belongs, and the query request comprises a network address of the first video; a meta information module in a meta information server or a video server determines a video set to which a first video belongs according to a network address of the first video, then acquires a network address of a second video from the video set, and sends the network address of the second video to an analysis server or an analysis module in the video server; an analysis module in the analysis server or the video server imitates the access behavior of a user and sends a downloading request to the video server, wherein the downloading request comprises the network address of the second video; and the video server requests to download the second video by utilizing the CDN system according to the network address of the second video so that the video server stores the second video. Therefore, when the user accesses the second video, the second video is stored in the local (video server), the time that the user waits for downloading for a long time is avoided, and the user experience is improved.
In this embodiment of the application, when N >1, network addresses of a plurality of second videos may be obtained according to network addresses of a plurality of first videos, respectively. For example, when N is 5, 5 video sets to which the first video belongs may be determined according to network addresses of the 5 first videos, and then network addresses of 5 second videos are obtained from the 5 video sets.
In an embodiment of the present application, for each first video, one or more videos can be determined. Specifically, each first video can determine one video, that is, one video, such as a second video, is obtained from a video set to which the first video belongs; each first video may also determine multiple videos, that is, multiple videos are obtained from a video set to which the first video belongs, for example, two videos, a second video and a third video are determined. For example, the number of the first videos is 5, and if each first video corresponds to one second video, the number of the second videos is also 5; if each first video corresponds to 2 videos, which are respectively recorded as a second video and a third video, the total number of the second video and the third video may be 10. Acquiring a network address of a second video and a network address of a third video according to the network address of the first video, so that the video server downloads the second video according to the network address of the second video and downloads the third video according to the network address of the third video; the third video and the first video belong to the same video set.
In the embodiment of the application, the number of the network addresses of a plurality of videos determined according to the first video can be dynamically determined according to the service index of the server. For example, the number of the determined network addresses of the plurality of videos may be a larger value if the remaining disk space of the video server is larger; if the remaining disk space of the video server is small, the number of the determined network addresses of the plurality of videos can be a small value.
In the embodiment of the present application, when N >1, since multiple first videos may belong to different video sets or albums, it may be determined which videos need to be preferentially selected to be returned to the source according to the popularity of the albums. If the album to which the video belongs is high in popularity, the album is watched by more people, and more videos belonging to the album can be downloaded, so that the use experience of the user is improved.
In embodiments of the present application, the videos in the collection are derived from videos in an album, which may include one or more target videos. Specifically, when the duration of the target video in the album is short, all the target videos in the album can be combined into one video set, the first video is the target video in the album, and then one album is a video set. When the target video in the album is long in duration, the target video can be sliced, one target video is sliced to obtain a plurality of sub-videos, all the sub-videos form a video set, and then the first video is the sub-video obtained by the target video. For example, if the duration of the target video is greater than 6 minutes, the target video is sliced, otherwise, the target video is not sliced.
In the embodiment of the application, if the duration of a single video in an album is long, the video can be sliced. One or more target videos may be included in the album, for example, if the album is a movie, the album may be considered to include a target video; if multiple videos belonging to the same drama can be regarded as belonging to the same album, the album is regarded as containing multiple target videos, and one episode of the drama is one target video. Slicing refers to dividing all target videos in an album into a plurality of sub-videos according to a playing sequence, and the time duration of the sub-videos is not limited herein, and may be, for example, 6 minutes. The network address of each sub-video is a URL.
In the embodiment of the present application, each sub-video needs to mark its start and end position of time in the target video, i.e. mark its playing time interval. If the album comprises a target video, the sub-video needs to mark the playing time interval of the sub-video in the target video; if the album includes a plurality of target videos, the sub-videos need to be marked with the target videos to which the sub-videos belong, and the playing time intervals of the sub-videos in the target videos to which the sub-videos belong need to be marked. The meta-information service can also write the video segment information into a database, wherein the video segment information includes the album to which the sub-video belongs, the number of the albums to which the sub-video belongs, and the playing time interval of the sub-video, and the related meta-information, such as the video segment information, is output in real time according to the sub-video by indexing the database.
In the embodiment of the application, the album includes a target video, the target video is sliced according to a playing time interval to obtain a plurality of sub-videos with continuous playing time intervals, the plurality of sub-videos form a video set, the first video and the second video are any plurality of the plurality of sub-videos, and the playing time interval of the first video in the target video is prior to the playing time interval of the second video in the target video. For example, if the album is a movie, the total duration of the target video is 90 minutes, the duration of each sub-video is 10 minutes, a video set composed of 9 sub-videos is obtained after slicing, the playing time interval of the first video in the target video is 31 minutes to 40 minutes, and the playing time interval of the second video in the target video is 41 minutes to 50 minutes because the playing time interval of the first video in the target video is earlier than the playing time interval of the second video in the target video.
In the embodiment of the application, the album includes a plurality of target videos, the plurality of target videos belonging to the same album are respectively sliced according to playing time intervals to obtain a plurality of sub-videos, the plurality of sub-videos form a video set, a first target video and a second target video are two videos of the plurality of target videos, the playing time intervals of the first video are adjacent to each other, the first target video precedes the second target video, the playing time intervals of the first video are located at the end position of the first target video, and the playing time intervals of the second video are located at the start position of the second target video. For example, if an album is a series of 30 episodes, that is, includes 30 target videos, each target video has a duration of 60 minutes and each sub-video has a duration of 10 minutes, after the slicing, each target video can be divided into 6 sub-videos, and a video set composed of 180 sub-videos is obtained in total, the first target video is set 15, the playing time interval of the first video in the first target video is 51 minutes to 60 minutes, the second target video is set 16, and the playing time interval of the second video in the second target video is 1 minute to 10 minutes. That is, if the first video is the last sub-video at the end of the current set, it is necessary to find the first sub-video of its next set as the second video, and then push the network address of the second video to the video server associated with the user.
In the embodiment of the application, one or more target videos are fragmented into a plurality of sub-videos, and the subsequent time sequence files can be downloaded in time through analysis of the video fragment files sequenced in the playing time interval, so that a user can obtain the subsequent files in time, the waiting time of the user is reduced, and the user experience is improved.
In the embodiment of the application, if the access information of the second video is not collected in the second preset time period, the video server is controlled to delete the second video. If the user does not access the second video for a long time, the video server can be controlled to delete the second video so as to increase the disk remaining space of the video server.
The embodiment of the application provides a video acquiring method, which can determine a network address of a first video from video access data in a first preset time period, wherein the network address of the first video is related to the viewing behavior of a user because the video access data is related to the viewing behavior of the user, and then can acquire a network address of a second video according to the network address of the first video, a video server can download the second video according to the network address of the second video, wherein the second video and the first video belong to the same video set, the video set comprises a plurality of videos with video contents having relevance, that is, the second video and the first video have certain relevance, and because the network address of the first video is related to the viewing behavior of the user, the second video having relevance to the first video is also related to the viewing behavior of the user, it is highly likely that the user will go to watch it later. Therefore, the network address of the related second video can be determined according to the watching behavior of the user, so that the second video is downloaded in advance by the video server, when the user needs to watch the second video, the second video can be directly sent out by the video server to the user without going back to the source through the superior node, and the user can watch the video which the user wants to watch more quickly, so that the waiting time of the user is shortened, and the experience of the user is further optimized.
Based on the above video obtaining method, an embodiment of the present application further provides a video obtaining apparatus, as shown in fig. 4, for a schematic structural diagram of the video obtaining apparatus disclosed in the present application, the apparatus may include:
a determining unit 100, configured to determine a network address of a first video from video access data in a first preset time period;
an obtaining unit 200, configured to obtain a network address of a second video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video; the second video and the first video belong to the same video set; the video collection comprises a plurality of videos with video contents having relevance.
Optionally, a target video is sliced according to a playing time interval to obtain a plurality of sub-videos with continuous playing time intervals, the plurality of sub-videos form the video set, and the playing time interval of the first video in the target video is prior to the playing time interval of the second video in the target video.
Optionally, a plurality of target videos belonging to the same album are respectively sliced according to playing time intervals to obtain a plurality of sub-videos, the plurality of sub-videos form one video set, the first target video and the second target video are two videos of the plurality of target videos, the playing time intervals of the first video are adjacent to each other, the first target video is prior to the second target video, the playing time interval of the first video is located at the end position of the first target video, and the playing time interval of the second video is located at the start position of the second target video.
Optionally, the determining unit is configured to:
acquiring video access data in a first preset time period; the video access data comprises network addresses of a plurality of accessed videos accessed at least once;
sequencing the network addresses of the accessed videos from at least one according to the access times;
determining the network addresses of the first N accessed videos as the network address of the first video; and N is a positive integer.
Optionally, there is a positive correlation between the N and the remaining disk space of the video server.
Optionally, the determining unit is configured to:
acquiring a network address of a second video and a network address of a third video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video and downloads the third video according to the network address of the third video; the third video and the first video belong to the same video set.
Optionally, the apparatus further comprises:
and the deleting unit is used for controlling the video server to delete the second video if the access information of the second video is not collected in a second preset time period.
The embodiment of the application provides a video acquisition device, which comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining a network address of a first video from video access data in a first preset time period; the acquisition unit is used for acquiring the network address of the second video according to the network address of the first video so that the video server can download the second video according to the network address of the second video; the second video and the first video belong to the same video set, and the video set comprises a plurality of videos with video contents having correlation, that is to say, the second video and the first video have certain correlation. It can be seen that, since the video access data is related to the viewing behavior of the user, the network address of the first video is also related to the viewing behavior of the user, and since the network address of the first video is related to the viewing behavior of the user, the second video having a correlation with the first video is also related to the viewing behavior of the user, and is likely to be viewed by the user in the future. Therefore, the network address of the related second video can be determined according to the watching behavior of the user, so that the second video is downloaded in advance by the video server, when the user needs to watch the second video, the second video can be directly sent out by the video server to the user, the user does not need to go back to the source through the superior node, the user can watch the video which the user wants to watch more quickly, the waiting time of the user is shortened, and the user experience is further optimized.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points.
The foregoing is merely a preferred embodiment of the present application and, although the present application discloses the foregoing preferred embodiments, the present application is not limited thereto. Those skilled in the art can now make numerous possible variations and modifications to the disclosed embodiments, or modify equivalent embodiments, using the methods and techniques disclosed above, without departing from the scope of the claimed embodiments. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present application still fall within the protection scope of the technical solution of the present application without departing from the content of the technical solution of the present application.

Claims (10)

1. A video acquisition method, comprising:
determining a network address of a first video from video access data in a first preset time period;
acquiring a network address of a second video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video; the second video and the first video belong to the same video set; the video collection comprises a plurality of videos with video contents having relevance.
2. The method according to claim 1, wherein a target video is sliced according to playing time intervals to obtain a plurality of sub-videos with consecutive playing time intervals, the plurality of sub-videos form the video set, and the playing time interval of the first video in the target video is prior to the playing time interval of the second video in the target video.
3. The method according to claim 1, wherein a plurality of target videos belonging to a same album are respectively sliced according to a playing time interval to obtain a plurality of sub-videos, the plurality of sub-videos form one video set, the first target video and the second target video are two videos of the plurality of target videos whose playing time intervals are adjacent, the first target video precedes the second target video, the playing time interval of the first video is located at an end position of the first target video, and the playing time interval of the second video is located at a start position of the second target video.
4. The method according to any one of claims 1 to 3, wherein the determining the network address of the first video from the video access data in the first preset time period comprises:
acquiring video access data in a first preset time period; the video access data comprises network addresses of a plurality of accessed videos accessed at least once;
sequencing the network addresses of the accessed videos from at least one according to the access times;
determining the network addresses of the first N accessed videos as the network address of the first video; and N is a positive integer.
5. The method of claim 4, wherein N has a positive correlation with remaining disk space of the video server.
6. The method according to any one of claims 1 to 3, wherein the obtaining a network address of a second video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video, comprises:
acquiring a network address of a second video and a network address of a third video according to the network address of the first video, so that a video server downloads the second video according to the network address of the second video and downloads the third video according to the network address of the third video; the third video and the first video belong to the same video set.
7. The method according to any one of claims 1-3, further comprising:
and if the access information of the second video is not collected in a second preset time period, controlling the video server to delete the second video.
8. A video acquisition apparatus, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a network address of a first video from video access data in a first preset time period;
the acquisition unit is used for acquiring a network address of a second video according to the network address of the first video so that the video server can download the second video according to the network address of the second video; the second video and the first video belong to the same video set; the video collection comprises a plurality of videos with video contents having relevance.
9. The apparatus according to claim 8, wherein a target video is sliced according to playing time intervals to obtain a plurality of sub-videos with consecutive playing time intervals, the plurality of sub-videos form the video set, and the playing time interval of the first video in the target video is prior to the playing time interval of the second video in the target video.
10. The apparatus according to claim 8, wherein a plurality of target videos belonging to a same album are respectively sliced according to a playing time interval to obtain a plurality of sub-videos, the plurality of sub-videos form a video set, the first target video and the second target video are two videos of the plurality of target videos whose playing time intervals are adjacent to each other, the first target video precedes the second target video, the playing time interval of the first video is located at an end position of the first target video, and the playing time interval of the second video is located at a start position of the second target video.
CN202210265734.7A 2022-03-17 2022-03-17 Video acquisition method and device Active CN114615550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210265734.7A CN114615550B (en) 2022-03-17 2022-03-17 Video acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210265734.7A CN114615550B (en) 2022-03-17 2022-03-17 Video acquisition method and device

Publications (2)

Publication Number Publication Date
CN114615550A true CN114615550A (en) 2022-06-10
CN114615550B CN114615550B (en) 2023-12-08

Family

ID=81865352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210265734.7A Active CN114615550B (en) 2022-03-17 2022-03-17 Video acquisition method and device

Country Status (1)

Country Link
CN (1) CN114615550B (en)

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2312456A1 (en) * 2003-10-01 2011-04-20 Sandisk Corporation Audio visual player apparatus and system and method of content distribution using the same
US20140108502A1 (en) * 2012-10-11 2014-04-17 Wistron Corp. Streaming data downloading method and computer readable recording medium thereof
CN104754416A (en) * 2015-03-30 2015-07-01 北京奇艺世纪科技有限公司 Video playing method and video playing device
CN105100830A (en) * 2015-07-23 2015-11-25 中国科学院声学研究所 Rapid switching video source apparatus based on video aggregation service and method thereof
US20160105697A1 (en) * 2014-10-14 2016-04-14 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd System and method for beforehand downloading video
CN105792020A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Method and device for playing video file
CN106921865A (en) * 2017-05-11 2017-07-04 腾讯科技(深圳)有限公司 Method for processing video frequency and device
CN107517162A (en) * 2016-06-17 2017-12-26 阿里巴巴集团控股有限公司 A kind of determination method and device of CDN caching servers
WO2018000646A1 (en) * 2016-06-27 2018-01-04 乐视控股(北京)有限公司 Video download method and apparatus, and electronic device
CN108600850A (en) * 2018-03-20 2018-09-28 腾讯科技(深圳)有限公司 Video sharing method, client, server and storage medium
JP2018169845A (en) * 2017-03-30 2018-11-01 株式会社ケイオー Information acquisition system
CN109474854A (en) * 2018-11-29 2019-03-15 广州市百果园信息技术有限公司 Video broadcasting method, the generation method of playlist and relevant device
US10289555B1 (en) * 2017-04-14 2019-05-14 EMC IP Holding Company LLC Memory read-ahead using learned memory access patterns
CN109996110A (en) * 2017-12-29 2019-07-09 中兴通讯股份有限公司 A kind of video broadcasting method, terminal, server and storage medium
CN110022482A (en) * 2019-03-05 2019-07-16 咪咕视讯科技有限公司 Video plays broadcasting method, video service system and storage medium
CN110557689A (en) * 2019-09-29 2019-12-10 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device
CN110784750A (en) * 2019-08-13 2020-02-11 腾讯科技(深圳)有限公司 Video playing method and device and computer equipment
CN110996134A (en) * 2019-12-23 2020-04-10 腾讯科技(深圳)有限公司 Video playing method, device and storage medium
CN111182336A (en) * 2019-10-28 2020-05-19 腾讯科技(深圳)有限公司 Video data playing processing method and device, server and terminal
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2312456A1 (en) * 2003-10-01 2011-04-20 Sandisk Corporation Audio visual player apparatus and system and method of content distribution using the same
US20140108502A1 (en) * 2012-10-11 2014-04-17 Wistron Corp. Streaming data downloading method and computer readable recording medium thereof
US20160105697A1 (en) * 2014-10-14 2016-04-14 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd System and method for beforehand downloading video
CN105792020A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Method and device for playing video file
CN104754416A (en) * 2015-03-30 2015-07-01 北京奇艺世纪科技有限公司 Video playing method and video playing device
CN105100830A (en) * 2015-07-23 2015-11-25 中国科学院声学研究所 Rapid switching video source apparatus based on video aggregation service and method thereof
CN107517162A (en) * 2016-06-17 2017-12-26 阿里巴巴集团控股有限公司 A kind of determination method and device of CDN caching servers
WO2018000646A1 (en) * 2016-06-27 2018-01-04 乐视控股(北京)有限公司 Video download method and apparatus, and electronic device
JP2018169845A (en) * 2017-03-30 2018-11-01 株式会社ケイオー Information acquisition system
US10289555B1 (en) * 2017-04-14 2019-05-14 EMC IP Holding Company LLC Memory read-ahead using learned memory access patterns
CN106921865A (en) * 2017-05-11 2017-07-04 腾讯科技(深圳)有限公司 Method for processing video frequency and device
CN109996110A (en) * 2017-12-29 2019-07-09 中兴通讯股份有限公司 A kind of video broadcasting method, terminal, server and storage medium
CN108600850A (en) * 2018-03-20 2018-09-28 腾讯科技(深圳)有限公司 Video sharing method, client, server and storage medium
CN109474854A (en) * 2018-11-29 2019-03-15 广州市百果园信息技术有限公司 Video broadcasting method, the generation method of playlist and relevant device
CN110022482A (en) * 2019-03-05 2019-07-16 咪咕视讯科技有限公司 Video plays broadcasting method, video service system and storage medium
CN110784750A (en) * 2019-08-13 2020-02-11 腾讯科技(深圳)有限公司 Video playing method and device and computer equipment
CN110557689A (en) * 2019-09-29 2019-12-10 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device
CN111182336A (en) * 2019-10-28 2020-05-19 腾讯科技(深圳)有限公司 Video data playing processing method and device, server and terminal
CN110996134A (en) * 2019-12-23 2020-04-10 腾讯科技(深圳)有限公司 Video playing method, device and storage medium
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114615550B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
US9923962B2 (en) Techniques and systems for supporting podcasting
US9407974B2 (en) Segmenting video based on timestamps in comments
US6594682B2 (en) Client-side system for scheduling delivery of web content and locally managing the web content
EP2359536B1 (en) Adaptive network content delivery system
US8745262B2 (en) Adaptive network content delivery system
US8880650B2 (en) System and method for storing streaming media file
US20150242397A1 (en) Method, server and system for managing content in content delivery network
US20170185616A1 (en) System and method for storing content on a content delivery network
CN102740159A (en) Media file storage format and adaptive delivery system
US20140068677A1 (en) System and method for generating content channels
CN101673298A (en) Video data distributed caching method in video on demand
CN103686455A (en) Video playing method and device based on HLS protocol
CN111263229B (en) Video distribution method and device and electronic equipment
CN101068341B (en) Stream media dispatching system and medium file scheduling method thereof
CN103634616A (en) Cloud storage-based streaming media video-on-demand method and apparatus
US20170180774A1 (en) Methods and Apparatus for Naming Video Content Chunks
Cheng et al. Exploring interest correlation for peer-to-peer socialized video sharing
CN114615550B (en) Video acquisition method and device
van der Hooft et al. Low-latency delivery of news-based video content
Ling et al. An adaptive caching algorithm suitable for time-varying user accesses in VOD systems
US9537733B2 (en) Analytics performance enhancements
JP2007527067A (en) Hierarchical distribution of UI assets
Shen et al. An interest-based per-community P2P hierarchical structure for short video sharing in the youtube social network
CN112118461A (en) Audio and video file storage and distribution method and device
Cheng et al. UGC video sharing: Measurement and analysis

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