CN113382302A - Video determination method, device, server and storage medium - Google Patents

Video determination method, device, server and storage medium Download PDF

Info

Publication number
CN113382302A
CN113382302A CN202110583920.0A CN202110583920A CN113382302A CN 113382302 A CN113382302 A CN 113382302A CN 202110583920 A CN202110583920 A CN 202110583920A CN 113382302 A CN113382302 A CN 113382302A
Authority
CN
China
Prior art keywords
video
information
videos
statistical
access times
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110583920.0A
Other languages
Chinese (zh)
Other versions
CN113382302B (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110583920.0A priority Critical patent/CN113382302B/en
Publication of CN113382302A publication Critical patent/CN113382302A/en
Application granted granted Critical
Publication of CN113382302B publication Critical patent/CN113382302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The present disclosure discloses a video determination method, apparatus, server and storage medium, including: counting the access times of accessed videos in each statistical period in a timing time length, and determining a first video of which the access times in each statistical period meet a first preset condition, wherein the timing time length comprises a plurality of statistical periods; under the condition that the timing duration is reached, calculating the total access times of each first video determined in a plurality of statistical periods; determining at least one video with the total access times meeting a second preset condition from the first videos determined in a plurality of statistical periods as a second video according to the total access times of each first video; generating target information associated with the second video, the target information for: instructing that the comment information of the second video is cached in a local database of the comment server. By adopting the video determining method, the problem that the information of the video with the comment information cached in the local database of the comment server is not updated timely in the prior art is at least solved.

Description

Video determination method, device, server and storage medium
Technical Field
The present disclosure relates to video processing technologies, and in particular, to a video determining method, apparatus, server, and storage medium.
Background
With the rapid development of internet technology and video sharing technology, watching videos shared by others becomes an important information acquisition mode in daily life of people. In the process of watching the video, the user can publish own comment information aiming at the content of the video, so that comment data of the video are generated, and the comment information of the video is also important browsing information of people in the process of watching the video.
At present, to increase the display speed of comment information when a video is accessed, the comment information of a part of the video is usually stored in a local database of a comment server. However, the information of the video whose comment information is stored in the local database is usually fixed or artificially updated, so that the information of the video whose comment information is cached in the local database of the comment server is not updated in time.
Disclosure of Invention
The disclosure provides a video determining method, a video determining device, a server and a storage medium, which are used for at least solving the problem that the information of a video, of which comment information is cached in a local database of a comment server, is not updated timely in the related art.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a video determination method, including:
counting the access times of accessed videos in each statistical period in a timing time length, and determining a first video of which the access times in each statistical period meet a first preset condition, wherein the timing time length comprises a plurality of statistical periods;
under the condition that the timing duration is reached, calculating the total access times of each first video determined in the plurality of statistical periods;
determining at least one video with the total access times meeting a second preset condition from the first videos determined in the plurality of statistical periods as a second video according to the total access times of each first video;
generating target information associated with the second video, wherein the target information is used for: instructing to cache the review information for the second video in a local database of a review server.
In one embodiment, the determining, as the second video, at least one video, of the first videos determined in the plurality of statistical periods, whose total number of visits meets a second preset condition according to the total number of visits of each of the first videos includes:
sequencing the first videos in the plurality of statistical periods according to the total access times of each first video to generate a video sequencing table of the first videos in the plurality of statistical periods;
and determining at least one first video with the sorting position within a preset sorting range in the video sorting table as a second video.
In one embodiment, the determining, as the second video, at least one video, of the first videos determined in the plurality of statistical periods, whose total number of visits meets a second preset condition according to the total number of visits of each of the first videos includes:
and determining at least one first video with the total access times larger than or equal to the preset access times as a second video in the first videos in the plurality of statistical periods.
In one embodiment, the counting the number of accesses of the accessed video in each statistical period and determining a first video of which the number of accesses in each statistical period meets a first preset condition includes:
acquiring a plurality of pieces of video access information counted in a target counting period, wherein the video access information comprises at least one video and the access times of each video in the at least one video, and the target counting period is any one counting period in the timing duration;
determining a video with the maximum access times in at least one video of each piece of video access information;
and determining the video with the maximum access times in each piece of video access information of the plurality of pieces of video access information as the first video in the target statistical period.
In one embodiment, after the generating the target information associated with the second video, the method further includes:
and caching the first page comment information of the second video associated with the target information into a local database of the comment server.
In one embodiment, before caching the first page comment information of the second video associated with the target information into the local database of the comment server, the method further includes:
acquiring historical comment information of a second video associated with the target information;
determining a preset number of pieces of first comment information according to the publishing time of each piece of comment information in the historical comment information, wherein the publishing time of the first comment information is later than that of second comment information, and the second comment information is comment information in the historical comment information except the preset number of pieces of first comment information;
and generating the first page comment information of the second video associated with the target information according to the preset number of the first comment information.
According to a second aspect of the embodiments of the present disclosure, there is provided a video determining apparatus, including:
the first video determining module is configured to count the access times of accessed videos in each statistical period within a timing duration, and determine a first video of which the access times meet a first preset condition in each statistical period, wherein the timing duration comprises a plurality of statistical periods;
a total number of accesses calculating module configured to calculate a total number of accesses of each of the first videos determined in the plurality of statistical periods when the timing duration arrives;
a second video determining module configured to determine, as a second video, at least one video, of the first videos determined in the plurality of statistical periods, whose total number of visits meets a second preset condition, according to the total number of visits of each of the first videos;
a target information generation module configured to generate target information associated with the second video, wherein the target information is used to: instructing to cache the review information for the second video in a local database of a review server.
In one embodiment, the second video determining module includes:
the sorting unit is configured to sort the first videos in the plurality of statistical periods according to the total access times of each first video, and generate a video sorting table of the first videos in the plurality of statistical periods;
a first video determination unit configured to determine at least one first video having a sorting position within a preset sorting range in the video sorting table as a second video.
In one embodiment, the second video determination module is specifically configured to:
and determining at least one first video with the total access times larger than or equal to the preset access times as a second video in the first videos in the plurality of statistical periods.
In one embodiment, the first video determining module includes:
a video access information acquiring unit configured to acquire a plurality of pieces of video access information counted in a target counting period, wherein the video access information includes at least one video and the number of access times of each video in the at least one video, and the target counting period is any one counting period in the timing duration;
a second video determining unit configured to determine a video having a maximum number of accesses among at least one video of each of the video access information;
a third video determination unit configured to determine a video having a maximum number of accesses in each of the plurality of video access information as the first video within the target statistical period.
In one embodiment, the apparatus further comprises:
the caching module is configured to cache the first page comment information of the second video associated with the target information into a local database of the comment server.
In one embodiment, the apparatus further comprises:
a history comment information acquisition module configured to acquire history comment information of a second video associated with the target information;
the comment information determining module is configured to determine a preset number of pieces of first comment information according to the publishing time of each piece of comment information in the historical comment information, wherein the publishing time of the first comment information is later than that of second comment information, and the second comment information is comment information in the historical comment information except the preset number of pieces of first comment information;
a home comment information generation module configured to generate home comment information of a second video associated with the target information from the preset number of first comment information.
According to a third aspect of the embodiments of the present disclosure, there is provided a server, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video determination method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of a server, enable the server to perform the video determination method according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the video determination method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the timing duration, determining a first video with the access times meeting a first preset condition in each statistical period according to the counted access times of the accessed videos in each statistical period, determining a second video meeting a second preset condition in the first videos determined in all the statistical periods in the timing duration according to the total access times of the first videos determined in all the statistical periods in the timing duration under the condition that the timing duration is reached, and generating target information associated with the second video to indicate that the comment information of the second video is cached in a comment database in advance. Therefore, through the embodiment of the disclosure, the video information of the cached comment information in the local data of the comment server can be updated in time when the time reaches a certain time through two statistical processes.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is one of the flow diagrams of a video determination method shown in accordance with an exemplary embodiment;
FIG. 2 is one of the schematic structural diagrams of an electronic device shown in accordance with an exemplary embodiment;
FIG. 3 is a second schematic diagram of the structure of an electronic device according to an exemplary embodiment;
FIG. 4 is a second flowchart illustrating a method of video determination according to an exemplary embodiment;
FIG. 5 is a process flow diagram of a review server shown in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a video determination apparatus according to an example embodiment;
FIG. 7 is a block diagram of a computing device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a video determination method according to an exemplary embodiment, and the video determination method is used in the electronic device, as shown in fig. 2 and 3, and includes the following steps.
Step S101, in a timing duration, counting the access times of accessed videos in each statistical period, and determining a first video of which the access times in each statistical period meet a first preset condition, wherein the timing duration comprises a plurality of statistical periods;
step S102, under the condition that the timing duration is reached, calculating the total access times of each first video determined in a plurality of statistical periods;
step S103, determining at least one video with the total access times meeting a second preset condition as a second video in the first videos determined in a plurality of statistical periods according to the total access times of each first video;
step S104, generating target information associated with the second video, wherein the target information is used for: instructing that the comment information of the second video is cached in a local database of the comment server.
Based on the method, in the timing duration, the first video with the access times meeting the first preset condition in each statistical period is determined through the counted access times of the accessed videos in each statistical period, and when the timing duration reaches, the second video meeting the second preset condition in the first videos determined in all the statistical periods in the timing duration is determined according to the total access times of the first videos determined in all the statistical periods in the timing duration, and target information related to the second video is generated to indicate that the comment information of the second video is cached in the comment database in advance. Therefore, through the embodiment of the disclosure, the video information of the cached comment information in the local data of the comment server can be updated in time when the time reaches a certain time through two statistical processes.
In step 101, in the timing duration, the electronic device may count the number of access times of the accessed videos in each statistical period, and determine a first video with the access time satisfying a first preset condition in the accessed videos in each statistical period.
The timing duration and the statistical period may be preset, and the timing duration includes a plurality of consecutive statistical periods. For example, the timing period may be set to 10 minutes, and the statistical period may be set to 1 minute, that is, the timing period includes 10 consecutive statistical periods.
In addition, the access times of the accessed video in each statistical period can be counted, wherein in the statistical period, when the video is accessed, the electronic equipment records the access information of the accessed video, and generates the access times of the accessed video in the access period according to the recorded access information at the end of the statistical period.
In this embodiment of the application, the determining of the first video with the access frequency meeting the first preset condition in each statistical period may be determining, as the first video, each video with the access frequency greater than or equal to a first preset frequency, among all videos accessed in each statistical period; alternatively, a preset number of videos may be determined in the first statistical period, and the access times of the preset number of videos are greater than the access times of other videos, which are videos other than the preset number of videos in the statistical period, and the like.
Or, the counting the access times of the accessed videos in each statistical period and determining the first video of which the access times in each statistical period meet the first preset condition may include:
acquiring a plurality of pieces of video access information counted in a target counting period, wherein the video access information comprises at least one video and the access times of each video in the at least one video, and the target counting period is any one counting period in a timing duration;
determining a video with the maximum access times in at least one video of each piece of video access information;
and determining the video with the maximum access times in each piece of video access information of the plurality of pieces of video access information as the first video in the target statistical period.
Based on this, under the condition that a plurality of pieces of video access information are acquired in a counting period, the video with the maximum access frequency in each piece of video access information is determined, and the video with the maximum access frequency in each piece of video access information is determined as the first video in the counting period, so that the determination of the first video in each counting period is more reasonable, and the determined second video is more accurate.
The plurality of pieces of video access information may be generated by different video service devices or apparatuses in the electronic device, and the devices or apparatuses are configured to provide video access services for different clients and record video information of videos accessed by the clients served by the devices or apparatuses.
It should be noted that the plurality of video access information includes at least one video, and it is understood that each video access information includes a video identifier of the at least one video, and the video identifier is used to indicate a video. For example, the video identification may be a title of the video, etc.
In addition, the video with the maximum access times in the at least one video of each piece of video access information may be determined by comparing the access times of each video in the at least one video with other videos one by one, and excluding the video with the access times not being the maximum access times until the video with the maximum access times is determined in the at least one video; alternatively, the at least one video may be sorted according to the number of accesses of each video in the at least one video, and the video with the largest number of accesses is determined in the sorting, for example, if the videos are sorted in a descending order according to the number of accesses, the video ranked at the top is determined as the video with the largest number of accesses, so that the efficiency of determining the video with the largest number of accesses is improved.
And after determining the video having the largest number of access words in each of the plurality of video access information, the electronic device may determine all of the plurality of videos having the largest number of accesses determined in the plurality of video access information as the first video.
Illustratively, as shown in fig. 2 and 3, the electronic device may include K data collection modules 11 (e.g., hotspot statstatstats collector), a distribution module 12 (e.g., kafka), and a data summarization module 13 (e.g., hotspot stats manager), where K is an integer greater than 1. As shown in fig. 4, the electronic device may perform the following process:
s1, recording the video information of the accessed video, namely, the video service equipment or device (which can be comment server comment-read-api) records the video accessed by the client served by the video service equipment or device;
s2, collecting and aggregating the count information, that is, the different data collecting module 11 collects the number of accesses of the videos accessed by different video service devices or apparatuses (which may be comment server comment-read-api) in N seconds (i.e., the above statistical period), and when N seconds arrive, determines the video (i.e., the first video) with the largest number of accesses among the videos accessed in N seconds;
s3, reporting the video with the maximum access frequency and the access frequency every N seconds, that is, each data collection module 11 reports the counted video with the maximum access frequency and the access frequency of the video to the distributed module 12 respectively;
s4, collecting the reported data, that is, the distributed module 12 reports the K videos with the maximum access times and the access times counted by the K data collection modules 11 in N seconds to the data summarization module 13.
In the step 102, after counting the first videos whose access times in each period satisfy the first preset condition, the electronic device may calculate the total access times of each first video determined in a plurality of counting periods when the timing duration is reached.
Since the same video may exist in the first videos determined in different statistical periods, the calculating of the total number of accesses of each first video determined in the plurality of statistical periods may be to screen out the first videos counted in at least two statistical periods of the plurality of statistical periods, and use a sum of the number of accesses of the screened out first videos in the at least two statistical periods as the total number of accesses of the first video.
Of course, in the case where the first video is counted in only one of the plurality of statistical periods, the total number of accesses of the first video is the number of accesses counted in the one statistical period.
Illustratively, as shown in fig. 2 and fig. 3, the electronic device may further include a data storage module 14 (e.g., redis) and a data statistics module 15, and as shown in fig. 4, the electronic device may further perform the following processes:
s5, storing the K videos and the access times of every N seconds, namely, the data summarization module 13 transmits the summarized K videos and the access times of every N seconds to the data storage module 14 for storage;
s6, counting the statistical data in the latest preset time period (i.e. the timing duration), that is, the data counting module 15 obtains K videos and the access times of each statistical cycle in all statistical cycles in the preset time period from the data storage module 14, and calculates the total access times of each video.
In step 103, after the total number of accesses of each first video determined in the plurality of statistical periods within the timing length is obtained through calculation, the electronic device may determine, as the second video, at least one video, of the first videos determined in the plurality of statistical periods, whose total number of accesses satisfies the second preset condition, according to the total number of accesses of each first video.
It should be noted that, in the determining of the first videos in the multiple statistical periods according to the total number of visits of each first video, at least one video whose total number of visits meets the second preset condition is determined as the second video, and may be determining, in the determining of the first videos in the multiple statistical periods according to a preset video determination rule, each first video whose total number of visits meets the second preset condition as the second video.
Specifically, the step 103 may include:
sequencing the first videos in the plurality of statistical periods according to the total access times of each first video to generate a video sequencing table of the first videos in the plurality of statistical periods;
and determining at least one first video with the sorting position within a preset sorting range in the video sorting table as a second video.
Based on the method, all the first videos in the plurality of statistical periods are sequenced according to the total access times of the first videos to obtain a video sequencing table, and each first video with the sequencing position within the preset sequencing range in the video sequencing table is determined as the second video, so that the processing process for determining the second video is simple, and the processing efficiency is improved.
The sorting of the first videos in the multiple statistical periods may be sorting in a descending order according to the total number of visits, that is, the first videos with the greatest number of visits are sorted in the front, and the first videos with the least number of visits are sorted in the back; alternatively, the videos may be sorted in ascending order according to the total number of accesses, that is, the first video with the largest total number of accesses is sorted later, and the first video with the smallest total number of accesses is sorted earlier.
In addition, the determining at least one first video with a ranking position within a preset ranking range in the video ranking table as the second video may be performed by determining a preset number of first videos with the ranking position ahead as the second video when the video ranking table is sorted in a descending order; and under the condition that the video sorting table is sorted in an ascending order, determining a preset number of first videos behind the sorting position as second videos.
For example, as shown in fig. 4, in the step S6, the list of videos with the highest access amount may be obtained by merging and sorting, that is, the data statistics module 15 sorts the acquired videos (i.e., the first videos) in the latest preset time period according to the total number of accesses, and obtains a certain number of videos with the top total number of accesses in the sorting to generate a video list (i.e., each video in the video list is the second video).
Alternatively, the step 103 may include:
and determining at least one first video with the total access times larger than or equal to the preset access times as a second video in the first videos in the plurality of statistical periods.
Based on this, each first video with the total number of accesses greater than or equal to the preset number of accesses can be determined as the second video, so that the second video can be determined more quickly, and the manner of determining the second video is flexible and diversified.
In the step 104, after determining at least one video with the total number of accesses satisfying the second preset condition as the second video, the electronic device may generate target information associated with the second video.
The target information may be any information associated with the second video, and the target information is used to instruct that the comment information of each second video is cached in a local database in the comment server. For example, the target information may be a video list as determined in fig. 3, and the video list includes identification information (such as a title, etc.) of at least one second video, and so on.
Further, after the step 104, the method may further include:
and caching the first page comment information of the second video associated with the target information into a local database of the comment server.
Based on this, after the target information is generated, the first page comment information of the second video related to the target information can be cached in the local database of the comment server, so that the comment information in the local data of the comment server can be updated in time.
Exemplarily, as shown in fig. 4, the electronic device may further perform the following processes:
s7, storing the video list, that is, the data statistics module 15 caches the determined video list to the data storage module 14;
s8, periodically obtaining a video list through a comment update request (such as a reloadable cache instruction), that is, each comment server may send a comment update request to the data storage module 14, and the data storage module 14 sends comment information of each video of the video list to the comment server in response to the comment update request;
and S9, updating the comment information of the video cached in the local database to realize that the local database of the comment server periodically synchronizes data from the data storage module 14 (such as redis), namely as shown in FIG. 5.
It should be noted that, the caching of the first page comment information of the second video associated with the target information in the local database of the comment server may be to add the first page comment information of the second video associated with the target information in the local database, or to update the originally cached comment information in the local database to the first page comment information of the second video associated with the target information.
In addition, since the number of comments displayed by the client when accessing the video is limited, the above-mentioned first page comment information is usually part of the comment information in the history comment information of the video.
Specifically, before caching the first page comment information of the second video associated with the target information into the local database of the comment server, the method may further include:
acquiring historical comment information of a second video associated with the target information;
determining a preset number of pieces of first comment information according to the publishing time of each piece of comment information in the historical comment information, wherein the publishing time of the first comment information is later than that of the second comment information, and the second comment information is comment information in the historical comment information except the preset number of pieces of first comment information;
and generating the first page comment information of the second video associated with the target information from the preset number of first comment information.
Based on the method, part of comment information used for generating the first page comment information can be determined according to the publishing time of each comment information in the history comment information, and therefore the first page comment information can be generated by the preset number of comment information with the relatively close publishing time in the history comment information.
Certainly, under the condition that the comment server updates the comment information of the video in the local database (namely, the local cache), the comment server can also update the video information in the video white list of the comment server, the video white list can include the identification information of the video in which the comment information is cached in the local database, when the comment server receives a request for requesting to pull the comment information of the accessed video, which is sent by the client, the comment server judges whether the accessed video is the video in the video white list, and if so, the comment information is directly pulled from the local database; otherwise, a request is made to a source database (e.g., redis) storing comment information to pull the comment information, as shown in fig. 5.
Fig. 6 is a block diagram illustrating a video determination apparatus according to an example embodiment. Referring to fig. 6, the video determining apparatus 600 includes:
a first video determining module 601, configured to count access times of videos accessed in each statistical period within a timing duration, and determine a first video whose access times satisfy a first preset condition in each statistical period, where the timing duration includes a plurality of statistical periods;
a total number of accesses calculating module 602 configured to calculate a total number of accesses of each of the first videos determined in the plurality of statistical periods when the timing duration arrives;
a second video determining module 603 configured to determine, as a second video, at least one video, of the first videos determined in the plurality of statistical periods, whose total number of visits meets a second preset condition, according to the total number of visits of each of the first videos;
a target information generation module 604 configured to generate target information associated with the second video, wherein the target information is used to: instructing to cache the review information for the second video in a local database of a review server.
Based on the method, in the timing duration, the first video with the access times meeting the first preset condition in each statistical period is determined through the counted access times of the accessed videos in each statistical period, and when the timing duration reaches, the second video meeting the second preset condition in the first videos determined in all the statistical periods in the timing duration is determined according to the total access times of the first videos determined in all the statistical periods in the timing duration, and target information related to the second video is generated to indicate that the comment information of the second video is cached in the comment database in advance. Therefore, through the embodiment of the disclosure, the video information of the cached comment information in the local data of the comment server can be updated in time when the time reaches a certain time through two statistical processes.
In one embodiment, the second video determining module 603 includes:
the sorting unit is configured to sort the first videos in the plurality of statistical periods according to the total access times of each first video, and generate a video sorting table of the first videos in the plurality of statistical periods;
a first video determination unit configured to determine at least one first video having a sorting position within a preset sorting range in the video sorting table as a second video.
Based on the method, all the first videos in the plurality of statistical periods are sequenced according to the total access times of the first videos to obtain a video sequencing table, and each first video with the sequencing position within the preset sequencing range in the video sequencing table is determined as the second video, so that the processing process for determining the second video is simple, and the processing efficiency is improved.
In one embodiment, the second video determining module 603 is specifically configured to:
and determining at least one first video with the total access times larger than or equal to the preset access times as a second video in the first videos in the plurality of statistical periods.
Based on this, each first video with the total number of accesses greater than or equal to the preset number of accesses can be determined as the second video, so that the second video can be determined more quickly, and the manner of determining the second video is flexible and diversified.
In one embodiment, the first video determining module 601 includes:
a video access information acquiring unit configured to acquire a plurality of pieces of video access information counted in a target counting period, wherein the video access information includes at least one video and the number of access times of each video in the at least one video, and the target counting period is any one counting period in the timing duration;
a second video determining unit configured to determine a video having a maximum number of accesses among at least one video of each of the video access information;
a third video determination unit configured to determine a video having a maximum number of accesses in each of the plurality of video access information as the first video within the target statistical period.
Based on this, under the condition that a plurality of pieces of video access information are acquired in a counting period, the video with the maximum access frequency in each piece of video access information is determined, and the video with the maximum access frequency in each piece of video access information is determined as the first video in the counting period, so that the determination of the first video in each counting period is more reasonable, and the determined second video is more accurate.
In one embodiment, the apparatus 600 further includes:
the caching module is configured to cache the first page comment information of the second video associated with the target information into a local database of the comment server.
Based on this, after the target information is generated, the first page comment information of the second video related to the target information can be cached in the local database of the comment server, so that the comment information in the local data of the comment server can be updated in time.
In one embodiment, the apparatus 600 further includes:
a history comment information acquisition module configured to acquire history comment information of a second video associated with the target information;
the comment information determining module is configured to determine a preset number of pieces of first comment information according to the publishing time of each piece of comment information in the historical comment information, wherein the publishing time of the first comment information is later than that of second comment information, and the second comment information is comment information in the historical comment information except the preset number of pieces of first comment information;
a home comment information generation module configured to generate home comment information of a second video associated with the target information from the preset number of first comment information.
Based on the method, part of comment information used for generating the first page comment information can be determined according to the publishing time of each comment information in the history comment information, and therefore the first page comment information can be generated by the preset number of comment information with the relatively close publishing time in the history comment information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Based on the same inventive concept, the embodiment of the present disclosure further provides a computing device, which is specifically described in detail with reference to fig. 6.
FIG. 7 is a block diagram illustrating a computing device, according to an example embodiment.
As shown in fig. 7, the computing device 700 is capable of implementing a block diagram of an exemplary hardware architecture of a computing device according to a video determination method and a video determination apparatus in the embodiments of the present disclosure. The computing device may refer to an electronic device in embodiments of the present disclosure.
The computing device 700 may include a processor 701 and a memory 702 storing computer program instructions.
Specifically, the processor 701 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
Memory 702 may include a mass storage for information or instructions. By way of example, and not limitation, memory 702 may include a Hard Disk Drive (HDD), a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Memory 702 may include removable or non-removable (or fixed) media, where appropriate. The memory 702 may be internal or external to the integrated gateway device, where appropriate. In a particular embodiment, the memory 702 is non-volatile solid-state memory. In a particular embodiment, the memory 702 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
The processor 701 reads and executes the computer program instructions stored in the memory 702 to perform the following steps:
the processor 701 performs statistics on the number of access times of the accessed video in each statistical period within a timing duration, and determines a first video of which the number of access times in each statistical period meets a first preset condition, wherein the timing duration comprises a plurality of statistical periods;
under the condition that the timing duration is reached, calculating the total access times of each first video determined in the plurality of statistical periods;
determining at least one video with the total access times meeting a second preset condition from the first videos determined in the plurality of statistical periods as a second video according to the total access times of each first video;
generating target information associated with the second video, wherein the target information is used for: instructing to cache the review information for the second video in a local database of a review server.
Based on the method, in the timing duration, the first video with the access times meeting the first preset condition in each statistical period is determined through the counted access times of the accessed videos in each statistical period, and when the timing duration reaches, the second video meeting the second preset condition in the first videos determined in all the statistical periods in the timing duration is determined according to the total access times of the first videos determined in all the statistical periods in the timing duration, and target information related to the second video is generated to indicate that the comment information of the second video is cached in the comment database in advance. Therefore, through the embodiment of the disclosure, the video information of the cached comment information in the local data of the comment server can be updated in time when the time reaches a certain time through two statistical processes.
In one embodiment, the processor 701 performs sorting on the first videos in the plurality of statistical periods according to the total number of times of access of each first video, and generates a video sorting table of the first videos in the plurality of statistical periods;
and determining at least one first video with the sorting position within a preset sorting range in the video sorting table as a second video.
Based on the method, all the first videos in the plurality of statistical periods are sequenced according to the total access times of the first videos to obtain a video sequencing table, and each first video with the sequencing position within the preset sequencing range in the video sequencing table is determined as the second video, so that the processing process for determining the second video is simple, and the processing efficiency is improved.
In one embodiment, the processor 701 determines, as the second video, at least one first video having a total number of accesses greater than or equal to a preset number of accesses among the first videos in the plurality of statistical periods.
Based on this, each first video with the total number of accesses greater than or equal to the preset number of accesses can be determined as the second video, so that the second video can be determined more quickly, and the manner of determining the second video is flexible and diversified.
In one embodiment, the processor 701 performs obtaining a plurality of pieces of video access information counted in a target counting period, where the video access information includes at least one video and the number of accesses of each video in the at least one video, and the target counting period is any one counting period in the timing duration;
determining a video with the maximum access times in at least one video of each piece of video access information;
and determining the video with the maximum access times in each piece of video access information of the plurality of pieces of video access information as the first video in the target statistical period.
Based on this, under the condition that a plurality of pieces of video access information are acquired in a counting period, the video with the maximum access frequency in each piece of video access information is determined, and the video with the maximum access frequency in each piece of video access information is determined as the first video in the counting period, so that the determination of the first video in each counting period is more reasonable, and the determined second video is more accurate.
In one embodiment, the processor 701 executes caching of the first page comment information of the second video associated with the target information into a local database of the comment server.
Based on this, after the target information is generated, the first page comment information of the second video related to the target information can be cached in the local database of the comment server, so that the comment information in the local data of the comment server can be updated in time.
In one embodiment, the processor 701 executes obtaining historical comment information of a second video associated with the target information;
determining a preset number of pieces of first comment information according to the publishing time of each piece of comment information in the historical comment information, wherein the publishing time of the first comment information is later than that of second comment information, and the second comment information is comment information in the historical comment information except the preset number of pieces of first comment information;
and generating the first page comment information of the second video associated with the target information according to the preset number of the first comment information.
Based on the method, part of comment information used for generating the first page comment information can be determined according to the publishing time of each comment information in the history comment information, and therefore the first page comment information can be generated by the preset number of comment information with the relatively close publishing time in the history comment information.
In one example, the computing device 700 may also include a transceiver 703 and a bus 704. As shown in fig. 7, the processor 701, the memory 702, and the transceiver 703 are connected via a bus 704 to complete communication therebetween.
Bus 704 includes hardware, software, or both. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Control Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 703 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The embodiment of the present disclosure also provides a computer storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used for implementing the video determination method described in the embodiment of the present disclosure.
Embodiments of the present disclosure also provide a computer program product comprising a computer program/instructions which, when executed by a processor, implement the video determination method according to the first aspect.
Wherein the computer program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus and computer program products according to the present disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable video determination device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable video determination device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable video determination device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable video determination device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for video determination, comprising:
counting the access times of accessed videos in each statistical period in a timing time length, and determining a first video of which the access times in each statistical period meet a first preset condition, wherein the timing time length comprises a plurality of statistical periods;
under the condition that the timing duration is reached, calculating the total access times of each first video determined in the plurality of statistical periods;
determining at least one video with the total access times meeting a second preset condition from the first videos determined in the plurality of statistical periods as a second video according to the total access times of each first video;
generating target information associated with the second video, wherein the target information is used for: instructing to cache the review information for the second video in a local database of a review server.
2. The method according to claim 1, wherein the determining, as the second video, at least one video, which is determined in the plurality of statistical periods according to the total number of visits of each first video and satisfies a second preset condition, of the first videos determined in the plurality of statistical periods comprises:
sequencing the first videos in the plurality of statistical periods according to the total access times of each first video to generate a video sequencing table of the first videos in the plurality of statistical periods;
and determining at least one first video with the sorting position within a preset sorting range in the video sorting table as a second video.
3. The method according to claim 1, wherein the determining, as the second video, at least one video, which is determined in the plurality of statistical periods according to the total number of visits of each first video and satisfies a second preset condition, of the first videos determined in the plurality of statistical periods comprises:
and determining at least one first video with the total access times larger than or equal to the preset access times as a second video in the first videos in the plurality of statistical periods.
4. The method according to claim 1, wherein the counting the number of accesses of the accessed video in each statistical period and determining the first video with the number of accesses satisfying the first preset condition in each statistical period comprises:
acquiring a plurality of pieces of video access information counted in a target counting period, wherein the video access information comprises at least one video and the access times of each video in the at least one video, and the target counting period is any one counting period in the timing duration;
determining a video with the maximum access times in at least one video of each piece of video access information;
and determining the video with the maximum access times in each piece of video access information of the plurality of pieces of video access information as the first video in the target statistical period.
5. The method of claim 1, wherein after generating the target information associated with the second video, further comprising:
and caching the first page comment information of the second video associated with the target information into a local database of the comment server.
6. The method of claim 5, wherein before caching the first page comment information of the second video associated with the target information into the local database of the comment server, further comprising:
acquiring historical comment information of a second video associated with the target information;
determining a preset number of pieces of first comment information according to the publishing time of each piece of comment information in the historical comment information, wherein the publishing time of the first comment information is later than that of second comment information, and the second comment information is comment information in the historical comment information except the preset number of pieces of first comment information;
and generating the first page comment information of the second video associated with the target information according to the preset number of the first comment information.
7. A video determination apparatus, comprising:
the first video determining module is configured to count the access times of accessed videos in each statistical period within a timing duration, and determine a first video of which the access times meet a first preset condition in each statistical period, wherein the timing duration comprises a plurality of statistical periods;
a total number of accesses calculating module configured to calculate a total number of accesses of each of the first videos determined in the plurality of statistical periods when the timing duration arrives;
a second video determining module configured to determine, as a second video, at least one video, of the first videos determined in the plurality of statistical periods, whose total number of visits meets a second preset condition, according to the total number of visits of each of the first videos;
a target information generation module configured to generate target information associated with the second video, wherein the target information is used to: instructing to cache the review information for the second video in a local database of a review server.
8. The apparatus of claim 7, wherein the second video determination module comprises:
the sorting unit is configured to sort the first videos in the plurality of statistical periods according to the total access times of each first video, and generate a video sorting table of the first videos in the plurality of statistical periods;
a first video determination unit configured to determine at least one first video having a sorting position within a preset sorting range in the video sorting table as a second video.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a server, enable the server to perform the video determination method of any of claims 1 to 6.
10. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the video determination method of any of claims 1 to 6.
CN202110583920.0A 2021-05-27 2021-05-27 Video determination method, device, server and storage medium Active CN113382302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110583920.0A CN113382302B (en) 2021-05-27 2021-05-27 Video determination method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110583920.0A CN113382302B (en) 2021-05-27 2021-05-27 Video determination method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN113382302A true CN113382302A (en) 2021-09-10
CN113382302B CN113382302B (en) 2022-12-27

Family

ID=77572472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110583920.0A Active CN113382302B (en) 2021-05-27 2021-05-27 Video determination method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113382302B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783997A (en) * 2021-09-13 2021-12-10 北京字跳网络技术有限公司 Video publishing method and device, electronic equipment and storage medium
CN116847132A (en) * 2023-08-29 2023-10-03 北京小糖科技有限责任公司 Video updating method and device based on time slicing, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034722A (en) * 2012-12-13 2013-04-10 合一网络技术(北京)有限公司 Network video comment gathering device and network video comment gathering method
US8819719B1 (en) * 2006-12-06 2014-08-26 Google Inc. Real-time video commenting
CN105095107A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Buffer memory data cleaning method and apparatus
CN106657196A (en) * 2015-11-02 2017-05-10 华为技术有限公司 Caching content elimination method and caching apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819719B1 (en) * 2006-12-06 2014-08-26 Google Inc. Real-time video commenting
CN103034722A (en) * 2012-12-13 2013-04-10 合一网络技术(北京)有限公司 Network video comment gathering device and network video comment gathering method
CN105095107A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Buffer memory data cleaning method and apparatus
CN106657196A (en) * 2015-11-02 2017-05-10 华为技术有限公司 Caching content elimination method and caching apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783997A (en) * 2021-09-13 2021-12-10 北京字跳网络技术有限公司 Video publishing method and device, electronic equipment and storage medium
CN113783997B (en) * 2021-09-13 2022-08-23 北京字跳网络技术有限公司 Video publishing method and device, electronic equipment and storage medium
CN116847132A (en) * 2023-08-29 2023-10-03 北京小糖科技有限责任公司 Video updating method and device based on time slicing, electronic equipment and storage medium
CN116847132B (en) * 2023-08-29 2023-12-08 北京小糖科技有限责任公司 Video updating method and device based on time slicing, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113382302B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN113382302B (en) Video determination method, device, server and storage medium
US10587707B2 (en) Method and apparatus for monitoring website access data
CN109299144B (en) Data processing method, device and system and application server
CN104750760B (en) A kind of implementation method and device for recommending application software
CN107748790B (en) Online service system, data loading method, device and equipment
CN107578263A (en) A kind of detection method, device and the electronic equipment of advertisement abnormal access
CN109614291A (en) Alarm method and device
CN116847132B (en) Video updating method and device based on time slicing, electronic equipment and storage medium
CN108900339B (en) Method and device for measuring service quality and electronic equipment
CN113609409A (en) Method and system for recommending browsing information, electronic device and storage medium
CN111277451B (en) Service evaluation method, device, terminal equipment and medium
CN110972091B (en) Communication charging method, device, equipment, medium and terminal
CN105516746A (en) Video pre-downloading system and method
CN112804566A (en) Program recommendation method, device and computer readable storage medium
WO2023045434A1 (en) Access detection method, system, and apparatus
CN108769167A (en) A kind of the push distribution method and device of business datum
CN111417142B (en) User identification method, device, equipment and storage medium
WO2019019387A1 (en) Information push suggestion generation method and apparatus, computer device and storage medium
CN108595513B (en) Video search cheating processing method and device
CN110189162B (en) Intelligent water consumption and water charge statistical method based on big data
CN111401969A (en) Method, device, server and storage medium for improving user retention rate
CN112988504A (en) Alarm strategy setting method and device, electronic equipment and storage medium
CN104994431A (en) Method and device for processing attention to web video
CN112615920B (en) Abnormality detection method, abnormality detection device, electronic apparatus, storage medium, and program product
CN110841279B (en) Acceleration service system and method

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