CN105635821B - A kind of video filtering method and device - Google Patents

A kind of video filtering method and device Download PDF

Info

Publication number
CN105635821B
CN105635821B CN201511021080.XA CN201511021080A CN105635821B CN 105635821 B CN105635821 B CN 105635821B CN 201511021080 A CN201511021080 A CN 201511021080A CN 105635821 B CN105635821 B CN 105635821B
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.)
Active
Application number
CN201511021080.XA
Other languages
Chinese (zh)
Other versions
CN105635821A (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 Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of video filtering method and devices, this method comprises: receiving the video search request that destination client is sent, according to the identification search video for the video to be searched for including in video search request, and according to the type identification for the destination client for including in video search request, the filtering rule of the type for the destination client is obtained from pre-generated video filtering configuration file, according to filtering rule obtained, the video searched is filtered, the video information of filtered video is sent to the destination client.Video is filtered using technical solution provided in an embodiment of the present invention, can be improved the efficiency of filtering video.

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 technique
With the development of internet technology, the quantity of internet video is more and more, and user is when obtaining video, server The unwanted video of some users itself or unsafe video may be searched, this just needs to be filtered video.
Currently, a video server can only filter a kind of corresponding video of client type.Filtering different websites When the video of (such as: iqiyi.com, youku.com, potato, Sohu, Tencent), for various types of clients video by different Video server is individually filtered, for example, a video server only filters video, the needle for Windows operating system Video to IOS operating system or the video etc. for Android operation system.Each video server runs its corresponding video Filter is needed when the video filtering rule for various client types changes by modifying multiple video clothes The mode of the video filtering program run in business device realizes that therefore, it is necessary to developers to safeguard multiple video filtering programs.
Each client type client in the biggish situation of change frequency of the video requirement of different websites, need The code of the video filtering program of the operation in each video server is modified, frequently to meet each client to video The demand of filtering, the efficiency for allowing for video filtering in this way are very low.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of video filtering method and device, to improve the effect of filtering video Rate.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of video filtering method, the method includes the steps:
Receive the video search request that destination client is sent, wherein the video search request includes: video to be searched Mark and the destination client type identification;
According to the identification search video for the video to be searched for including in video search request, and according to the view The type identification for the destination client for including in frequency searching request is obtained from pre-generated video filtering configuration file For the filtering rule of the type of the destination client, wherein include in the video filtering configuration file: the class of client Corresponding relationship between type and filtering rule;
According to filtering rule obtained, the video searched is filtered;
The video information of filtered video is sent to the destination client.
It is described that the video searched is filtered according to filtering rule obtained in a kind of specific implementation, Include:
For any bar video C in the video that is searched, it is filtered according to following manner:
Obtain the website of the video C and the duration of the video C;
According to website obtained and duration obtained, judge whether the video C is video to be filtered;
If it is, filtering the video C from the video searched.
In a kind of specific implementation, the filtering rule includes: the corresponding relationship of video website and video limitation duration;
It is described to judge whether the video C is video to be filtered according to website obtained and duration obtained, packet It includes:
Judge whether the video C is doubtful video to be filtered for each website obtained;
In the case where judging to be doubtful video to be filtered for video C described in each website obtained, determine The video C is video to be filtered;
Wherein, judge whether the video C is doubtful view to be filtered for either site X obtained according to following steps Frequently:
Judge whether the website X belongs to the video website for including in filtering rule obtained;
If belonging to, judge that the website X whether duration obtained includes in filtering rule obtained is corresponded to Video limitation duration in;
If it has, then determining that for video C described in the website X be not doubtful video to be filtered, if it has not, then determining needle It is doubtful video to be filtered to video C described in the website X;
If being not belonging to, determine for video C described in the website X to be doubtful video to be filtered.
In a kind of specific implementation, website obtained includes main selective calling point and alternative website;
The method also includes:
In the case where determining for video C described in the main selective calling point is doubtful video to be filtered, from above-mentioned judgement institute Stating video C not is to determine main selective calling of the alternative website as the video C in the alternative website of doubtful video to be filtered Point.
In a kind of specific implementation, the video information by filtered video is sent to the destination client, Include:
It is not the website of doubtful video to be filtered according to the above-mentioned judgement video C, generates the video letter of the video C Breath;
The video information is sent to the destination client.
In a kind of specific implementation, the method also includes:
According to preset file update condition, the video filtering configuration file is updated.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of video filtering devices, which is characterized in that the dress Set includes: searching request receiving module, information acquisition module, video filtering module and video information sending module;
Wherein, described search request receiving module, for receiving the video search request of destination client transmission, wherein The video search request includes: the mark of video to be searched and the type identification of the destination client;
The information acquisition module, for the mark according to the video to be searched for including in video search request Video is searched for, and according to the type identification for the destination client for including in video search request, from pre-generated The filtering rule of the type for the destination client is obtained in video filtering configuration file, wherein the video filtering is matched It sets in file and includes: the corresponding relationship between the type and filtering rule of client;
The video filtering module, for being filtered to the video searched according to filtering rule obtained;
The video information sending module, for the video information of filtered video to be sent to the target customer End.
In a kind of specific implementation, the video filtering module, comprising: information acquisition submodule, video judge submodule Block and video filtering submodule;
Wherein, the information acquisition submodule, for obtain any bar video C in searched video website and The duration of the video C;
The video judging submodule, for judging that the video C is according to website obtained and duration obtained No is video to be filtered, if it has not, then triggering the video filtering submodule;
The video filtering submodule, for filtering the video C from the video searched.
In a kind of specific implementation, the filtering rule includes: the corresponding relationship of video website and video limitation duration;
The video judging submodule, comprising: video judging unit and video judging unit;
Wherein, the video judging unit, for judging whether the video C is doubtful for each website obtained Video to be filtered;
The video judging unit, for judge for video C described in each website obtained be it is doubtful to In the case where filtering video, determine that the video C is video to be filtered;
Wherein, the video judging unit, comprising: website judgment sub-unit, duration judgment sub-unit, the first video determine Subelement and the second video determine subelement;
The website judgment sub-unit, for judging whether either site X obtained belongs to filtering rule obtained In include video website trigger the duration judgment sub-unit if belonging to, if being not belonging to, trigger first video Determine subelement;
The duration judgment sub-unit, for judge duration obtained whether in filtering rule obtained include In the corresponding video limitation duration of the website X, if it has, then triggering second video determines subelement, if it has not, then touching It sends out the first video described and determines subelement;
First video determines subelement, for determining for video C described in the website X to be doubtful view to be filtered Frequently;
Second video determines subelement, determines that for video C described in the website X be not doubtful video to be filtered.
In a kind of specific implementation, website obtained includes main selective calling point and alternative website;
Described device further include: main selective calling point determining module, for determining that being directed to video C described in the main selective calling point is It from the above-mentioned judgement video C is determined in the alternative website of doubtful video to be filtered in the case where doubtful video to be filtered Main selective calling point of one alternative website as the video C.
In a kind of specific implementation, the video information sending module, comprising: video information generates submodule and video Information sending submodule;
Wherein, the video information generates submodule, for not being doubtful view to be filtered according to the above-mentioned judgement video C The website of frequency generates the video information of the video C;
The video information sending submodule, for the video information to be sent to the destination client.
In a kind of specific implementation, described device further include: file update module, for being updated according to preset file Condition updates the video filtering configuration file.
Therefore in the embodiment of the present invention, video server is asked in the video search for receiving destination client transmission After asking, requested according to the identification search video for the video to be searched for including in video search request, and according to the video search In include the type identification of the mark client type for the destination client is obtained from video filtering configuration file Filtering rule is filtered the video searched according to filtering rule obtained, by the video information of filtered video It is sent to the destination client, when video requirement of the different types of client to different websites changes, only needs to update Filtering rule in video filtering configuration file, it is not necessary to modify the video filtering program run in multiple video servers, Therefore, the efficiency of filtering video is effectively improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of video filtering method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of video filtering device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of video filtering method and devices, this method comprises: receiving destination client hair The video search request sent, according to the identification search video for the video to be searched for including in video search request, and According to the type identification for the destination client for including in video search request, configured from pre-generated video filtering The filtering rule that the type for the destination client is obtained in file, according to filtering rule obtained, to what is searched Video is filtered, and the video information of filtered video is sent to the destination client.
Below by specific embodiment, the present invention is described in detail.
With reference to Fig. 1, Fig. 1 is a kind of flow diagram of video filtering method provided in an embodiment of the present invention, and this method can To be applied to video server, may include steps of:
S101: the video search request that destination client is sent is received;
Wherein, video search request may include: the mark of video to be searched and the type identification of destination client.This In, the mark of video to be searched can be the title (such as: " thinkling sound Ya list ", " color is romantic ") of video to be searched or view to be searched The keyword (such as: " celestial sword " " running ") of frequency, the type identification of destination client can be IOS client, Android client Mark or pc client etc..Certainly, it can also include the mark of destination client in video search request, can make to regard in this way Frequency server according to video search request in include destination client mark the video information of filtered video is accurate It is sent to destination client.Here, destination client mark can be the destination client physical address, such as 1a:2B: 3c:00:5d, the mark of destination client or the user name of the destination client, such as mimi.
Certainly, video search request can also include other information, and the invention does not limit this.
S102: according to the identification search video for the video to be searched for including in video search request, and according to The type identification for the destination client for including in the video search request, from pre-generated video filtering configuration file The middle filtering rule for obtaining the type for the destination client;
Wherein, it may include in video filtering configuration file: the corresponding relationship between the type and filtering rule of client.
In a kind of specific implementation, above-mentioned video filtering configuration file can be by management server according to each target visitor Demand of the family end to video generates, can also be by video server generating to video requirement according to each destination client, this To this without limiting, above-mentioned management server and video server can be understood as the service being divided by function for invention Device, in practical application, above-mentioned management server and video server can correspond to a physical machine, may correspond to Duo Tai Physical machine.
Specifically, the method for generating video filtering configuration file may include steps of:
A, the configuration-direct for being directed to filtering rule is received;
Wherein, configuration-direct may include: the corresponding relationship of the type of client to be modified and filtering rule to be modified.
In a specific embodiment of the present invention, the management that one is directed to video filtering configuration file can be built and put down Platform, when destination client, the demand to video changes, user can input corresponding configuration-direct in management platform.When So, management platform can also provide filtering rule modification interface, may include in the interface each client type and Each filtering rule, user the parameter of meet demand can be selected in the interface with generate be directed to filtering rule configuration refer to It enables, this mode for generating configuration-direct is more efficient and convenient.
It should be noted that management platform can be built in individual management server, in this way convenient for management video mistake Configuration file is filtered, does not influence the efficiency of video filtering;In addition, management platform can also be built on video server, in this way may be used To reduce management cost.
B, according to the type for the client to be modified for including in the configuration-direct and the filtering rule to be modified Corresponding relationship modify stored video filtering configuration file, update the video filtering configuration file;
C, the store-updated video filtering configuration file.
In a kind of specific implementation, video filtering configuration file be can store in memory, so that video server can Quickly to obtain video filtering configuration file, in addition, video filtering configuration file also can store in designated position, such as Couchbase needs that timed task is arranged at this time, periodically updates newest video filtering configuration file into memory.
In a kind of specific implementation, above-mentioned video filtering method can also include:
According to preset file update condition, the video filtering configuration file is updated.
Specifically, periodically updating newest video filtering configuration file into memory can be timing from designated position Obtain video filtering configuration file, or timing sends video filtering configuration file into memory from designated position.Example Such as, when management platform is built in individual management server, video filtering configuration file is configured by management server and is generated, Timed task can be set on the management server at this time, video filtering configuration file is periodically sent to video server, by Video server stores video filtering configuration file into the memory of video server itself;It at this time can also be in Video service Timed task is set on device, and timing sends file acquisition instruction to management server, obtains video filtering configuration file.
It should be noted that filtering rule may include the corresponding relationship of video website and video limitation duration, regard at this time Frequency filtering profiles are point long configuration file of end branch website timesharing, such as: { { pc page end: { iqiyi.com: 0, max };It is { excellent It is cruel: 0,40 };{ Sohu: 20,40 };... { IOS client: { iqiyi.com: 0, max };{ youku.com: 0, max };Sohu: 0, 40};……}……}.
When updating video filtering configuration file, it is assumed that the end IOS the video of youku.com's website is only gone out 20 minutes within number According to the parameter of youku.com's website at the end IOS is then revised as { IOS client: { youku.com: 0,20 };……};Android client is not defeated The video data of Sohu's website out then deletes the parameter of Sohu's website of Android client from video filtering configuration file, Or the parameter of Sohu's website of Android client is revised as { Android client: { Sohu: 0,0 };……}……}.
S103: according to filtering rule obtained, the video searched is filtered;
It is above-mentioned that the video searched is filtered according to filtering rule obtained in a kind of specific implementation, May include:
For any bar video C in the video that is searched, it is filtered according to following manner:
Obtain the website of video C and the duration of video C;
According to website obtained and duration obtained, judge whether video C is video to be filtered;
If it is, filtering video C from the video searched;
If it has not, then retaining video C.
Here, retain video C, be retain video C relevant information, relevant information may include: video data content, Video name and video profile etc..
It is assumed that the video to be searched for including in the video search request that destination client is sent is identified as " thinkling sound Ya list ", The type identification for the destination client for including in the video search request that destination client is sent is " IOS ", video server root 2 videos A and B are searched according to " thinkling sound Ya list ", the filtering rule of " IOS " are obtained from video profile according to " IOS ", to view When frequency A is filtered, the website and duration of video A are obtained, it is assumed that the website of video A includes: iqiyi.com, youku.com and Sohu, depending on Frequency A when it is 18 minutes a length of, according to the filtering rule of the website of the video A of acquisition, the duration of the video A of acquisition and " IOS ", sentence Whether disconnected video A is video to be filtered, if it has, then filter out video A, i.e., the deletion video A from the video obtained, and according to The above method starts to be filtered video B, if it has not, then retaining video A, and starts to carry out video B according to the method described above Filtering.
In a kind of specific implementation, filtering rule may include: the corresponding relationship of video website and video limitation duration.
In this case, above-mentioned according to website obtained and duration obtained, judge whether the video C is to mistake Video is filtered, may include:
Judge whether video C is doubtful video to be filtered for each website obtained;
In the case where judging to be doubtful video to be filtered for each website video C obtained, video C is determined For video to be filtered;
Wherein it is possible to judge whether video C is doubtful view to be filtered for either site X obtained according to following steps Frequently:
Judge whether website X belongs to the video website for including in filtering rule obtained;
If belonging to, the corresponding view of website X whether duration obtained includes in filtering rule obtained is judged In frequency limitation duration;
If it has, then determining that for website X video C be not doubtful video to be filtered, if it has not, then determining to be directed to website X Video C is doubtful video to be filtered;
If being not belonging to, determine for website X video C to be doubtful video to be filtered.
According to above-mentioned it is assumed that the website of video A includes: iqiyi.com, youku.com and Sohu, when 18 minutes a length of, the hair of video A The type for the client for sending video search to request is IOS, if the filtering rule of IOS client is { IOS client in filtering rule End: { iqiyi.com: 0,15 };{ Sohu: 0,25 } }, to judging for each station of video A, judge the iqiyi.com station of video A When point, the website is in filtering rule, but the corresponding video limit of iqiyi.com website that the duration of video includes in filtering rule Outside duration processed, 18 > 15, therefore, it is determined that being doubtful video to be filtered for iqiyi.com website video A;Judge the youku.com station of video A When point, the website is not in filtering rule, therefore, it is determined that being doubtful video to be filtered for youku.com's website video A;Judge video A Sohu's website when, the website is in filtering rule, and Sohu's website that the duration of video includes in filtering rule is corresponding Video limitation duration in, 18 < 25, therefore, it is determined that for Sohu's website video A be not doubtful video to be filtered, at this point, being directed to Each website of video A, video A are simultaneously not all doubtful video to be filtered, therefore retain video A.In addition, if it is determined that for above-mentioned The Sohu website video A of video A be also doubtful video to be filtered, then for each website video A of video A be it is doubtful to Video is filtered, then can be determined that video A is video to be filtered, video A is filtered out, i.e., deletes video A from the video obtained.
In practical application, the website that video is doubtful video to be filtered can be searched by above-mentioned judgement, one table is set Show that the ident value for the searched video of the website for doubtful video to be filtered such as " 1 " searches video by above-mentioned judgement Be not doubtful video to be filtered website be arranged one indicate for the searched video of the website be not doubtful video to be filtered Ident value, such as " 0 ".It is assumed that searching after a video B is filtered, site information be [iqiyi.com, 0;Youku.com, 0;Sohu, 0], then it represents 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, view can be directly deleted The website X of frequency D1, when all websites of video D are deleted, it is possible to determine that video D is video to be filtered, filters out video D。
In a kind of specific implementation, website obtained may include main selective calling point and alternative website;
In this case, above-mentioned video filtering method can also include:
It is not doubtful from above-mentioned judgement video C in the case where determining for main selective calling point video C is doubtful video to be filtered In alternative website like video to be filtered, main selective calling point of the alternative website as video C is determined.
It is assumed that the website of video A includes: iqiyi.com, youku.com and Sohu, wherein iqiyi.com is main selective calling point, youku.com and is searched Fox is alternative website, if after being filtered the video searched, determining to be directed to iqiyi.com according to filtering rule obtained Website video A is doubtful video to be filtered, determines that for youku.com's website and Sohu website video A be not doubtful view to be filtered Frequently, then a website can be determined as main selective calling point at random in youku.com and Sohu.
In a kind of specific implementation, in the case where determining for main selective calling point video C is doubtful video to be filtered, also It can be determined according to above-mentioned judgement video C is not sequence of the alternative website of doubtful video to be filtered in filtering rule.Example Such as, the website of video C includes: iqiyi.com, youku.com and Sohu, wherein iqiyi.com is main selective calling point, and youku.com and Sohu are alternative station Point, filtering rule obtained are { IOS client: { iqiyi.com: 0,15 };{ Google: 0,20 };{ Sohu: 0,25 };Youku.com: 0,25 } }, after filtering, it is doubtful video to be filtered for main selective calling point iqiyi.com video C, determines to be directed to alternative website youku.com It is not doubtful video to be filtered with Sohu video C, and Sohu's website is before youku.com in filtering rule, it is possible to it determines Sohu is main selective calling point.
In practical application, after point long good video of filtering of end branch website timesharing, it also will do it some processing, such as filter out Huang Color audio content filters out the video etc. poor with the mark correlation of video to be searched, can guarantee that client can in this way Desired video is received, and guarantees the safety of client-side information.
S104: the video information of filtered video is sent to the destination client.
Specifically, the above-mentioned video information by filtered video is sent to destination client, may include:
It is not the website of doubtful video to be filtered according to above-mentioned judgement video C, generates the video information of video C;
Above-mentioned video information is sent to destination client.
It is assumed that the website of the video A obtained includes: iqiyi.com, youku.com and Sohu, after video filtering, determine for excellent Cool website point and Sohu website video A are not doubtful video to be filtered, then the video of video A is generated according to youku.com and Sohu's website Information, and the video information is sent to destination client.
Destination client after receiving video information, in a manner of the page one by one show receive video information, for Family is browsed and selects the video needed, wherein if including main selective calling point and alternative website in video information, can be preferential Show main selective calling point.
Certainly, video information can also include the information such as video name and/or video profile, and the present invention is to this without limit It is fixed.
Using embodiment illustrated in fig. 1, video server is after receiving the video search request of destination client transmission, root Include according to the identification search video for the video to be searched for including in video search request, and according in video search request The type identification of the mark client obtains the filtering rule of the type for the destination client from video filtering configuration file, According to filtering rule obtained, the video searched is filtered, the video information of filtered video is sent to this Destination client need to only update video filtering when video requirement of the different types of client to different websites changes Filtering rule in configuration file, it is not necessary to modify the video filtering programs run in multiple video servers, therefore, effectively Ground improves the efficiency of filtering video.
With reference to Fig. 2, Fig. 2 is a kind of structural schematic diagram of video filtering device provided in an embodiment of the present invention, which can It may include: searching request receiving module 201, information acquisition module 202, video filtering module to be applied to video server 203 and video information sending module 204;
Wherein, searching request receiving module 201, for receiving the video search request of destination client transmission, wherein view Frequency searching request may include: the mark of video to be searched and the type identification of destination client;
Specifically, the mark of video to be searched can for video to be searched title (such as: " thinkling sound Ya list ", " color romantic " Deng) or video to be searched keyword (such as: " celestial sword " " running "), the type identification of destination client can be IOS client End, Android client identification or pc client etc..It certainly, can also include the mark of destination client in video search request, Can make in this way video server according to video search request in include destination client mark by filtered video Video information be accurately sent to destination client.Here, the mark of destination client can be the physics of the destination client Address, such as 1a:2B:3c:00:5d, the mark of destination client or the user name of the destination client, such as mimi.
In addition, video search request can also include other information, the invention does not limit this.
Information acquisition module 202, the identification search video of the video to be searched for including in being requested according to video search, And according to video search request in include destination client type identification, from pre-generated video filtering configuration file Obtain the filtering rule of the type for destination client, wherein may include in video filtering configuration file: the class of client Corresponding relationship between type and filtering rule;
In a kind of specific implementation, above-mentioned video filtering configuration file can be by management server according to each target visitor Demand of the family end to video generates, can also be by video server generating to video requirement according to each destination client, this To this without limiting, above-mentioned management server and video server can be understood as the service being divided by function for invention Device, in practical application, above-mentioned management server and video server can correspond to a physical machine, may correspond to Duo Tai Physical machine.
Specifically, the device for generating video filtering configuration file may include: that configuration-direct receiving module, configuration file connect Receive module and configuration file memory module (being not shown in Fig. 2);
Wherein, configuration-direct receiving module, for receiving the configuration-direct for being directed to filtering rule;
Here, configuration-direct may include: the corresponding relationship of the type of client to be modified and filtering rule to be modified.
In a specific embodiment of the present invention, the management that one is directed to video filtering configuration file can be built and put down Platform, when destination client, the demand to video changes, user can input corresponding configuration-direct in management platform.When So, management platform can also provide filtering rule modification interface, may include in the interface each client type and Each filtering rule, user the parameter of meet demand can be selected in the interface with generate be directed to filtering rule configuration refer to It enables, this mode for generating configuration-direct is more efficient and convenient.
It should be noted that management platform can be built in individual management server, in this way convenient for management video mistake Configuration file is filtered, does not influence the efficiency of video filtering;In addition, management platform can also be built on video server, in this way may be used To reduce management cost.
Configuration file receiving module, for according to the type of the client to be modified for including in the configuration-direct with The corresponding relationship of the filtering rule to be modified modifies stored video filtering configuration file, updates the video filtering configuration File;
Configuration file memory module is used for the store-updated video filtering configuration file.
In a kind of specific implementation, video filtering configuration file be can store in memory, so that video server can Quickly to obtain video filtering configuration file, in addition, video filtering configuration file also can store in designated position, such as Couchbase needs that timed task is arranged at this time, periodically updates newest video filtering configuration file into memory.
In a kind of specific implementation, above-mentioned video filtering device can also include: file update module, for according to pre- If file update condition, update video filtering configuration file (being not shown in Fig. 2).
Specifically, periodically updating newest video filtering configuration file into memory can be timing from designated position Obtain video filtering configuration file, or timing sends video filtering configuration file into memory from designated position.Example Such as, when management platform is built in individual management server, video filtering configuration file is configured by management server and is generated, Timed task can be set on the management server at this time, video filtering configuration file is periodically sent to video server, by Video server stores video filtering configuration file into the memory of video server itself;It at this time can also be in Video service Timed task is set on device, and timing sends file acquisition instruction to management server, obtains video filtering configuration file.
It should be noted that filtering rule may include the corresponding relationship of video website and video limitation duration, regard at this time Frequency filtering profiles are point long configuration file of end branch website timesharing, such as: { { pc page end: { iqiyi.com: 0, max };It is { excellent It is cruel: 0,40 };{ Sohu: 20,40 };... { IOS client: { iqiyi.com: 0, max };{ youku.com: 0, max };Sohu: 0, 40};……}……}.
When updating video filtering configuration file, it is assumed that the end IOS the video of youku.com's website is only gone out 20 minutes within number According to the parameter of youku.com's website at the end IOS is then revised as { IOS client: { youku.com: 0,20 };……};Android client is not defeated The video data of Sohu's website out then deletes the parameter of Sohu's website of Android client from video filtering configuration file, Or the parameter of Sohu's website of Android client is revised as { Android client: { Sohu: 0,0 };……}……}.
Video filtering module 203, for being filtered to the video searched according to filtering rule obtained;
In above-mentioned video filtering device, video filtering module 203 may include: information acquisition submodule, video judgement Module and video filtering submodule (being not shown in Fig. 2);
Wherein, information acquisition submodule, for obtaining the website and video of any bar video C in searched video The duration of C;
Video judging submodule, for whether judging the video C according to upper website obtained and duration obtained For video to be filtered, if it has not, then triggering video filtering submodule;
Video filtering submodule, for filtering the video C from the video searched.
It is assumed that the video to be searched for including in the video search request that destination client is sent is identified as " thinkling sound Ya list ", The type identification for the destination client for including in the video search request that destination client is sent is " IOS ", video server root 2 videos A and B are searched according to " thinkling sound Ya list ", the filtering rule of " IOS " are obtained from video profile according to " IOS ", to view When frequency A is filtered, the website and duration of video A are obtained, it is assumed that the website of video A includes: iqiyi.com, youku.com and Sohu, depending on Frequency A when it is 18 minutes a length of, according to the filtering rule of the website of the video A of acquisition, the duration of the video A of acquisition and " IOS ", sentence Whether disconnected video A is video to be filtered, if it has, then filter out video A, i.e., the deletion video A from the video obtained, and according to The above method starts to be filtered video B, if it has not, then retaining video A, and starts to carry out video B according to the method described above Filtering.
In above-mentioned video filtering device, filtering rule may include: the corresponding relationship of video website and video limitation duration;
In this case, video judging submodule, may include: video judging unit and video judging unit (in Fig. 2 not It shows);
Wherein, video judging unit, for judging whether video C is doubtful view to be filtered for each website obtained Frequently;
Video judging unit, for being doubtful video to be filtered judging for each website video C obtained In the case where, judgement video C is video to be filtered;
Wherein, video judging unit, comprising: website judgment sub-unit, duration judgment sub-unit, the first video determine that son is single Member and the second video determine subelement;
Website judgment sub-unit is wrapped for judging whether either site X obtained belongs in filtering rule obtained The video website included triggers duration judgment sub-unit if belonging to, if being not belonging to, triggers the first video and determines subelement;
Duration judgment sub-unit, the website for whether including in filtering rule obtained for judging duration obtained In the corresponding video limitation duration of X, if it has, then the second video of triggering determines subelement, sentence if it has not, then triggering the first video Stator unit;
First video determines subelement, for determining for website X video C to be doubtful video to be filtered;
Second video determines subelement, determines that for website X video C be not doubtful video to be filtered.
According to above-mentioned it is assumed that the website of video A includes: iqiyi.com, youku.com and Sohu, when 18 minutes a length of, the hair of video A The type for the client for sending video search to request is IOS, if the filtering rule of IOS client is { IOS client in filtering rule End: { iqiyi.com: 0,15 };{ Sohu: 0,25 } }, to judging for each station of video A, judge the iqiyi.com station of video A When point, the website is in filtering rule, but the corresponding video limit of iqiyi.com website that the duration of video includes in filtering rule Outside duration processed, 18 > 15, therefore, it is determined that being doubtful video to be filtered for iqiyi.com website video A;Judge the youku.com station of video A When point, the website is not in filtering rule, therefore, it is determined that being doubtful video to be filtered for youku.com's website video A;Judge video A Sohu's website when, the website is in filtering rule, and Sohu's website that the duration of video includes in filtering rule is corresponding Video limitation duration in, 18 < 25, therefore, it is determined that for Sohu's website video A be not doubtful video to be filtered, at this point, being directed to Each website of video A, video A are simultaneously not all doubtful video to be filtered, therefore retain video A.In addition, if it is determined that for above-mentioned The Sohu website video A of video A be also doubtful video to be filtered, then for each website video A of video A be it is doubtful to Video is filtered, then can be determined that video A is video to be filtered, video A is filtered out, i.e., deletes video A from the video obtained.
In practical application, the website that video is doubtful video to be filtered can be searched by above-mentioned judgement, one table is set Show that the ident value for the searched video of the website for doubtful video to be filtered such as " 1 " searches video by above-mentioned judgement Be not doubtful video to be filtered website be arranged one indicate for the searched video of the website be not doubtful video to be filtered Ident value, such as " 0 ".It is assumed that searching after a video B is filtered, site information be [iqiyi.com, 0;Youku.com, 0;Sohu, 0], then it represents 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, view can be directly deleted The website X of frequency D1, when all websites of video D are deleted, it is possible to determine that video D is video to be filtered, filters out video D。
In a kind of specific implementation, website obtained may include main selective calling point and alternative website;
Above-mentioned video filtering device can also include: main selective calling point determining module, for determining to regard for main selective calling point It is not in the alternative website of doubtful video to be filtered, really from above-mentioned judgement video C in the case that frequency C is doubtful video to be filtered Fixed main selective calling point (in Fig. 2 be not shown) of the alternative website as video C.
It is assumed that the website of video A includes: iqiyi.com, youku.com and Sohu, wherein iqiyi.com is main selective calling point, youku.com and is searched Fox is alternative website, if after being filtered the video searched, determining to be directed to iqiyi.com according to filtering rule obtained Website video A is doubtful video to be filtered, determines that for youku.com's website and Sohu website video A be not doubtful view to be filtered Frequently, then a website can be determined as main selective calling point at random in youku.com and Sohu.
In a kind of specific implementation, in the case where determining for main selective calling point video C is doubtful video to be filtered, also It can be determined according to above-mentioned judgement video C is not sequence of the alternative website of doubtful video to be filtered in filtering rule.Example Such as, the website of video C includes: iqiyi.com, youku.com and Sohu, wherein iqiyi.com is main selective calling point, and youku.com and Sohu are alternative station Point, filtering rule obtained are { IOS client: { iqiyi.com: 0,15 };{ Google: 0,20 };{ Sohu: 0,25 };Youku.com: 0,25 } }, after filtering, it is doubtful video to be filtered for main selective calling point iqiyi.com video C, determines to be directed to alternative website youku.com It is not doubtful video to be filtered with Sohu video C, and Sohu's website is before youku.com in filtering rule, it is possible to it determines Sohu is main selective calling point.
In practical application, after point long good video of filtering of end branch website timesharing, it also will do it some processing, such as filter out Huang Color audio content filters out the video etc. poor with the mark correlation of video to be searched, can guarantee that client can in this way Desired video is received, and guarantees the safety of client-side information.
Video information sending module 204, for the video information of filtered video to be sent to destination client.
In a kind of specific implementation, video information sending module 204, may include: video information generate submodule and Video information sending submodule (is not shown) in Fig. 2;
Wherein, video information generates submodule, for not being the station of doubtful video to be filtered according to above-mentioned judgement video C Point generates the video information of video C;
Video information sending submodule, for video information to be sent to destination client.
It is assumed that the website of the video A obtained includes: iqiyi.com, youku.com and Sohu, after video filtering, determine for excellent Cool website point and Sohu website video A are not doubtful video to be filtered, then the video of video A is generated according to youku.com and Sohu's website Information, and the video information is sent to destination client.
Destination client after receiving video information, in a manner of the page one by one show receive video information, for Family is browsed and selects the video needed, wherein if including main selective calling point and alternative website in video information, can be preferential Show main selective calling point.
Certainly, video information can also include the information such as video name and/or video profile, and the present invention is to this without limit It is fixed.
Using embodiment illustrated in fig. 2, video server is after receiving the video search request of destination client transmission, root Include according to the identification search video for the video to be searched for including in video search request, and according in video search request The type identification of the mark client obtains the filtering rule of the type for the destination client from video filtering configuration file, According to filtering rule obtained, the video searched is filtered, the video information of filtered video is sent to this Destination client need to only update video filtering when video requirement of the different types of client to different websites changes Filtering rule in configuration file, it is not necessary to modify the video filtering programs run in multiple video servers, therefore, effectively Ground improves the efficiency of filtering video.
For device embodiment, since it is substantially similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium, The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of video filtering method, which is characterized in that the method includes the steps:
Receive the video search request that destination client is sent, wherein the video search request includes: the mark of video to be searched Know the type identification with the destination client;
According to the identification search video for the video to be searched for including in video search request, and searched according to the video The type identification for the destination client for including in rope request, is directed to from pre-generated video filtering configuration file The filtering rule of the type of the destination client, wherein include in the video filtering configuration file: the type of client with Corresponding relationship between filtering rule, the filtering rule include video website and video limitation duration;
According to filtering rule obtained, the video searched is filtered;
The video information of filtered video is sent to the destination client.
2. the method according to claim 1, wherein described according to filtering rule obtained, to being searched Video be filtered, comprising:
For any bar video C in the video that is searched, it is filtered according to following manner:
Obtain the website of the video C and the duration of the video C;
According to website obtained and duration obtained, judge whether the video C is video to be filtered;
If it is, filtering the video C from the video searched.
3. according to the method described in claim 2, it is characterized in that, the filtering rule includes: video website and video limitation The corresponding relationship of duration;
It is described according to website obtained and duration obtained, judge whether the video C is video to be filtered, comprising:
Judge whether the video C is doubtful video to be filtered for each website obtained;
In the case where judging to be doubtful video to be filtered for video C described in each website obtained, described in judgement Video C is video to be filtered;
Wherein, judge whether the video C is doubtful video to be filtered for either site X obtained according to following steps:
Judge whether the website X belongs to the video website for including in filtering rule obtained;
If belonging to, the corresponding view of the website X whether duration obtained includes in filtering rule obtained is judged In frequency limitation duration;
If it has, then determining that for video C described in the website X be not doubtful video to be filtered, if it has not, then determining to be directed to institute Stating video C described in website X is doubtful video to be filtered;
If being not belonging to, determine for video C described in the website X to be doubtful video to be filtered.
4. according to the method described in claim 3, it is characterized in that, website obtained includes main selective calling point and alternative website;
The method also includes:
In the case where determining for video C described in the main selective calling point is doubtful video to be filtered, from the above-mentioned judgement view Frequency C is not to determine main selective calling point of the alternative website as the video C in the alternative website of doubtful video to be filtered.
5. according to the method described in claim 3, it is characterized in that, the video information by filtered video is sent to institute State destination client, comprising:
It is not the website of doubtful video to be filtered according to the above-mentioned judgement video C, generates the video information of the video C;
The video information is sent to the destination client.
6. the method according to claim 1, wherein the method also includes:
According to preset file update condition, the video filtering configuration file is updated.
7. a kind of video filtering device, which is characterized in that described device include: searching request receiving module, information acquisition module, Video filtering module and video information sending module;
Wherein, described search request receiving module, for receiving the video search request of destination client transmission, wherein described Video search request includes: the mark of video to be searched and the type identification of the destination client;
The information acquisition module, for the identification search according to the video to be searched for including in video search request Video, and according to the type identification for the destination client for including in video search request, from pre-generated video The filtering rule of the type for the destination client is obtained in filtering profiles, wherein the video filtering configuration text Include in part: the corresponding relationship between the type and filtering rule of client, the filtering rule include video website and video Limit duration;
The video filtering module, for being filtered to the video searched according to filtering rule obtained;
The video information sending module, for the video information of filtered video to be sent to the destination client.
8. device according to claim 7, which is characterized in that the video filtering module, comprising: information acquisition submodule Block, video judging submodule and video filtering submodule;
Wherein, the information acquisition submodule, for obtaining the website of any bar video C in searched video and described The duration of video C;
The video judging submodule, for according to website obtained and duration obtained, judge the video C whether be Video to be filtered, if it has not, then triggering the video filtering submodule;
The video filtering submodule, for filtering the video C from the video searched.
9. device according to claim 8, which is characterized in that the filtering rule includes: video website and video limitation The corresponding relationship of duration;
The video judging submodule, comprising: video judging unit and video judging unit;
Wherein, the video judging unit, for judging whether the video C is doubtful to mistake for each website obtained Filter video;
The video judging unit, for being doubtful to be filtered judging for video C described in each website obtained In the case where video, determine that the video C is video to be filtered;
Wherein, the video judging unit, comprising: website judgment sub-unit, duration judgment sub-unit, the first video determine that son is single Member and the second video determine subelement;
The website judgment sub-unit is wrapped for judging whether either site X obtained belongs in filtering rule obtained The video website included triggers the duration judgment sub-unit if belonging to, if being not belonging to, triggers first video and determines Subelement;
The duration judgment sub-unit, for judge duration obtained whether in filtering rule obtained include described in In the corresponding video limitation duration of website X, if it has, then triggering second video determines subelement, if it has not, then triggering institute It states the first video and determines subelement;
First video determines subelement, for determining for video C described in the website X to be doubtful video to be filtered;
Second video determines subelement, determines that for video C described in the website X be not doubtful video to be filtered.
10. device according to claim 9, which is characterized in that website obtained includes main selective calling point and alternative website;
Described device further include: main selective calling point determining module, for determining for video C described in the main selective calling point to be doubtful It is not to determine one in the alternative website of doubtful video to be filtered from the above-mentioned judgement video C in the case where video to be filtered Alternative main selective calling point of the website as the video C.
11. device according to claim 9, which is characterized in that the video information sending module, comprising: video information Generate submodule and video information sending submodule;
Wherein, the video information generates submodule, for not being doubtful video to be filtered according to the above-mentioned judgement video C Website generates the video information of the video C;
The video information sending submodule, for the video information to be sent to the destination client.
12. device according to claim 7, which is characterized in that described device further include: file update module, for pressing According to preset file update condition, the video filtering configuration file is updated.
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 CN105635821A (en) 2016-06-01
CN105635821B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109063199B (en) * 2018-09-11 2022-10-25 优视科技有限公司 Resource filtering method and device, electronic equipment and computer readable medium

Citations (3)

* 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
CN103841464A (en) * 2014-03-21 2014-06-04 北京金山网络科技有限公司 Video information pushing method and device
CN105100832A (en) * 2014-04-24 2015-11-25 海信集团有限公司 Multimedia resource pushing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103210393A (en) * 2010-11-10 2013-07-17 汤姆逊许可公司 Individualized program guide based on system and user constraints

Patent Citations (3)

* 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
CN103841464A (en) * 2014-03-21 2014-06-04 北京金山网络科技有限公司 Video information pushing method and device
CN105100832A (en) * 2014-04-24 2015-11-25 海信集团有限公司 Multimedia resource pushing method and device

Also Published As

Publication number Publication date
CN105635821A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
KR102268934B1 (en) Information Recommendation Methods and Devices
CN107003877B (en) Contextual deep links for applications
CN102333122B (en) Downloaded resource provision method, device and system
CN106469044B (en) Method and device for realizing page jump
CN104462500B (en) Determination method, the control processing method and processing device of control liveness
CN104125143B (en) Recommend the method and device of group
WO2013170817A1 (en) Mobile terminal, and application classified management method and system thereof
CN105635821B (en) A kind of video filtering method and device
WO2017166791A1 (en) Application backup method and apparatus
US10061806B2 (en) Presenting previously selected search results
CN105872168A (en) Address list update method and device
CN104063475B (en) user-defined list processing method and device
US20140317497A1 (en) Method, Apparatus and System for Changing Font for Application Program
CN102163197A (en) Skin changing method, system and device
CN103927303A (en) Method and device for searching accounts
CN104796477A (en) Document uploading method, device and system
JP6148661B2 (en) Method and server for pushing cellular lexicons
CN108108381B (en) Page monitoring method and device
CN109672907B (en) Material display processing method, device and equipment
WO2017201936A1 (en) Method and apparatus for replacing icon of application installation package, and electronic device
US20130212101A1 (en) Portlet processing apparatus, portal server, portal system, portlet processing method and recording medium
WO2016197884A1 (en) Identity-based data processing method and device
CN103699630B (en) Method and device for recommending information in browser
CN107181830B (en) A kind of method and device obtaining targeted website data information
CN106330979B (en) Router login method and device

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