CN106604128B - A kind of method and system being inserted into pre- promotional items in network video - Google Patents

A kind of method and system being inserted into pre- promotional items in network video Download PDF

Info

Publication number
CN106604128B
CN106604128B CN201611262045.1A CN201611262045A CN106604128B CN 106604128 B CN106604128 B CN 106604128B CN 201611262045 A CN201611262045 A CN 201611262045A CN 106604128 B CN106604128 B CN 106604128B
Authority
CN
China
Prior art keywords
frame
video
packet loss
project
submodule
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
CN201611262045.1A
Other languages
Chinese (zh)
Other versions
CN106604128A (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.)
Zhongguang Hot Cloud Technology Co Ltd
Original Assignee
Zhongguang Hot Cloud 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 Zhongguang Hot Cloud Technology Co Ltd filed Critical Zhongguang Hot Cloud Technology Co Ltd
Priority to CN201611262045.1A priority Critical patent/CN106604128B/en
Publication of CN106604128A publication Critical patent/CN106604128A/en
Application granted granted Critical
Publication of CN106604128B publication Critical patent/CN106604128B/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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present invention provides a kind of method and system that pre- promotional items are inserted into network video, the project promoted in advance is compiled video by this method, it and is the addition of each video using project name as the video tab of label, network video is parsed, obtain video frame, the I extracted in each video frame in order is auspicious, judge whether n-th I frame and the N+1 I frame are video Abrupt change, this method and system can be according to the differences of scene each in video, the programme items of the promotion such as major businessman are inserted into appropriate scene, thus method and system provided by the invention can be improved the clicking rate and attention rate of user, and the network video that will not also watch user interferes.

Description

A kind of method and system being inserted into pre- promotional items in network video
Technical field
The present invention relates to a kind of video on demand fields, in particular to a kind of that pre- promotional items destination party is inserted into network video Method and system.
Background technique
Video is made of multiple video frames, and each video frame includes: again
I frame: it is a full frame compressed coded frames, is also intracoded frame, therefore the data volume of I frame is generally bigger, I frame Generated without necessarily referring to other frames, it is the reference frame of P frame or B frame, when decoding only use I frame can reconstruct one it is complete Image.
P frame: being a forward-predictive-coded frames, also referred to as inter-frame encoding frame, and P frame needs to refer to the adjacent thereto of front I frame or P frame and generate, while it is also the reference frame of other P frames or B frame, and when decoding must rely on the I frame or P of the front Frame can just reconstruct complete image.
B frame: being a bi-directional predictive coding frame, it is also an inter-frame encoding frame, and B frame needs to refer to the I frame or P of front Frame or subsequent P frame generate, and B frame is not as the reference frame of other frames, therefore its decoding error not will cause error diffusion, but I frame or P frame just restructural complete image out must be relied on when being B frame decoding.
Video content always depends on advertisement as revenue source.Recently, spectators have consumed view by new source Frequency content;These new sources are usually less to be included or not to include commercial advertisement or other promotion methods, so as to cause traditional Revenue stream, such as the decline of advertising income.In order to solve the technical problem, the trials such as existing supplier are implanted into production in video Product, for example, CN105474248 discloses a kind of system and method for promoting project relevant to programme content, this method Mainly the project occurred in the programme contents such as video and supplier etc. are attached, so that project is implanted to programme content In, it may all be that performer or certain scene are solid that main problem existing for the technical solution, which was the project occurred in programme content, at that time Surely product is not suitable for public use, thereby reduces the clicking rate and attention rate of the project, and when in the programs such as video When holding very attractive, people may only focus on plot, without the project of spectators' implantation, cause the project ignorance degree of injection It is relatively high.
Summary of the invention
In order to solve the problems in the prior art, the present invention provides one kind and is inserted into pre- promotional items destination party in network video Method and system, this method can be inserted into the promotion such as major businessman according to the difference of scene each in video in appropriate scene Programme items, thus method and system provided by the invention can be improved the clicking rate and attention rate of user, and will not also be right The network video of user's viewing interferes.
Specific technical solution of the present invention is as follows:
One aspect of the present invention provides a kind of method that pre- promotional items are inserted into network video, and this method includes following step It is rapid:
S1: compiling video for the project promoted in advance, and is the addition of each video using project name as the video tab of label, And it stores in the database;
S2: parsing network video, obtains each video frame for forming the network video, and is each view by playing sequence Frequency frame is numbered;
S3: the I extracted in each video frame in order is auspicious, and the number of each I frame is corresponding with each number of video frames;
S4: judge whether n-th I frame and the N+1 I frame are video Abrupt change, and N >=1 is cut if not video mutation It changes, carries out step S5, otherwise carry out step S7;
S5: by video frame corresponding to n-th I frame B frame and/or P frame carry out packet loss processing;
S6: pre- promotional items video video corresponding with the n-th I frame by step S5 processing is selected from database Frame is associated;
S7: network video is played according to playing sequence.
Further to improve, step S6 method specifically comprises the following steps:
S61: the I frame of the complete projects common to being separated out in n-th I frame and the N+1 I frame;
S62: the number of the complete projects common to judging carries out step if the number of shared complete projects is 1 The number of S63, shared complete projects are greater than 1, carry out step S64;
S63: one and the consistent video tab of the project name are selected from database according to the project name of complete projects Corresponding video video frame corresponding with the n-th I frame by step S5 processing is associated;
S64: respectively by the shared complete projects being separated out in n-th I frame and the N+1 I frame in each I frame proportion It does weighted average processing, obtains weighted average treated the project name of the corresponding complete projects of maximum value, then walked Rapid S63.
Further to improve, the specific method of step S5 includes the following steps:
S51: judging the time interval of n-th I frame and the N+1 I frame, if time interval is greater than time threshold, carries out Otherwise step S52 carries out step S53;
S52: it will be carried out at packet loss in the corresponding video frame of n-th I frame with the immediate P frame of the N+1 I frame and 2 B frames Reason;
S53: all P frames in the corresponding video frame of n-th I frame and B frame are subjected to packet loss processing.
Further to improve, step S1 further includes following steps:
S11: the project information promoted in advance is implanted in two dimensional code, and project information includes producer, producer address, project valence Lattice, project color;
S12: it is stabbed for load time display time of two dimensional code;
S13: stabbing for the pre- promotional items video load time, and the timestamp of itself and step S12 load is associated;
S14: the two dimensional code after association is shown in the form rolled.
Further to improve, the specific method is as follows by step S4:
S41: the ratio X of n-th I frame and the N+1 I frame is calculated, and is compared with fractional threshold, if ratio X is big In fractional threshold, then step S7 is carried out, otherwise carries out step S42, ratio X is calculated as follows:
HNAnd HN+1Respectively indicate the histogram of the DC image of n-th I frame and the N+1 I frame;
S42: calculating the difference in n-th I frame, N+1 and the N+2 I frame between every adjacent two I frame, and handled, And then judge whether n-th I frame and the N+1 I frame are video Abrupt change.
It is further to improve, step S42's method particularly includes:
S421: the difference A of n-th I frame and the N+1 I frame is calculated separately1And the N+1 I frame and the N+2 I frame Difference A2
S422: by difference A1With difference A2Summation is done respectively and asks poor processing, obtains A respectivelyWithAnd ADifference
S432: judge AWithWith the size of threshold value T1, and A is judgedDifferenceWith the size of threshold value T2, if AWith> threshold value T1, and ADifference < threshold value T2 carries out step S7, if threshold value T2 < AWith、ADifference< threshold value T1, T1 > threshold value T2+ difference A1, carry out step S5.
Another aspect of the present invention provides a kind of system that pre- promotional items are inserted into network video, which includes service Device and the database to communicate with server, server include:
Project video editing module for the project promoted in advance to be compiled video, and adds for each video with entry name The referred to as video tab of label, and store in the database;
Network video processing module, for parsing to network video, acquisition forms each video frame of the network video, And it is numbered by playing sequence for each video frame;
I frame abstraction module, the number and each number of video frames of each I frame auspicious for extracting the I in each video frame in order It is corresponding;
Abrupt change judgment module, for judging whether n-th I frame and the N+1 I frame are video Abrupt change, N >=1, If not video Abrupt change, packet loss instruction is sent to packet loss processing module, is otherwise pressed to the transmission of network video playing module It is instructed according to played in order;
Packet loss processing module, by video frame corresponding to n-th I frame and the N+1 I frame B frame and/or P frame carry out Packet loss processing;
Project association module, for selecting a pre- promotional items video from database and being handled by packet loss processing module The corresponding video frame of n-th I frame be associated;
Network video playing module, for playing network video according to playing sequence.
Further to improve, project association module includes:
Separate submodule, for being separated out the I frame of complete projects common in n-th I frame and the N+1 I frame;
Judging submodule, for judging the number of common complete projects, if the number of shared complete projects is 1 A, Xiang Guanlian submodule sends instruction, if the number of shared complete projects is greater than 1, sends out to maximum value acquisition submodule Send instruction;
It is associated with submodule, is selected from database for the project name according to complete projects one consistent with the project name The corresponding video of video tab be associated with the corresponding video frame of n-th I frame by the processing of packet loss processing module;
Maximum value acquisition submodule, the shared complete projects for will be separated out in n-th I frame and the N+1 I frame respectively Proportion does weighted average processing in each I frame, obtains weighted average treated the item of the corresponding complete projects of maximum value Mesh title, right backward association submodule send instruction.
Further to improve, packet loss processing module includes:
Time interval judging submodule, for judging the time interval of n-th I frame and the N+1 I frame, if between the time It every being greater than time threshold, sends and instructs to the first packet loss submodule, otherwise send and instruct to the second packet loss submodule;
First packet loss submodule, for by the corresponding video frame of n-th I frame with the immediate P frame of the N+1 I frame and 2 A B frame carries out packet loss processing;
Second packet loss submodule, for carrying out all P frames in the corresponding video frame of n-th I frame and B frame at packet loss Reason.
Beneficial effects of the present invention are as follows: the present invention provide a kind of method that pre- promotional items are inserted into network video and System,.
Detailed description of the invention
Fig. 1 is a kind of flow chart for the method that pre- promotional items are inserted into network video of embodiment 1;
Fig. 2 is the flow chart of the step S6 of embodiment 2;
Fig. 3 is the flow chart of the step S5 of embodiment 3;
Fig. 4 is the flow chart of the step S1 of embodiment 4;
Fig. 5 is the flow chart of the step S4 of embodiment 5;
Fig. 6 is the flow chart of the step S42 of embodiment 5;
Fig. 7 is the structural block diagram of the server of embodiment 6;
Fig. 8 is the structural block diagram of the project association module of embodiment 7;
Fig. 9 is the structural block diagram of the packet loss processing module of embodiment 8.
Specific embodiment
Embodiment 1
The present invention provides a kind of method that pre- promotional items are inserted into network video, as shown in Figure 1, this method comprises:
S1: compiling video for the project promoted in advance, and is the addition of each video using project name as the video tab of label, And it stores in the database;It can show that the project information to be promoted, relevant operation illustrate in the project video promoted in advance, project Information Center includes size, color, company-information, price etc.;
S2: parsing network video, obtains each video frame for forming the network video, and is each view by playing sequence Frequency frame is numbered;
S3: the I extracted in each video frame in order is auspicious, and the number of each I frame is corresponding with each number of video frames;
S4: judge whether n-th I frame and the N+1 I frame are video Abrupt change, and N >=1 is cut if not video mutation It changes, carries out step S5, otherwise carry out step S7;
S5: by video frame corresponding to n-th I frame B frame and/or P frame carry out packet loss processing;
S6: pre- promotional items video video corresponding with the n-th I frame by step S5 processing is selected from database Frame is associated;
S7: network video is played according to playing sequence.
The method provided by the invention that pre- promotional items are inserted into network video mainly parses video, extracts I in each video frame is auspicious, and the similarity of adjacent two I frame is compared, if adjacent two I frame is similar, it is considered that two A I frame to video frame be gradual change video frame, indicate two video frames indicate scene it is similar, in this way can two similar frames it Between be inserted into the project promoted in advance, which includes but is not limited to common products & services project etc., such as clothes, furniture, object for appreciation Tool, tableware etc. are not inserted into project between two frames if two neighboring I frame is dissimilar;Method provided by the invention is mainly examined The daily viewing of the spectators of worry is accustomed to, generally when video Abrupt change be not present in the scene of one section of video, can to spectators with Carry out feeling of fatigue, so F.F. processing will be carried out to this section of video, then the viewing that most spectators are mainly utilized in this method is practised It is used, it is implanted into the project to be promoted in similar scene, the project of the promotion can be any products & services, major can supply The commodity sales promotion of quotient's offer can be the commodity of major supermarket promotion, if there is video mutation to cut between general consecutive frame It changes, then spectators have not needed interference in spectators' video, this time this method issues instruction, it is handled without inserted term purpose, So method provided by the invention can be inserted into the project to be promoted on appropriate opportunity, and featured videos segment will not be interfered Between switching, be inserted into project under the premise of spectators have visual fatigue due to referring to, the clicking rate of spectators can be improved indirectly;And The project that the present invention will promote is inserted into the corresponding position of network video in the form of video, makes the project information to be promoted Spectators are exposed directly to, clicking rate is further improved.
Embodiment 2
The embodiment of the present invention 2 provide the method that pre- promotional items are inserted into network video unlike the first embodiment, As shown in Fig. 2, step S6 method specifically comprises the following steps:
S61: the I frame of the complete projects common to being separated out in n-th I frame and the N+1 I frame;
S62: the number of the complete projects common to judging carries out step if the number of shared complete projects is 1 The number of S63, shared complete projects are greater than 1, carry out step S64;
S63: one and the consistent video tab of the project name are selected from database according to the project name of complete projects Corresponding video video frame corresponding with the n-th I frame by step S5 processing is associated;
S64: respectively by the shared complete projects being separated out in n-th I frame and the N+1 I frame in each I frame proportion It does weighted average processing, obtains weighted average treated the project name of the corresponding complete projects of maximum value, then walked Rapid S63.
The present invention further screens the project being inserted into network video, can guarantee to watch net in spectators in this way When network video, it is unlikely to the vision conversion for having too big, ensure that fluency when viewing.
Embodiment 3
The embodiment of the present invention 3 provide the method that pre- promotional items are inserted into network video as different from Example 2, As shown in figure 3, the specific method of step S5 includes the following steps:
S51: judging the time interval of n-th I frame and the N+1 I frame, if time interval is greater than time threshold, carries out Otherwise step S52 carries out step S53;
S52: it will be carried out at packet loss in the corresponding video frame of n-th I frame with the immediate P frame of the N+1 I frame and 2 B frames Reason;
S53: all P frames in the corresponding video frame of n-th I frame and B frame are subjected to packet loss processing.
When the present invention is inserted into project in corresponding position, further defines and how the sequence frame in video frame is carried out The problems such as packet loss is handled, and not only be ensure that the fluency of viewing, and is also solved network delay.
Embodiment 4
The embodiment of the present invention 4 provide the method that pre- promotional items are inserted into network video as different from Example 3, As shown in figure 4, step S1 method particularly includes:
Step S1 further includes following steps:
S11: the project information promoted in advance is implanted in two dimensional code;
S12: it is stabbed for load time display time of two dimensional code;
S13: stabbing for the pre- promotional items video load time, and the timestamp of itself and step S12 load is associated;
S14: the two dimensional code after association is shown in the form rolled.
The present invention further improves, and can load two dimensional code for the project promoted in advance, and shown on the screen, work as sight When crowd scans the two-dimensional code, directly the promotional items of insertion can be shown in terminal, be browsed convenient for spectators, and will not delay The viewing of video, improve for clicking rate.
Embodiment 5
The embodiment of the present invention 5 provide the method that pre- promotional items are inserted into network video as different from Example 4, As shown in figure 5, the specific method is as follows by step S4:
S41: the ratio X of n-th I frame and the N+1 I frame is calculated, and is compared with fractional threshold, if ratio X is big In fractional threshold, then step S7 is carried out, otherwise carries out step S42, ratio X is calculated as follows:
HNAnd HN+1Respectively indicate the histogram of the DC image of n-th I frame and the N+1 I frame;
S42: calculating the difference in n-th I frame, N+1 and the N+2 I frame between every adjacent two I frame, and handled, And then judge whether n-th I frame and the N+1 I frame are video Abrupt change.
As shown in fig. 6, step S42 method particularly includes:
S421: the difference A of n-th I frame and the N+1 I frame is calculated separately1And the N+1 I frame and the N+2 I frame Difference A2
S422: by difference A1With difference A2Summation is done respectively and asks poor processing, obtains A respectivelyWithAnd ADifference
S432: judge AWithWith the size of threshold value T1, and A is judgedDifferenceWith the size of threshold value T2, if AWith> threshold value T1, and ADifference < threshold value T2 carries out step S7, if threshold value T2 < AWith、ADifference< threshold value T1, T1 > threshold value T2+ difference A1, carry out step S5.
The similarity that adjacent two frame is judged by above method, is remarkably improved judging efficiency.
Embodiment 6
The embodiment of the present invention 6 provides a kind of system that pre- promotional items are inserted into network video, as shown in fig. 7, this adds Adding system includes server 1 and the database that communicates with server 1, and server 1 includes:
Project video editing module 10 for the project promoted in advance to be compiled video, and adds for each video with project The video tab of entitled label, and store in the database;
Network video processing module 20 obtains each video for forming the network video for parsing to network video Frame, and be that each video frame is numbered by playing sequence;
I frame abstraction module 30, auspicious for extracting the I in each video frame in order, the number and each video frame of each I frame are compiled It is number corresponding;
Abrupt change judgment module 40, for judging whether n-th I frame and the N+1 I frame are video Abrupt change, N >= 1, if not video Abrupt change, packet loss instruction is sent to packet loss processing module 50, otherwise to network video playing module 70 Send play instruction in sequence;
Packet loss processing module 50, by video frame corresponding to n-th I frame and the N+1 I frame B frame and/or P frame into The processing of row packet loss;
Project association module 60, for selecting a pre- promotional items video from database and passing through packet loss processing module 50 The corresponding video frame of n-th I frame of processing is associated;
Network video playing module 70, for playing network video according to playing sequence.
The system provided by the invention that pre- promotional items are inserted into network video mainly parses video, extracts I in each video frame is auspicious, and the similarity of adjacent two I frame is compared, if adjacent two I frame is similar, it is considered that two A I frame to video frame be gradual change video frame, indicate two video frames indicate scene it is similar, in this way can two similar frames it Between be inserted into the project promoted in advance, which includes but is not limited to common products & services project etc., such as clothes, furniture, object for appreciation Tool, tableware etc. are not inserted into project between two frames if two neighboring I frame is dissimilar;System provided by the invention is mainly examined The daily viewing of the spectators of worry is accustomed to, generally when video Abrupt change be not present in the scene of one section of video, can to spectators with Carry out feeling of fatigue, so F.F. processing will be carried out to this section of video, then the viewing that most spectators are mainly utilized in the system is practised It is used, it is implanted into the project to be promoted in similar scene, the project of the promotion can be any products & services, major can supply The commodity sales promotion of quotient's offer can be the commodity of major supermarket promotion, if there is video mutation to cut between general consecutive frame It changes, then spectators in spectators' video, have not needed interference, therefore this system issues instruction, it is handled without inserted term purpose, So system provided by the invention can be inserted into the project to be promoted on appropriate opportunity, and featured videos segment will not be interfered Between switching, be inserted into project under the premise of spectators have visual fatigue due to referring to, the clicking rate of spectators can be improved indirectly;And The project that the present invention will promote is inserted into the corresponding position of network video in the form of video, makes the project information to be promoted Spectators are exposed directly to, clicking rate is further improved.
Embodiment 7
The embodiment of the present invention 7 provides a kind of system that pre- promotional items are inserted into network video, as shown in figure 8, project Relating module 60 includes:
Separate submodule 61, for being separated out the I frame of complete projects common in n-th I frame and the N+1 I frame;
Judging submodule 62, for judging the number of common complete projects, if the number of shared complete projects It is 1, Xiang Guanlian submodule 63 sends instruction, if the number of shared complete projects is greater than 1, obtains submodule to maximum value Block 64 sends instruction;
It is associated with submodule 63, selects one and the project name one from database for the project name according to complete projects The corresponding video of the video tab of cause video frame corresponding with the n-th I frame handled by packet loss processing module 50 is associated;
Maximum value acquisition submodule 64, the shared complete item for will be separated out in n-th I frame and the N+1 I frame respectively Mesh proportion in each I frame does weighted average processing, obtains weighted average treated the corresponding complete projects of maximum value Project name, right backward association submodule 63 send instruction.
The present invention further screens the project being inserted into network video, can guarantee to watch net in spectators in this way When network video, it is unlikely to the vision conversion for having too big, ensure that fluency when viewing.
Embodiment 8
The embodiment of the present invention 8 provides a kind of system that pre- promotional items are inserted into network video, as shown in figure 9, packet loss Processing module 50 includes:
Time interval judging submodule 51, for judging the time interval of n-th I frame and the N+1 I frame, if the time Interval is greater than time threshold, sends and instructs to the first packet loss submodule 52, otherwise sends and instructs to the second packet loss submodule 53;
First packet loss submodule 52, for by the corresponding video frame of n-th I frame with the immediate P frame of the N+1 I frame Packet loss processing is carried out with 2 B frames;
Second packet loss submodule 53, for carrying out all P frames in the corresponding video frame of n-th I frame and B frame at packet loss Reason.
When the present invention is inserted into project in corresponding position, further defines and how the sequence frame in video frame is carried out The problems such as packet loss is handled, and not only be ensure that the fluency of viewing, and is also solved network delay.
The present invention is not limited to above-mentioned preferred forms, anyone can show that other are various under the inspiration of the present invention The product of form, however, make any variation in its shape or structure, it is all have communicate with the application or similar Technical solution is within the scope of the present invention.

Claims (6)

1. a kind of method for being inserted into pre- promotional items in network video, which is characterized in that described method includes following steps:
S1: compiling video for the project promoted in advance, and is the addition of each video using project name as the video tab of label, and deposit Storage is in the database;
S2: parsing network video, obtains each video frame for forming the network video, and is each video frame by playing sequence It is numbered;
S3: extracting the I frame in each video frame in order, and the number of each I frame is corresponding with each number of video frames;
S4: judging whether n-th I frame and the N+1 I frame are video Abrupt change, N >=1, if not video Abrupt change, Step S5 is carried out, step S7 is otherwise carried out;The specific method is as follows by step S4:
S41: calculating the ratio X of n-th I frame and the N+1 I frame, and be compared with fractional threshold, if ratio X greater than than It is worth threshold value, then carries out step S7, otherwise carry out step S42, ratio X is calculated as follows:
HNAnd HN+1Respectively indicate the histogram of the DC image of n-th I frame and the N+1 I frame;
S42: the difference in n-th I frame, N+1 and the N+2 I frame between every adjacent two I frame is calculated, and is handled, in turn Judge whether n-th I frame and the N+1 I frame are video Abrupt change;
S5: by video frame corresponding to n-th I frame B frame and/or P frame carry out packet loss processing;
Specific method described in step S5 includes the following steps:
S51: judging the time interval of n-th I frame and the N+1 I frame, if time interval is greater than time threshold, carries out step Otherwise S52 carries out step S53;
S52: packet loss processing will be carried out with the immediate P frame of the N+1 I frame and 2 B frames in the corresponding video frame of n-th I frame;
S53: all P frames in the corresponding video frame of n-th I frame and B frame are subjected to packet loss processing;
S6: selected from database a pre- promotional items video and the corresponding video frame of n-th I frame that is handled by step S5 into Row association;
S7: network video is played according to playing sequence.
2. the method for pre- promotional items is inserted into network video as described in claim 1, which is characterized in that described in step S6 Method specifically comprises the following steps:
S61: the I frame of the complete projects common to being separated out in n-th I frame and the N+1 I frame;
S62: the number of the complete projects common to judging carries out step S63 if the number of shared complete projects is 1, The number of shared complete projects is greater than 1, carries out step S64;
S63: it is selected from database according to the project name of complete projects one corresponding with the consistent video tab of the project name Video be associated with the corresponding video frame of n-th I frame by step S5 processing;
S64: by the shared complete projects being separated out in n-th I frame and the N+1 I frame, proportion adds in each I frame respectively Weight average processing, obtains the project name of weighted average treated corresponding complete projects of maximum value, then carries out step S63。
3. the method for pre- promotional items is inserted into network video as described in claim 1, which is characterized in that step S1 is also wrapped Include following steps:
S11: the project information promoted in advance is implanted in two dimensional code;
S12: it is stabbed for load time display time of two dimensional code;
S13: it is stabbed for the pre- promotional items video load time, and it is associated with the timestamp loaded of step S 12;
S14: the two dimensional code after association is shown in the form rolled.
4. the method for pre- promotional items is inserted into network video as described in claim 1, which is characterized in that step S42's Method particularly includes:
S421: the difference A of n-th I frame and the N+1 I frame is calculated separately1And the difference of the N+1 I frame and the N+2 I frame A2
S422: by difference A1With difference A2Summation is done respectively and asks poor processing, obtains A respectivelyWithAnd ADifference
S432: judge AWithWith the size of threshold value T1, and A is judgedDifferenceWith the size of threshold value T2, if AWith> threshold value T1, and ADifference< threshold Value T2 carries out step S7, if threshold value T2 < AWith、ADifference< threshold value T1, T1 > (threshold value T2+ difference A1), carry out step S5.
5. a kind of system for being inserted into pre- promotional items in network video, which is characterized in that the system comprises server (1) and The database to communicate with the server (1), the server (1) include:
Project video editing module (10) for the project promoted in advance to be compiled video, and adds for each video with entry name The referred to as video tab of label, and store in the database;
Network video processing module (20), for parsing to network video, acquisition forms each video frame of the network video, And it is numbered by playing sequence for each video frame;
I frame abstraction module (30), for extracting the I frame in each video frame, the number and each number of video frames of each I frame in order It is corresponding;
Abrupt change judgment module (40), for judging whether n-th I frame and the N+1 I frame are video Abrupt change, N >=1, If not video Abrupt change, packet loss instruction is sent to packet loss processing module (50), otherwise to network video playing module (70) play instruction in sequence is sent;
Packet loss processing module (50), by video frame corresponding to n-th I frame and the N+1 I frame B frame and/or P frame carry out Packet loss processing;
The packet loss processing module (50) includes:
Time interval judging submodule (51), for judging the time interval of n-th I frame and the N+1 I frame, if between the time It every being greater than time threshold, sends and instructs to the first packet loss submodule (52), otherwise send and instruct to the second packet loss submodule (53);
First packet loss submodule (52), for by the corresponding video frame of n-th I frame with the immediate P frame of the N+1 I frame and 2 A B frame carries out packet loss processing;
Second packet loss submodule (53), for all P frames in the corresponding video frame of n-th I frame and B frame to be carried out packet loss processing
Project association module (60), for selecting a pre- promotional items video from database and passing through packet loss processing module (50) The corresponding video frame of n-th I frame of processing is associated;
Network video playing module (70), for playing network video according to playing sequence.
6. the system of pre- promotional items is inserted into network video as claimed in claim 5, which is characterized in that the project is closed Gang mould block (60) includes:
Separate submodule (61), for being separated out the I frame of complete projects common in n-th I frame and the N+1 I frame;
Judging submodule (62), for judging the number of common complete projects, if the number of shared complete projects is 1 A, Xiang Guanlian submodule (63) sends instruction, if the number of shared complete projects is greater than 1, obtains submodule to maximum value Block (64) sends instruction;
It is associated with submodule (63), is selected from database for the project name according to complete projects one consistent with the project name The corresponding video of video tab be associated with the corresponding video frame of n-th I frame by packet loss processing module (50) processing;
Maximum value acquisition submodule (64), the shared complete projects for will be separated out in n-th I frame and the N+1 I frame respectively Proportion does weighted average processing in each I frame, obtains weighted average treated the item of the corresponding complete projects of maximum value Mesh title, right backward association submodule (63) send instruction.
CN201611262045.1A 2016-12-30 2016-12-30 A kind of method and system being inserted into pre- promotional items in network video Active CN106604128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611262045.1A CN106604128B (en) 2016-12-30 2016-12-30 A kind of method and system being inserted into pre- promotional items in network video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611262045.1A CN106604128B (en) 2016-12-30 2016-12-30 A kind of method and system being inserted into pre- promotional items in network video

Publications (2)

Publication Number Publication Date
CN106604128A CN106604128A (en) 2017-04-26
CN106604128B true CN106604128B (en) 2019-10-25

Family

ID=58582812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611262045.1A Active CN106604128B (en) 2016-12-30 2016-12-30 A kind of method and system being inserted into pre- promotional items in network video

Country Status (1)

Country Link
CN (1) CN106604128B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197192B (en) * 2017-05-05 2019-05-24 中广热点云科技有限公司 A kind of method and system for face video in compressed video communication

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685550A (en) * 2011-04-14 2012-09-19 天脉聚源(北京)传媒科技有限公司 Network video advertisement placing method and system
CN103297811A (en) * 2012-02-24 2013-09-11 北京明日时尚信息技术有限公司 Method for realizing video advertisement in intelligently embedding mode
CN104363483A (en) * 2014-12-01 2015-02-18 北京奇艺世纪科技有限公司 Advertisement pushing method and device based on video picture
CN104754367A (en) * 2015-04-07 2015-07-01 腾讯科技(北京)有限公司 Multimedia information processing method and device
CN105554532A (en) * 2016-02-15 2016-05-04 北京中传数广技术有限公司 Method and system for precisely putting advertisements and information in live TV
CN105872740A (en) * 2016-04-28 2016-08-17 黑龙江八农垦大学 Information integrating method and information integrating device
CN105898444A (en) * 2015-12-09 2016-08-24 乐视网信息技术(北京)股份有限公司 Advertisement inter-cut method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685550A (en) * 2011-04-14 2012-09-19 天脉聚源(北京)传媒科技有限公司 Network video advertisement placing method and system
CN103297811A (en) * 2012-02-24 2013-09-11 北京明日时尚信息技术有限公司 Method for realizing video advertisement in intelligently embedding mode
CN104363483A (en) * 2014-12-01 2015-02-18 北京奇艺世纪科技有限公司 Advertisement pushing method and device based on video picture
CN104754367A (en) * 2015-04-07 2015-07-01 腾讯科技(北京)有限公司 Multimedia information processing method and device
CN105898444A (en) * 2015-12-09 2016-08-24 乐视网信息技术(北京)股份有限公司 Advertisement inter-cut method and device
CN105554532A (en) * 2016-02-15 2016-05-04 北京中传数广技术有限公司 Method and system for precisely putting advertisements and information in live TV
CN105872740A (en) * 2016-04-28 2016-08-17 黑龙江八农垦大学 Information integrating method and information integrating device

Also Published As

Publication number Publication date
CN106604128A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN107852252B (en) Fingerprint matching is recognized by automated content to change to detect channel
US9854277B2 (en) System and method for creation and management of advertising inventory using metadata
CN106204168A (en) Commodity barrage display system, unit and method
TW200400764A (en) An object oriented video system
CN111464818B (en) Online live broadcast exhibition hall system
CN104170392A (en) Method, device, system and terminal of inplanting advertisements in files
CN103517087B (en) Stream editing method, system and device, storage method, system and providing system
Van Tassel Digital TV over broadband: Harvesting bandwidth
CN105227864A (en) A kind of picture generates animation and splices with video segment the video editing method synthesized
KR20000058241A (en) Apparatus for editing moving images and method for providing fashion information employing the same
CN105869009A (en) Advertisement playing method and apparatus in video
CN106604128B (en) A kind of method and system being inserted into pre- promotional items in network video
CN102455906A (en) Method and system for changing player skin
CN102184182A (en) Video-orientated value-added information system based on time points and keywords
TW200416561A (en) Efficient means for creating mpeg-4 intermedia format from mpeg-4 textual representation
CN106454442A (en) Advertisement putting method and advertisement receiving end
EP3520062B1 (en) Systems and methods for providing targeted content in an embms stream to a user device
CN101093568A (en) Multiform advertisement process method based on multimedia interactive terminals
Janssen Fashion reporting in cross-national perspective 1955–2005
Sun Chinese celebrity-endorsed TV commercials: A content analysis
CN103679505A (en) System and method for offering and billing advertisement opportunities
CN106851378A (en) The TV programme scene interactive method and apparatus promoted of stage property
CN110602534A (en) Information processing method and device and computer readable storage medium
Seel Digital TV in 3D: a passing fad or the next step in the evolution of digital television?
GB0404657D0 (en) Hierarchical broadcast of UI assets

Legal Events

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