[go: up one dir, main page]

CN110769284A - Video highlight caching method and related device - Google Patents

Video highlight caching method and related device Download PDF

Info

Publication number
CN110769284A
CN110769284A CN201911137460.8A CN201911137460A CN110769284A CN 110769284 A CN110769284 A CN 110769284A CN 201911137460 A CN201911137460 A CN 201911137460A CN 110769284 A CN110769284 A CN 110769284A
Authority
CN
China
Prior art keywords
video
content
wonderful
server
heat curve
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.)
Pending
Application number
CN201911137460.8A
Other languages
Chinese (zh)
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.)
Shenzhen Xunlei Networking Technologies Co Ltd
Original Assignee
Shenzhen Xunlei Networking Technologies 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 Shenzhen Xunlei Networking Technologies Co Ltd filed Critical Shenzhen Xunlei Networking Technologies Co Ltd
Priority to CN201911137460.8A priority Critical patent/CN110769284A/en
Publication of CN110769284A publication Critical patent/CN110769284A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种视频精彩内容缓存方法。本发明还公开了一种视频精彩内容缓存用户端、一种视频精彩内容缓存服务器。本发明所实现的有益效果是满足用户通过网络观看带有热度曲线的视频时,选择观看该视频的视频精彩内容时减少卡顿的需求。本发明的方案主要是:用户端接收具有热度曲线的视频的播放指令,然后向该视频的服务器发送该视频以及热度曲线的下载请求,用户端在缓存视频的过程中,用户端可以将已缓存的视频播放,若缓存速度大于播放速度,则用户端基于已下载的所述热度曲线生成视频精彩内容缓存请求,向服务器发送视频精彩内容缓存请求,并缓存服务器发送的视频精彩内容。

The invention discloses a method for caching wonderful video content. The invention also discloses a video wonderful content cache client and a video wonderful content cache server. The beneficial effect achieved by the present invention is to meet the requirement of reducing the freeze when the user selects to watch the wonderful video content of the video when watching a video with a heat curve through the network. The scheme of the present invention is mainly as follows: the user terminal receives a playback instruction of a video with a heat curve, and then sends a download request of the video and the heat curve to the server of the video. During the process of caching the video, the user terminal can If the cache speed is greater than the playback speed, the client generates a video highlight content cache request based on the downloaded heat curve, sends a video highlight content cache request to the server, and caches the video highlight content sent by the server.

Description

视频精彩内容缓存方法以及相关装置Video highlight content caching method and related device

技术领域technical field

本发明涉及视频数据处理领域,尤其涉及视频精彩内容缓存方法以及相关装置。The invention relates to the field of video data processing, and in particular, to a method for caching wonderful video content and a related device.

背景技术Background technique

随着社会生活节奏的加快,用户对视频的观看也出现了快速消费的现象,用户希望在短时间内对视频的精彩内容有一个快速浏览的需求,以便于决定是否继续对该视频进行观看。With the acceleration of the pace of social life, users' viewing of videos is also rapidly consuming. Users hope to quickly browse the wonderful content of the video in a short period of time, so as to decide whether to continue watching the video.

现有技术中,为对不同视频的精彩内容在视频中进行快速定位,视频的精彩内容由该视频的部分视频的内容片段组成,在中国已公开申请号为CN201810943002.2的专利申请给出了对视频的热度曲线的计算方法,可以依据该文献给出热度曲线的计算方法得出不同视频的内容片段的热度曲线,该热度曲线的波峰部分表示该视频的视频精彩内容,该热度曲线可以依托用户端的媒体播放器(例如迅雷影音)收集不同用户的对该视频的不同内容片段的不同操作,并对这些操作进行预设的加权计算,得到该视频的不同内容片段的热度值,再将该视频的内容片段的热度值整合成该视频的热度曲线。In the prior art, in order to quickly locate the wonderful content of different videos in the video, the wonderful content of the video is composed of content fragments of some videos of the video, and the patent application published in China with the application number CN201810943002.2 provides For the calculation method of the heat curve of the video, the heat curve of the content clips of different videos can be obtained according to the calculation method of the heat curve given in this document. The peak part of the heat curve represents the video content of the video. The heat curve can rely on The media player on the client side (such as Xunlei Video) collects different operations of different users on different content segments of the video, and performs preset weighted calculations on these operations to obtain the popularity values of different content segments of the video, and then use the The heat value of the video's content segments is integrated into the video's heat curve.

当用户通过网络观看带有热度曲线的视频时,该热度曲线会显示在该视频的进度条上。通过该热度曲线与视频进度条的结合,用户可以清楚了解到该视频的视频精彩内容在进度条的位置,但目前技术中视频是顺序播放并只缓存当前观看视频位置点后面一段时间的视频片段,这样用户在观看视频的过程中,假如想观看该视频的视频精彩内容,需要采用倍速播放的方式,或者手工拖动进度条直接跳转到该视频的热度曲线的波峰部分位置播放,当这个跳转位置超过当前观看视频位置点后面的那一段已缓存的视频片段时,由于该视频热度曲线的波峰部分位置对应的视频精彩内容片段未全部缓存,则会出现视频卡顿的情况,无法满足用户通过网络观看带有热度曲线的视频时,观看该视频的视频精彩内容不卡顿的需求。When a user watches a video with a heat curve through the network, the heat curve will be displayed on the progress bar of the video. Through the combination of the heat curve and the video progress bar, the user can clearly understand the position of the video content of the video on the progress bar, but in the current technology, the videos are played sequentially and only the video clips that are a period of time behind the current video position are cached. , in the process of watching the video, if the user wants to watch the wonderful content of the video, he needs to play at double speed, or manually drag the progress bar to jump directly to the peak of the video's heat curve. When the jump position exceeds the cached video clip behind the current viewing video position, because the video highlights corresponding to the peak part of the video heat curve are not all cached, the video will freeze, which cannot be satisfied. When a user watches a video with a heat curve through the network, it is not necessary to watch the video content of the video without freezing.

发明内容SUMMARY OF THE INVENTION

本发明的主要目的在于提供视频精彩内容缓存方法以及相关装置,旨在减缓用户通过网络观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。The main purpose of the present invention is to provide a method for caching wonderful video content and a related device, which aims to alleviate the problem that the wonderful video content of the video is stuck when a user watches a video with a heat curve through the network.

为实现上述目的,本发明第一方面提供一种视频精彩内容缓存方法,包括:To achieve the above purpose, a first aspect of the present invention provides a method for caching wonderful video content, including:

用户端接收视频的播放指令,所述视频具有对应的热度曲线,所述热度曲线的波峰部分反映所述视频的视频精彩内容的精彩数据范围;The user terminal receives a video playback instruction, the video has a corresponding heat curve, and the peak part of the heat curve reflects the wonderful data range of the video content of the video;

所述用户端向所述视频的服务器发送所述视频的缓存请求以及所述热度曲线的下载请求;The client sends a cache request of the video and a download request of the heat curve to the server of the video;

所述用户端缓存所述服务器根据所述缓存请求发送的所述视频,并下载所述服务器根据所述下载请求发送的所述热度曲线;The client caches the video sent by the server according to the cache request, and downloads the heat curve sent by the server according to the download request;

在所述用户端缓存所述视频的过程中,所述用户端将已缓存的所述视频播放;During the process of caching the video by the client, the client plays the cached video;

若所述视频的缓存速度大于所述视频的播放速度,则所述用户端基于已下载的所述热度曲线生成视频精彩内容缓存请求,向所述服务器发送所述视频精彩内容缓存请求,并缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容。If the cache speed of the video is greater than the playback speed of the video, the client generates a video highlight content cache request based on the downloaded heat curve, sends the video highlight content cache request to the server, and caches the video highlight content. The server caches the video highlight content sent according to the video highlight content request.

可选地,所述用户端基于已下载的所述热度曲线生成视频精彩内容缓存请求包括:Optionally, the user terminal generating a video highlight content cache request based on the downloaded heat curve includes:

所述用户端在所述热度曲线中,确定反映视频精彩内容的精彩数据范围;The user terminal determines, in the heat curve, a wonderful data range that reflects the wonderful content of the video;

所述用户端在所述精彩数据范围中,确定未包含在所述视频的已缓存数据范围中的目标数据范围;In the wonderful data range, the user terminal determines a target data range that is not included in the cached data range of the video;

所述用户端生成视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述目标数据范围。The user terminal generates a video highlight content cache request, where the video highlight content cache request includes the target data range.

可选地,所述用户端向所述服务器发送所述视频精彩内容缓存请求包括:Optionally, the client sending the video highlight content caching request to the server includes:

当所述视频精彩内容缓存请求为多个的情况下,所述用户端按特定顺序向所述服务器发送所述视频精彩内容缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序。When there are multiple video highlight content caching requests, the client sends the video highlight content caching requests to the server in a specific order, and the specific order is the corresponding video highlight content caching requests The order in which the video highlights are played on the video.

可选地,在所述用户端缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容之后,该方法还包括:Optionally, after the client caches the wonderful video content sent by the server according to the video highlight content caching request, the method further includes:

所述用户端根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容;The user terminal determines the wonderful content of the video corresponding to the wonderful data range in the video according to the wonderful data range;

所述用户端生成所述视频的视频精彩内容的视频精彩内容集锦;The user terminal generates a video highlight content collection of the video highlight content of the video;

所述用户端播放所述视频精彩内容集锦。The user terminal plays the video highlights.

可选地,所述用户端根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容包括:Optionally, the user terminal determines in the video according to the exciting data range, the video exciting content corresponding to the exciting data range includes:

所述用户端根据所述精彩数据范围在所述视频中截取所述精彩数据范围对应的视频精彩内容;或,The user terminal intercepts the wonderful content of the video corresponding to the wonderful data range in the video according to the wonderful data range; or,

所述用户端根据所述精彩数据范围在所述视频中标记所述精彩数据范围对应的视频精彩内容。The user terminal marks the video highlight content corresponding to the wonderful data range in the video according to the wonderful data range.

为实现上述目的,本发明第二方面提供另一种视频精彩内容缓存方法,包括:In order to achieve the above purpose, the second aspect of the present invention provides another method for caching wonderful video content, including:

服务器接收用户端发送的对视频的缓存请求以及对所述视频的热度曲线的下载请求,所述热度曲线的波峰部分反映所述视频的视频精彩内容的精彩数据范围;The server receives the cache request for the video and the download request for the heat curve of the video sent by the client, and the peak part of the heat curve reflects the wonderful data range of the wonderful video content of the video;

所述服务器根据所述缓存请求确定所述视频以及根据所述热度曲线的下载请求确定所述热度曲线;The server determines the video according to the cache request and determines the heat curve according to the download request of the heat curve;

所述服务器向所述用户端发送所述视频以及所述热度曲线;The server sends the video and the heat curve to the client;

在所述服务器向所述用户端发送所述视频的过程中,所述服务器接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求;During the process of sending the video to the client by the server, the server receives a cache request for wonderful video content generated by the client based on the downloaded heat curve;

所述服务器根据所述视频精彩内容缓存请求确定所述视频中的视频精彩内容;The server determines the video highlights in the video according to the video highlight content cache request;

所述服务器向所述用户端发送所述视频精彩内容。The server sends the wonderful video content to the client.

可选地,所述服务器接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求包括:Optionally, the server receiving the video highlight content cache request generated by the client based on the downloaded heat curve includes:

所述服务器接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述精彩数据范围中确定未包含在所述用户端已缓存的视频数据范围中的目标数据范围,所述精彩数据范围为所述用户端在所述热度曲线中,确定反映视频精彩内容的数据范围。The server receives a video highlight content cache request generated by the client based on the downloaded heat curve, and the video highlight content cache request includes a range of video data that is determined not to be cached by the client in the wonderful data range. The target data range in , and the wonderful data range is the data range that the user terminal determines in the heat curve to reflect the wonderful content of the video.

可选地,所述服务器接收所述用户端发送的所述精彩内容缓存请求包括:Optionally, the server receiving the wonderful content cache request sent by the client includes:

当视频精彩内容缓存请求为多个的情况下,所述服务器接收所述用户端按特定顺序发送的所述视频精彩内容的缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序;When there are multiple video highlight content caching requests, the server receives the video highlight content cache requests sent by the client in a specific order, and the specific order is the corresponding video highlight content cache requests. The order in which the video highlights are played on the video;

可选地,在服务器接收用户端发送的视频的缓存请求以及所述视频的热度曲线的下载请求之前,所述方法还包括:Optionally, before the server receives the video cache request and the download request of the video heat curve sent by the client, the method further includes:

所述服务器获取构成所述视频的各内容片段的热度特征数据,其中所述热度特征数据包括预设种类数的热度标记和每种所述热度标记对应的数量;The server acquires the popularity feature data of each content segment that constitutes the video, wherein the popularity feature data includes a preset number of popularity tags and the number corresponding to each type of the popularity tags;

所述服务器利用预先为每种所述热度标记分别设置的权值对相应种类热度标记的数量进行加权计算,得到每个所述内容片段的热度值;The server performs a weighted calculation on the number of the corresponding type of heat marks by using the weights set for each of the heat marks in advance, to obtain the heat value of each of the content segments;

所述服务器根据各所述内容片段的热度值绘制所述视频的热度曲线。The server draws a popularity curve of the video according to the popularity value of each of the content segments.

为实现上述目的,本发明第三方面提供一种视频精彩内容缓存用户端,包括:In order to achieve the above purpose, a third aspect of the present invention provides a video wonderful content caching client, including:

第一接收单元,用于接收视频的播放指令,所述视频具有对应的热度曲线,所述热度曲线的波峰部分反映所述视频的视频精彩内容的精彩数据范围;a first receiving unit, configured to receive a playback instruction of a video, the video has a corresponding heat curve, and the peak part of the heat curve reflects the wonderful data range of the video content of the video;

第一发送单元,用于向所述视频的服务器发送所述视频的缓存请求以及所述热度曲线的下载请求;a first sending unit, configured to send a cache request of the video and a download request of the heat curve to the server of the video;

第一缓存单元,用于缓存所述服务器根据所述缓存请求发送的所述视频,并下载所述服务器根据所述下载请求发送的所述热度曲线;a first cache unit, configured to cache the video sent by the server according to the cache request, and download the heat curve sent by the server according to the download request;

第一播放单元,用于在所述用户端缓存所述视频的过程中,将已缓存的所述视频播放;a first playing unit, configured to play the cached video in the process of buffering the video at the user end;

第一生成单元,用于若所述视频的缓存速度大于所述视频的播放速度,则基于已下载的所述热度曲线生成视频精彩内容缓存请求;a first generating unit, configured to generate a video wonderful content cache request based on the downloaded heat curve if the cache speed of the video is greater than the playback speed of the video;

第二发送单元,用于向所述服务器发送所述视频精彩内容缓存请求;a second sending unit, configured to send the video highlight content caching request to the server;

第二缓存单元,用于缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容。A second cache unit, configured to cache the video highlight content sent by the server according to the video highlight content cache request.

可选地,第一生成单元在基于已下载的所述热度曲线生成视频精彩内容缓存请求时,具体用于;Optionally, when the first generation unit generates a video highlight content cache request based on the downloaded heat curve, it is specifically used for;

在所述热度曲线中,确定反映视频精彩内容的精彩数据范围;In the heat curve, determine the wonderful data range that reflects the wonderful content of the video;

在所述精彩数据范围中,确定未包含在所述视频的已缓存数据范围中的目标数据范围;In the wonderful data range, determine a target data range not included in the cached data range of the video;

生成视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述目标数据范围。A video highlight content cache request is generated, where the video highlight content cache request includes the target data range.

可选地,第二发送单元在向所述服务器发送所述视频精彩内容缓存请求时,具体用于:Optionally, when sending the video highlight content caching request to the server, the second sending unit is specifically configured to:

当所述视频精彩内容缓存请求为多个的情况下,按特定顺序向所述服务器发送所述视频精彩内容缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序。When there are multiple video highlight content cache requests, send the video highlight content cache requests to the server in a specific order, and the specific order is that the video highlight content corresponding to each of the video highlight content cache requests is in The sequential playback order on the video.

可选地,所述视频精彩内容缓存用户端还包括:Optionally, the video highlight content caching client further includes:

第一确定单元,用于根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容;a first determining unit, configured to determine in the video the wonderful content of the video corresponding to the wonderful data range in the video according to the wonderful data range;

第二生成单元,用于生成所述视频的视频精彩内容的视频精彩内容集锦;a second generating unit, configured to generate a video highlight content collection of the video highlight content of the video;

第二播放单元,用于播放所述视频精彩内容集锦。The second playing unit is configured to play the video highlights.

可选地,所述第一确定单元在根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容时,具体用于;Optionally, the first determining unit is specifically used for determining the wonderful content of the video corresponding to the wonderful data range in the video according to the wonderful data range;

根据所述精彩数据范围在所述视频中截取所述精彩数据范围对应的视频精彩内容;或,Intercept the video highlight content corresponding to the wonderful data range from the video according to the wonderful data range; or,

根据所述精彩数据范围在所述视频中标记所述精彩数据范围对应的视频精彩内容。The video highlight content corresponding to the highlight data range is marked in the video according to the highlight data range.

为实现上述目的,本发明第四方面提供另一种视频精彩内容缓存服务器,包括:In order to achieve the above object, the fourth aspect of the present invention provides another video wonderful content caching server, including:

第二接收单元,用于接收对视频的缓存请求以及对所述视频的热度曲线的下载请求,所述热度曲线的波峰部分反映所述视频的视频精彩内容;a second receiving unit, configured to receive a cache request for a video and a download request for a heat curve of the video, where the peak part of the heat curve reflects the wonderful video content of the video;

第二确定单元,用于根据所述缓存请求确定所述视频以及根据所述下载请求确定所述热度曲线;a second determining unit, configured to determine the video according to the cache request and determine the heat curve according to the download request;

第三发送单元,用于根据所述视频的缓存请求发送所述视频以及根据所述视频的热度曲线的下载请求发送所述热度曲线;a third sending unit, configured to send the video according to the cache request of the video and send the heat curve according to the download request of the heat curve of the video;

第三接收单元,用于在发送所述视频的过程中,接收基于已下载的所述热度曲线生成的视频精彩内容缓存请求;a third receiving unit, configured to receive a video wonderful content cache request generated based on the downloaded heat curve in the process of sending the video;

第三确定单元,用于根据所述视频精彩内容缓存请求确定所述视频中的视频精彩内容;a third determining unit, configured to determine the wonderful video content in the video according to the video wonderful content cache request;

第四发送单元,用于发送所述视频精彩内容。The fourth sending unit is configured to send the wonderful video content.

可选地,第三接收单元接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求时,具体用于:Optionally, when the third receiving unit receives the video wonderful content cache request generated by the user terminal based on the downloaded heat curve, it is specifically used for:

接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述精彩数据范围中确定未包含在所述用户端已缓存的视频数据范围中的目标数据范围,所述精彩数据范围为所述用户端在所述热度曲线中确定反映视频精彩内容的数据范围。Receive a video highlight content cache request generated by the user terminal based on the downloaded heat curve, where the video highlight content cache request includes a target in the wonderful data range that is determined not to be included in the video data range that has been cached by the user terminal The data range, where the wonderful data range is the data range that the user terminal determines in the heat curve to reflect the wonderful content of the video.

可选地,第三接收单元接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求时,具体用于:Optionally, when the third receiving unit receives the video wonderful content cache request generated by the user terminal based on the downloaded heat curve, it is specifically used for:

当视频精彩内容缓存请求为多个的情况下,接收按特定顺序发送的所述视频精彩内容的缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序;When there are multiple video highlight content caching requests, receive the video highlight content cache requests sent in a specific order, and the specific order is that the video highlight content corresponding to each video highlight content cache request is in the video the order of playback;

可选地,所述视频精彩内容缓存服务器还包括:Optionally, the video highlight content caching server further includes:

获取单元,用于获取构成所述视频的各内容片段的热度特征数据,其中所述热度特征数据包括预设种类数的热度标记和每种所述热度标记对应的数量;an acquisition unit, configured to acquire the hotness feature data of each content segment that constitutes the video, wherein the hotness feature data includes a preset number of hotness marks and the number corresponding to each of the hotness marks;

计算单元,用于利用预先为每种所述热度标记分别设置的权值对相应种类热度标记的数量进行加权计算,得到每个所述内容片段的热度值;a calculation unit, configured to perform weighted calculation on the number of the corresponding types of heat marks by using the weights respectively set for each of the heat marks in advance, to obtain the heat value of each of the content segments;

绘制单元,用于根据各所述内容片段的热度值绘制所述视频的热度曲线。A drawing unit, configured to draw a heat curve of the video according to the heat value of each of the content segments.

为实现上述目的,本发明第五方面提供另一种视频精彩内容缓存用户端,包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的程序,所述程序被所述处理器执行时实现上述第一方面的任意一项视频精彩内容缓存方法。In order to achieve the above object, the fifth aspect of the present invention provides another video highlight content caching client, including a memory and a processor, the memory stores a program that can run on the processor, and the program is When executed by the processor, any one of the video highlight content caching methods of the first aspect above is implemented.

为实现上述目的,本发明第六方面提供另一种视频精彩内容缓存服务器,所述服务器包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的程序,所述程序被所述处理器执行时实现上述第二方面的任意一项视频精彩内容缓存方法。In order to achieve the above object, the sixth aspect of the present invention provides another video highlight content caching server, the server includes a memory and a processor, the memory stores a program that can be run on the processor, and the program is When executed by the processor, any one of the video highlight content caching methods of the second aspect above is implemented.

为实现上述目的,本发明第七方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有程序,所述程序可被一个或者多个处理器执行,以实现上述第一方面以及第二方面中任意一项所述的视频精彩内容缓存方法。In order to achieve the above object, a seventh aspect of the present invention provides a computer-readable storage medium, where a program is stored on the computer-readable storage medium, and the program can be executed by one or more processors to realize the above-mentioned first aspect And the video highlight content caching method according to any one of the second aspect.

为实现上述目的,本发明第八方面提供一种计算机程序产品,包括计算机指令,当其在计算机上运行时,使得计算机可以执行上述第一方面以及第二方面中任一项所述的视频精彩内容缓存方法。In order to achieve the above object, an eighth aspect of the present invention provides a computer program product, comprising computer instructions, when running on a computer, the computer can execute the video highlights described in any one of the first aspect and the second aspect. Content caching method.

本发明所能实现的有益效果:The beneficial effects that the present invention can achieve:

本发明实施例通过将视频的热度曲线和视频的缓存结合,用户端在缓存速度大于播放速度的时候可以实现对该视频的热度曲线的波峰部分视频缓存,减缓用户通过网络观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。In this embodiment of the present invention, by combining the heat curve of the video with the video cache, when the cache speed is greater than the playback speed, the client can cache the video at the peak of the heat curve of the video. When watching a video, the video highlights of the video are stuck.

附图说明Description of drawings

图1为本发明视频精彩内容缓存方法以及相关装置的网络框架图;Fig. 1 is the network frame diagram of the video wonderful content caching method and related device of the present invention;

图2为本发明视频精彩内容缓存方法的一个流程示意图;Fig. 2 is a schematic flow chart of the video wonderful content caching method of the present invention;

图3为本发明视频精彩内容缓存方法的另一个流程示意图;Fig. 3 is another schematic flow chart of the video wonderful content caching method of the present invention;

图4为本发明视频精彩内容缓存方法的另一个流程示意图;Fig. 4 is another schematic flow chart of the video wonderful content caching method of the present invention;

图5为本发明视频精彩内容缓存用户端的一个功能模块示意图;FIG. 5 is a schematic diagram of a functional module of the video wonderful content caching client according to the present invention;

图6为本发明视频精彩内容缓存服务器的一个功能模块示意图;6 is a schematic diagram of a functional module of the video wonderful content cache server of the present invention;

图7为本发明视频精彩内容缓存用户端的另一个功能模块示意图;7 is a schematic diagram of another functional module of the video wonderful content caching client according to the present invention;

图8为本发明视频精彩内容缓存服务器的另一个功能模块示意图;8 is a schematic diagram of another functional module of the video wonderful content caching server of the present invention;

图9为本发明视频精彩内容缓存用户端的另一个功能模块示意图;9 is a schematic diagram of another functional module of the video wonderful content caching client according to the present invention;

图10为本发明视频精彩内容缓存服务器的另一个功能模块示意图。FIG. 10 is a schematic diagram of another functional module of the video highlight content caching server of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for the purpose of description, and should not be construed as indicating or implying their relative importance or implying the number of indicated technical features . Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection required by the present invention.

本发明提供一种视频精彩内容缓存方法以及相关装置,用于减缓用户通过网络观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。The present invention provides a method for caching video wonderful content and a related device, which are used to alleviate the problem that when a user watches a video with a heat curve through a network, the video wonderful content of the video is stuck.

参照图1,图1为本发明视频精彩内容缓存方法以及相关装置的网络框架图。Referring to FIG. 1 , FIG. 1 is a network frame diagram of a method for caching wonderful video content and a related device according to the present invention.

服务器101、计算机用户端102、移动设备用户端103与接入网设备104。A server 101 , a computer client 102 , a mobile device client 103 and an access network device 104 .

其中,服务器101与计算机用户端102连接,服务器101通过接入网设备104与移动设备用户端103连接。在本发明实施例中,仅以一台计算机用户端102为例进行说明,在实际应用中,可以有更多的计算机用户端与服务器相连;同理,也仅以一台移动设备用户端103为例进行说明,在实际应用中,可以有更多的移动设备用户端通过接入网设备104与服务器相连,也可以同时存在计算机用户端和移动设备用户端。The server 101 is connected to the computer client 102 , and the server 101 is connected to the mobile device client 103 through the access network device 104 . In the embodiment of the present invention, only one computer client 102 is used as an example for description. In practical applications, more computer clients may be connected to the server; similarly, only one mobile device client 103 is used. As an example to illustrate, in practical applications, there may be more mobile device clients connected to the server through the access network device 104, and computer clients and mobile device clients may also exist at the same time.

计算机用户端与服务器之间、接入网设备与服务器之间一般通过有线网络连接,也可以通过无线网络连接,比如蜂窝状无线网络,或WiFi网络,或者是其他类型的无线网络。移动设备用户端与接入网设备之间一般通过无线网络连接,也可以通过有线网络连接,如果是有线网络连接,一般的有线网络连接形式是光纤。The computer client and the server, the access network device and the server are generally connected through a wired network, and can also be connected through a wireless network, such as a cellular wireless network, or a WiFi network, or other types of wireless networks. The user terminal of the mobile device and the access network device are generally connected through a wireless network, and can also be connected through a wired network. If it is a wired network connection, the general wired network connection is an optical fiber.

本发明所说的用户端是指媒体播放器,例如迅雷影音,它可以是计算机上安装的媒体播放器,也可以是移动设备上安装的媒体播放器,具体在此不做限定。The user terminal mentioned in the present invention refers to a media player, such as Xunlei Video, which can be a media player installed on a computer or a media player installed on a mobile device, which is not specifically limited here.

参照图2,图2为本发明视频精彩内容缓存方法的一个流程示意图。Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a method for caching wonderful video content according to the present invention.

201、用户端接收视频的播放指令,视频具有对应的热度曲线,热度曲线的波峰部分反映视频的视频精彩内容的精彩数据范围;201. The user terminal receives a playback instruction of the video, the video has a corresponding heat curve, and the peak part of the heat curve reflects the wonderful data range of the wonderful video content of the video;

当用户端的视频具有热度曲线时,用户端可以接收针对具有热度曲线的视频的播放指令,该热度曲线的波峰部分反映视频的视频精彩内容。When the video on the user end has a heat curve, the user end can receive a play instruction for the video with the heat curve, and the peak part of the heat curve reflects the video's wonderful content of the video.

202、用户端向视频的服务器发送视频的缓存请求以及热度曲线的下载请求;202. The client sends a video cache request and a heat curve download request to the video server;

在步骤201中用户端接收到视频的播放指令之后,就会向存储有这个视频的服务器发送该视频的缓存请求以及该视频的热度曲线的下载请求,此处的缓存与下载都是指请求服务器把对应的资源传输到用户端的设备。After receiving the video playback instruction in step 201, the client will send a cache request for the video and a download request for the heat curve of the video to the server storing the video. The cache and download here refer to the requesting server The corresponding resource is transmitted to the device on the client side.

203、用户端缓存服务器根据缓存请求发送的视频,并下载服务器根据下载请求发送的热度曲线;203. The client caches the video sent by the server according to the cache request, and downloads the heat curve sent by the server according to the download request;

在步骤202中用户端向存储有这个视频的服务器发送该视频的缓存请求以及该视频的热度曲线的下载请求之后,用户端会接收到该视频的服务器发送的视频以及热度曲线。In step 202, after the client sends the cache request of the video and the download request of the heat curve of the video to the server storing the video, the client will receive the video and the heat curve sent by the server of the video.

204、在用户端缓存视频的过程中,用户端将已缓存的视频播放;204. During the process of caching the video by the client, the client plays the cached video;

在步骤203中用户端缓存视频的过程中,由于用户端播放的视频往往都是占据较大的存储空间,受用户端与服务器之间的网络传输速度的影响,服务器向用户端完整传输该视频需要一定的时间,在用户端完成该视频的全部内容之前都可以叫做用户端缓存视频的过程,服务器向用户端传输视频一般是分段式传输,即把完整的视频分为一段一段传输,用户端接收到某一段视频之后就可以对该视频进行播放了,而不必等待该视频全部传输完成。In the process of caching the video by the client in step 203, because the videos played by the client usually occupy a large storage space, and affected by the network transmission speed between the client and the server, the server transmits the video completely to the client. It takes a certain amount of time. Before the client completes the entire content of the video, it can be called the process of caching the video by the client. The video transmission from the server to the client is generally segmented transmission, that is, the complete video is divided into segments for transmission. After the terminal receives a certain video, it can play the video without waiting for the completion of all transmission of the video.

205、若视频的缓存速度大于视频的播放速度,用户端基于已下载的热度曲线生成视频精彩内容缓存请求;205. If the cache speed of the video is greater than the playback speed of the video, the client generates a cache request for the wonderful content of the video based on the downloaded heat curve;

在步骤204中用户端一边缓存视频一边将已缓存的视频播放的过程中,用户端监视着视频的缓存速度和视频的播放速度,若用户端确定缓存速度大于视频的播放速度之后,证明用户端的网络传输环境良好,可以满足用户端对视频的正常播放要求,并有一定的网络传输余力,视频的热度曲线是一个很小的文件,一般情况下这个热度曲线的文件容易比视频本身较早的下载完成,此时用户端可以基于已下载的该视频的热度曲线找出热度曲线的波峰部分指代的视频的精彩内容范围,并根据该精彩内容范围生成针对精彩内容的缓存请求。In step 204, when the client side caches the video while playing the cached video, the client side monitors the cache speed of the video and the playback speed of the video. The network transmission environment is good, which can meet the user's normal video playback requirements, and has a certain network transmission capacity. The heat curve of the video is a very small file. In general, the file of this heat curve is easier than the video itself. After the download is complete, the client can find out the wonderful content range of the video indicated by the peak part of the heat curve based on the downloaded heat curve of the video, and generate a cache request for the wonderful content according to the wonderful content range.

206、用户端向服务器发送视频精彩内容缓存请求;206. The client sends a video wonderful content caching request to the server;

在步骤205中生成视频精彩内容缓存请求之后,可以向该视频的服务器发送视频精彩内容缓存请求。After generating the video highlight content caching request in step 205, a video highlight content caching request may be sent to the video server.

207、用户端缓存服务器根据视频精彩内容缓存请求发送的视频精彩内容;207. The client cache server caches the wonderful video content sent by the video wonderful content cache request;

在步骤206中用户端向服务器发送的视频精彩内容请求之后,会接收到服务器根据视频精彩内容缓存请求发送的视频精彩内容,用户端可以对该视频精彩内容进行缓存。After the client sends the video highlight content request to the server in step 206, it will receive the video highlight content sent by the server according to the video highlight content caching request, and the client terminal can cache the video highlight content.

本发明通过将视频的热度曲线和视频的缓存结合,用户端在缓存速度大于播放速度的时候实现对该视频的热度曲线的波峰部分视频缓存,减缓用户通过网络观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。In the present invention, by combining the video's heat curve with the video's cache, the user end realizes the video cache of the peak part of the video's heat curve when the cache speed is greater than the playback speed, so as to slow down when the user watches the video with the heat curve through the network, Watch the video highlights the problem of freezing.

参照图3,图3为本发明视频精彩内容缓存方法的另一个流程示意图。Referring to FIG. 3 , FIG. 3 is another schematic flowchart of a method for caching wonderful video content according to the present invention.

301、服务器接收用户端发送的对视频的缓存请求以及对视频的热度曲线的下载请求,热度曲线的波峰部分反映视频的精彩内容;301. The server receives a cache request for a video and a download request for a heat curve of the video sent by the client, and the peak part of the heat curve reflects the wonderful content of the video;

当视频的服务器中存在具有热度曲线的视频时,,服务器会接收到针对该视频的缓存请求和该视频的热度曲线的下载请求。When a video with a heat curve exists in the video server, the server receives a cache request for the video and a download request for the heat curve of the video.

302、服务器根据缓存请求确定视频以及根据热度曲线的下载请求确定热度曲线;302. The server determines the video according to the cache request and determines the heat curve according to the download request of the heat curve;

在步骤301中服务器接收到该视频的缓存请求和该视频的热度曲线的下载请求之后,可以根据该视频的缓存请求和该视频的热度曲线的下载请求在服务器中确定出该视频与该视频的热度曲线。After receiving the cache request of the video and the download request of the heat curve of the video in step 301, the server can determine the relationship between the video and the video according to the cache request of the video and the download request of the heat curve of the video. heat curve.

303、服务器向用户端发送视频以及热度曲线;303. The server sends the video and the heat curve to the client;

在步骤302中服务器确定出该视频与该视频的热度曲线之后,就可以向用户端发送该视频与该视频的热度曲线,由于视频占用的存储空间往往比较大,服务器向用户端传输视频一般是分段式传输,即把完整的视频分为一段一段传输,视频的热度曲线一般占用存储空间较小,一般热度曲线占用的存储空间往往比较小。After the server determines the heat curve of the video and the video in step 302, the server can send the heat curve of the video and the video to the client. Since the storage space occupied by the video is often large, the video transmitted by the server to the client is generally Segmented transmission, that is, dividing the complete video into segments for transmission, the heat curve of the video generally occupies a small storage space, and the storage space occupied by the general heat curve is often relatively small.

304、服务器向用户端发送视频的过程中,服务器接收用户端基于已下载的热度曲线生成的视频精彩内容缓存请求;304. During the process of the server sending the video to the client, the server receives a cache request for wonderful video content generated by the client based on the downloaded heat curve;

在步骤303中服务器向用户端发送视频的过程中,服务器可以接收用户端已下载的热度曲线生成的视频精彩内容缓存请求。In the process of the server sending the video to the client in step 303, the server may receive a video highlight content cache request generated by the heat curve that has been downloaded by the client.

305、服务器根据视频精彩内容缓存请求确定视频中的视频精彩内容;305. The server determines the video exciting content in the video according to the video exciting content caching request;

在步骤304中服务器接收到视频精彩内容缓存请求之后,可以根据视频精彩内容缓存请求在服务器中确定出视频的视频精彩内容;After receiving the wonderful video content caching request in step 304, the server may determine the video wonderful content of the video in the server according to the video wonderful content caching request;

306、服务器向用户端发送视频精彩内容。306. The server sends the wonderful video content to the client.

在步骤305中服务器确定出视频精彩内容之后,则服务器可以向该用户端发送该视频的同时发送该视频的视频精彩内容。After the server determines the video highlight content in step 305, the server may send the video highlight content of the video while sending the video to the client.

本发明的服务器可以向用户端发送该视频的同时也可以响应视频精彩内容请求发送视频精彩内容,减缓用户通过网络在用户端观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。The server of the present invention can send the video to the user terminal, and also can send the video wonderful content in response to the video wonderful content request, so as to reduce the time when the user watches the video with the heat curve on the user terminal through the network, and the video wonderful content of the video is stuck. The problem.

参照图4,下面对视频精彩内容缓存方法进行详细说明,图4为本发明视频精彩内容缓存方法的另一个流程示意图。Referring to FIG. 4 , a method for caching wonderful video content will be described in detail below. FIG. 4 is another schematic flowchart of the method for caching wonderful video content according to the present invention.

401、服务器获取构成视频的各内容片段的热度特征数据;401. The server obtains the popularity feature data of each content segment constituting the video;

服务器为绘制出针对某视频的热度曲线,参照在中国已公开的专利申请文献申请号为CN201810943002.2的记载方法,服务器需获取构成视频的各内容片段的热度特征数据。热度特征数据由热度标记与每种热度标记对应的数量组成,为得到这个热度特征数据,可以把视频按照一定时长(例如30秒)划分为多个内容片段,服务器可以基于互联网媒体播放器(例如迅雷影音)收集不同用户在观看该视频时对各个内容片段的操作,将不同的操作作为不同的热度标记,例如将被播放次数最多内容片段作为最多播放标记、被主动表达喜欢的内容片段作为喜欢标记、被发起评论的内容片段作为评论标记、被发表弹幕的内容片段作为弹幕标记、被制作为短时频的内容片段作为短视频标记等。服务器基于互联网大数据收集该视频不同内容片段的不同热度标记以及每种热度标记对应的数量,并保存。服务器获取构成视频的各内容片段的热度特征数据一般是获取服务器当前保存最新的构成视频的各内容片段的热度特征数据。In order to draw a heat curve for a certain video, the server needs to obtain the heat characteristic data of each content segment that constitutes the video by referring to the method described in the patent application document published in China with the application number CN201810943002.2. The hotness feature data consists of hotness tags and the number corresponding to each hotness tag. In order to obtain this hotness feature data, the video can be divided into multiple content segments according to a certain duration (for example, 30 seconds). The server can be based on Internet media players (for example, Xunlei Video) collects the operations of different users on each content segment when watching the video, and uses different operations as different hot marks, for example, the most played content segment is the most played mark, and the content segment that has been actively expressed is liked. Marking, the content segment that is initiated a comment is used as a comment mark, the content segment that is published as a bullet screen is marked as a bullet screen, and the content segment produced as a short-term frequency is used as a short video mark, etc. The server collects different hot marks of different content segments of the video and the corresponding quantity of each hot mark based on Internet big data, and saves them. The acquisition of the popularity feature data of each content segment constituting the video by the server generally is to acquire the popularity feature data of each content segment constituting the video currently stored by the server.

402、服务器加权计算热度曲线特征数据,得到热度值;402. The server weights and calculates the characteristic data of the heat curve to obtain a heat value;

对步骤401中获取到的视频各内容片段的热度特征数据,服务器利用预先为每种热度标记分别设置的权值对相应种类热度标记的数量进行加权计算,就可得到每个内容片段的热度值。For the hotness feature data of each content segment of the video obtained in step 401, the server uses the pre-set weights for each hotness mark to perform weighted calculation on the number of corresponding types of hotness marks, and then the hotness value of each content segment can be obtained. .

403、服务器绘制热度曲线;403. The server draws a heat curve;

对于步骤402中得到视频的每个内容片段的热度值,可按照在中国已公开申请号为CN201810943002.2的记载方法绘制得到该视频的热度曲线。For the heat value of each content segment of the video obtained in step 402, the heat curve of the video can be obtained by drawing according to the method described in the published application number CN201810943002.2 in China.

404、用户端接收视频的播放指令;404. The client receives a video playback instruction;

此步骤的执行如图2步骤201类似,此处不再赘述。The execution of this step is similar to step 201 in FIG. 2 , and details are not repeated here.

405、用户端向服务器发送视频的缓存请求和视频的热度曲线的下载请求;405. The client sends a video cache request and a video heat curve download request to the server;

此步骤的执行如图2中步骤202类似,此处不再赘述。The execution of this step is similar to step 202 in FIG. 2 , and details are not repeated here.

406、服务器确定视频以及热度曲线;406. The server determines the video and the heat curve;

此步骤的执行如图3中步骤302类似,此处不再赘述。The execution of this step is similar to step 302 in FIG. 3 , and details are not repeated here.

407、服务器向用户端发送视频以及视频的热度曲线;407. The server sends the video and the heat curve of the video to the client;

此步骤的执行如图3步骤303的执行类似,此处不再赘述。The execution of this step is similar to that of step 303 in FIG. 3 , and details are not repeated here.

408、用户端缓存服务器发送的视频,下载视频的热度曲线;408. The client caches the video sent by the server, and downloads the heat curve of the video;

此步骤的执行如图3步骤203的执行类似,此处不再赘述。The execution of this step is similar to that of step 203 in FIG. 3 , and details are not repeated here.

409、用户端在缓存视频过程中,播放已缓存视频;409. During the process of caching the video, the client plays the cached video;

此步骤的执行如图2步骤204的执行类似,此处不再赘述。The execution of this step is similar to that of step 204 in FIG. 2 , and details are not repeated here.

410、用户端判断视频缓存速度是否大于播放速度,若缓存速度大于播放速度,则执行步骤411,若缓存速度小于或等于播放速度,则执行步骤408;410. The user terminal determines whether the video cache speed is greater than the playback speed. If the cache speed is greater than the playback speed, step 411 is performed, and if the cache speed is less than or equal to the playback speed, step 408 is performed;

在步骤409用户端一边缓存视频一边将已缓存的视频播放的过程中,用户端可以监视着视频的缓存速度和视频的播放速度,并判断视频的缓存速度是否大于视频的播放速度。需要说明的是,本步骤中用户端会一直监视着视频的缓存速度和播放速度,也可以是隔一定的时长监控一次,具体时长在此不做限定。In step 409, when the client side caches the video while playing the cached video, the client side can monitor the video cache speed and the video playback speed, and determine whether the video cache speed is greater than the video playback speed. It should be noted that, in this step, the user terminal will always monitor the cache speed and playback speed of the video, or it may be monitored once at a certain period of time, and the specific period is not limited here.

411、用户端确定视频精彩内容的精彩数据范围;411. The user terminal determines the wonderful data range of the wonderful content of the video;

在步骤410中用户端确定缓存速度大于播放速度,并且步骤408中用户端已经下载了该视频的热度曲线的情况下,用户端通过该热度曲线的波峰部分确定对应视频精彩内容的精彩内容数据范围。In the case where the client determines that the cache speed is greater than the playback speed in step 410, and the client has downloaded the heat curve of the video in step 408, the client determines the exciting content data range corresponding to the wonderful content of the video through the peak part of the heat curve .

412、用户端在精彩数据范围内确定目标数据范围;412. The user terminal determines the target data range within the wonderful data range;

在步骤411中用户端确定出的精彩内容数据范围中除去已经缓存的部分视频精彩内容对应的数据范围,确定未缓存的精彩内容范围对应的目标数据范围,本步骤的目的在于去除在之前已缓存的精彩内容,避免重复下载,减少网络资源的浪费。In step 411, the data range of the wonderful content determined by the user terminal is removed, and the data range corresponding to the part of the video content that has been cached is removed, and the target data range corresponding to the range of the uncached wonderful content is determined. The purpose of this step is to remove the previously cached content range. The wonderful content, avoid repeated download, reduce the waste of network resources.

413、用户端生成视频精彩内容缓存请求;413. The client generates a cache request for wonderful video content;

在步骤412中得到目标数据范围之后,用户端可以生成包含目标数据范围的视频精彩内容缓存请求。After obtaining the target data range in step 412, the client may generate a video highlight content cache request including the target data range.

需要说明的是,在实际应用中用户端在本步骤生成的精彩内容缓存请求可以是多个,多个精彩内容缓存请求的生成可以是根据有多个视频精彩内容对应的视频片段生成,也可以是把一个视频精彩内容片段按一定规律(例如固定时长或固定帧数等)划分多个子片段,由每个子片段生成一个精彩内容缓存请求,也可以是其他把视频精彩内容生成多个视频精彩内容缓存请求的方法,在此具体不做限定。It should be noted that, in practical applications, there may be multiple exciting content cache requests generated by the client in this step, and the multiple exciting content caching requests may be generated based on video clips corresponding to multiple video exciting contents, or may be generated. It is to divide a video highlight content segment into multiple sub-segments according to a certain rule (such as fixed duration or fixed number of frames, etc.), and each sub-segment generates a highlight content cache request, or other wonderful video content generates multiple video highlights. The method for caching requests is not specifically limited here.

414、用户端向服务器发送视频精彩内容请求;414. The client sends a video wonderful content request to the server;

此步骤的执行如图2步骤207的执行类似,此处不再赘述。The execution of this step is similar to that of step 207 in FIG. 2 , and details are not repeated here.

需要说明的是,在实际应用中,当所述视频精彩内容缓存请求为多个的情况下,用户端可以按特定顺序向所述服务器发送所述视频精彩内容缓存请求,所述特定顺序为各个视频精彩内容缓存请求对应的视频精彩内容在视频上的先后播放顺序,这样便于用户端对精彩视频内容的寻找与发送。It should be noted that, in practical applications, when there are multiple video highlight content caching requests, the client can send the video highlight content caching requests to the server in a specific order, and the specific order is each The order in which the video highlights corresponding to the video highlight content cache request are played sequentially on the video, which facilitates the user terminal to search and send the highlight video content.

415、服务器确定视频精彩内容;415. The server determines the wonderful content of the video;

此步骤的执行如图3步骤305的执行类似,此处不再赘述。The execution of this step is similar to that of step 305 in FIG. 3 , and details are not repeated here.

416、服务器向用户端发送视频精彩内容;416. The server sends the wonderful video content to the client;

此步骤的执行如图3步骤306的执行类似,此处不再赘述。The execution of this step is similar to that of step 306 in FIG. 3 , and details are not repeated here.

417、用户端缓存视频精彩内容;417. The client caches the wonderful content of the video;

此步骤的执行如图2步骤208的执行类似,此处不再赘述。The execution of this step is similar to that of step 208 in FIG. 2 , and details are not repeated here.

418、用户端确定精彩数据范围对应的视频精彩内容;418. The user terminal determines the wonderful content of the video corresponding to the wonderful data range;

在步骤417中用户端对视频精彩内容缓存完成之后,相当于激活了用户端视频精彩内容的播放功能,用户端会根据热度曲线的波峰部分对应的视频精彩内容数据范围在已缓存的视频数据(即步骤408中缓存的视频数据和步骤417中缓存的视频精彩内容数据)中确定出视频精彩内容,用户端可以通过从已缓存的视频数据中把视频精彩内容单独截取出来,也可以在已缓存的视频数据中把视频精彩内容标记出来。After the user end caches the wonderful video content in step 417, it is equivalent to activating the playback function of the wonderful video content on the user end. That is to say, the video wonderful content is determined from the video data cached in step 408 and the video wonderful content data cached in step 417), and the user terminal can cut out the video wonderful content from the cached video data separately, or it can be stored in the cached video data. Mark the wonderful content of the video in the video data of .

419、用户端生成视频精彩内容的视频精彩内容集锦;419. A collection of wonderful video content generated by the user terminal;

在步骤418中确定视频精彩内容之后,用户端可以针对确定的视频精彩内容生成视频精彩内容集锦。After the video highlight content is determined in step 418, the user terminal may generate a video highlight content collection for the determined video highlight content.

420、用户端播放视频精彩内容集锦。420. The user terminal plays a collection of wonderful video content.

在步骤419中用户端生成视频精彩内容集锦之后,用户端可以主动或受一定条件触发播放该视频精彩内容集锦。After the user terminal generates the video highlight content collection in step 419, the user terminal can actively or triggered by certain conditions to play the video highlight content collection.

本发明中,服务器可以向用户端发送该视频的同时也可以响应视频精彩内容请求发送视频精彩内容,在用户端的视频缓存速度有余力的情况下,实现可以同时对视频与视频精彩内容的缓存,减缓用户通过网络在用户端观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题,在用户端实现对精彩视频内容的缓存之后,用户端还可以对视频内容进行独立播放,即可以满足用户观看视频精彩内容不卡顿的情况下,可以让用户对视频的精彩内容部分有个了解。In the present invention, the server can send the video to the client, and also can send the wonderful content of the video in response to the request for the wonderful content of the video. In the case that the video caching speed of the client has enough capacity, the video and the wonderful content of the video can be cached at the same time. Alleviate the problem that when users watch videos with a heat curve on the client side through the network, the video content of the video gets stuck. After the user side realizes the caching of the wonderful video content, the client side can also play the video content independently. , so that users can have an understanding of the wonderful content of the video without being stuck watching the wonderful content of the video.

参照图5,图5为本发明视频精彩内容缓存用户端的一个功能模块示意图。Referring to FIG. 5 , FIG. 5 is a schematic diagram of a functional module of a user end for caching wonderful video content according to the present invention.

第一接收单元501,用于接收视频的播放指令,所述视频具有对应的热度曲线,所述热度曲线的波峰部分反映所述视频的视频精彩内容的精彩数据范围;The first receiving unit 501 is configured to receive a playback instruction of a video, the video has a corresponding heat curve, and the peak part of the heat curve reflects the wonderful data range of the video content of the video;

第一发送单元502,用于向所述视频的服务器发送所述视频的缓存请求以及所述热度曲线的下载请求;a first sending unit 502, configured to send a cache request of the video and a download request of the heat curve to a server of the video;

第一缓存单元503,用于缓存所述服务器根据所述缓存请求发送的所述视频,并下载所述服务器根据所述下载请求发送的所述热度曲线;a first cache unit 503, configured to cache the video sent by the server according to the cache request, and download the heat curve sent by the server according to the download request;

第一播放单元504,用于在所述用户端缓存所述视频的过程中,将已缓存的所述视频播放;a first playing unit 504, configured to play the cached video in the process of buffering the video at the client;

第一生成单元505,用于若所述缓存速度大于所述播放速度,则基于已下载的所述热度曲线生成视频精彩内容缓存请求;A first generating unit 505, configured to generate a video highlight content cache request based on the downloaded heat curve if the cache speed is greater than the playback speed;

第二发送单元506,用于向所述服务器发送所述视频精彩内容缓存请求;A second sending unit 506, configured to send the video highlight content caching request to the server;

第二缓存单元507,用于缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容。The second cache unit 507 is configured to cache the video highlight content sent by the server according to the video highlight content cache request.

本实施例中,视频精彩内容缓存用户端所执行的操作与前述图2的实施例类似,此处不再赘述。In this embodiment, the operations performed by the video highlight content caching client are similar to those in the foregoing embodiment in FIG. 2 , and details are not described herein again.

本发明通过将视频的热度曲线和视频的缓存结合,用户端在缓存速度大于播放速度的时候实现对该视频的热度曲线的波峰部分视频缓存,减缓用户通过网络观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。In the present invention, by combining the video's heat curve with the video's cache, the user end realizes the video cache of the peak part of the video's heat curve when the cache speed is greater than the playback speed, so as to slow down when the user watches the video with the heat curve through the network, Watch the video highlights the problem of freezing.

参照图6,图6为本发明视频精彩内容缓存服务器的另一个功能模块示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of another functional module of the video highlight content caching server of the present invention.

第二接收单元601,用于接收对视频的缓存请求以及对所述视频的热度曲线的下载请求,所述热度曲线的波峰部分反映所述视频的视频精彩内容;A second receiving unit 601, configured to receive a cache request for a video and a download request for a heat curve of the video, where the peak part of the heat curve reflects the wonderful video content of the video;

第二确定单元602,用于根据所述缓存请求确定所述视频以及根据所述下载请求确定所述热度曲线;a second determining unit 602, configured to determine the video according to the cache request and determine the heat curve according to the download request;

第三发送单元603,用于根据所述视频的缓存请求发送所述视频以及根据所述视频的热度曲线的下载请求发送所述热度曲线;A third sending unit 603, configured to send the video according to the cache request of the video and send the heat curve according to the download request of the heat curve of the video;

第三接收单元604,用于在发送所述视频的过程中,接收基于已下载的所述热度曲线生成的视频精彩内容缓存请求;A third receiving unit 604, configured to receive a video highlight content cache request generated based on the downloaded heat curve in the process of sending the video;

第三确定单元605,用于根据所述视频精彩内容缓存请求确定所述视频中的视频精彩内容;A third determining unit 605, configured to determine the wonderful video content in the video according to the video highlight content caching request;

第四发送单元606,用于发送所述视频精彩内容。The fourth sending unit 606 is configured to send the wonderful video content.

本实施例中,视频精彩内容缓存服务器所执行的操作与前述图3的实施例类似,此处不再赘述。In this embodiment, the operations performed by the video highlight content caching server are similar to those in the foregoing embodiment in FIG. 3 , and details are not repeated here.

本发明的服务器可以向用户端发送该视频的同时也可以响应视频精彩内容请求发送视频精彩内容,减缓用户通过网络在用户端观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。The server of the present invention can send the video to the user terminal, and also can send the video wonderful content in response to the video wonderful content request, so as to reduce the time when the user watches the video with the heat curve on the user terminal through the network, and the video wonderful content of the video is stuck. The problem.

参照图7,图7为本发明视频精彩内容缓存用户端的另一个功能模块示意图。Referring to FIG. 7 , FIG. 7 is a schematic diagram of another functional module of the video highlight content caching client according to the present invention.

第一接收单元701,用于接收视频的播放指令,所述视频具有对应的热度曲线,所述热度曲线的波峰部分反映所述视频的视频精彩内容;The first receiving unit 701 is configured to receive a playback instruction of a video, the video has a corresponding heat curve, and the peak part of the heat curve reflects the video content of the video;

第一发送单元702,用于向所述视频的服务器发送所述视频的缓存请求以及所述热度曲线的下载请求;a first sending unit 702, configured to send a cache request of the video and a download request of the heat curve to a server of the video;

第一缓存单元703,用于缓存所述服务器根据所述缓存请求发送的所述视频,并下载所述服务器根据所述下载请求发送的所述热度曲线;a first cache unit 703, configured to cache the video sent by the server according to the cache request, and download the heat curve sent by the server according to the download request;

第一播放单元704,用于在所述用户端缓存所述视频的过程中,将已缓存的所述视频播放;a first playing unit 704, configured to play the cached video in the process of buffering the video on the client side;

判断单元705,用于判断所述视频的缓存速度是否大于所述视频的播放速度;Judging unit 705, for judging whether the cache speed of the video is greater than the playback speed of the video;

第一生成单元706,用于若所述缓存速度大于所述播放速度,则基于已下载的所述热度曲线生成视频精彩内容缓存请求;A first generating unit 706, configured to generate a video highlight content cache request based on the downloaded heat curve if the cache speed is greater than the playback speed;

第二发送单元707,用于向所述服务器发送所述视频精彩内容缓存请求;A second sending unit 707, configured to send the video highlight content caching request to the server;

第二缓存单元708,用于缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容。The second cache unit 708 is configured to cache the video highlight content sent by the server according to the video highlight content cache request.

可选地,第一生成单元706在基于已下载的所述热度曲线生成视频精彩内容缓存请求时,具体用于;Optionally, when the first generating unit 706 generates a video highlight content cache request based on the downloaded heat curve, it is specifically used for;

在所述热度曲线中,确定反映视频精彩内容的精彩数据范围;In the heat curve, determine the wonderful data range that reflects the wonderful content of the video;

在所述精彩数据范围中,确定未包含在所述视频的已缓存数据范围中的目标数据范围;In the wonderful data range, determine a target data range not included in the cached data range of the video;

生成视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述目标数据范围。A video highlight content cache request is generated, where the video highlight content cache request includes the target data range.

可选地,第二发送单元707在向所述服务器发送所述视频精彩内容缓存请求时,具体用于:Optionally, when sending the video highlight content caching request to the server, the second sending unit 707 is specifically configured to:

当所述视频精彩内容缓存请求为多个的情况下,按特定顺序向所述服务器发送所述视频精彩内容缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序。When there are multiple video highlight content cache requests, send the video highlight content cache requests to the server in a specific order, and the specific order is that the video highlight content corresponding to each of the video highlight content cache requests is in The sequential playback order on the video.

可选地,所述视频精彩内容缓存用户端还包括:Optionally, the video highlight content caching client further includes:

第一确定单元709,用于根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容;a first determining unit 709, configured to determine the video highlight content corresponding to the wonderful data range in the video according to the wonderful data range;

第二生成单元710,用于生成所述视频的视频精彩内容的视频精彩内容集锦;A second generating unit 710, configured to generate a video highlight content collection of the video highlight content of the video;

第二播放单元711,用于播放所述视频精彩内容集锦。The second playing unit 711 is configured to play the video highlights.

可选地,所述第一确定单元709在根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容时,具体用于;Optionally, when the first determining unit 709 determines the video highlight content corresponding to the highlight data range in the video according to the highlight data range, it is specifically used for;

根据所述精彩数据范围在所述视频中截取所述精彩数据范围对应的视频精彩内容;Intercepting the wonderful content of the video corresponding to the wonderful data range in the video according to the wonderful data range;

或根据所述精彩数据范围在所述视频中标记所述精彩数据范围对应的视频精彩内容。Or mark the video highlight content corresponding to the highlight data range in the video according to the highlight data range.

本实施例中,视频精彩内容缓存用户端所执行的操作与前述图4中用户端执行的步骤类似,此处不再赘述。In this embodiment, the operation performed by the user terminal for caching wonderful video content is similar to the steps performed by the user terminal in the aforementioned FIG. 4 , and details are not repeated here.

本发明通过将视频的热度曲线和视频的缓存结合,用户端在缓存速度大于播放速度的时候实现对该视频的热度曲线的波峰部分视频缓存,减缓用户通过网络观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。In the present invention, by combining the video's heat curve with the video's cache, the user end realizes the video cache of the peak part of the video's heat curve when the cache speed is greater than the playback speed, so as to slow down when the user watches the video with the heat curve through the network, Watch the video highlights the problem of freezing.

参照图8,图8为本发明视频精彩内容缓存服务器的另一个功能模块示意图Referring to FIG. 8, FIG. 8 is a schematic diagram of another functional module of the video wonderful content cache server of the present invention

第二接收单元801,用于接收对视频的缓存请求以及对所述视频的热度曲线的下载请求,所述热度曲线的波峰部分反映所述视频的视频精彩内容;A second receiving unit 801, configured to receive a cache request for a video and a download request for a heat curve of the video, where the peak part of the heat curve reflects the wonderful video content of the video;

第二确定单元802,用于根据所述缓存请求确定所述视频以及根据所述下载请求确定所述热度曲线;a second determining unit 802, configured to determine the video according to the cache request and determine the heat curve according to the download request;

第三发送单元803,用于根据所述视频的缓存请求发送所述视频以及根据所述视频的热度曲线的下载请求发送所述热度曲线;A third sending unit 803, configured to send the video according to the cache request of the video and send the heat curve according to the download request of the heat curve of the video;

第三接收单元804,用于在发送所述视频的过程中,接收基于已下载的所述热度曲线生成的视频精彩内容缓存请求;A third receiving unit 804, configured to receive a video highlight content cache request generated based on the downloaded heat curve in the process of sending the video;

第三确定单元805,用于根据所述视频精彩内容缓存请求确定所述视频中的视频精彩内容;A third determining unit 805, configured to determine the wonderful video content in the video according to the video highlight content caching request;

第四发送单元806,用于发送所述视频精彩内容。The fourth sending unit 806 is configured to send the wonderful video content.

可选地,第三接收单元804接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求时,具体用于:Optionally, when the third receiving unit 804 receives the video highlight content cache request generated by the user terminal based on the downloaded heat curve, it is specifically used for:

接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述精彩数据范围中确定未包含在所述用户端已缓存的视频数据范围中的目标数据范围,所述精彩数据范围为所述用户端在所述热度曲线中确定反映视频精彩内容的数据范围。Receive a video highlight content cache request generated by the user terminal based on the downloaded heat curve, where the video highlight content cache request includes a target in the wonderful data range that is determined not to be included in the video data range that has been cached by the user terminal The data range, where the wonderful data range is the data range that the user terminal determines in the heat curve to reflect the wonderful content of the video.

可选地,第三接收单元804接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求时,具体用于:Optionally, when the third receiving unit 804 receives the video highlight content cache request generated by the user terminal based on the downloaded heat curve, it is specifically used for:

当视频精彩内容缓存请求为多个的情况下,接收按特定顺序发送的所述视频精彩内容的缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序;When there are multiple video highlight content caching requests, receive the video highlight content cache requests sent in a specific order, and the specific order is that the video highlight content corresponding to each video highlight content cache request is in the video the order of playback;

可选地,所述视频精彩内容缓存服务器还包括:Optionally, the video highlight content caching server further includes:

获取单元807,用于获取构成所述视频的各内容片段的热度特征数据,其中所述热度特征数据包括预设种类数的热度标记和每种所述热度标记对应的数量;an acquisition unit 807, configured to acquire the popularity feature data of each content segment constituting the video, wherein the popularity feature data includes a preset number of popularity tags and the corresponding quantity of each type of the popularity tags;

计算单元808,用于利用预先为每种所述热度标记分别设置的权值对相应种类热度标记的数量进行加权计算,得到每个所述内容片段的热度值;A calculation unit 808, configured to perform weighted calculation on the number of the corresponding type of hotness marks by using the weights set for each of the hotness marks in advance, to obtain the hotness value of each of the content segments;

绘制单元809,用于根据各所述内容片段的热度值绘制所述视频的热度曲线。A drawing unit 809, configured to draw a heat curve of the video according to the heat value of each content segment.

本实施例中,视频精彩内容缓存服务器所执行的操作与前述图4中服务器执行的步骤类似,此处不再赘述。In this embodiment, the operations performed by the video highlight content caching server are similar to the steps performed by the server in the foregoing FIG. 4 , and details are not repeated here.

本发明通过将视频的热度曲线和视频的缓存结合,服务器可以向用户端发送该视频的同时也可以响应视频精彩内容请求发送视频精彩内容,减缓用户通过网络在用户端观看带有热度曲线的视频时,观看该视频的视频精彩内容卡顿的问题。In the present invention, by combining the heat curve of the video with the cache of the video, the server can send the video to the user terminal and also send the wonderful content of the video in response to the request for the wonderful content of the video, so as to slow down the user from watching the video with the heat curve on the user end through the network. When watching this video, the video highlights are stuck.

参照图9,图9为本发明视频精彩内容缓存用户端的另一个功能模块示意图。Referring to FIG. 9 , FIG. 9 is a schematic diagram of another functional module of the video highlight content caching client according to the present invention.

该视频精彩内容缓存用户端900可以包括一个或一个以上中央处理器(centralprocessing units,CPU)901和存储器905,该存储器905中存储有一个或一个以上的应用程序或数据。其中,存储器905可以是易失性存储或持久存储。存储在存储器905的程序可以包括一个或一个以上模块,每个模块可以包括对视频精彩内容缓存用户端中的一系列指令操作。更进一步地,中央处理器901可以设置为与存储器905通信,在视频精彩内容缓存用户端900上执行存储器905中的一系列指令操作。视频精彩内容缓存用户端900还可以包括一个或一个以上电源902,一个或一个以上有线或无线网络接口903,一个或一个以上输入输出接口904,和/或,一个或一个以上操作系统,例如Windows Server,Mac OS X,Unix,Linux,FreeBSD等。该中央处理器901可以执行前述图2或图4所示实施例中用户端所执行的操作,具体此处不再赘述。The video highlight content caching client 900 may include one or more central processing units (central processing units, CPU) 901 and a memory 905, where one or more application programs or data are stored in the memory 905. Among them, the memory 905 may be volatile storage or persistent storage. The program stored in the memory 905 may include one or more modules, and each module may include a series of instruction operations in the client for caching video highlights. Furthermore, the central processing unit 901 may be configured to communicate with the memory 905 to execute a series of instruction operations in the memory 905 on the video highlight content caching client 900 . The video highlight cache client 900 may also include one or more power supplies 902, one or more wired or wireless network interfaces 903, one or more input and output interfaces 904, and/or, one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. The central processing unit 901 may perform the operations performed by the client in the embodiment shown in FIG. 2 or FIG. 4 , and details are not repeated here.

参照图10,图10为本发明视频精彩内容缓存服务器的另一个功能模块示意图。Referring to FIG. 10, FIG. 10 is a schematic diagram of another functional module of the video highlight content caching server of the present invention.

该视频精彩内容缓存服务器1000可以包括一个或一个以上中央处理器(centralprocessing units,CPU)1001和存储器1005,该存储器1005中存储有一个或一个以上的应用程序或数据。其中,存储器1005可以是易失性存储或持久存储。存储在存储器1005的程序可以包括一个或一个以上模块,每个模块可以包括对视频精彩内容缓存服务器中的一系列指令操作。更进一步地,中央处理器1001可以设置为与存储器1005通信,在视频精彩内容缓存服务器1000上执行存储器1005中的一系列指令操作。视频精彩内容缓存服务器1000还可以包括一个或一个以上电源1002,一个或一个以上有线或无线网络接口1003,一个或一个以上输入输出接口1004,和/或,一个或一个以上操作系统,例如Windows Server,Mac OSX,Unix,Linux,FreeBSD等。该中央处理器1001可以执行前述图3或图4所示实施例中服务器所执行的操作,具体此处不再赘述。The video highlight content cache server 1000 may include one or more central processing units (central processing units, CPU) 1001 and a memory 1005, where one or more application programs or data are stored in the memory 1005. Among them, the memory 1005 may be volatile storage or persistent storage. The program stored in the memory 1005 may include one or more modules, and each module may include a series of instruction operations on the video highlight content cache server. Furthermore, the central processing unit 1001 may be configured to communicate with the memory 1005 to execute a series of instruction operations in the memory 1005 on the video highlight content caching server 1000 . The video highlight cache server 1000 may also include one or more power supplies 1002, one or more wired or wireless network interfaces 1003, one or more input and output interfaces 1004, and/or, one or more operating systems, such as Windows Server , Mac OSX, Unix, Linux, FreeBSD, etc. The central processing unit 1001 can perform the operations performed by the server in the foregoing embodiment shown in FIG. 3 or FIG. 4 , and details are not repeated here.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.

Claims (14)

1.一种视频精彩内容缓存方法,其特征在于,所述方法包括:1. a video wonderful content caching method, is characterized in that, described method comprises: 用户端接收视频的播放指令,所述视频具有对应的热度曲线,所述热度曲线的波峰部分反映所述视频的视频精彩内容的精彩数据范围;The user terminal receives a video playback instruction, the video has a corresponding heat curve, and the peak part of the heat curve reflects the wonderful data range of the video content of the video; 所述用户端向所述视频的服务器发送所述视频的缓存请求以及所述热度曲线的下载请求;The client sends a cache request of the video and a download request of the heat curve to the server of the video; 所述用户端缓存所述服务器根据所述缓存请求发送的所述视频,并下载所述服务器根据所述下载请求发送的所述热度曲线;The client caches the video sent by the server according to the cache request, and downloads the heat curve sent by the server according to the download request; 在所述用户端缓存所述视频的过程中,所述用户端将已缓存的所述视频播放;During the process of caching the video by the client, the client plays the cached video; 若所述视频的缓存速度大于所述视频的播放速度,则所述用户端基于已下载的所述热度曲线生成视频精彩内容缓存请求,向所述服务器发送所述视频精彩内容缓存请求,并缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容。If the cache speed of the video is greater than the playback speed of the video, the client generates a video highlight content cache request based on the downloaded heat curve, sends the video highlight content cache request to the server, and caches the video highlight content. The server caches the video highlight content sent according to the video highlight content request. 2.如权利要求1所述的视频精彩内容缓存方法,其特征在于,所述用户端基于已下载的所述热度曲线生成视频精彩内容缓存请求包括:2. The method for caching wonderful video content according to claim 1, wherein the generation of the video wonderful content caching request by the user terminal based on the downloaded heat curve comprises: 所述用户端在所述热度曲线中,确定反映视频精彩内容的精彩数据范围;The user terminal determines, in the heat curve, a wonderful data range that reflects the wonderful content of the video; 所述用户端在所述精彩数据范围中,确定未包含在所述视频的已缓存数据范围中的目标数据范围;In the wonderful data range, the user terminal determines a target data range that is not included in the cached data range of the video; 所述用户端生成视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述目标数据范围。The user terminal generates a video highlight content cache request, where the video highlight content cache request includes the target data range. 3.如权利要求2所述的视频精彩内容缓存方法,其特征在于,所述用户端向所述服务器发送所述视频精彩内容缓存请求包括:3. The wonderful video content caching method according to claim 2, wherein the sending, by the client, the request for caching the wonderful video content to the server comprises: 当所述视频精彩内容缓存请求为多个的情况下,所述用户端按特定顺序向所述服务器发送所述视频精彩内容缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序。When there are multiple video highlight content caching requests, the client sends the video highlight content caching requests to the server in a specific order, and the specific order is the corresponding video highlight content caching requests The order in which the video highlights are played on the video. 4.如权利要求1至3中任意一项所述的视频精彩内容缓存方法,其特征在于,在所述用户端缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容之后,所述方法还包括:4. The wonderful video content caching method according to any one of claims 1 to 3, wherein after the client caches the wonderful video content sent by the server according to the video wonderful content caching request , the method also includes: 所述用户端根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容;The user terminal determines the wonderful content of the video corresponding to the wonderful data range in the video according to the wonderful data range; 所述用户端生成所述视频的视频精彩内容的视频精彩内容集锦;The user terminal generates a video highlight content collection of the video highlight content of the video; 所述用户端播放所述视频精彩内容集锦。The user terminal plays the video highlights. 5.如权利要求4所述的视频精彩内容缓存方法,其特征在于,所述用户端根据所述精彩数据范围在所述视频中确定所述精彩数据范围对应的视频精彩内容包括:5. The wonderful video content caching method according to claim 4, wherein the user terminal determines the wonderful video content corresponding to the wonderful data range in the video according to the wonderful data range, comprising: 所述用户端根据所述精彩数据范围在所述视频中截取所述精彩数据范围对应的视频精彩内容;或,The user terminal intercepts the wonderful content of the video corresponding to the wonderful data range in the video according to the wonderful data range; or, 所述用户端根据所述精彩数据范围在所述视频中标记所述精彩数据范围对应的视频精彩内容。The user terminal marks the video highlight content corresponding to the wonderful data range in the video according to the wonderful data range. 6.一种视频精彩内容缓存方法,其特征在于,所述方法包括:6. A method for caching wonderful video content, wherein the method comprises: 服务器接收用户端发送的对视频的缓存请求以及对所述视频的热度曲线的下载请求,所述热度曲线的波峰部分反映所述视频的视频精彩内容的精彩数范围;The server receives the cache request for the video and the download request for the heat curve of the video sent by the client, and the peak part of the heat curve reflects the wonderful number range of the video content of the video; 所述服务器根据所述缓存请求确定所述视频以及根据所述热度曲线的下载请求确定所述热度曲线;The server determines the video according to the cache request and determines the heat curve according to the download request of the heat curve; 所述服务器向所述用户端发送所述视频以及所述热度曲线;The server sends the video and the heat curve to the client; 在所述服务器向所述用户端发送所述视频的过程中,所述服务器接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求;During the process of sending the video to the client by the server, the server receives a cache request for wonderful video content generated by the client based on the downloaded heat curve; 所述服务器根据所述视频精彩内容缓存请求确定所述视频中的视频精彩内容;The server determines the video highlights in the video according to the video highlight content cache request; 所述服务器向所述用户端发送所述视频精彩内容。The server sends the wonderful video content to the client. 7.如权利要求6所述的视频精彩内容缓存方法,其特征在于,所述服务器接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求包括:7. The wonderful video content caching method according to claim 6, wherein the server receiving the video wonderful content caching request generated by the client based on the downloaded heat curve comprises: 所述服务器接收用户端基于已下载的所述热度曲线生成的视频精彩内容缓存请求,所述视频精彩内容缓存请求包括所述精彩数据范围中确定未包含在所述用户端已缓存的视频数据范围中的目标数据范围,所述精彩数据范围为所述用户端在所述热度曲线中,确定反映视频精彩内容的数据范围。The server receives a video highlight content cache request generated by the client based on the downloaded heat curve, and the video highlight content cache request includes a range of video data that is determined not to be cached by the client in the wonderful data range. The target data range in , and the wonderful data range is the data range that the user terminal determines in the heat curve to reflect the wonderful content of the video. 8.如权利要求7所述的视频精彩内容缓存方法,其特征在于,所述服务器接收所述用户端发送的所述精彩内容缓存请求包括:8. The method for caching wonderful video content according to claim 7, wherein receiving, by the server, the request for caching the wonderful content sent by the client comprises: 当视频精彩内容缓存请求为多个的情况下,所述服务器接收所述用户端按特定顺序发送的所述视频精彩内容的缓存请求,所述特定顺序为各个所述视频精彩内容缓存请求对应的视频精彩内容在所述视频上的先后播放顺序。When there are multiple video highlight content caching requests, the server receives the video highlight content cache requests sent by the client in a specific order, and the specific order is the corresponding video highlight content cache requests. The order in which the video highlights are played on the video. 9.如权利要求6至8中任意一项所述的视频精彩内容缓存方法,其特征在于,在服务器接收用户端发送的视频的缓存请求以及所述视频的热度曲线的下载请求之前,所述方法还包括:9. The wonderful video content caching method according to any one of claims 6 to 8, wherein, before the server receives a video cache request sent by a client and a download request for a heat curve of the video, the Methods also include: 所述服务器获取构成所述视频的各内容片段的热度特征数据,其中所述热度特征数据包括预设种类数的热度标记和每种所述热度标记对应的数量;The server acquires the popularity feature data of each content segment that constitutes the video, wherein the popularity feature data includes a preset number of popularity tags and the number corresponding to each type of the popularity tags; 所述服务器利用预先为每种所述热度标记分别设置的权值对相应种类热度标记的数量进行加权计算,得到每个所述内容片段的热度值;The server performs a weighted calculation on the number of the corresponding type of heat marks by using the weights set for each of the heat marks in advance, to obtain the heat value of each of the content segments; 所述服务器根据各所述内容片段的热度值绘制所述视频的热度曲线。The server draws a popularity curve of the video according to the popularity value of each of the content segments. 10.一种视频精彩内容缓存用户端,其特征在于,包括:10. A user terminal for caching wonderful video content, comprising: 第一接收单元,用于接收视频的播放指令,所述视频具有对应的热度曲线,所述热度曲线的波峰部分反映所述视频的视频精彩内容;a first receiving unit, configured to receive a playback instruction of a video, the video has a corresponding heat curve, and the peak part of the heat curve reflects the video content of the video; 第一发送单元,用于向所述视频的服务器发送所述视频的缓存请求以及所述热度曲线的下载请求;a first sending unit, configured to send a cache request of the video and a download request of the heat curve to the server of the video; 第一缓存单元,用于缓存所述服务器根据所述缓存请求发送的所述视频,并下载所述服务器根据所述下载请求发送的所述热度曲线;a first cache unit, configured to cache the video sent by the server according to the cache request, and download the heat curve sent by the server according to the download request; 第一播放单元,用于在所述用户端缓存所述视频的过程中,将已缓存的所述视频播放;a first playing unit, configured to play the cached video in the process of buffering the video at the user end; 判断单元,用于判断所述视频的缓存速度是否大于所述视频的播放速度;A judging unit for judging whether the cache speed of the video is greater than the playback speed of the video; 第一生成单元,用于若所述缓存速度大于所述播放速度,则基于已下载的所述热度曲线生成视频精彩内容缓存请求;a first generating unit, configured to generate a video highlight content cache request based on the downloaded heat curve if the cache speed is greater than the playback speed; 第二发送单元,用于向所述服务器发送所述视频精彩内容缓存请求;a second sending unit, configured to send the video highlight content caching request to the server; 第二缓存单元,用于缓存所述服务器根据所述视频精彩内容缓存请求发送的所述视频精彩内容。A second cache unit, configured to cache the video highlight content sent by the server according to the video highlight content cache request. 11.一种视频精彩内容缓存服务器,其特征在于,所述服务器包括:11. A video wonderful content caching server, wherein the server comprises: 第二接收单元,用于接收对视频的缓存请求以及对所述视频的热度曲线的下载请求,所述热度曲线的波峰部分反映所述视频的视频精彩内容;a second receiving unit, configured to receive a cache request for a video and a download request for a heat curve of the video, where the peak part of the heat curve reflects the wonderful video content of the video; 第二确定单元,用于根据所述缓存请求确定所述视频以及根据所述下载请求确定所述热度曲线;a second determining unit, configured to determine the video according to the cache request and determine the heat curve according to the download request; 第三发送单元,用于根据所述视频的缓存请求发送所述视频以及根据所述视频的热度曲线的下载请求发送所述热度曲线;a third sending unit, configured to send the video according to the cache request of the video and send the heat curve according to the download request of the heat curve of the video; 第三接收单元,用于在发送所述视频的过程中,接收基于已下载的所述热度曲线生成的视频精彩内容缓存请求;a third receiving unit, configured to receive a video wonderful content cache request generated based on the downloaded heat curve in the process of sending the video; 第三确定单元,用于根据所述视频精彩内容缓存请求确定所述视频中的视频精彩内容;a third determining unit, configured to determine the wonderful video content in the video according to the video wonderful content cache request; 第四发送单元,用于发送所述视频精彩内容。The fourth sending unit is configured to send the wonderful video content. 12.一种视频精彩内容缓存用户端,其特征在于,所述用户端包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的如权利要求1至5所述的任意一项方法。12. A video highlight content caching user terminal, characterized in that the user terminal comprises a memory and a processor, and the memory is stored with any of claims 1 to 5 that can run on the processor. a method. 13.一种视频精彩内容缓存服务器,其特征在于,所述服务器包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的如权利要求6至9所述的任意一项方法。13. A video highlight content caching server, characterized in that the server comprises a memory and a processor, and the memory stores any one of claims 6 to 9 that can run on the processor. method. 14.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有程序,所述程序可被一个或者多个处理器执行,以实现如权利要求1至9所述的任意一项方法。14. A computer-readable storage medium, characterized in that a program is stored on the computer-readable storage medium, and the program can be executed by one or more processors to implement the method according to claims 1 to 9 any method.
CN201911137460.8A 2019-11-19 2019-11-19 Video highlight caching method and related device Pending CN110769284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911137460.8A CN110769284A (en) 2019-11-19 2019-11-19 Video highlight caching method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911137460.8A CN110769284A (en) 2019-11-19 2019-11-19 Video highlight caching method and related device

Publications (1)

Publication Number Publication Date
CN110769284A true CN110769284A (en) 2020-02-07

Family

ID=69338597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911137460.8A Pending CN110769284A (en) 2019-11-19 2019-11-19 Video highlight caching method and related device

Country Status (1)

Country Link
CN (1) CN110769284A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327958A (en) * 2020-02-28 2020-06-23 北京百度网讯科技有限公司 Video playing method and device, electronic equipment and storage medium
CN112261472A (en) * 2020-10-19 2021-01-22 上海博泰悦臻电子设备制造有限公司 Short video generation method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011150648A1 (en) * 2010-12-24 2011-12-08 华为技术有限公司 Method and system for providing preview video, media server and playing terminal
CN102487456A (en) * 2009-11-30 2012-06-06 国际商业机器公司 Method and device for providing network video access popularity
US20130259442A1 (en) * 2012-04-02 2013-10-03 Jonathan BLOCH Systems and methods for loading more than one video content at a time
CN104980773A (en) * 2014-09-23 2015-10-14 腾讯科技(深圳)有限公司 Streaming media processing method and device, terminal and server
CN105191337A (en) * 2013-03-05 2015-12-23 英国电讯有限公司 Provision of video data
CN109040796A (en) * 2018-08-17 2018-12-18 深圳市迅雷网络技术有限公司 The calculation method of contents fragment temperature, the playback method of video content and device
CN110166817A (en) * 2019-06-24 2019-08-23 北京奇艺世纪科技有限公司 A kind of data cache method and relevant device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487456A (en) * 2009-11-30 2012-06-06 国际商业机器公司 Method and device for providing network video access popularity
WO2011150648A1 (en) * 2010-12-24 2011-12-08 华为技术有限公司 Method and system for providing preview video, media server and playing terminal
US20130259442A1 (en) * 2012-04-02 2013-10-03 Jonathan BLOCH Systems and methods for loading more than one video content at a time
CN105191337A (en) * 2013-03-05 2015-12-23 英国电讯有限公司 Provision of video data
CN104980773A (en) * 2014-09-23 2015-10-14 腾讯科技(深圳)有限公司 Streaming media processing method and device, terminal and server
CN109040796A (en) * 2018-08-17 2018-12-18 深圳市迅雷网络技术有限公司 The calculation method of contents fragment temperature, the playback method of video content and device
CN110166817A (en) * 2019-06-24 2019-08-23 北京奇艺世纪科技有限公司 A kind of data cache method and relevant device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327958A (en) * 2020-02-28 2020-06-23 北京百度网讯科技有限公司 Video playing method and device, electronic equipment and storage medium
CN111327958B (en) * 2020-02-28 2022-03-25 北京百度网讯科技有限公司 Video playing method and device, electronic equipment and storage medium
CN112261472A (en) * 2020-10-19 2021-01-22 上海博泰悦臻电子设备制造有限公司 Short video generation method and related equipment

Similar Documents

Publication Publication Date Title
CN110798716A (en) Video highlight playing method and related device
JP6517263B2 (en) System, method and storage medium for improving access to search results
WO2020199751A1 (en) Method and apparatus for loading page picture, and electronic device
KR101964927B1 (en) Method and apparatus for caching proxy
US20130238740A1 (en) Caching of Fragmented Streaming Media
TWI470983B (en) Method and apparatus for updating http content descriptions
CN103327415B (en) Method and device for accelerating network video downloading
US10397360B2 (en) Systems and methods for caching HTTP POST requests and responses
TW201734914A (en) Content recommendation method, device and system
JP2015509229A5 (en)
GB2528672A (en) Push-based transmission of resources and correlated network quality estimation
JP2015509229A (en) Application driven CDN pre-caching
CN107197359B (en) Video file caching method and device
KR20090030277A (en) Support for interactive playback devices for performance-aware peer-to-peer on-demand content services
US20130346542A1 (en) Common web accessible data store for client side page processing
CN104768079B (en) Multimedia resource distribution method, apparatus and system
CN110765086B (en) Directory reading method and system for small files, electronic equipment and storage medium
JP2015527674A (en) Method, apparatus, computer program product, and computer program for managing a data cache for a computer system (managing a data cache for a computer system)
CN110769284A (en) Video highlight caching method and related device
CN110062274A (en) A kind of video file caching method, device, equipment and readable storage medium storing program for executing
RU2738447C1 (en) Video caching method and video caching device
CN102006500B (en) Video dragging method and device applied to cache server
TWI602431B (en) Method and device for transmitting information
WO2020155961A1 (en) Video request method and system, and computer device and computer-readable storage medium
US10341454B2 (en) Video and media content delivery network storage in elastic clouds

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207