Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of video ads inserting method and device, and so that the interactive interfacing between avoiding because of cross-system is various, system end exploitation that is that cause is loaded down with trivial details, and the problem that Internet video real-time is low, the video load time is long.
A kind of video ads inserting method provided by the present invention, comprising:
Obtain broadcast address and the positive video labeling ID of positive video;
The advertising strategy of positive video according to described positive video ID acquisition request;
State the broadcast address of video, described positive video ID and described advertising strategy according to institute's positive, play described positive video and advertisement video corresponding to described positive video.
Described according to described positive video playback address, described positive video ID and described advertising strategy, play described positive video and advertisement video corresponding to described positive video, also comprise:
Search in buffer area and whether comprise advertisement video corresponding to described positive video, if comprised, then carry out positive download according to the broadcast address of described positive video, and intercut according to advertising strategy;
If do not comprise the advertisement video that described positive video is corresponding in described buffer area, then download advertisement video corresponding to described positive video according to described positive video ID, carry out the pre-download of positive video simultaneously, and intercut according to advertising strategy.
Described download advertisement video corresponding to described positive video according to described positive video ID after, also comprise:
For the described advertisement video downloaded distributes unique identification, the described advertisement video downloaded is buffered in this locality, and stores the corresponding relation of described unique identification and described positive video ID.
Described advertising strategy comprises adline, advertisement insertion time point and advertisement insertion type, described advertisement insertion type, comprise front insert, in insert and rear slotting three types, described method also comprises:
When adopting described front slotting advertisement insertion type, advertisement video is cached to this locality, the video flowing section of positive video described in prestrain simultaneously, is namely switched to positive video playback after described advertisement video plays;
Adopt described in insert or rear insert advertisement insertion type time, search local cache, if find the advertisement video that positive video is corresponding, then play-over described advertisement video, if do not find the advertisement video that positive video is corresponding, then download advertisement video corresponding to described positive video according to described positive video ID, the video flowing section of the positive of prestrain simultaneously video.
A kind of video ads inserting method, comprising:
Positive video and advertisement video are bound;
Set up advertising strategy;
Receiving terminal positive video ID, is sent to terminal by advertising strategy;
Described positive video and advertisement video to be bound, comprise, arrange and make positive video and advertisement video have colume structure, program ID and column ID one to one, thus realization to the advertisement fixing of each positive video to input.
A kind of video ads intercuts device, and have the first receiving element, the second receiving element and process broadcast unit, the first receiving element is connected with process broadcast unit by the second receiving element;
Wherein, described first receiving element, for obtaining broadcast address and the positive video labeling ID of positive video;
Described second receiving element, for the advertising strategy of positive video according to described positive video ID acquisition request;
Described process broadcast unit, for the broadcast address according to described positive video, described positive video ID and described advertising strategy, plays described positive video and advertisement video corresponding to described positive video.
After above-mentioned first receiving element gets positive video playback address, video playback address is sent to process broadcast unit, positive video ID is sent to the second receiving element by the first receiving element, second receiving element carries positive video ID request server, obtain the advertisement insertion strategy of this positive video, as adline, advertisement insertion time point, advertisement insertion type.
Described adline can be the type such as picture-text advertisement or video ads; Described advertisement insertion type can comprise front insert, in insert, rear insert three kinds of modes.
Wherein, when adopting described front slotting advertisement insertion type, first advertisement video is cached to local cache, the video flowing section of the positive of prestrain simultaneously video, after advertisement video plays, be namely switched to positive video playback, realize the seamless switching of advertisement video and positive video;
Adopt described in insert or rear insert advertisement insertion type time, search local cache, if find the advertisement video that positive video is corresponding, then play-over this advertisement video, if do not find the advertisement video that positive video is corresponding, then download advertisement video corresponding to described positive video according to described positive video ID, the video flowing section of the positive of prestrain simultaneously video.
Described process broadcast unit, also has and intercuts module;
Describedly intercut module, whether comprising ad data corresponding to described positive video for searching in buffer area, if comprised, then carrying out positive download according to described video playback address, and intercutting according to advertising strategy;
Describedly intercut module, if also for not comprising ad data corresponding to described positive video in described buffer area, then download advertisement video corresponding to described positive video according to described positive video ID, carry out the pre-download of positive video simultaneously, and intercut according to advertising strategy.
Described process broadcast unit, has distribution module;
Described distribution module, distributing unique identification for the described advertisement video for downloading, the described advertisement video downloaded being buffered in this locality, and storing the corresponding relation of described unique identification and described positive video ID.
Described process broadcast unit, also has document control module and result of broadcast module;
Described document control module, for managing advertisement video and positive video and recombinate, is sent to described result of broadcast module by advertisement video and positive video;
Described result of broadcast module, for looking effect, sound effect control to advertisement video and positive video.
A kind of video ads intercuts device, it is characterized in that, comprising:
Binding unit, for binding positive video and advertisement video;
Advertising strategy unit, for setting up advertising strategy;
Transmit-Receive Unit, for receiving positive video ID, and is sent to terminal by advertising strategy.
The present invention realizes the download buffer service of advertisement video, positive video by terminal, the download of positive video is carried out while advertisement video carries out buffer memory, shorten the video load time of advertisement video and positive video, improve real-time and the fluency of Internet video broadcasting, and then improve Consumer's Experience.
Meanwhile, overcome the bottleneck that in prior art, set-top box device internal memory is little, achieve the seamless switching of positive video and advertisement video simultaneously, to it also avoid in prior art because the information interaction between cross-system is various, terminal development difficulty that information connection line is arranged very complicated and caused and the high problem of cost; Therefore, have and shorten the video load time, positive video and advertisement video intercut smoothness, real-time is good, cost-saving and promote the good effect of Consumer's Experience.
For making above-mentioned purpose of the present invention, feature and advantage become apparent, preferred embodiment cited below particularly, and coordinate appended accompanying drawing, be described in detail below.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.The assembly of the embodiment of the present invention describing and illustrate in usual accompanying drawing herein can be arranged with various different configuration and design.Therefore, below to the detailed description of the embodiments of the invention provided in the accompanying drawings and the claimed scope of the present invention of not intended to be limiting, but selected embodiment of the present invention is only represented.Based on embodiments of the invention, the every other embodiment that those skilled in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
Embodiment one as shown in Figure 1, present embodiments provides a kind of video ads inserting method, and the executive agent of the method can be terminal, and its method step comprises:
Step 101, terminal obtain broadcast address and the positive video labeling ID of positive video from server;
Step 102, described terminal obtain the advertising strategy of described positive video according to described positive video ID request server;
Described advertising strategy comprises: adline, advertisement insertion time point, advertisement insertion type;
Described advertisement insertion type, as shown in the table, can comprise front insert, in insert, rear insert three kinds of modes;
Above-mentioned AD1, AD2 represent advertisement video respectively, 1 ~ 102 respectively representative representative cut into slices based on the video flowing of HLS (HttpLiveStreaming) agreement, it is 10S that a general section arranges duration.
Wherein, when adopting described front slotting advertisement insertion type, first advertisement video is cached to local cache, the video flowing section of the positive of prestrain simultaneously video, after advertisement video plays, be namely switched to positive video playback, realize the seamless switching of advertisement video and positive video;
Adopt described in insert or rear insert advertisement insertion type time, search local cache, if find the advertisement video that positive video is corresponding, then play-over this advertisement video, if do not find the advertisement video that positive video is corresponding, then download advertisement video corresponding to described positive video according to described positive video ID, the video flowing section of the positive of prestrain simultaneously video;
Step 103, described terminal, according to described video playback address, described positive video ID and described advertising strategy, play described positive video and advertisement video corresponding to described positive video.
Wherein, described according to described positive video playback address, described positive video ID and described advertising strategy, play described positive video and advertisement video corresponding to described positive video, specifically comprise:
Described terminal is when carrying out advertisement video and playing, first search in buffer area and whether comprise advertisement video corresponding to described positive video, if include the buffer memory of corresponding advertisement video, then carry out positive download according to the broadcast address of described positive video, and intercut according to advertising strategy;
If do not comprise the advertisement video data that described positive video is corresponding in described buffer area, then download advertisement video corresponding to described positive video according to described positive video ID, carry out the pre-download of positive video simultaneously, and intercut according to advertising strategy.
Described download advertisement video corresponding to described positive video according to described positive video ID after, also comprise:
For the described advertisement video downloaded distributes unique identification, the described advertisement video downloaded is buffered in this locality, and stores the corresponding relation of described unique identification and described positive video ID.
Concrete, after the download carrying out advertisement video, it is originally deployed in CDN (ContentDeliveryNetwork, content distributing network) in advertisement video source file be cached to this locality, and use a unique Tag ID by the file of local cache and original in CDN (ContentDeliveryNetwork, content distributing network) in correspondence be carried out in positive video link address, and store this kind of corresponding relation; Like this in a short time can the advertisement video of repeatedly repeat playing, during to make to play this advertisement video stream next time, terminal automatically can be transferred the local advertisement video that buffer memory has got off and play.
Video ads inserting method provided by the present invention, carries out advertisement video buffer service by terminal, and is undertaken intercutting control by terminal, and make full use of the process superiority of client, tool has the following advantages:
1, realized the download buffer service of advertisement video, positive video by terminal, alleviate the service pressure of Streaming Media request advertisement video stream;
2, terminal adopts the pattern that " single player, two-way stream (carrying out the pre-download of positive video while broadcast advertisement video) " is downloaded, overcome the bottleneck that in reality, set-top box device internal memory is little, achieve the seamless switching of positive video and advertisement video simultaneously;
3, undertaken carrying out with server ad system module alternately, instead of the interworking of streaming media server, saving the interface between cross-system by terminal, avoid the loaded down with trivial details problem of system development that is that bring because cross-system interface is various.
Embodiment two as shown in Figure 2, a kind of video ads inserting method that the present embodiment provides, step comprises:
Positive video and advertisement video are bound by step 201, server;
Wherein, positive video and advertisement video are bound by described server, comprise, setting makes positive video and advertisement video have colume structure, program ID and column ID one to one, make positive video and advertisement video carry out unifying layout, thus realization can to the advertisement fixing of each positive video to input;
Step 202, described server set up advertising strategy;
Described advertising strategy of setting up can be by Servers installed input unit, by people for arranging advertising strategy in advance and inputing to server by input unit, or also can be according to certain rule, the automatic generating advertisement strategy of server;
Step 203, described server receiving terminal positive video ID, be sent to terminal by advertising strategy;
At this, described program ID is the assets unique identification of some concrete videos; A such as film " suddenly bit people ", its assets unique identification is " 222 ", and 222 is exactly program ID; Column ID is the assets unique identification of the parent column of a certain concrete video, such as " suddenly bit people ", belongs under " American-European large stretch of " column.
As shown in Figure 3, a kind of video ads provided by the present invention intercuts device, has the first receiving element 310, second receiving element 320 and process broadcast unit 330;
First receiving element 310 is connected with process broadcast unit 330 by the second receiving element 320;
Wherein, described first receiving element 310, for obtaining positive video playback address and positive video labeling ID;
Described second receiving element 320, for obtaining the advertising strategy of described positive video according to described positive video ID request server;
Described process broadcast unit 330, for the broadcast address according to described positive video, described positive video ID and described advertising strategy, plays described positive video and advertisement video corresponding to described positive video;
Described process broadcast unit, also has and intercuts module;
Describedly intercut module, whether comprising ad data corresponding to described positive video for searching in buffer area, if comprised, then carrying out positive download according to described video playback address, and intercutting according to advertising strategy;
Describedly intercut module, if also for not comprising ad data corresponding to described positive video in described buffer area, then download advertisement video corresponding to described positive video according to described positive video ID, carry out the pre-download of positive video simultaneously, and intercut according to advertising strategy.
Described process broadcast unit, has distribution module;
Described distribution module, distributing unique identification for the described advertisement video for downloading, the described advertisement video downloaded being buffered in this locality, and storing the corresponding relation of described unique identification and described positive video ID;
The work of above-mentioned distribution module, meets the advertisement video for repeat playing at short notice, and when can meet that once this advertisement video play by needs on it, terminal automatically can be transferred the local advertisement video file that buffer memory has got off and play; To save download time, ensure the fluency that positive video playback and advertisement video are play.
Described process broadcast unit, also has document control module and result of broadcast module;
Wherein, described document control module, after receiving advertisement video and positive video, manages advertisement video and positive video and recombinates, advertisement video and positive video are sent to described result of broadcast module;
Described result of broadcast module, for looking effect, sound effect control to advertisement video and positive video.
After above-mentioned first receiving element 310 gets positive video playback address, video playback address is sent to process broadcast unit 330, positive video ID is sent to the second receiving element 320 by the first receiving element, second receiving element 320 carries positive video ID request server, obtain the advertisement insertion strategy of this positive video, as adline, advertisement insertion time point, advertisement insertion type; Described adline can be the type such as picture-text advertisement or video ads; Described advertisement insertion type can comprise front insert, in insert, rear insert three kinds of modes; Wherein, when adopting described front slotting advertisement insertion type, first advertisement video is cached to local cache, the video flowing section of the positive of prestrain simultaneously video, after advertisement video plays, be namely switched to positive video playback, realize the seamless switching of advertisement video and positive video;
Adopt described in insert or rear insert advertisement insertion type time, search local cache, if find the advertisement video that positive video is corresponding, then play-over this advertisement video, if do not find the advertisement video that positive video is corresponding, then download advertisement video corresponding to described positive video according to described positive video ID, the video flowing section of the positive of prestrain simultaneously video.
In addition, described video ads intercuts device except having the function of resolving advertising strategy, also for the buffer memory of advertising strategy xml (extend markup language) data, control the advertisement insertion time and carry out advertistics, and there is the function of hardware decode and software decode.
Above-mentioned process broadcast unit, equally also has the playing up of Audio and Video, exports; And basic Broadcast Control logical operation, the functions such as such as video fast forward, video rewind, video pause, volume control.
As shown in Figure 4, a kind of video ads provided by the present invention intercuts device, comprising: binding unit 410; Advertising strategy unit 420 and Transmit-Receive Unit 430;
Wherein, described binding unit 410, for binding positive video and advertisement video;
Described advertisement video and positive video to be bound, can various ways be had, such as, adopt the method for unified layout herein, setting makes positive video and advertisement video have colume structure, program ID and column ID one to one, thus realizes the advertisement fixing of each positive video to input.
Described advertising strategy unit 420, for setting up advertising strategy;
Above-mentioned advertising strategy can comprise: adline, advertisement insertion time point, advertisement insertion type etc.;
Described advertisement insertion type, can comprise front insert, in insert, rear insert three kinds of modes.
Described Transmit-Receive Unit 430, for the positive video ID that receiving terminal sends over, and is sent to terminal by advertising strategy;
Concrete, above-mentioned Transmit-Receive Unit has reception and sending function, after it receives and identifies the positive video ID that terminal sends over, advertising strategy is sent to terminal, terminal can carry out intercutting of advertisement video and positive video according to the content of advertising strategy then.
As shown in Figure 5, video ads cut system of the present invention, has terminal and server; Described server can comprise advertisement delivery system module 530, video frequency program meta data server 510 and streaming media server 550;
Corresponding, described terminal can comprise terminal player 520, and described terminal player has EPG (ElectronicProgramGuide, electric program menu) and puts broadcasting module 540.
Concrete, set up between video frequency program meta data server 510 and advertisement delivery system module 530 based on API (ApplicationProgrammingInterface, application programming interface) message synchronization mechanism, there is end amount data-interface and message synchronization interface, and measure data-interface, message synchronization interface the end of by, by the change of the video content of video frequency program meta data server, as video rolls off the production line, video renewal etc., real-time informing and be synchronized to advertisement delivery system module; And by such interface synchronization mechanism, positive video and advertisement video is made to have colume structure, program ID and column ID one to one, positive video and advertisement video are carried out unifying layout, thus realize throwing in the orientation of the corresponding advertisement video of each positive video, complete the binding of positive video and advertisement video.
Described advertisement delivery system module 530 is for setting up advertising strategy, and the request of receiving terminal, send advertising strategy to terminal;
Equally, for realizing above-mentioned functions, EPG (ElectronicProgramGuide, electric program menu) put broadcasting module 540 and CDN (ContentDeliveryNetwork, content distributing network) be also provided with api interface between service system, XML encapsulation of data containing positive video playback address is sent to CDN service system by EPG point broadcasting module 540, after CDN service system obtains the XML encapsulation of data containing positive video playback address, distribution processor carried out to it and accelerate process, then by the broadcast address of positive video, positive video ID, send to EPG point broadcasting module 540.
EPG point broadcasting module 540 obtains broadcast address and the positive video labeling ID of positive video, and the broadcast address of positive video and positive video labeling ID are sent to terminal player 520, ask advertisement delivery system module 530 by terminal player 520 according to described positive video ID, obtain the advertising strategy of described positive video; According to advertising strategy content, terminal player request streaming media server 550 downloads ad video and positive video, and play described positive video and advertisement video corresponding to described positive video.
For realizing above-mentioned functions, also data-interface API is provided with between terminal player 520 and EPG point broadcasting module 540, terminal player obtains the data needed from EPG point broadcasting module by data-interface API, the broadcast address of such as positive video and positive video labeling ID.
Based on above-mentioned terminal and described server, the whole course of work of video ads cut system provided by the present invention is, video metadata server and advertisement delivery system module set up metadata synchronization mechanism, the colume structure, program ID and the column id information that all positive videos and advertisement video are had save as metadata, and setting makes positive video and advertisement video have colume structure, program ID and column ID one to one, makes positive video and advertisement video carry out unifying layout; Then advertisement delivery system sets up advertisement serving policy.When user carries out program request, described EPG point broadcasting module docks with terminal player, terminal player APP (Application, application program) represent user's on-demand content, after user's program request completes, EPG point broadcasting module issues positive broadcast address and positive video ID to terminal player, terminal player receives positive video playback address and positive video ID, this positive video playback address is for allowing terminal player according to the data content of this positive video playback address acquisition positive video, terminal player carries positive video ID to advertisement delivery system module request advertising strategy, ad system module accepts request, advertising strategy is sent to terminal player, terminal player accepts advertising strategy, and resolve advertising strategy, according to advertising strategy, first terminal player searches buffer area, if have the buffer memory of corresponding advertisement video, then carry out positive download according to described video playback address, and intercut according to advertising strategy, if when searching buffer area, there is no the buffer memory of corresponding advertisement video, then first carry out the buffer memory of advertisement video, carry out the pre-download of positive video simultaneously, and intercut according to advertising strategy.
In such scheme, can realize client player directly mutual with ad system module, acquisition advertisement serving policy, that has peeled off in prior art between streaming media server and ad system module is mutual, therefore has following beneficial effect:
The problem of the terminal development difficulty that the information interaction between 1, avoiding because of cross-system is various, information connection line is arranged very complicated and caused;
2, the system maintenance difficulty that the information interaction between avoiding because of cross-system is various, information connection line is arranged very complicated and caused, the defect that cost is higher.
3, meet the video play mode that terminal player adopts " two-way stream is put in clean culture ", overcome the bottleneck that set-top box device internal memory is little, achieve the seamless switching of program and advertisement simultaneously, intercut.
4, the terminal buffer memory of advertisement video had and the pre-download function of carrying out positive video while broadcast advertisement video, shorten the video load time of advertisement video and positive video, improve real-time and the fluency of Internet video broadcasting, and then improve Consumer's Experience;
5, compared with the scheme of intercutting of player two in prior art, the present invention also has old type coupling that also can exist at present on low-end set top boxes type and market, low internal memory (as 512M internal memory) and uses;
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.