CN114615550B - Video acquisition method and device - Google Patents

Video acquisition method and device Download PDF

Info

Publication number
CN114615550B
CN114615550B CN202210265734.7A CN202210265734A CN114615550B CN 114615550 B CN114615550 B CN 114615550B CN 202210265734 A CN202210265734 A CN 202210265734A CN 114615550 B CN114615550 B CN 114615550B
Authority
CN
China
Prior art keywords
video
videos
network address
target
user
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
CN202210265734.7A
Other languages
Chinese (zh)
Other versions
CN114615550A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a video acquisition method and a video acquisition device, wherein the 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 behavior of a user, then the 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, that is, the second video and the first video have certain correlation, and the second video which has correlation with the first video is also related to the watching of the user, so that the user is very likely to watch the second video later. 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 faster, the waiting time of the user is reduced, and the user experience 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 technology, watching video and film becomes one of the popular entertainment modes. In the prior art, the downloading of the video is completed by means of a content delivery network (Content Delivery Network, CDN), and the video CDN refers to a set of CDN systems capable of providing video streaming services, which generally include systems of storage, synchronization, source return, scheduling, video file parsing, and the like. The basic principle of the CDN is that various cache servers (CDN edge nodes) are widely adopted, the cache servers are distributed to areas or networks with relatively concentrated user accesses, when the user accesses a website, the global load technology is utilized to direct the user accesses to the cache servers which work normally and are closest to the user, and the cache servers directly respond to the user requests.
When a user watches a video at a client, the downloading of the video stream files adopts the following mode that after the client initiates a request, an analysis list of the video files is firstly obtained from a video file analysis server, and then the downloading is sequentially carried out according to the files in the list. When downloading each file, the client needs to make a request to the dispatcher once, and downloads the file according to the returned result of the dispatcher to the appointed CDN edge node. If the downloading request of the file reaches an edge node, the node stores the file, and the data is directly spit to the client; if the file is not stored, a downloading request of the file is required to be sent to an upstream node, the data is spit to a client after the data of the upstream node is received, the file is stored locally, and if the same file request is next time, the file is not required to be requested to the upstream node. If the upstream node also does not have this file, a request needs to be sent upstream of this upstream node. The links of the download request finally form a tree structure, the edge nodes are leaf nodes of the tree, and the back source nodes are intermediate nodes and root stores of the tree. This way of downloading files in tree hierarchy is called a back source, and most of the files that are popular can be sent to the whole network in this way.
However, when the file requested by the client is not stored in the edge node, a downloading request needs to be sent to the upstream node, which has the problems of long source return link and low source return speed, so that the user cannot acquire the desired video file in time, the waiting time of the user is prolonged, and the user experience is greatly reduced.
Disclosure of Invention
Accordingly, the present application is directed to a video acquisition method and apparatus, which can closely combine with the viewing behavior of a user to download related videos in advance. 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 within 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 correlation to video content.
Optionally, after a target video passes through the slicing according to the playing time interval, a plurality of sub-videos with continuous playing time intervals are obtained, the plurality of sub-videos form a video set, and 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.
Optionally, a plurality of target videos belonging to the same album are respectively segmented 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 with adjacent playing time intervals in the plurality of target videos, the first target video is earlier than the second target video, the playing time interval of the first video is located at the tail position in the first target video, and the playing time interval of the second video is located at the starting position in the second target video.
Optionally, the determining the 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 includes network addresses of a plurality of accessed videos accessed at least once;
sequentially sequencing the network addresses of the multiple accessed videos according to the access times from more to less;
determining network addresses of the first N accessed videos as network addresses 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 the network address of the 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, 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 to the second video is not collected in the 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 acquisition apparatus, including:
a determining unit, configured to determine a network address of a first video from video access data within 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 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 correlation to video content.
Optionally, after a target video passes through the slicing according to the playing time interval, a plurality of sub-videos with continuous playing time intervals are obtained, the plurality of sub-videos form a video set, and 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.
Optionally, a plurality of target videos belonging to the same album are respectively segmented 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 with adjacent playing time intervals in the plurality of target videos, the first target video is earlier than the second target video, the playing time interval of the first video is located at the tail position in the first target video, and the playing time interval of the second video is located at the starting position in 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 includes network addresses of a plurality of accessed videos accessed at least once;
sequentially sequencing the network addresses of the multiple accessed videos according to the access times from more to less;
determining network addresses of the first N accessed videos as network addresses 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 to the second video is not collected within a second preset time period.
The embodiment of the application provides a video acquisition method and a video acquisition device, wherein the 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 the 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, the second video and the first video belong to the same video set, the video set comprises a plurality of videos with video content having correlation, that is, the second video and the first video have certain correlation, and because the network address of the first video is related to the viewing behavior of the user, the second video with correlation to the first video is also related to the viewing behavior of the user, and the second video is likely to be watched later by the user. Therefore, according to the embodiment of the application, the network address of the related second video can be determined according to the video watching behavior of the user, so that the video server downloads the second video in advance, and when the user needs to watch the second video, the video server can directly spit the second video to the user without returning the source through the upper node, so that the user can watch the video which the user wants to watch faster, the waiting time of the user is reduced, and the user experience is further optimized.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are some embodiments of the application and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of a video acquisition system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a video acquisition method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of determining a first video according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a video capturing apparatus according to the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the application will be readily understood, a more particular description of the application will be rendered by reference to the appended 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 other than those described herein, and persons skilled in the art will readily appreciate 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 is required to send a download request to the upstream node, then there is a problem that the source return link is longer, and the source return speed is slow. The inventors have also found that, typically, if a certain file is newly online or a relatively cool 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 larger, such as a high-code rate file, if the source is returned after the client requests, the waiting time of the user is longer, and the user experience is greatly reduced. Although various optimization means are available for the transmission technology of the back source at present, when a client requests to download a certain video file, the file still cannot be stored in an edge node, and a user cannot acquire the file in time. Therefore, the prior art cannot be combined with personal viewing habits of users, so that the users cannot acquire the wanted video files in time, and user experience is reduced.
Based on the above technical problems, the embodiments of the present application provide a method and an apparatus for obtaining a video, where a network address of a first video may be determined from video access data within a first preset period of time, and because the video access data is related to a viewing behavior of a user, the network address of the first video is also 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, and 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 the same video set, and the video set includes a plurality of videos whose video contents have a correlation, that is, the second video and the first video have a certain correlation, and because the network address of the first video is related to the viewing behavior of the user, the second video that has a correlation with the first video is also related to the viewing behavior of the user, and is likely to be viewed later by the user. Therefore, according to the embodiment of the application, the network address of the related second video can be determined according to the video watching behavior of the user, so that the video server downloads the second video in advance, and when the user needs to watch the second video, the video server can directly spit the second video to the user without returning the source through the upper node, so that the user can watch the video which the user wants to watch faster, the waiting time of the user is reduced, and the user experience is further optimized.
In the embodiment of the present application, referring to fig. 1, a schematic structural diagram of a video acquisition system provided in the embodiment of the present application includes an origin server, a video server and a client. The source server is used for providing video file resources for the video servers, the video servers form a tree structure, the source server is located at a root node of the tree structure, the video servers at leaf nodes are provided with the video file resources 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 the video files so that users 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 video watching behavior analysis service for the user; the system may further include a meta information server, or a meta information module is set in the video server, where the meta information server or the meta information module is used to store meta information of the video, where the meta information of the video includes an album to which the video belongs, a number of collections to which the video belongs, and a playing time interval, for example, the video belongs to a 6 th collection of a television play a, and the playing time interval is from 10 th minutes to 15 th minutes. The video server, the analysis server and the meta-information server may be placed in the same video room, but of course the meta-information server may also be placed 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 is sent through a video server which can be 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 file is not stored in the video server, the video server needs to acquire the video file from the video server located in the upstream node through the CDN system, and then send the video file to the client.
For easy understanding, a method and an apparatus for acquiring video according to embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a flow chart of a video acquisition method according to an embodiment of the present application is applied to the above analysis server or the analysis module in the video server, and the method 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 each time the user accesses the video through the video server, the access log records the network address of the video. The access log may include a network address, access time, etc. of the accessed video, and the analysis server or the 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, for example, as that the first user accesses video one at 7 o' clock 10 time. 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 that the access log of the user is collected in real time. Thus, at least one accessed video may be determined from the video access data, the at least one accessed video being determined as a first video, the network address of the first video referring 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 (Uniform Resource Locator, URL).
In the embodiment of the present application, because of the limitation of the disk space of the video server, all accessed videos may not be determined as the first video, so S101 has various implementation manners. The first video may be determined according to the access time, specifically, the videos are ordered according to the access time, and the first N accessed videos are determined as the first video. The first video may also be selected randomly, and specifically, the network address of the first video may be determined randomly 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 access times, and referring to fig. 3, a flowchart of determining the first video provided in an embodiment of the present application is shown, 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 a user accesses the video, the access log records the video, so that the video access data comprises network addresses of a plurality of accessed videos accessed at least once. For example, the video server stores video one, video two, video three, video four and video five, in a preset period of time, the number of times of accessing video one is 100, the number of times of accessing video two is 120, the number of times of accessing video three is 115, the number of times of accessing video four is 200, and the number of times of accessing video five is 0, and then the video access data includes network addresses of video one, video two, video three and video four, and does not include network addresses of video five.
S1012, sequentially ordering the network addresses of the multiple accessed videos according to the access times from more to less.
In the embodiment of the application, one video server can be accessed by one user for multiple times or multiple times, so that the network address of a certain video can be accessed for multiple times. The more the video is accessed, the more the ranking position is. Thus, the more the number of accesses, the more people viewing the video, the higher the popularity of the video, and the closer the combination of the viewing behavior of the user. For example, the four accessed videos are respectively marked as a first video, a second video, a third video and a fourth video, the access times are respectively 100, 120, 115 and 200, and then the four videos are sequentially ordered according to the access times from more to less, and the ordering result is the fourth video, the second video, the third video and the first video.
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 application, due to the limitation of the disk space of the video server, the network addresses of the first N accessed videos can 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 application, the analysis server or the analysis module in the video server can acquire the performance index of the video server, such as the residual disk space. And positive correlation exists between the N and the residual disk space of the video server, and the larger the residual disk space is, the larger the N is. Specifically, if the remaining disk space of the video server is larger, a larger value can be taken for N, and the number of network addresses of the first video is larger; if the remaining disk space of the video server is smaller, the N may be a smaller value, and the number of network addresses of the first video is smaller.
S102, acquiring the network address of the 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 application, the second video and the first video belong to the same video set, and one video set comprises a plurality of videos with correlation to video contents. A video collection includes a plurality of videos, and the videos have a certain correlation, and may all belong to the same album, for example, the same movie or the same television play. Video information may be written into a database in the meta information server and an index service is 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 a video set to which the first video belongs.
In the embodiment of the application, an analysis server or a video server with an internal 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 comprises a network address of the first video; the meta information server or a meta information module in the video server determines a video set to which the first video belongs according to the network address of the first video, then acquires the 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; the analysis server or an analysis module in 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 using 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 locally (video server), so that the time that the user waits for downloading for a long time is avoided, and the user experience is improved.
In the embodiment of the present 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. If N is 5, then the 5 video sets to which the first video belongs can be determined according to the network addresses of the 5 first videos, and then the network addresses of the 5 second videos are obtained from the 5 video sets.
In the embodiment of the application, one or more videos can be determined for each first video. Specifically, each first video can determine a video, that is to say, a video, such as a second video, is obtained from a video set to which the first video belongs; each first video may also determine a plurality of videos, that is, a plurality of videos may be obtained from a video set to which the first video belongs, for example, two videos, a second video and a third video may be 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 2 videos are corresponding to each first video and are respectively recorded as a second video and a third video, the total number of the second video and the third video can be 10. Acquiring a network address of the second video and a network address of the 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 the 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 network addresses of the plurality of videos can be determined to 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 smaller, the number of the determined network addresses of the plurality of videos can take a smaller value.
In the embodiment of the present application, when N >1, since the plurality of first videos may belong to different video sets or albums, it may be determined which videos need to be preferentially selected for source retrieval according to the heat of the album. If the heat of the album to which the video belongs is higher, more people can watch the album, and more videos belonging to the album can be downloaded, so that the use experience of the user is improved.
In an embodiment of the application, the videos in the collection are videos from an album, which may include one or more target videos. Specifically, when the duration of the target videos in the album is short, all the target videos in the album can be combined into one video set, and the first video is the target video in the album, and at this time, one album is one video set. When the target video in the album is long in duration, the target video can be segmented, one target video is segmented 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 segmentation. For example, if the duration of the target video is longer than 6 minutes, slicing the target video, otherwise, not slicing.
In the embodiment of the application, if the duration of a single video in the album is longer, the video can be fragmented. One or more target videos may be included in an album, e.g., if the album is a movie, then the album may be considered to include one target video; multiple videos belonging to the same television play can be considered to belong to the same album, and then the album is considered to contain multiple target videos, and one television play is one target video. The slicing refers to dividing all target videos in an album into a plurality of sub-videos according to a playing sequence, and the duration of the sub-videos is not limited herein, for example, may be 6 minutes. The network address of each sub-video is a URL.
In the embodiment of the application, each sub-video needs to mark the start and stop positions of the time in the target video, namely, mark the playing time interval. If the album comprises a target video, marking the playing time interval of the sub video in the target video by the sub video; if the album includes a plurality of target videos, the sub-video needs to mark the target video to which the sub-video belongs, and also needs to mark the playing time interval of the sub-video in the target video to which the sub-video belongs. The meta information service may also write the segment information of the video into the database, where the segment information of the video includes the album to which the sub-video belongs, the number of the groups to which the sub-video belongs, and the playing time interval of the sub-video, and by indexing the database, the relevant meta information, such as the segment information of the video, is real-time output according to the sub-video.
In the embodiment of the application, the album comprises a target video, a plurality of sub-videos with continuous playing time intervals are obtained after the target video is sliced according to the 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 earlier than 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, and a video set formed by 9 sub-videos is obtained after slicing, and the playing time interval of the first video in the target video is 31 min-40 min, and since 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, the playing time interval of the second video in the target video is 41 min-50 min.
In the embodiment of the application, an album comprises a plurality of target videos, a plurality of sub videos are obtained after the plurality of target videos belonging to the same album are sliced according to playing time intervals, the plurality of sub videos form a video set, a first target video and a second target video are two videos adjacent to each other in the playing time intervals in the plurality of target videos, the first target video is prior to the second target video, the playing time interval of the first video is positioned at the tail end position in the first target video, and the playing time interval of the second video is positioned at the starting position in 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, each sub video has a duration of 10 minutes, after slicing, each target video may be divided into 6 sub videos, and a total of 180 video episodes are obtained, where the first target video is 15 th episode, the first video is 16 th episode in a playing time interval of the first target video from 51 th minute to 60 th minute, and the second video is 1 st minute to 10 th minute in a playing time interval of the second target video. That is, if the first video is the last sub-video at the end of the current set, then the first sub-video of its next set needs to be found as the second video, and then the network address of the second video is pushed to the user-related video server.
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 fragmented files sequenced in the playing time interval, so that the user can be ensured to acquire 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 to 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 residual space of the video server.
The embodiment of the application provides a video acquisition method, wherein the 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 the network address of a second video can be acquired 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, and the video set comprises a plurality of videos with video content having correlation, that is, the second video with correlation with the first video is related to the viewing behavior of the user because the network address of the first video is related to the viewing behavior of the user, and the second video with correlation with the first video is also related to the viewing behavior of the user, so that the user is likely to watch the second video. Therefore, according to the embodiment of the application, the network address of the related second video can be determined according to the video watching behavior of the user, so that the video server downloads the second video in advance, and when the user needs to watch the second video, the video server can directly spit the second video to the user without returning the source through the upper node, so that the user can watch the video which the user wants to watch faster, the waiting time of the user is reduced, and the user experience is further optimized.
Based on the above video acquisition method, the embodiment of the present application further provides a video acquisition device, and referring to fig. 4, a schematic structural diagram of the video acquisition device disclosed in the present application is shown, where the device may include:
a determining unit 100, configured to determine a network address of a first video from video access data within a first preset period of time;
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 correlation to video content.
Optionally, after a target video passes through the slicing according to the playing time interval, a plurality of sub-videos with continuous playing time intervals are obtained, the plurality of sub-videos form a video set, and 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.
Optionally, a plurality of target videos belonging to the same album are respectively segmented 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 with adjacent playing time intervals in the plurality of target videos, the first target video is earlier than the second target video, the playing time interval of the first video is located at the tail position in the first target video, and the playing time interval of the second video is located at the starting position in 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 includes network addresses of a plurality of accessed videos accessed at least once;
sequentially sequencing the network addresses of the multiple accessed videos according to the access times from more to less;
determining network addresses of the first N accessed videos as network addresses 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 to the second video is not collected within a second preset time period.
The embodiment of the application provides a video acquisition device, which 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 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, and the video set comprises a plurality of videos with correlation of video contents, that is to say, the second video and the first video have a 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 related to the first video is also related to the viewing behavior of the user, and it is highly likely that the user will go to watch later. Therefore, according to the embodiment of the application, the network address of the related second video can be determined according to the video watching behavior of the user, so that the video server downloads the second video in advance, and when the user needs to watch the second video, the video server can directly spit the second video to the user, and the user does not need to go back to the source through the upper node, so that the user can watch the video which the user wants to watch faster, the waiting time of the user is reduced, and the user experience is further optimized.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The foregoing is merely a preferred embodiment of the present application, and the present application has been disclosed in the above description of the preferred embodiment, but is not limited thereto. Any person skilled in the art can make many possible variations and modifications to the technical solution of the present application or modifications to equivalent embodiments using the methods and technical contents disclosed above, without departing from the scope of the technical solution of the present application. Therefore, any simple modification, equivalent variation and modification of the above embodiments according to the technical substance of the present application still fall within the scope of the technical solution of the present application.

Claims (9)

1. A method of video acquisition, comprising:
determining a network address of a first video from video access data within a first preset time period; the determining the 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 includes network addresses of a plurality of accessed videos accessed at least once;
sequentially sequencing the network addresses of the multiple accessed videos according to the access times from more to less;
determining network addresses of the first N accessed videos as network addresses of the first video; the N is a positive integer;
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 set comprises a plurality of videos with correlation of video contents; when N >1, respectively acquiring network addresses of a plurality of second videos according to the network addresses of a plurality of first videos; for each of the first videos, one or more videos can be determined.
2. The method of claim 1, wherein a target video is sliced into a plurality of sub-videos having consecutive playing time intervals according to the playing time intervals, the plurality of sub-videos forming one video set, and wherein the playing time interval of the first video in the target video precedes the playing time interval of the second video in the target video.
3. The method of 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, a first target video and a second target video are two videos adjacent to each other in the playing time interval among the plurality of target videos, the first target video precedes the second target video, the playing time interval of the first video is located at an end position in the first target video, and the playing time interval of the second video is located at a start position in the second target video.
4. The method of claim 1, wherein there is a positive correlation between the N and the remaining disk space of the video server.
5. A method according to any one of claims 1-3, wherein the obtaining the network address of the 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 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.
6. A method according to any one of claims 1-3, characterized in that the method further comprises:
and if the access information to the second video is not collected in the second preset time period, controlling the video server to delete the second video.
7. A video acquisition device, comprising:
a determining unit, configured to determine a network address of a first video from video access data within a first preset time period; the determining the 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 includes network addresses of a plurality of accessed videos accessed at least once;
sequentially sequencing the network addresses of the multiple accessed videos according to the access times from more to less;
determining network addresses of the first N accessed videos as network addresses of the first video; the N is a positive integer;
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 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 set comprises a plurality of videos with correlation of video contents; when N >1, respectively acquiring network addresses of a plurality of second videos according to the network addresses of a plurality of first videos; for each of the first videos, one or more videos can be determined.
8. The apparatus of claim 7, wherein a target video is sliced into a plurality of sub-videos having consecutive playing time intervals according to the playing time intervals, the plurality of sub-videos forming one of the video sets, the playing time interval of the first video in the target video preceding the playing time interval of the second video in the target video.
9. The apparatus of claim 7, wherein a plurality of target videos belonging to a same album are divided into a plurality of sub-videos according to play time intervals, the plurality of sub-videos form one video set, a first target video and a second target video are two videos adjacent to each other in the play time intervals among the plurality of target videos, the first target video precedes the second target video, the play time interval of the first video is located at an end position in the first target video, and the play time interval of the second video is located at a start position in 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 CN114615550A (en) 2022-06-10
CN114615550B true 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 (18)

* 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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI528798B (en) * 2012-10-11 2016-04-01 緯創資通股份有限公司 Streaming data downloading method and computer readable recording medium thereof
TW201615022A (en) * 2014-10-14 2016-04-16 Hon Hai Prec Ind Co Ltd Video preloading system and method of video preloading

Patent Citations (18)

* 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
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
CN114615550A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US11303970B2 (en) Systems and methods for internet video delivery
US9407974B2 (en) Segmenting video based on timestamps in comments
US20150331856A1 (en) Time-based content aggregator
AU2016204919B2 (en) Intelligent data delivery and storage based on data characteristics
JP5038295B2 (en) Technologies and systems that support podcasting
US6594682B2 (en) Client-side system for scheduling delivery of web content and locally managing the web content
JP4995815B2 (en) Podcast update method, portable media player, and computer program
US8620699B2 (en) Heavy influencer media recommendations
US9635419B2 (en) Video content monitoring device and methods thereof
US20090083326A1 (en) Experience bookmark for dynamically generated multimedia content playlist
WO2018222334A1 (en) Video content graph including enhanced metadata
US8356012B2 (en) Management of multimedia content
CN102740159A (en) Media file storage format and adaptive delivery system
US8706853B2 (en) Content processing apparatus, content processing method, and recording medium
EP2409241A1 (en) Dynamic variable rate media delivery system
CN101421724A (en) Video generation based on aggregate user data
CN101673298A (en) Video data distributed caching method in video on demand
US9648394B2 (en) Video encoding and serving architecture
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
WO2014071239A1 (en) Bookmarking prospective media content on computer network
Cheng et al. Exploring interest correlation for peer-to-peer socialized video sharing
CN114615550B (en) Video acquisition method and device
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

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