CN105635821A - Video filtering method and apparatus - Google Patents

Video filtering method and apparatus Download PDF

Info

Publication number
CN105635821A
CN105635821A CN201511021080.XA CN201511021080A CN105635821A CN 105635821 A CN105635821 A CN 105635821A CN 201511021080 A CN201511021080 A CN 201511021080A CN 105635821 A CN105635821 A CN 105635821A
Authority
CN
China
Prior art keywords
video
website
filtered
filtering
doubtful
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
CN201511021080.XA
Other languages
Chinese (zh)
Other versions
CN105635821B (en
Inventor
王洪朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201511021080.XA priority Critical patent/CN105635821B/en
Publication of CN105635821A publication Critical patent/CN105635821A/en
Application granted granted Critical
Publication of CN105635821B publication Critical patent/CN105635821B/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/454Content or additional data filtering, e.g. blocking advertisements

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a video filtering method and apparatus. The method comprises: a video searching request sent by a target client is received; according to an identifier searching video, included in the video searching request, of a to-be-searched video as well as a type identifier, included in the video searching request, of the target client, a filtering rule for the type of the target client is obtained from a video filtering configuration file generated in advance; on the basis of the obtained filtering rule, a searched video is filtered; and the filtered video information is sent to the target client. According to the technical scheme provided by the embodiment of the invention, the video filtering efficiency can be improved.

Description

A kind of video filtering method and device
Technical field
The present invention relates to Internet technical field, in particular to a kind of video filtering method and device.
Background technology
Along with the development of Internet technology, the quantity of internet video gets more and more, and user is when obtaining video, and server may search video or the unsafe video that some users do not need itself, and this just needs to be filtered by video.
At present, a Video service device can only filter video corresponding to a kind of client type. When filtering the video of different website (as: liking strange skill, excellent cruel, potato, Sohu, Tengxun etc.), video for various types of client terminal is filtered separately by different Video service devices, such as, the Video service device only video of filter needle to Windows operating system, the video for IOS or a video etc. for Android operation system. Each Video service device runs its corresponding video filtering program, when the video filtering rule for various client type changes, the mode of the video filtering program run by revising in multiple Video service device is needed to realize, consequently, it is desirable to developer safeguards multiple video filtering program.
When the client terminal of each client type is bigger to the change frequency of the video demand of different website, need the code of the video filtering program of the operation revised frequently in each Video service device, to meet each client terminal to the demand of video filtering, so just make the efficiency of video filtering very low.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of video filtering method and device, to improve the efficiency filtering video.
For achieving the above object, the embodiment of the invention discloses a kind of video filtering method, described method comprises step:
The video search request that receiving target client terminal sends, wherein, described video search request comprises: the mark of video to be searched and the type identification of described target customer's end;
Mark search video according to the video described to be searched comprised in described video search request, and the type identification according to the described target customer's end comprised in described video search request, the filtration rule of the type for described target customer's end is obtained from the video filtering configuration file generated in advance, wherein, described video filtering configuration file comprises: the corresponding relation between the type of client terminal and filtration rule;
According to the filtration rule obtained, the video searched is filtered;
The video information of the video after filtration is sent to described target customer's end.
In a kind of specific implementation, the described filtration rule according to obtaining, the video searched is filtered, comprising:
For any bar video C in the video searched, filter according to under type:
Obtain the website of described video C and described video C time long;
According to the website obtained and obtain time long, judge whether described video C is video to be filtered;
If yes, from the video searched, described video C is filtered.
In a kind of specific implementation, described filtration rule comprises: the corresponding relation of length when video website and video limit;
The described website according to obtaining and obtain time long, judge whether described video C is video to be filtered, comprising:
Judge whether described video C is doubtful video to be filtered for each website obtained;
When judging to be doubtful video to be filtered for video C described in each website obtained, judge that described video C is as video to be filtered;
Wherein, judge whether described video C is doubtful video to be filtered according to following step for the either site X obtained:
Judge the video website whether described website X belongs to the filtration rule obtained and comprise;
If belonging to, then judge to obtain time length whether when the video that the described website X that the filtration rule obtained comprises is corresponding limits in length;
If yes, then judge that for video C described in described website X be not doubtful video to be filtered, if NO, then judge for video C described in described website X as doubtful video to be filtered;
If not belonging to, then judge for video C described in described website X as doubtful video to be filtered.
In a kind of specific implementation, the website obtained comprises main separation website and alternative website;
Described method also comprises:
When judging for video C described in described main separation website as doubtful video to be filtered, it not the alternative website of doubtful video to be filtered from above-mentioned judgement described video C, it is determined that alternative website is as the main separation website of described video C.
In a kind of specific implementation, the described video information by the video after filtration is sent to described target customer's end, comprising:
According to the website that above-mentioned judgement described video C is not doubtful video to be filtered, generate the video information of described video C;
Described video information is sent to described target customer's end.
In a kind of specific implementation, described method also comprises:
According to default file update condition, upgrade described video filtering configuration file.
For achieving the above object, the embodiment of the invention also discloses a kind of video filtering device, it is characterised in that, described device comprises: searching request receiver module, information acquisition module, video filtering module and video information sending module;
Wherein, described searching request receiver module, for the video search request that receiving target client terminal sends, wherein, described video search request comprises: the mark of video to be searched and the type identification of described target customer's end;
Described information acquisition module, for the mark search video according to the video described to be searched comprised in described video search request, and the type identification according to the described target customer's end comprised in described video search request, the filtration rule of the type for described target customer's end is obtained from the video filtering configuration file generated in advance, wherein, described video filtering configuration file comprises: the corresponding relation between the type of client terminal and filtration rule;
Described video filtering module, for according to the filtration rule obtained, filtering the video searched;
Described video information sending module, for being sent to described target customer's end by the video information of the video after filtration.
In a kind of specific implementation, described video filtering module, comprising: information obtains submodule block, video judges submodule block and video filtering submodule block;
Wherein, described information obtains submodule block, for the website of any bar video C that obtains in the video searched and described video C time long;
Described video judges submodule block, for according to the website obtained and obtain time long, judge whether described video C is video to be filtered, if NO, then trigger described video filtering submodule block;
Described video filtering submodule block, for filtering described video C from the video searched.
In a kind of specific implementation, described filtration rule comprises: the corresponding relation of length when video website and video limit;
Described video judges submodule block, comprising: video judging unit and video identifying unit;
Wherein, described video judging unit, for judging for each website obtained whether described video C is doubtful video to be filtered;
Described video identifying unit, for when judging to be doubtful video to be filtered for video C described in each website obtained, judging that described video C is as video to be filtered;
Wherein, described video judging unit, comprising: website judgment sub-unit, time long judgment sub-unit, the first video judge that subelement and the 2nd video judge subelement;
Described website judgment sub-unit, for judging the video website whether the either site X obtained belongs to the filtration rule obtained and comprise, if belonging to, then long judgment sub-unit when triggering described, if not belonging to, then triggers described first video and judges subelement;
Long judgment sub-unit time described, for judging whether the time length obtained in length when the video that the described website X that the filtration rule obtained comprises is corresponding limits, if yes, then triggers described 2nd video and judge subelement, if NO, then trigger described first video and judge subelement;
Described first video judges subelement, for judging for video C described in described website X as doubtful video to be filtered;
Described 2nd video judges subelement, judges for video C described in described website X it is not doubtful video to be filtered.
In a kind of specific implementation, the website obtained comprises main separation website and alternative website;
Described device also comprises: main separation website determination module, for when judging for video C described in described main separation website as doubtful video to be filtered, it not the alternative website of doubtful video to be filtered from above-mentioned judgement described video C, it is determined that alternative website is as the main separation website of described video C.
In a kind of specific implementation, described video information sending module, comprising: video information generates submodule block and video information sends submodule block;
Wherein, described video information generates submodule block, for the website not being doubtful video to be filtered according to above-mentioned judgement described video C, generates the video information of described video C;
Described video information sends submodule block, for described video information is sent to described target customer's end.
In a kind of specific implementation, described device also comprises: file update module, for according to default file update condition, upgrading described video filtering configuration file.
Therefore, in the embodiment of the present invention, Video service device is after receiving the video search request that target customer's end sends, mark search video according to the video to be searched comprised in this video search request, and from video filtering configuration file, the filtration rule of the type for this target customer's end is obtained according to the type identification of this mark client terminal comprised in this video search request, according to the filtration rule obtained, the video searched is filtered, the video information of the video after filtration is sent to this target customer's end, when the video demand of different website is changed by dissimilar client terminal, only need to upgrade the rule of the filtration in video filtering configuration file, the video filtering program run without the need to revising in multiple Video service device, therefore, effectively improve the efficiency filtering video.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, it is briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of a kind of video filtering method that Fig. 1 provides for the embodiment of the present invention;
The structural representation of a kind of video filtering device that Fig. 2 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of video filtering method and device, the method comprises: the video search request that receiving target client terminal sends, mark search video according to the video described to be searched comprised in described video search request, and the type identification according to the described target customer's end comprised in described video search request, the filtration rule of the type for described target customer's end is obtained from the video filtering configuration file generated in advance, according to the filtration rule obtained, the video searched is filtered, the video information of the video after filtration is sent to described target customer's end.
Below by specific embodiment, the present invention is described in detail.
With reference to the schematic flow sheet of a kind of video filtering method that figure 1, Fig. 1 provides for the embodiment of the present invention, the method can be applied to Video service device, it is possible to comprises the steps:
S101: the video search request that receiving target client terminal sends;
Wherein, video search request can comprise: the mark of video to be searched and the type identification of target customer's end. Here, the mark of video to be searched can be the keyword (as: " celestial sword " " running " etc.) of the title (as: " thinkling sound's Ya list ", " color is romantic " etc.) of video to be searched or video to be searched, and the type identification of target customer's end can be IOS client terminal, Android client identification or PC client terminal etc. Certainly, video search request can also comprise the mark of target customer's end, like this can so that the video information of the video after filtration be accurately sent to target customer's end according to the mark of the target customer's end comprised in video search request by Video service device. Here, the mark of target customer's end can be the physical address of this target customer's end, and such as 1a:2B:3c:00:5d, the mark of target customer's end can also be the user name of this target customer's end, such as mimi.
Certainly, video search request can also comprise other information, and this is not limited by the present invention.
S102: according to the mark of the video described to be searched comprised in described video search request search video, and the type identification according to the described target customer's end comprised in described video search request, from the video filtering configuration file generated in advance, obtain the filtration rule of the type for described target customer's end;
Wherein, video filtering configuration file can comprise: the corresponding relation between the type of client terminal and filtration rule.
In a kind of specific implementation, the demand of video can be generated according to each target customer's end by above-mentioned video filtering configuration file by management server, can also by Video service device video demand be generated according to each target customer's end, this is not limited by the present invention, above-mentioned management server and Video service device can be understood as the server dividing according to function and obtaining, in practical application, above-mentioned management server and Video service device can correspond to a physical machine, it is also possible to corresponding to multiple stage physical machine.
Specifically, the method generating video filtering configuration file can comprise the steps:
A, reception are for the configuration-direct filtering rule;
Wherein, configuration-direct can comprise: the type of client terminal to be modified and the corresponding relation filtering rule to be modified.
In a kind of specific implementation of the present invention, it is possible to building one for the management platform of video filtering configuration file, when the demand of video is changed by target customer's end, user can input corresponding configuration-direct in management platform. Certainly, management platform can also provide one to filter rules modification interface, this interface can comprise type and each filtration rule of each client terminal, user can select the parameter satisfied the demands to generate for the configuration-direct filtering rule in this interface, and the mode that this kind generates configuration-direct is more efficient and convenient.
It should be noted that, management platform can be built in independent management server, is convenient to managing video like this and filters configuration file, does not affect the efficiency of video filtering; In addition, management platform can also be built on Video service device, can reduce handling cost like this.
B, the video filtering configuration file stored according to the type of the client terminal described to be modified comprised in described configuration-direct and the corresponding relation amendment of described filtration rule to be modified, upgrade described video filtering configuration file;
Described video filtering configuration file after C, storage update.
In a kind of specific implementation, video filtering configuration file can be stored in internal memory, so that Video service device can obtain video filtering configuration file fast, in addition, video filtering configuration file can also be stored in specified location, such as couchbase, now needing to arrange timing task, up-to-date video filtering configuration file is updated in internal memory by timing.
In a kind of specific implementation, above-mentioned video filtering method can also comprise:
According to default file update condition, upgrade described video filtering configuration file.
Specifically, timing up-to-date video filtering configuration file is updated in internal memory can for timing obtain video filtering configuration file from specified location, it is possible to think timing from specified location send video filtering configuration file to internal memory. Such as, when management platform is built in independent management server, video filtering configuration file is generated by management server configuration, timing task now can be set on the management server, video filtering configuration file is sent to Video service device by timing, is stored in the internal memory of Video service device self by Video service device by video filtering configuration file; Now can also arrange on Video service device timing task, timing to management server send file acquisition instruction, obtain video filtering configuration file.
It should be noted that, filtering the corresponding relation of length when rule can comprise video website and video restriction, now video filtering configuration file is a point configuration file for end branch website timesharing length, such as: { { pc page end: { like strange skill: 0, max}; { extremely excellent: 0,40}; { Sohu: 20,40}; { IOS client terminal: { like strange skill: 0, max}; { extremely excellent: 0, max}; { Sohu: 0,40}; ....
When upgrading video filtering configuration file, it is assumed that, IOS end the video of excellent cool website point is only gone out 20 minutes within data, then parameter modification by the excellent cool website point of IOS end is { IOS client terminal: { extremely excellent: 0,20}; ; Android client terminal does not export the video data of Sohu's website, then the parameter of Sohu's website of Android client terminal deleted from video filtering configuration file, or is { Android client terminal: { Sohu: 0,0} by the parameter modification of Sohu's website of Android client terminal; ....
S103: according to the filtration rule obtained, the video searched is filtered;
In a kind of specific implementation, the above-mentioned filtration rule according to obtaining, the video searched is filtered, it is possible to comprising:
For any bar video C in the video searched, filter according to under type:
Obtain the website of video C and video C time long;
According to the website obtained and obtain time long, judge whether video C is video to be filtered;
If yes, from the video searched, video C is filtered;
If NO, then video C is retained.
Here, retaining video C, be namely the relevant information retaining video C, relevant information can comprise: video data content, video name and video profile etc.
Assume, being designated " thinkling sound's Ya list " of the video to be searched comprised in the video search request that target customer's end sends, the type identification of the target customer's end comprised in the video search request that target customer's end sends is " IOS ", Video service device searches 2 video A and B according to " thinkling sound's Ya list ", from video configuration file, the filtration rule of " IOS " is obtained according to " IOS ", when video A is filtered, obtain video A website and time long, assume that the website of video A comprises: like strange skill, excellent cruel and Sohu, the time length of video A is 18 minutes, website according to the video A obtained, obtain video A time length and " IOS " filtration rule, judge whether video A is video to be filtered, if yes, then filter out video A, namely from the video obtained, delete video A, and start according to the method described above to be filtered by video B, if NO, then retain video A, and start according to the method described above to be filtered by video B.
In a kind of specific implementation, filtering rule can comprise: the corresponding relation of length when video website and video limit.
In this case, the above-mentioned website according to obtaining and obtain time long, judge whether described video C is video to be filtered, it is possible to comprising:
Judge whether video C is doubtful video to be filtered for each website obtained;
When judging to be doubtful video to be filtered for each website video C obtained, judge that video C is as video to be filtered;
Wherein, it is possible to judge whether video C is doubtful video to be filtered according to following step for the either site X obtained:
Judge the video website whether website X belongs to the filtration rule obtained and comprise;
If belonging to, then judge to obtain time length whether when the video that the website X that the filtration rule obtained comprises is corresponding limits in length;
If yes, then judge that for website X video C be not doubtful video to be filtered, if NO, then judge for website X video C as doubtful video to be filtered;
If not belonging to, then judge for website X video C as doubtful video to be filtered.
According to above-mentioned hypothesis, the website of video A comprises: liking strange skill, excellent cruel and Sohu, the time length of video A is 18 minutes, and the type of the client terminal sending video search request is IOS, if the filtration rule filtering IOS client terminal in rule is { IOS client terminal: { like strange skill: 0,15}; { Sohu: 0,25}}, to all judging of each station of video A, when judging the strange skill website of the love of video A, this website is filtering in rule, but video time length filter that rule comprises when liking that video corresponding to strange skill website limits outside length, 18>15, therefore judge for the strange skill website video A of love as doubtful video to be filtered; When judging the excellent cool website point of video A, this website is not filtering in rule, therefore judges for excellent cool website point video A as doubtful video to be filtered; When judging Sohu's website of video A, this website is filtering in rule, and video time length when filtering video corresponding to Sohu's website of comprising of rule and limit in length, 18<25, therefore judge that for Sohu website video A be not doubtful video to be filtered, now, for each website of video A, video A is not doubtful video to be filtered entirely, therefore retains video A. In addition, if judging the Sohu website video A for above-mentioned video A also as doubtful video to be filtered, then each website video A for video A is doubtful video to be filtered, so can judge that video A is as video to be filtered, filter out video A, from the video obtained, namely delete video A.
In practical application, can judge to be searched video for above-mentioned an expression is set as the website of doubtful video to be filtered is searched the mark value of video as doubtful video to be filtered for this website, such as " 1 ", an expression is set is searched, for this website, the mark value that video is not doubtful video to be filtered for above-mentioned judgement searches the website that video is not doubtful video to be filtered, such as " 0 ". Assuming, to being searched after a video B filters, its site information is for [to like strange skill, 0; Extremely excellent, 0; Sohu, 0], then represent that all website video B for video B are doubtful video to be filtered, therefore filter out video B.
Certainly, in practical application, for a certain website X1When video D is doubtful video to be filtered, it is possible to directly delete the website X of video D1, when all websites of video D are all deleted, it is possible to judge that video D is as video to be filtered, filters out video D.
In a kind of specific implementation, the website obtained can comprise main separation website and alternative website;
In this case, above-mentioned video filtering method can also comprise:
When judging for main separation website video C as doubtful video to be filtered, it not the alternative website of doubtful video to be filtered from above-mentioned judgement video C, it is determined that alternative website is as the main separation website of video C.
Assume, the website of video A comprises: like strange skill, excellent cruel and Sohu, wherein, liking that strange skill is main separation website, excellent cruel and Sohu is alternative website, if regular according to the filtration obtained, after the video searched is filtered, judge then extremely and in Sohu can determine that a website is as main separation website at random excellent for liking that strange skill website video A is as doubtful video to be filtered, judges for excellent cool website point and Sohu website video A it is not all doubtful video to be filtered.
In a kind of specific implementation, when judging for main separation website video C as doubtful video to be filtered, it is also possible to according to above-mentioned judgement video C be not doubtful video to be filtered alternative website filter regular in order determine. Such as, the website of video C comprises: likes strange skill, excellent cruel and Sohu, wherein, likes that strange skill is main separation website, and excellent cruel and Sohu is alternative website, and the filtration rule obtained is { IOS client terminal: { like strange skill: 0,15}; { Google: 0,20}; { Sohu: 0,25}; Extremely excellent: 0,25}}, after filtering, like that strange skill video C is doubtful video to be filtered for main separation website, judge that for the excellent cruel and Sohu video C of alternative website be not all doubtful video to be filtered, and filter in rule Sohu's website excellent extremely before, it is possible to determine that Sohu is main separation website.
In practical application, after dividing the good video of filtration of end branch website timesharing length, also can carry out some process, as filtered out yellow content video or filter out the video etc. poor with the mark dependency of video to be searched, can ensure that client terminal can receive the video wanted like this, and ensure the safety of client-side information.
S104: the video information of the video after filtration is sent to described target customer's end.
Specifically, the above-mentioned video information by the video after filtration is sent to target customer's end, it is possible to comprising:
According to the website that above-mentioned judgement video C is not doubtful video to be filtered, generate the video information of video C;
Above-mentioned video information is sent to target customer's end.
Assume, the website of the video A obtained comprises: like strange skill, excellent cruel and Sohu, after video filtering, judge for excellent cool website point and Sohu website video A it is not all doubtful video to be filtered, then according to the video information of excellent cruel and Sohu website generation video A, and this video information is sent to target customer's end.
Target customer's end, after receiving video information, is shown one by one in the way of the page and is received video information, carry out browsing for user and select need video, wherein, if video information comprises main separation website and alternative website, can preferentially show main separation website.
Certainly, video information can also comprise the information such as video name and/or video profile, and this is not limited by the present invention.
Apply embodiment illustrated in fig. 1, Video service device is after receiving the video search request that target customer's end sends, mark search video according to the video to be searched comprised in this video search request, and from video filtering configuration file, the filtration rule of the type for this target customer's end is obtained according to the type identification of this mark client terminal comprised in this video search request, according to the filtration rule obtained, the video searched is filtered, the video information of the video after filtration is sent to this target customer's end, when the video demand of different website is changed by dissimilar client terminal, only need to upgrade the rule of the filtration in video filtering configuration file, the video filtering program run without the need to revising in multiple Video service device, therefore, effectively improve the efficiency filtering video.
With reference to figure 2, the structural representation of a kind of video filtering device that Fig. 2 provides for the embodiment of the present invention, this device can be applied to Video service device, it is possible to comprising: searching request receiver module 201, information acquisition module 202, video filtering module 203 and video information sending module 204;
Wherein, searching request receiver module 201, for the video search request that receiving target client terminal sends, wherein, video search request can comprise: the mark of video to be searched and the type identification of target customer's end;
Specifically, the mark of video to be searched can be the keyword (as: " celestial sword " " running " etc.) of the title (as: " thinkling sound's Ya list ", " color is romantic " etc.) of video to be searched or video to be searched, and the type identification of target customer's end can be IOS client terminal, Android client identification or PC client terminal etc. Certainly, video search request can also comprise the mark of target customer's end, like this can so that the video information of the video after filtration be accurately sent to target customer's end according to the mark of the target customer's end comprised in video search request by Video service device. Here, the mark of target customer's end can be the physical address of this target customer's end, and such as 1a:2B:3c:00:5d, the mark of target customer's end can also be the user name of this target customer's end, such as mimi.
In addition, video search request can also comprise other information, and this is not limited by the present invention.
Information acquisition module 202, for the mark search video according to the video to be searched comprised in video search request, and the type identification according to the target customer's end comprised in video search request, the filtration rule of the type for target customer's end is obtained from the video filtering configuration file generated in advance, wherein, video filtering configuration file can comprise: the corresponding relation between the type of client terminal and filtration rule;
In a kind of specific implementation, the demand of video can be generated according to each target customer's end by above-mentioned video filtering configuration file by management server, can also by Video service device video demand be generated according to each target customer's end, this is not limited by the present invention, above-mentioned management server and Video service device can be understood as the server dividing according to function and obtaining, in practical application, above-mentioned management server and Video service device can correspond to a physical machine, it is also possible to corresponding to multiple stage physical machine.
Specifically, the device generating video filtering configuration file can comprise: configuration-direct receiver module, configuration file receiver module and configuration file memory module (not illustrating in Fig. 2);
Wherein, configuration-direct receiver module, for receiving for the configuration-direct filtering rule;
Here, configuration-direct can comprise: the type of client terminal to be modified and the corresponding relation filtering rule to be modified.
In a kind of specific implementation of the present invention, it is possible to building one for the management platform of video filtering configuration file, when the demand of video is changed by target customer's end, user can input corresponding configuration-direct in management platform. Certainly, management platform can also provide one to filter rules modification interface, this interface can comprise type and each filtration rule of each client terminal, user can select the parameter satisfied the demands to generate for the configuration-direct filtering rule in this interface, and the mode that this kind generates configuration-direct is more efficient and convenient.
It should be noted that, management platform can be built in independent management server, is convenient to managing video like this and filters configuration file, does not affect the efficiency of video filtering; In addition, management platform can also be built on Video service device, can reduce handling cost like this.
Configuration file receiver module, revises, for the type according to the client terminal described to be modified comprised in described configuration-direct and the described corresponding relation filtering rule to be modified, the video filtering configuration file stored, upgrades described video filtering configuration file;
Configuration file memory module, for the described video filtering configuration file after storage update.
In a kind of specific implementation, video filtering configuration file can be stored in internal memory, so that Video service device can obtain video filtering configuration file fast, in addition, video filtering configuration file can also be stored in specified location, such as couchbase, now needing to arrange timing task, up-to-date video filtering configuration file is updated in internal memory by timing.
In a kind of specific implementation, above-mentioned video filtering device can also comprise: file update module, for according to default file update condition, upgrading video filtering configuration file (not illustrating in Fig. 2).
Specifically, timing up-to-date video filtering configuration file is updated in internal memory can for timing obtain video filtering configuration file from specified location, it is possible to think timing from specified location send video filtering configuration file to internal memory. Such as, when management platform is built in independent management server, video filtering configuration file is generated by management server configuration, timing task now can be set on the management server, video filtering configuration file is sent to Video service device by timing, is stored in the internal memory of Video service device self by Video service device by video filtering configuration file; Now can also arrange on Video service device timing task, timing to management server send file acquisition instruction, obtain video filtering configuration file.
It should be noted that, filtering the corresponding relation of length when rule can comprise video website and video restriction, now video filtering configuration file is a point configuration file for end branch website timesharing length, such as: { { pc page end: { like strange skill: 0, max}; { extremely excellent: 0,40}; { Sohu: 20,40}; { IOS client terminal: { like strange skill: 0, max}; { extremely excellent: 0, max}; { Sohu: 0,40}; ....
When upgrading video filtering configuration file, it is assumed that, IOS end the video of excellent cool website point is only gone out 20 minutes within data, then parameter modification by the excellent cool website point of IOS end is { IOS client terminal: { extremely excellent: 0,20}; ; Android client terminal does not export the video data of Sohu's website, then the parameter of Sohu's website of Android client terminal deleted from video filtering configuration file, or is { Android client terminal: { Sohu: 0,0} by the parameter modification of Sohu's website of Android client terminal; ....
Video filtering module 203, for according to the filtration rule obtained, filtering the video searched;
In above-mentioned video filtering device, video filtering module 203, it is possible to comprising: information obtains submodule block, video judges submodule block and video filtering submodule block (not illustrating in Fig. 2);
Wherein, information obtains submodule block, for the website of any bar video C that obtains in the video searched and video C time long;
Video judges submodule block, the website obtained in basis and obtain time long, judge whether described video C is video to be filtered, if NO, then trigger video filtering submodule block;
Video filtering submodule block, for filtering described video C from the video searched.
Assume, being designated " thinkling sound's Ya list " of the video to be searched comprised in the video search request that target customer's end sends, the type identification of the target customer's end comprised in the video search request that target customer's end sends is " IOS ", Video service device searches 2 video A and B according to " thinkling sound's Ya list ", from video configuration file, the filtration rule of " IOS " is obtained according to " IOS ", when video A is filtered, obtain video A website and time long, assume that the website of video A comprises: like strange skill, excellent cruel and Sohu, the time length of video A is 18 minutes, website according to the video A obtained, obtain video A time length and " IOS " filtration rule, judge whether video A is video to be filtered, if yes, then filter out video A, namely from the video obtained, delete video A, and start according to the method described above to be filtered by video B, if NO, then retain video A, and start according to the method described above to be filtered by video B.
In above-mentioned video filtering device, filtering rule can comprise: the corresponding relation of length when video website and video limit;
In this case, video judges submodule block, it is possible to comprising: video judging unit and video identifying unit (not illustrating in Fig. 2);
Wherein, video judging unit, for judging for each website obtained whether video C is doubtful video to be filtered;
Video identifying unit, for when judging to be doubtful video to be filtered for each website video C obtained, judging that video C is as video to be filtered;
Wherein, video judging unit, comprising: website judgment sub-unit, time long judgment sub-unit, the first video judge that subelement and the 2nd video judge subelement;
Website judgment sub-unit, for judging the video website whether the either site X obtained belongs to the filtration rule obtained and comprise, if belonging to, then long judgment sub-unit when triggering, if not belonging to, then triggers the first video and judges subelement;
Time long judgment sub-unit, for whether the time length judging to obtain in length when the video that the website X that the filtration rule obtained comprises is corresponding limits, if yes, then triggers the 2nd video and judges subelement, if NO, then trigger the first video and judge subelement;
First video judges subelement, for judging for website X video C as doubtful video to be filtered;
2nd video judges subelement, judges for website X video C it is not doubtful video to be filtered.
According to above-mentioned hypothesis, the website of video A comprises: liking strange skill, excellent cruel and Sohu, the time length of video A is 18 minutes, and the type of the client terminal sending video search request is IOS, if the filtration rule filtering IOS client terminal in rule is { IOS client terminal: { like strange skill: 0,15}; { Sohu: 0,25}}, to all judging of each station of video A, when judging the strange skill website of the love of video A, this website is filtering in rule, but video time length filter that rule comprises when liking that video corresponding to strange skill website limits outside length, 18>15, therefore judge for the strange skill website video A of love as doubtful video to be filtered; When judging the excellent cool website point of video A, this website is not filtering in rule, therefore judges for excellent cool website point video A as doubtful video to be filtered; When judging Sohu's website of video A, this website is filtering in rule, and video time length when filtering video corresponding to Sohu's website of comprising of rule and limit in length, 18<25, therefore judge that for Sohu website video A be not doubtful video to be filtered, now, for each website of video A, video A is not doubtful video to be filtered entirely, therefore retains video A. In addition, if judging the Sohu website video A for above-mentioned video A also as doubtful video to be filtered, then each website video A for video A is doubtful video to be filtered, so can judge that video A is as video to be filtered, filter out video A, from the video obtained, namely delete video A.
In practical application, can judge to be searched video for above-mentioned an expression is set as the website of doubtful video to be filtered is searched the mark value of video as doubtful video to be filtered for this website, such as " 1 ", an expression is set is searched, for this website, the mark value that video is not doubtful video to be filtered for above-mentioned judgement searches the website that video is not doubtful video to be filtered, such as " 0 ". Assuming, to being searched after a video B filters, its site information is for [to like strange skill, 0; Extremely excellent, 0; Sohu, 0], then represent that all website video B for video B are doubtful video to be filtered, therefore filter out video B.
Certainly, in practical application, for a certain website X1When video D is doubtful video to be filtered, it is possible to directly delete the website X of video D1, when all websites of video D are all deleted, it is possible to judge that video D is as video to be filtered, filters out video D.
In a kind of specific implementation, the website obtained can comprise main separation website and alternative website;
Above-mentioned video filtering device can also comprise: main separation website determination module, for when judging for main separation website video C as doubtful video to be filtered, it not the alternative website of doubtful video to be filtered from above-mentioned judgement video C, it is determined that alternative website is as the main separation website (not illustrating in Fig. 2) of video C.
Assume, the website of video A comprises: like strange skill, excellent cruel and Sohu, wherein, liking that strange skill is main separation website, excellent cruel and Sohu is alternative website, if regular according to the filtration obtained, after the video searched is filtered, judge then extremely and in Sohu can determine that a website is as main separation website at random excellent for liking that strange skill website video A is as doubtful video to be filtered, judges for excellent cool website point and Sohu website video A it is not all doubtful video to be filtered.
In a kind of specific implementation, when judging for main separation website video C as doubtful video to be filtered, it is also possible to according to above-mentioned judgement video C be not doubtful video to be filtered alternative website filter regular in order determine. Such as, the website of video C comprises: likes strange skill, excellent cruel and Sohu, wherein, likes that strange skill is main separation website, and excellent cruel and Sohu is alternative website, and the filtration rule obtained is { IOS client terminal: { like strange skill: 0,15}; { Google: 0,20}; { Sohu: 0,25}; Extremely excellent: 0,25}}, after filtering, like that strange skill video C is doubtful video to be filtered for main separation website, judge that for the excellent cruel and Sohu video C of alternative website be not all doubtful video to be filtered, and filter in rule Sohu's website excellent extremely before, it is possible to determine that Sohu is main separation website.
In practical application, after dividing the good video of filtration of end branch website timesharing length, also can carry out some process, as filtered out yellow content video or filter out the video etc. poor with the mark dependency of video to be searched, can ensure that client terminal can receive the video wanted like this, and ensure the safety of client-side information.
Video information sending module 204, for being sent to target customer's end by the video information of the video after filtration.
In a kind of specific implementation, video information sending module 204, it is possible to comprising: video information generates submodule block and video information sends submodule block (not illustrating in Fig. 2);
Wherein, video information generates submodule block, for according to above-mentioned judgement video C not being the website of doubtful video to be filtered, generates the video information of video C;
Video information sends submodule block, for video information is sent to target customer's end.
Assume, the website of the video A obtained comprises: like strange skill, excellent cruel and Sohu, after video filtering, judge for excellent cool website point and Sohu website video A it is not all doubtful video to be filtered, then according to the video information of excellent cruel and Sohu website generation video A, and this video information is sent to target customer's end.
Target customer's end, after receiving video information, is shown one by one in the way of the page and is received video information, carry out browsing for user and select need video, wherein, if video information comprises main separation website and alternative website, can preferentially show main separation website.
Certainly, video information can also comprise the information such as video name and/or video profile, and this is not limited by the present invention.
Apply embodiment illustrated in fig. 2, Video service device is after receiving the video search request that target customer's end sends, mark search video according to the video to be searched comprised in this video search request, and from video filtering configuration file, the filtration rule of the type for this target customer's end is obtained according to the type identification of this mark client terminal comprised in this video search request, according to the filtration rule obtained, the video searched is filtered, the video information of the video after filtration is sent to this target customer's end, when the video demand of different website is changed by dissimilar client terminal, only need to upgrade the rule of the filtration in video filtering configuration file, the video filtering program run without the need to revising in multiple Video service device, therefore, effectively improve the efficiency filtering video.
For device embodiment, owing to it is substantially similar to embodiment of the method, so what describe is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, herein, the such as relational terms of first and second grades and so on is only used for separating an entity or operation with another entity or operational zone, and not necessarily requires or imply to there is any this kind of actual relation or sequentially between these entities or operation. And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, so that comprise the process of a series of key element, method, article or equipment not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise the key element intrinsic for this kind of process, method, article or equipment. When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in aforesaid method enforcement mode can be completed by the hardware that program carrys out instruction relevant, described program can be stored in computer read/write memory medium, here the alleged storage media obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only the better embodiment of the present invention, it is not intended to limit protection scope of the present invention. All do within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (12)

1. a video filtering method, it is characterised in that, described method comprises step:
The video search request that receiving target client terminal sends, wherein, described video search request comprises: the mark of video to be searched and the type identification of described target customer's end;
Mark search video according to the video described to be searched comprised in described video search request, and the type identification according to the described target customer's end comprised in described video search request, the filtration rule of the type for described target customer's end is obtained from the video filtering configuration file generated in advance, wherein, described video filtering configuration file comprises: the corresponding relation between the type of client terminal and filtration rule;
According to the filtration rule obtained, the video searched is filtered;
The video information of the video after filtration is sent to described target customer's end.
2. method according to claim 1, it is characterised in that, the described filtration rule according to obtaining, the video searched is filtered, comprising:
For any bar video C in the video searched, filter according to under type:
Obtain the website of described video C and described video C time long;
According to the website obtained and obtain time long, judge whether described video C is video to be filtered;
If yes, from the video searched, described video C is filtered.
3. method according to claim 2, it is characterised in that, described filtration rule comprises: the corresponding relation of length when video website and video limit;
The described website according to obtaining and obtain time long, judge whether described video C is video to be filtered, comprising:
Judge whether described video C is doubtful video to be filtered for each website obtained;
When judging to be doubtful video to be filtered for video C described in each website obtained, judge that described video C is as video to be filtered;
Wherein, judge whether described video C is doubtful video to be filtered according to following step for the either site X obtained:
Judge the video website whether described website X belongs to the filtration rule obtained and comprise;
If belonging to, then judge to obtain time length whether when the video that the described website X that the filtration rule obtained comprises is corresponding limits in length;
If yes, then judge that for video C described in described website X be not doubtful video to be filtered, if NO, then judge for video C described in described website X as doubtful video to be filtered;
If not belonging to, then judge for video C described in described website X as doubtful video to be filtered.
4. method according to claim 3, it is characterised in that, the website obtained comprises main separation website and alternative website;
Described method also comprises:
When judging for video C described in described main separation website as doubtful video to be filtered, it not the alternative website of doubtful video to be filtered from above-mentioned judgement described video C, it is determined that alternative website is as the main separation website of described video C.
5. method according to claim 3, it is characterised in that, the described video information by the video after filtration is sent to described target customer's end, comprising:
According to the website that above-mentioned judgement described video C is not doubtful video to be filtered, generate the video information of described video C;
Described video information is sent to described target customer's end.
6. method according to claim 1, it is characterised in that, described method also comprises:
According to default file update condition, upgrade described video filtering configuration file.
7. a video filtering device, it is characterised in that, described device comprises: searching request receiver module, information acquisition module, video filtering module and video information sending module;
Wherein, described searching request receiver module, for the video search request that receiving target client terminal sends, wherein, described video search request comprises: the mark of video to be searched and the type identification of described target customer's end;
Described information acquisition module, for the mark search video according to the video described to be searched comprised in described video search request, and the type identification according to the described target customer's end comprised in described video search request, the filtration rule of the type for described target customer's end is obtained from the video filtering configuration file generated in advance, wherein, described video filtering configuration file comprises: the corresponding relation between the type of client terminal and filtration rule;
Described video filtering module, for according to the filtration rule obtained, filtering the video searched;
Described video information sending module, for being sent to described target customer's end by the video information of the video after filtration.
8. device according to claim 7, it is characterised in that, described video filtering module, comprising: information obtains submodule block, video judges submodule block and video filtering submodule block;
Wherein, described information obtains submodule block, for the website of any bar video C that obtains in the video searched and described video C time long;
Described video judges submodule block, for according to the website obtained and obtain time long, judge whether described video C is video to be filtered, if NO, then trigger described video filtering submodule block;
Described video filtering submodule block, for filtering described video C from the video searched.
9. device according to claim 8, it is characterised in that, described filtration rule comprises: the corresponding relation of length when video website and video limit;
Described video judges submodule block, comprising: video judging unit and video identifying unit;
Wherein, described video judging unit, for judging for each website obtained whether described video C is doubtful video to be filtered;
Described video identifying unit, for when judging to be doubtful video to be filtered for video C described in each website obtained, judging that described video C is as video to be filtered;
Wherein, described video judging unit, comprising: website judgment sub-unit, time long judgment sub-unit, the first video judge that subelement and the 2nd video judge subelement;
Described website judgment sub-unit, for judging the video website whether the either site X obtained belongs to the filtration rule obtained and comprise, if belonging to, then long judgment sub-unit when triggering described, if not belonging to, then triggers described first video and judges subelement;
Long judgment sub-unit time described, for judging whether the time length obtained in length when the video that the described website X that the filtration rule obtained comprises is corresponding limits, if yes, then triggers described 2nd video and judge subelement, if NO, then trigger described first video and judge subelement;
Described first video judges subelement, for judging for video C described in described website X as doubtful video to be filtered;
Described 2nd video judges subelement, judges for video C described in described website X it is not doubtful video to be filtered.
10. device according to claim 9, it is characterised in that, the website obtained comprises main separation website and alternative website;
Described device also comprises: main separation website determination module, for when judging for video C described in described main separation website as doubtful video to be filtered, it not the alternative website of doubtful video to be filtered from above-mentioned judgement described video C, it is determined that alternative website is as the main separation website of described video C.
11. devices according to claim 9, it is characterised in that, described video information sending module, comprising: video information generates submodule block and video information sends submodule block;
Wherein, described video information generates submodule block, for the website not being doubtful video to be filtered according to above-mentioned judgement described video C, generates the video information of described video C;
Described video information sends submodule block, for described video information is sent to described target customer's end.
12. devices according to claim 7, it is characterised in that, described device also comprises: file update module, for according to default file update condition, upgrading described video filtering configuration file.
CN201511021080.XA 2015-12-30 2015-12-30 A kind of video filtering method and device Active CN105635821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511021080.XA CN105635821B (en) 2015-12-30 2015-12-30 A kind of video filtering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511021080.XA CN105635821B (en) 2015-12-30 2015-12-30 A kind of video filtering method and device

Publications (2)

Publication Number Publication Date
CN105635821A true CN105635821A (en) 2016-06-01
CN105635821B CN105635821B (en) 2018-12-14

Family

ID=56050241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511021080.XA Active CN105635821B (en) 2015-12-30 2015-12-30 A kind of video filtering method and device

Country Status (1)

Country Link
CN (1) CN105635821B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657359A (en) * 2016-12-29 2017-05-10 北京奇艺世纪科技有限公司 Video site priority configuration method and apparatus
CN108920995A (en) * 2018-04-08 2018-11-30 华中科技大学 Intelligent security guard video monitoring method and its system and monitor terminal
CN109063199A (en) * 2018-09-11 2018-12-21 广州神马移动信息科技有限公司 Resource filtering method and device thereof, electronic equipment, computer-readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572785A (en) * 2009-06-09 2009-11-04 北京邮电大学 Service guide generating system and method, guide filter device and terminal
US20130212618A1 (en) * 2010-11-10 2013-08-15 Mark Alan Schultz Individualized program guide based on system and user constraints
CN103841464A (en) * 2014-03-21 2014-06-04 北京金山网络科技有限公司 Video information pushing method and device
US20150312296A1 (en) * 2014-04-24 2015-10-29 Hisense Co., Ltd Method and device for pushing multimedia resource and display terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572785A (en) * 2009-06-09 2009-11-04 北京邮电大学 Service guide generating system and method, guide filter device and terminal
US20130212618A1 (en) * 2010-11-10 2013-08-15 Mark Alan Schultz Individualized program guide based on system and user constraints
CN103841464A (en) * 2014-03-21 2014-06-04 北京金山网络科技有限公司 Video information pushing method and device
US20150312296A1 (en) * 2014-04-24 2015-10-29 Hisense Co., Ltd Method and device for pushing multimedia resource and display terminal
CN105100832A (en) * 2014-04-24 2015-11-25 海信集团有限公司 Multimedia resource pushing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657359A (en) * 2016-12-29 2017-05-10 北京奇艺世纪科技有限公司 Video site priority configuration method and apparatus
CN106657359B (en) * 2016-12-29 2020-12-25 北京奇艺世纪科技有限公司 Video site priority configuration method and device
CN108920995A (en) * 2018-04-08 2018-11-30 华中科技大学 Intelligent security guard video monitoring method and its system and monitor terminal
CN109063199A (en) * 2018-09-11 2018-12-21 广州神马移动信息科技有限公司 Resource filtering method and device thereof, electronic equipment, computer-readable medium
CN109063199B (en) * 2018-09-11 2022-10-25 优视科技有限公司 Resource filtering method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN105635821B (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN102333122B (en) Downloaded resource provision method, device and system
US8250532B2 (en) Efficient development of configurable software systems in a large software development community
CN101957857A (en) Automatic information push method and server
CA2619230A1 (en) Annotating documents in a collaborative application with data in disparate information systems
US20130085987A1 (en) Downloading method and device
CN104021176A (en) Advertisement matching method and system with high expandability
CN105677815B (en) A kind of Web page bookmark adding method and terminal
CN103605776A (en) Method and device for processing data of information database
CN105760380A (en) Database query method, device and system
CN105138579A (en) Method and device for obtaining keywords and recommending information based on keywords
CN103136342A (en) Searching method, system and searching server of application programs (APP)
CN104598620A (en) Application program searching method and device
CN111314063A (en) Big data information management method, system and device based on Internet of things
CN104699845A (en) Question-style search word based providing method and device of search results
CN105635821A (en) Video filtering method and apparatus
CN103412900A (en) File downloading treatment method and terminal
CN106227541A (en) A kind of program updates download process method and mobile terminal
CN104484413A (en) Method and device for obtaining searching results
US10929447B2 (en) Systems and methods for customized data parsing and paraphrasing
CN115221119A (en) File searching method and device, storage medium and electronic equipment
CN105653674A (en) File management method and system of intelligent terminal
US9251273B2 (en) Delivering a filtered search result
CN105468637A (en) Database updating method and apparatus
CN105574203A (en) Information storage method and device
CN104182493A (en) Data synchronization method and device as well as terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant