CN109561349A - A kind of method and apparatus of pushing video - Google Patents

A kind of method and apparatus of pushing video Download PDF

Info

Publication number
CN109561349A
CN109561349A CN201710883477.2A CN201710883477A CN109561349A CN 109561349 A CN109561349 A CN 109561349A CN 201710883477 A CN201710883477 A CN 201710883477A CN 109561349 A CN109561349 A CN 109561349A
Authority
CN
China
Prior art keywords
video
videos
ranking
given
finally
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
CN201710883477.2A
Other languages
Chinese (zh)
Other versions
CN109561349B (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.)
Yan'an Dongchao Media Co.,Ltd.
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710883477.2A priority Critical patent/CN109561349B/en
Publication of CN109561349A publication Critical patent/CN109561349A/en
Application granted granted Critical
Publication of CN109561349B publication Critical patent/CN109561349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
    • 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/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a kind of method and apparatus of pushing video, for realizing the technical effect intervened pushing video.The described method includes: being stored in N number of first video alternatively pushed in the database according to predetermined order, N is the integer more than or equal to 0;The given ranking of M the second videos and each second video of the pressure push of user's input is received, M is positive integer;The given ranking of N number of first video, M based on the predetermined order second video and each second video, it obtains and finally ranks in N number of first video and M second videos in preceding K of video, K is positive integer, includes M second videos in K video;To finally being ranked described in client push in preceding K of video.

Description

A kind of method and apparatus of pushing video
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of pushing video.
Background technique
The mode of pushing video is that video sequence is calculated according to certain algorithm at present, then by the administrative staff of server or Person's server will sort forward video push to client automatically, and then in the video of client display server push.So And some videos that should be strongly pushed, such as public good video, it cannot be pushed due to sorting very low.
In consideration of it, just needing to carry out manual intervention for push mode in the prior art.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of pushing video, intervene for realizing to pushing video Technical effect.
In a first aspect, the present invention provides a kind of methods of pushing video, comprising:
It is stored in N number of first video alternatively pushed in the database according to predetermined order, N is the integer more than or equal to 0;
Receive the given ranking of M the second videos and each second video of the pressure push of user's input, M For positive integer;
N number of first video, M based on the predetermined order second video and each second video Given ranking, obtain and finally rank in N number of first video and M second videos in preceding K of video, K is positive Integer includes M second videos in K video;
To finally being ranked described in client push in preceding K of video.
Optionally, N number of first video based on the predetermined order, M second videos and each The given ranking of second video is obtained and is finally ranked in N number of first video and M second videos K first Video, comprising:
Each second video is determined as the final video ranked as the given ranking, wherein M described Given ranking, which is respectively less than, is equal to K;
It is removed in K final rankings before being determined as P first videos according to the preset order described to described fixed The video of other rankings other than ranking, P is integer, 0≤P≤N.
Optionally, if the M given rankings include the Q rankings for being greater than K, Q is integer, and 0 < Q≤M≤K is described The given row of N number of first video, M based on the predetermined order second video and each second video Position obtains and finally ranks in N number of first video and M second videos in preceding K of video, further includes:
It is K-Q+1 to K that Q second videos by the given ranking greater than K, which are determined as final rank, Video.
Optionally, it finally ranks in described obtain in N number of first video and M second videos at first K Before video, further includes:
From reaffirming to choose the maximum N number of video of the first video parameter in the more a videos of redis for first video;
N number of first video is carried out based on the second video parameter for being different from first video parameter described default Sequence.
Optionally, described from reaffirming that it is described for choosing the maximum N number of video of the first video parameter in the more a videos of redis After first video, further includes:
Receive the filter condition of user's input;
N number of first video is filtered according to the filter condition.
Optionally, N number of first video and M second videos include time limit parameter, N number of described in the acquisition It is finally ranked before preceding K of video in first video and M second videos, further includes:
Filter out the video that time limit parameter described in N number of first video and M second videos is more than threshold value.
Optionally, primary final ranking is obtained in preceding K of video every predetermined period.
Second aspect, the present invention provides a kind of devices of pushing video, comprising:
Memory module, for being stored in N number of first video alternatively pushed in the database according to predetermined order, N be greater than Integer equal to 0;
Receiving module, M the second videos and each second video of the pressure push for receiving user's input Given ranking, M is positive integer;
Module is ranked, for a second videos of N number of first video, M based on the predetermined order and often The given ranking of a second video is obtained and is finally ranked in N number of first video and M second videos in preceding K The video of position, K are positive integer, include M second videos in K video;
Pushing module, for finally being ranked described in client push in preceding K of video.
Optionally, it is described given that the ranking module, which is used to for each second video being determined as final rank, The video of ranking, wherein the M given rankings are respectively less than and are equal to K;According to the preset order by P first videos Before being determined as in K final rankings except it is described to it is described determine ranking in addition to other rankings videos, P is integer, 0≤P≤N.
Optionally, if the M given rankings include the Q rankings for being greater than K, Q is integer, and 0 < Q≤M≤K is described It is K-Q+1 that Q second videos that ranking module is also used to by the given ranking greater than K, which are determined as final rank, To K videos.
Optionally, described device further include:
Module is chosen, for finally ranking in described obtain in N number of first video and M second videos preceding Before K videos, from reaffirming to choose the maximum N number of video of the first video parameter in the more a videos of redis for first view Frequently;
Sorting module, for being regarded based on the second video parameter for being different from first video parameter to N number of described first Frequency carries out the predetermined order.
Optionally, described device further includes the first filtering module, for described from reaffirming to choose in the more a videos of redis The maximum N number of video of first video parameter is after first video, receives the filter condition that the user inputs, according to institute It states filter condition and filters N number of first video.
Optionally, N number of first video and M second videos include time limit parameter, described device further include:
Second filtering module, for finally being ranked in described obtain in N number of first video and M second videos Before preceding K of video, filtering out time limit parameter described in N number of first video and M second videos is more than threshold The video of value.
Optionally, the ranking module is used to obtain primary final ranking in preceding K of video every predetermined period.
The third aspect, the present invention provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step of any one of first aspect the method is realized when sequence is executed by processor.
Fourth aspect, the present invention provides a kind of computer equipments, including memory, processor and storage are on a memory And the computer program that can be run on a processor, the processor are realized described in any one of first aspect when executing described program The step of method.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
In the technical solution of the embodiment of the present invention, the N alternatively pushed is buffered into reaffirming redis according to predetermined order A first video, N are the integer more than or equal to 0, and receive M the second videos of the pressure push of user's input, and every The given ranking of a second video, M are positive integer, then, N number of first video, M based on predetermined order the second video and The given ranking of each second video is obtained and is finally ranked in N number of first video and M the second videos in preceding K of video, K For positive integer, K >=M is finally finally ranked to client push in preceding K of video, and K video includes at least one second view Frequently.Since K video of push is M the second videos and the given row of the second video for needing to force push according to user What position finally to determine from N number of first video and M the second videos, second video has been included at least in K video, so Ensure that will force the second video push of push to client, carry out people to pushing video so solving prior art requirement The technical issues of work is intervened, realize the technical effect to pushing video manual intervention.
Detailed description of the invention
Fig. 1 is the method flow diagram of pushing video in the embodiment of the present invention;
Fig. 2 is the apparatus structure schematic diagram of pushing video in the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of computer equipment in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of method and apparatus of pushing video, intervene for realizing to pushing video Technical effect.
In order to solve the above technical problem, the present invention provides technical solution general thought it is as follows:
In the technical solution of the embodiment of the present invention, the N alternatively pushed is buffered into reaffirming redis according to predetermined order A first video, N are the integer more than or equal to 0, and receive M the second videos of the pressure push of user's input, and every The given ranking of a second video, M are positive integer, then, N number of first video, M based on predetermined order the second video and The given ranking of each second video is obtained and is finally ranked in N number of first video and M the second videos in preceding K of video, K For positive integer, K >=M is finally finally ranked to client push in preceding K of video, and K video includes at least one second view Frequently.Since K video of push is M the second videos and the given row of the second video for needing to force push according to user What position finally to determine from N number of first video and M the second videos, second video has been included at least in K video, so Ensure that will force the second video push of push to client, carry out people to pushing video so solving prior art requirement The technical issues of work is intervened, realize the technical effect to pushing video manual intervention.
Technical solution of the present invention is described in detail below by attached drawing and specific embodiment, it should be understood that the application Specific features in embodiment and embodiment are the detailed description to technical scheme, rather than to present techniques The restriction of scheme, in the absence of conflict, the technical characteristic in the embodiment of the present application and embodiment can be combined with each other.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
First aspect present invention provides a kind of method of pushing video, referring to FIG. 1, to push in the embodiment of the present invention The method flow diagram of video.This method comprises:
S101: being stored in N number of first video alternatively pushed according to predetermined order in the database, and N is whole more than or equal to 0 Number;
S102: M the second videos of the pressure push of user's input and the given row of each second video are received Position, M is positive integer;
S103: N number of first video, M based on the predetermined order second video and each described the The given ranking of two videos is obtained and is finally ranked in N number of first video and M second videos in preceding K of video, K is positive integer, includes M second videos in K video;
S104: to finally being ranked described in client push in preceding K of video.
Specifically, N number of first video is alternative videos to client push in S101.N is whole more than or equal to 0 Number, wherein as N=0, indicate that there is currently no the videos for being alternatively pushed to client.
First video of database purchase is cached according to preset order, and preset order can refer to click volume, the amount of thumbing up Or the sequences such as comment number, the present invention is not particularly limited.It is to be ordered as example from high to low with preset order, sorts more forward The possibility that first video is pushed to client is higher, conversely, sequence the first video more rearward be pushed to client can It can be lower.
During specific implementation, N number of first video of predetermined order can be obtained in any way.Below then to it A kind of middle embodiment is introduced, in this embodiment, before S101 further include:
From reaffirming to choose the maximum N number of video of the first video parameter in the more a videos of redis for first video;
N number of first video is carried out based on the second video parameter for being different from first video parameter described default Sequence.
Specifically, the first video parameter and the second video parameter be all can indicate the video parameter of video temperature, but The two is different video parameter, and video parameter is, for example, playback volume, the amount of thumbing up and comment number etc., during specific implementation, Those skilled in the art can be according to actually selecting, and the present invention is not particularly limited.For convenience of saying It is bright, hereinafter with playback volume be the first video parameter, the amount of thumbing up be the second video parameter for be introduced.
In redis, multiple videos are stored by the structure of ordered set.Specifically, the ordered set is using the date as key assignments Key, video id and corresponding playback volume are value.During specific implementation, all videos of certain website can be all buffered in In redis, or the video of network whole is stored in redis.Also, corresponding system is write with compiled language go language The timed task of video playing amount is counted, timing updates the playback volume of each video of redis kind.
After zero point reaches on the day of, the playback volume on the day before each video becomes expected data, and then searches from redis Rope goes out Key for the previous day and the maximum N number of video of playback volume is as the first video.Next, the video based on N number of first video Id obtains N number of the from service layer by RPC (remote procedure call protocol, Remote Procedure Call Protocol) Then the corresponding amount of thumbing up of one video is to be stored in N number of first video in a manner of the Key amount of thumbing up is value by video id In likeList list.Then, N number of first video is ranked up by the amount of thumbing up using sequence arsort () function, thus To N number of first video of predetermined order.
So, after N number of first video being carried out predetermined order, just by the landing of N number of first video into database.Default row N number of first video of sequence is stored in CalList list.
Seen from the above description, by choosing maximum N number of first view of the first video parameter from the more a videos of redis Frequently, predetermined order then based on the second video parameter to N number of first video is carried out, not only ensure that the N number of of final deposit database The first video parameter (such as playback volume) of first video is larger, and also assure the second video parameter (such as the amount of thumbing up) compared with Big video sequence is forward to be easily pushed, so that the higher video of temperature is easier to be pushed to client, so reach Improve the technical effect of push accuracy rate.
Further, since during specific implementation, the first video parameter of certain first videos and/or the second video are joined Number is higher, but and be not suitable for being pushed to client, such as illicit video, or the video pushed, therefore in order to keep away The first video for exempting from the type is pushed to client, maximum N number of choosing the first video parameter from the more a videos of redis Video be the first video after, can further include:
Receive the filter condition of user's input;
N number of first video is filtered according to the filter condition.
Specifically, the filter condition in the embodiment of the present invention is input by user, and the use in the embodiment of the present invention Family refers specifically to the operation personnel of push website.User inputs one or more filter conditions as required, certainly, if not It needs to filter and can not also input filter condition.As an example it is assumed that first filter condition is " to come there are two filter conditions Source is to calculate to read and by lower rack data ", to filter out the video for forcing undercarriage, second filter condition is that " source is meter Calculate and read and be demonstrated data ", to filter out expired video.
Then, the video for meeting filter condition is inquired from redis according to filter condition, and the video inquired is deposited It stores up in filter list, next, it is determined that whether the video in likeList in filter list, if, the video is removed, Again video is filled into, if not retaining the video if.
As an example it is assumed that being stored according to the video that above-mentioned first filter condition inquires in redis In filterList1, it is stored in filterList2 according to the video that above-mentioned second filter condition inquires in redis. Then, enabling rank value is 1, recycles likeList, when vid meets in_array (vid, filterList1) | | in_array When (vid, filterList2), current video is removed, when vid is unsatisfactory for in_array (vid, filterList1) | | in_ When array (vid, filterList2), retain current video in LikeList.
Seen from the above description, by above-mentioned filtering, it ensure that operation personnel thinks that the video of inadaptable push is filtered Out, it makes a very bad impression in order to avoid being pushed to client.
Further, which only needs operation primary, but machine delay machine or user's accidental operation in order to prevent, causes Rerun routine, data of the final landing into database can repeat, and ranking can also repeat, and cause mistake, can also be into one Step deletes the data that the date in database is the date on the same day.
Next, in S101 database will be arrived after filtering and according to the landing storage of N number of first video of predetermined order In.
Next, receiving M the second videos and each second video of the pressure push of user's input in S102 Given ranking, M is positive integer.Specifically, the ranking in the embodiment of the present invention refers to the money for being finally pushed to client Lattice and sequence, such as to the video of client push ranking 1 to 5, then ranking just has the money being pushed in 5 pervious videos Lattice, and push sequential in accordance with ranking.Given ranking refers to that user is the ranking that video gives.One specific example, it is assumed that User has input 3 the second videos, 3 second videos and given ranking specifically: video A, ranking 1;Video B, ranking 3; Video C, ranking 21.
M in the embodiment of the present invention is positive integer, i.e., 1,2 or 5 etc..But during specific implementation, if user does not have The second video for needing to force push, then do not input the ranking of the second video and the second video, at this time M=0.
In addition, S102 can also be executed before S101 during specific implementation, or realized simultaneously with S101, this Invention is not particularly limited.
Optionally, similar to the filtering to N number of first video, in order to avoid the second view that should not be pushed of user's erroneous input Frequently, M the second videos can also be filtered according to mode described above, just it is no longer repeated herein.
Also, before S103, may filter out time limit parameter in N number of first video and M the second videos is more than threshold The video of value.Specifically, time limit parameter is specially the date of video, and threshold value is then expiration date, such as threshold value is in January, 2017 1, then the date is then filtered for the video before on January 1st, 2017.
Next, in S103, N number of first video, M based on predetermined order the second video and each second video Given ranking, obtain and finally rank in N number of first video and M the second videos in preceding K of video.Specifically, every Predetermined period acquisition once ranks the video for being in preceding K, and predetermined period is, for example, 5 minutes or 10 minutes.K is positive integer, and K's takes Value is specifically inputted by user, i.e., user determines once to the number of videos of client push as required.Ranking is in preceding K of K It include M the second videos in a video.
In embodiments of the present invention, K K videos before can specifically being obtained by following process:
Each second video is determined as the final video ranked as the given ranking, wherein M described Given ranking, which is respectively less than, is equal to K;
It is removed in K final rankings before being determined as P first videos according to the preset order described to described fixed The video of other rankings other than ranking, P is integer, 0≤P≤N.
Specifically, small for given ranking since the second video of user's input already has given ranking In the second video for being equal to K, then directly the given ranking of second video is determined as finally ranking, and second video is then Corresponding video is finally ranked accordingly.And other rankings other than given ranking, then from N number of first video of predetermined order Successively take P the first video supplements.Wherein, P is integer, 0≤P≤N.
More specifically, while recycles (rank < maxRankNums+1), and maxRankNums is maximum ranking, i.e. K.Separately M the second videos are stored in yunList list, as array_key_exists (rank, yunRankMap), i.e. yunList In have with consistent given ranking is currently finally ranked when, array_shift (yunList) takes out this from yunList Video, and by the storage of the video of taking-up into push list hotTwentyList.Conversely, do not have in the yunList with it is current When finally ranking consistent given ranking, vidTmp=array_shift (CalList) takes the first view of current sequence first Frequently, the second video of taking-up is stored in hotTwentyList, while rank is increased by 1.
As an example it is assumed that the K=10 of user's input, continues to use example above, video A ranks 1, video B, ranking 3, video C, ranking 10.The video that final ranking is 1 is determined first: since the given ranking of the second video video A is 1, The video for determining that final ranking is 1 is video A, and video A is removed from the second video.Then the view that final ranking is 2 is determined Frequently: due to there is no the video that given ranking is 2 in the second video, taking the video of sequence first in N number of first video, it is assumed that For video d1, it is thus determined that final ranking is video d1 for 2 video, and video d1 is removed from the first video.Then it determines The video that final ranking is 3: since the given ranking of the second video video B is 3, it is thus determined that final ranking is for 3 video Video B, and removing from the second video is video B.And so on, until having determined ranking in preceding 10 videos.
The video for given ranking is finally ranked by the way that each second video to be determined as it can be seen from foregoing description, Each video is given according to the given ranking that user gives finally to rank, and ensure that second view of the given ranking less than or equal to K Frequency sequence is pushed at first K.
During specific implementation, since M the second videos and given ranking are all that user inputs, K is also user Input, therefore M given rankings can respectively less than be equal to K under normal circumstances.But if user erroneous input is given greater than K When ranking, in order to enable that the second video pushed is forced to be pushed, so if M given rankings include the Q rows for being greater than K Position, Q is integer, 0 < Q≤M≤K, then S101 further include:
It is K-Q+1 to K that Q second videos by the given ranking greater than K, which are determined as final rank, Video.
It is again assumed that example above, i.e. video are still continued to use in the ranking of the K=10, video A and video B of user's input A ranking 1, video B ranking 3, but it is assumed herein that the ranking erroneous input of video C for 12.Ranking 1 to 9 video determine method with It is identical above, therefore something in common is just not repeated.The difference is that determining the video that final ranking is 10: due to the Not having given video in two videos is 10 video, but there is a given ranking to be greater than 10 videos, it is thus determined that final row Position is video C for 10 video, and removing from the second video is video C.
Seen from the above description, it is determined as finally ranking as K-Q+1 by Q the second videos by given ranking greater than K The video of position to K not only ensure that second video sequence of the given ranking less than or equal to K is pushed at first K, while also protect Having demonstrate,proved given second video of the ranking greater than K can also be pushed, and then reach M the second videos that user needs to force push The technical effect being pushed.
Finally, in S104, by the K video push determined to client.
Technical solution in through the embodiment of the present invention not only includes operation finally to K video of client push Personnel need to force M the second videos of push, also include highest P the first videos of temperature, push away so having reached raising Send the technical effect of accuracy rate.
Based on inventive concept same as the method for pushing video in previous embodiment, second aspect of the present invention also provides one The device of kind pushing video, as shown in Figure 2, comprising:
Memory module 101, for being stored in N number of first video alternatively pushed in the database according to predetermined order, N is big In the integer for being equal to 0;
Receiving module 102, M the second videos and each described second of the pressure push for receiving user's input The given ranking of video, M are positive integer;
Rank module 103, for based on the predetermined order N number of first video, M second videos and The given ranking of each second video is obtained and is finally ranked in N number of first video and M second videos preceding K videos, K are positive integer, include M second videos in K video;
Pushing module 104, for finally being ranked described in client push in preceding K of video.
Specifically, ranking module 103 be used to for each second video being determined as the final ranking for it is described to Surely the video ranked, wherein the M given rankings are respectively less than and are equal to K;P described first are regarded according to the preset order Before frequency is determined as in K final rankings except it is described to it is described determine ranking in addition to other rankings videos, P is integer, 0≤P≤ N。
If the M given rankings include the Q rankings for being greater than K, Q is integer, and 0 < Q≤M≤K ranks module 103 It is also used to Q second videos by the given ranking greater than K to be determined as final rank to be K-Q+1 to K Video.
Further, described device further include:
Module is chosen, for finally ranking in described obtain in N number of first video and M second videos preceding Before K videos, from reaffirming to choose the maximum N number of video of the first video parameter in the more a videos of redis for first view Frequently;
Sorting module, for being regarded based on the second video parameter for being different from first video parameter to N number of described first Frequency carries out the predetermined order.
Further, described device further includes the first filtering module, for described from reaffirming to choose in the more a videos of redis The maximum N number of video of first video parameter is after first video, receives the filter condition that the user inputs, according to institute It states filter condition and filters N number of first video.
Further, N number of first video and M second videos include time limit parameter, described device further include:
Second filtering module, for finally being ranked in described obtain in N number of first video and M second videos Before preceding K of video, filtering out time limit parameter described in N number of first video and M second videos is more than threshold The video of value.
Module 103 is ranked to be used to obtain primary final ranking in preceding K of video every predetermined period.
The various change mode and specific example of the method for pushing video in 1 embodiment of earlier figures are equally applicable to this reality The device for applying the pushing video of example, by the detailed description of the aforementioned method to pushing video, those skilled in the art can be clear The implementation method for knowing the device of pushing video in the present embodiment of Chu, so this will not be detailed here in order to illustrate the succinct of book.
Based on inventive concept same as the method for pushing video in previous embodiment, the present invention also provides a kind of computers Readable storage medium storing program for executing is stored thereon with computer program, which realizes pushing video described previously when being executed by processor The step of either method method.
Based on inventive concept same as the method for pushing video in previous embodiment, the present invention also provides a kind of computers Equipment, as shown in figure 3, including memory 204, processor 202 and being stored on memory 204 and can transport on processor 202 Capable computer program, the processor 202 realize any of the method for control progress bar described previously when executing described program The step of method.
Wherein, in Fig. 3, bus architecture (is represented) with bus 200, and bus 200 may include any number of interconnection Bus and bridge, bus 200 will include the one or more processors represented by processor 202 and what memory 204 represented deposits The various circuits of reservoir link together.Bus 200 can also will peripheral equipment, voltage-stablizer and management circuit etc. it Various other circuits of class link together, and these are all it is known in the art, therefore, no longer carry out further to it herein Description.Bus interface 206 provides interface between bus 200 and receiver 201 and transmitter 203.Receiver 201 and transmitter 203 can be the same element, i.e. transceiver, provide the unit for communicating over a transmission medium with various other devices.
Processor 202 is responsible for management bus 200 and common processing, and memory 204 can be used for storage processor 202 when executing operation used data.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
In the technical solution of the embodiment of the present invention, the N alternatively pushed is buffered into reaffirming redis according to predetermined order A first video, N are the integer more than or equal to 0, and receive M the second videos of the pressure push of user's input, and every The given ranking of a second video, M are positive integer, then, N number of first video, M based on predetermined order the second video and The given ranking of each second video is obtained and is finally ranked in N number of first video and M the second videos in preceding K of video, K For positive integer, K >=M is finally finally ranked to client push in preceding K of video, and K video includes at least one second view Frequently.Since K video of push is M the second videos and the given row of the second video for needing to force push according to user What position finally to determine from N number of first video and M the second videos, second video has been included at least in K video, so Ensure that will force the second video push of push to client, carry out people to pushing video so solving prior art requirement The technical issues of work is intervened, realize the technical effect to pushing video manual intervention.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of method of pushing video characterized by comprising
It is stored in N number of first video alternatively pushed in the database according to predetermined order, N is the integer more than or equal to 0;
The given ranking of M the second videos and each second video of the pressure push of user's input is received, M is positive Integer;
N number of first video, M based on the predetermined order second video and each second video are given Fixed ranking is obtained and is finally ranked in N number of first video and M second videos in preceding K of video, and K is positive integer, It include M second videos in K video;
To finally being ranked described in client push in preceding K of video.
2. the method as described in claim 1, which is characterized in that N number of first video based on the predetermined order, The given ranking of M second videos and each second video obtains N number of first video and M described the It is finally ranked in two videos in preceding K of video, comprising:
Each second video is determined as the final video ranked as the given ranking, wherein M described given Ranking, which is respectively less than, is equal to K;
Ranking is determined to described except described in K final rankings before being determined as P first videos according to the preset order The video of other rankings in addition, P is integer, 0≤P≤N.
3. method according to claim 2, which is characterized in that if the M given rankings include the Q rankings for being greater than K, Q is integer, 0 < Q≤M≤K, N number of first video based on the predetermined order, M second videos and The given ranking of each second video is obtained and is finally ranked in N number of first video and M second videos preceding K videos, further includes:
The given ranking is determined as described final to rank the view for K-Q+1 to K greater than Q second videos of K Frequently.
4. the method as described in claim 1, which is characterized in that obtain N number of first video and M described second described It is finally ranked in video before preceding K of video, further includes:
From reaffirming to choose the maximum N number of video of the first video parameter in the more a videos of redis for first video;
The default row is carried out to N number of first video based on the second video parameter for being different from first video parameter Sequence.
5. method as claimed in claim 4, which is characterized in that it is described from reaffirm in the more a videos of redis choose first view The maximum N number of video of frequency parameter is after first video, further includes:
Receive the filter condition of user's input;
N number of first video is filtered according to the filter condition.
6. the method as described in claim 1, which is characterized in that when N number of first video and M second videos include Parameter is limited, is finally ranked before preceding K of video in described obtain in N number of first video and M second videos, Further include:
Filter out the video that time limit parameter described in N number of first video and M second videos is more than threshold value.
7. the method as described in claim 1, which is characterized in that obtain primary final ranking at first K every predetermined period Video.
8. a kind of device of pushing video characterized by comprising
Memory module, for being stored in N number of first video alternatively pushed in the database according to predetermined order, N is more than or equal to 0 Integer;
Receiving module, for receive the pressure push of user's input M the second videos and each second video to Fixed ranking, M is positive integer;
Module is ranked, for N number of first video, M second videos and each institute based on the predetermined order The given ranking of the second video is stated, obtains and finally ranks in N number of first video and M second videos at first K Video, K are positive integer, include M second videos in K video;
Pushing module, for finally being ranked described in client push in preceding K of video.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-7 the method is realized when row.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes the step of any one of claim 1-7 the method when executing described program Suddenly.
CN201710883477.2A 2017-09-26 2017-09-26 Method and device for pushing video Active CN109561349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710883477.2A CN109561349B (en) 2017-09-26 2017-09-26 Method and device for pushing video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710883477.2A CN109561349B (en) 2017-09-26 2017-09-26 Method and device for pushing video

Publications (2)

Publication Number Publication Date
CN109561349A true CN109561349A (en) 2019-04-02
CN109561349B CN109561349B (en) 2021-11-09

Family

ID=65863276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710883477.2A Active CN109561349B (en) 2017-09-26 2017-09-26 Method and device for pushing video

Country Status (1)

Country Link
CN (1) CN109561349B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422987A (en) * 2021-07-15 2021-09-21 南京感动科技有限公司 Expressway video data calling method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110131595A1 (en) * 2009-12-02 2011-06-02 General Electric Company Methods and systems for online recommendation
US20150227529A1 (en) * 2012-12-31 2015-08-13 Google Inc. Methods, systems, and media for recommending media content
CN105095431A (en) * 2015-07-22 2015-11-25 百度在线网络技术(北京)有限公司 Method and device for pushing videos based on behavior information of user
CN105868423A (en) * 2016-06-20 2016-08-17 武汉斗鱼网络科技有限公司 Video popularity ranking method and system based on video website
CN106131601A (en) * 2016-06-29 2016-11-16 乐视控股(北京)有限公司 Video recommendation method and device
CN106792081A (en) * 2016-12-07 2017-05-31 腾讯科技(深圳)有限公司 The method for pushing and device of live video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110131595A1 (en) * 2009-12-02 2011-06-02 General Electric Company Methods and systems for online recommendation
US20150227529A1 (en) * 2012-12-31 2015-08-13 Google Inc. Methods, systems, and media for recommending media content
CN105095431A (en) * 2015-07-22 2015-11-25 百度在线网络技术(北京)有限公司 Method and device for pushing videos based on behavior information of user
CN105868423A (en) * 2016-06-20 2016-08-17 武汉斗鱼网络科技有限公司 Video popularity ranking method and system based on video website
CN106131601A (en) * 2016-06-29 2016-11-16 乐视控股(北京)有限公司 Video recommendation method and device
CN106792081A (en) * 2016-12-07 2017-05-31 腾讯科技(深圳)有限公司 The method for pushing and device of live video

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422987A (en) * 2021-07-15 2021-09-21 南京感动科技有限公司 Expressway video data calling method

Also Published As

Publication number Publication date
CN109561349B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN106998317B (en) Abnormal access requests recognition methods and device
AU2016354558B2 (en) Asynchronous deep reinforcement learning
CN104978601B (en) neural network model training system and method
US9575800B2 (en) Using queues corresponding to attribute values and priorities associated with units of work and sub-units of the unit of work to select the units of work and their sub-units to process
CN103890787A (en) Method and apparatus for neural learning of natural multi-spike trains in spiking neural networks
US20170091079A1 (en) Performance testing system and method
CN110032684B (en) Information cross-domain parallel sequence recommendation method, medium and equipment based on shared account
CN104424361B (en) Automatic definition heat storage and big workload
CN106886535A (en) A kind of data pick-up method and apparatus for being adapted to multiple data sources
US20190266024A1 (en) Selective and piecemeal data loading for computing efficiency
CN110019200A (en) A kind of foundation of index, application method and device
CN105868590A (en) Method and device for processing handwriting data
CN109561349A (en) A kind of method and apparatus of pushing video
CN109192266A (en) A kind of drug recommended method and device based on physical examination report
JP2023022831A (en) Computer system, computer implementation method, program and computer implementation system (learning causal relation)
CN110287048A (en) Data exception detection method and device
CN108810268A (en) The treating method and apparatus of operation note
CN107506380B (en) A kind of method and server updating business data
CN105653364B (en) Application process management method and application process managing device
CN110489612A (en) A kind of the multi objective monitoring method and device of information
US20170032300A1 (en) Dynamic selection of resources on which an action is performed
CN107770575B (en) The method and device of brush present is prevented in a kind of live streaming platform
CN109901914A (en) Transaction methods, device and equipment
CN114374652B (en) Data transmission speed limiting method and device between thermomagnetic storage and blue light storage
WO2019209458A1 (en) Business insight generation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240530

Address after: 716000 A4-303 Entrepreneurship Town, Baota District, Yan'an City, Shaanxi Province

Patentee after: Yan'an Dongchao Media Co.,Ltd.

Country or region after: China

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China