CN104853223B - The inserting method and terminal device of video flowing - Google Patents

The inserting method and terminal device of video flowing Download PDF

Info

Publication number
CN104853223B
CN104853223B CN201510213758.8A CN201510213758A CN104853223B CN 104853223 B CN104853223 B CN 104853223B CN 201510213758 A CN201510213758 A CN 201510213758A CN 104853223 B CN104853223 B CN 104853223B
Authority
CN
China
Prior art keywords
information
video
video data
video flowing
picture frame
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
CN201510213758.8A
Other languages
Chinese (zh)
Other versions
CN104853223A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510213758.8A priority Critical patent/CN104853223B/en
Publication of CN104853223A publication Critical patent/CN104853223A/en
Application granted granted Critical
Publication of CN104853223B publication Critical patent/CN104853223B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations

Abstract

The disclosure is directed to a kind of inserting method of video flowing and terminal devices, instruction information is intercutted by obtaining in video flowing to be played, the first video data corresponding with instruction information is intercutted is obtained from pre-stored information database, is intercutted in video flowing using the first video data, the second video data corresponding with instruction information is intercutted.When realizing broadcasting video flowing, in the case where video stream data need not be distorted, the personalized video content for meeting user's needs is presented to user in real time, it avoids the need for needing to change original video stream data and occupy a large amount of memory space to store according to user in advance, improves flexibility and the efficiency of personalized video broadcasting.

Description

The inserting method and terminal device of video flowing
Technical field
This disclosure relates to field of video broadcasting technology, the more particularly to inserting method and terminal device of a kind of video flowing.
Background technology
Intelligent terminal becomes increasingly popular, and becomes the major way of customer multi-media video-see, by taking mobile phone as an example, uses Family can download interested video content from network side and be watched, or the video content that viewing is locally stored.
In the related technology, video playing be according to the video content recorded, one it is old constant play out, if to change Become content therein such as to break for commercialsy, and in pre-production, original video stream is modified and is updated, cannot meet The demand of user's real-time change has certain limitation.
Invention content
The embodiment of the present disclosure provides a kind of inserting method and terminal device of video flowing.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of inserting method of video flowing is provided, this method includes:
It obtains in video flowing to be played and intercuts instruction information;
It is obtained from pre-stored information database and indicates corresponding first video data of information with described intercut, so as to It intercutted in the video flowing using first video data, intercut corresponding second video data of instruction information with described.
According to the second aspect of the embodiment of the present disclosure, a kind of terminal device is provided, the equipment includes:
First acquisition module is configured as obtaining in video flowing to be played and intercuts instruction information;
Second acquisition module is configured as obtaining from pre-stored information database and intercuts instruction information pair with described The first video data answered;
Playing module is configured to apply first video data and intercuts in the video flowing, intercuts instruction with described Corresponding second video data of information.
According to the third aspect of the embodiment of the present disclosure, a kind of terminal device is provided, which includes:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
It obtains in video flowing to be played and intercuts instruction information;
It is obtained from pre-stored information database and indicates corresponding first video data of information with described intercut;
It intercutted in the video flowing using first video data, intercut corresponding second video of instruction information with described Data.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
Instruction information is intercutted by obtaining in video flowing to be played, obtains and inserts from pre-stored information database Corresponding first video data of instruction information is broadcast, intercutted in video flowing using the first video data, indicate that information is corresponding with intercutting The second video data.When realizing broadcasting video flowing, in the case where video stream data need not be distorted, it is in user in real time The personalized video content for now meeting user's needs avoids the need for needing to change original video stream data and occupying according to user in advance A large amount of memory space is stored, and flexibility and the efficiency of personalized video broadcasting are improved.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and be configured as together with specification explaining the principle of the disclosure.
Fig. 1 is a kind of flow chart of the inserting method of video flowing shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the inserting method of the video flowing shown according to another exemplary embodiment;
Fig. 3 is a kind of flow chart of the inserting method of the video flowing shown according to another exemplary embodiment
Fig. 4 A are a kind of flow charts of the inserting method of the video flowing shown according to another exemplary embodiment;
The screen display of terminal device shown in Fig. 4 B is original picture frame;
The screen display of terminal device shown in Fig. 4 C is to intercut picture frame;
Fig. 5 A are a kind of flow charts of the inserting method of the video flowing shown according to another exemplary embodiment;
The screen display of terminal device shown in Fig. 5 B is original picture frame;
The screen display of terminal device shown in Fig. 5 C is to intercut picture frame;
Fig. 6 is a kind of block diagram of the terminal device shown according to another exemplary embodiment;
Fig. 7 is a kind of block diagram of the terminal device shown according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of the terminal device shown according to another exemplary embodiment;
Fig. 9 is a kind of block diagram of the terminal device shown according to another exemplary embodiment;
Figure 10 is a kind of block diagram of the terminal device shown according to another exemplary embodiment;
Figure 11 is a kind of block diagram of the terminal device shown according to another exemplary embodiment;
Figure 12 is a kind of block diagram of the terminal device shown according to another exemplary embodiment;
Figure 13 is a kind of block diagram of terminal device shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the inserting method of video flowing shown according to an exemplary embodiment, the present embodiment with The inserting method of the video flowing be configured as include show screen terminal device in illustrate.The side of intercutting of the video flowing Method may include the following steps:
In a step 101, it obtains in video flowing to be played and intercuts instruction information.
Terminal device receives the specified video flowing played of user, wherein the specified video flowing played of user is terminal device The video flowing or terminal device for receiving the transmission of remaining network side equipment are stored in advance in the video flowing of terminal device local.
Terminal device obtains from video flowing to be played and intercuts instruction information.Wherein, the side for intercutting instruction information is obtained There are many formula, and the specific manifestation form for intercutting instruction information is also very much, is illustrated below:
Example one indicates to intercut instruction information, corresponding acquisition process in this example by the temporal information of video flowing Specially:
Terminal device obtains the first identifier information of video flowing from the header file of video flowing to be played,
According to the inter cut time information table that the first identifier information searching prestores, which includes video flowing First identifier information and inter cut time correspondence, to from the inter cut time information table obtain with the first identifier believe Cease it is corresponding intercut instruction information, this intercut instruction information include:Intercut initial time and break ends time.
It should be noted that the inter cut time information table can be stored in terminal device local, terminal device is directly at this The content in inter cut time information table is inquired on ground, and this mode improves treatment effect;The inter cut time information table can also store In other equipment, terminal device carries out the content in information exchange inquiry inter cut time information table, this side with other equipment Formula makes all terminal device central access, saves process resource.
Example two indicates to intercut instruction information in this example by the coordinate information on the picture frame of video flowing, corresponding Acquisition process be specially:
Terminal device obtains the second identifier information of the picture frame of video flowing to be played,
Coordinate information table is intercutted according to what the second identifier information searching prestored, it includes video flowing that this, which intercuts coordinate information table, In each picture frame second identifier information and intercut the correspondence of coordinate, obtained to be intercutted in coordinate information table from this Take it is corresponding with the second identifier information intercut instruction information, this intercut instruction information include:It is multiple to intercut coordinate information.
It should be noted that this, which intercuts coordinate information table, can be stored in terminal device local, terminal device is directly at this The content in coordinate information table is intercutted in ground inquiry, and this mode improves treatment effect;This intercuts coordinate information table and can also store In other equipment, terminal device carries out information exchange with other equipment and inquires the content intercutted in coordinate information table, this side Formula makes all terminal device central access, saves process resource.
Example three indicates to intercut instruction information in this example by the pattern characteristics information on the picture frame of video flowing, Corresponding acquisition process is specially:
Terminal device obtains the pattern characteristics information of the picture frame of video flowing to be played, the specific manifestation of pattern characteristics information Form is depending on types of patterns, for example, by detection pattern content, if knowing, the pattern includes character face, with the personage The corresponding pattern characteristics information of face may include:Hear features or FisherFace features or LBPH features;If obtaining It includes character face to know the pattern not, then pattern characteristics information corresponding with the pattern may include:Color histogram feature etc..
Instruction is intercutted according to whether the pattern characteristics database identification icon characteristic information to prestore is that user is preassigned Information;Wherein, pattern characteristics database includes sample patterns characteristic information corresponding with instruction information is intercutted.
It should be noted that the pattern characteristics database can be stored in terminal device local, terminal device is directly at this Content in ground matched patterns property data base, this mode improve treatment effect;The pattern characteristics database can also store In other equipment, terminal device carries out the content in information exchange matched patterns property data base, this side with other equipment Formula makes all terminal device central access, saves process resource.
Example four indicates to intercut instruction information in this example by the spectrum signature information on the picture frame of video flowing, Corresponding acquisition process is specially:
Terminal device obtains the spectrum signature information of video flowing to be played, wherein the spectrum signature information of video flowing can be with Including spectral signature information corresponding with picture in video flowing, and/or spectrum signature information corresponding with sound.
Instruction is intercutted according to whether the spectral feature data library identification spectrum signature information to prestore is that user is preassigned Information;Wherein, spectral feature data library includes sample spectra characteristic information corresponding with instruction information is intercutted.
It should be noted that the spectral feature data library can be stored in terminal device local, terminal device is directly at this Ground matches the content in spectral feature data library, and this mode improves treatment effect;The spectral feature data library can also store In other equipment, terminal device carries out information exchange with other equipment and matches the content in spectral feature data library, this side Formula makes all terminal device central access, saves process resource.
In a step 102, it is obtained from pre-stored information database and intercuts instruction information corresponding first with described Video data.
Terminal device obtains from pre-stored information database according to the instruction information of intercutting of acquisition and intercuts finger with this Show corresponding first video data of information.Wherein, the first video data is the content to be intercutted, that is to say, that is being played During video flowing, do not present in the video flowing with intercut corresponding second video data of instruction information, but present this One video data.
The correspondence for intercutting instruction information and the first video data is stored in information database, the present embodiment is to storage The form of expression of mode is not specifically limited, for example, can be stored according to the Type division for intercutting instruction information, according to step Four kinds of forms of instruction information are intercutted in example expression in 101, can be with pair of classification storage temporal information and the first video data Should be related to, the correspondence of the correspondence of coordinate information and the first video data, pattern characteristics information and the first video data, The correspondence of spectrum signature information and the first video data.It is intercutted with this so as to efficiently be obtained from information database Indicate corresponding first video data of information.
It should be noted that the information database can be stored in terminal device local, terminal device is directly looked into locally Information database is looked for obtain the first video data, this mode improves treatment effect;The information database can also be stored in it In his equipment, terminal device carries out information exchange with other equipment and searches information database the first video data of acquisition, this side Formula makes all terminal device central access, saves process resource.
In step 103, it intercutted in the video flowing using first video data, intercut instruction information pair with described The second video data answered.
Terminal device is during playing video flowing, when being played to and intercut corresponding second video data of instruction information When, it is intercutted using the first video data obtained from information database, to export the first video data to user.Cause This, inserting method provided in this embodiment is to intercut instruction information reality according to what is obtained in advance during video render When export the first video data of break-in content, meet the individualized video content of user demand to be presented to user.
In conclusion the inserting method of video flowing provided in this embodiment, by obtaining intercutting in video flowing to be played It indicates information, obtained from pre-stored information database and intercuts corresponding first video data of instruction information, using the One video data intercuts in video flowing, the second video data corresponding with instruction information is intercutted.When realizing broadcasting video flowing, In the case of video stream data need not being distorted, the personalized video content for meeting user's needs is presented to user in real time, avoids It needs to need to change original video stream data and occupy a large amount of memory space to store according to user in advance, improves individual character and regard The flexibility and efficiency that frequency plays.
For in embodiment illustrated in fig. 1, terminal device is intercutted in the video flowing using first video data and institute Stating the realization method for intercutting corresponding second video data of instruction information has very much, such as:Mode is intercutted in covering, or switching is inserted Broadcast mode, terminal device can intercut that scene selection is corresponding to intercut mode according to specific, and the present embodiment is without limitation. It is illustrated below:
It, can be with if being that the subregion on picture frame for video flowing is intercutted according to instruction acquisition of information is intercutted Mode is intercutted using covering, if being the whole region being directed on the continuous picture frame of video flowing according to instruction acquisition of information is intercutted It is intercutted, then switching may be used and intercut mode, be described in detail below by Fig. 2 and embodiment illustrated in fig. 3.
Fig. 2 is a kind of flow chart of the inserting method of the video flowing shown according to another exemplary embodiment, the present embodiment Should be configured as with the inserting method of the video flowing include show screen terminal device in illustrate.The present embodiment is needle The case where to indicating to intercut instruction information with inter cut time, break-in content are the whole of continuous picture frame on continuous video flowing Region, such as the advertisement that continues for some time, then intercuts the application scenarios that mode is intercutted using switching, which inserts Broadcasting method may include the following steps:
In step 201, the first identifier information of video flowing is obtained from the header file of video flowing to be played.
In step 202, the inter cut time information table to be prestored according to the first identifier information searching obtains and described the One identification information it is corresponding intercut instruction information, the instruction information of intercutting includes:Intercut initial time and break ends time.
In step 203, it is obtained from pre-stored information database and intercuts instruction information corresponding first with described Video data.
The specific implementation mode of step 201- steps 203 may refer to the step in embodiment illustrated in fig. 1 in the present embodiment 101- steps 102, implementation process is similar with technical principle, and details are not described herein again.
In step 204, during playing the video flowing, stopped described in broadcasting according to the instruction information of intercutting Second video data, and first video data is played simultaneously.
Terminal device is during playing video flowing, when being played to the second video data corresponding with initial time is intercutted When, stop playing the second video data corresponding with initial time is intercutted, but is intercutted from information data intercutting initial time The first video data obtained in library;When reaching the break ends time, stop play the first video data when, continue play with Break ends time corresponding second video data.To during video render, from initial time is intercutted to intercutting End time exports break-in content i.e. the first video data in real time, to which the individualized video for meeting user demand be presented to user Content.
In conclusion the inserting method of video flowing provided in this embodiment, by obtaining intercutting in video flowing to be played Time indicates information, and the first video counts corresponding with inter cut time instruction information are obtained from pre-stored information database According to being intercutted in video flowing using the switching of the first video data, indicate corresponding second video data of information with intercutting.It realizes and broadcasts When putting video flowing, in the case where that need not distort video stream data, switching in real time, which is intercutted to present to user, meets user's needs Personalized video content, avoid the need for needing to change according to user in advance original video stream data and occupying a large amount of memory space It is stored, improves flexibility and the efficiency of personalized video broadcasting.
Fig. 3 is a kind of flow chart of the inserting method of the video flowing shown according to another exemplary embodiment, the present embodiment Should be configured as with the inserting method of the video flowing include show screen terminal device in illustrate.The present embodiment is needle The case where to indicating to intercut instruction information with pattern characteristics information, break-in content are the subregion of the picture frame of video flowing, than Such as character face, then the application scenarios that mode is intercutted are intercutted using covering, the inserting method of the video flowing may include as Under several steps:
In step 301, the pattern characteristics information of the picture frame of video flowing to be played is obtained.
First, the pattern characteristics information of the picture frame of video flowing to be played is obtained, specific acquisition modes illustrate such as Under:
Mode one, according to pre-set unit window, such as long 30 pixels, the unit window of wide 30 pixel, to the figure The characteristic information in all regions is extracted one by one on piece frame, for example, the picture frame is one long 900 pixel, wide 900 pixel Picture, using long 30 pixels, the unit window of wide 30 pixel carries out feature extraction to picture frame, needs to extract 400 features The universality of information, this mode is very strong, can be directed to all types of patterns.
Facial knowledge may be used if the preassigned pattern for intercutting instruction information of user is character face in mode two Other processing model such as neural network model or grader comparison model first determine facial area, in turn in picture frame Face feature information is being extracted from the facial area, is avoiding the feature for extracting the picture one by one from all areas of picture frame Information, this mode improve treatment effeciency to the object content for being easy positioning regional area.
In step 302, identify whether the pattern characteristics information is that user is pre- according to the pattern characteristics database to prestore First specified intercuts instruction information;Wherein, the pattern characteristics database includes intercutting the corresponding sample of instruction information with described Pattern characteristics information.
Whether terminal device is use according to the pattern characteristics information that the identification of pattern characteristics database is obtained from the picture frame What family was specified intercuts instruction information, wherein pattern characteristics database includes sample patterns feature corresponding with instruction information is intercutted Information by pattern characteristics database and intercuts the corresponding sample characteristics information of instruction information and from the picture frame to terminal device The pattern characteristics information of middle acquisition matches one by one, if successful match, illustrates to intercut finger there are user is preassigned in picture frame Show information;If it fails to match, illustrate to intercut instruction information there is no user is preassigned in picture frame.
It should be noted that the service provider that the content in pattern characteristics database can be video flowing has been cured Sample characteristics information.More it is flexibly that property data base, can be in addition to the sample characteristics information including having been cured before Including being directed to the video flowing that user sends, the sample patterns feature letter for intercutting instruction information and generating specified according to user in real time Breath.
In step 303, it is obtained from pre-stored information database and intercuts instruction information corresponding first with described Video data.
The specific implementation mode of step 303 may refer to the step 102 in embodiment illustrated in fig. 1 in the present embodiment, in fact It is similar with technical principle to apply process, details are not described herein again.
In step 304, it determines on the picture frame of the video flowing, intercut corresponding second video of instruction information with described First position region of the data on the picture frame.
If terminal device judgement, which is known in picture frame, intercuts instruction information there are user is preassigned, pass through image side Boundary track algorithm, which is obtained, intercuts the smoothness for indicating borderline region of corresponding second video data of information on picture frame with this; Wherein, image boundary track algorithm includes the image boundary track algorithm based on two-value, the tracking calculation of the image boundary based on small echo Method etc. can be selected according to actual application, and then obtain second video counts by image boundary track algorithm According to the smoothness on the boundary on picture frame.
Judge whether the smoothness reaches preset threshold value, it should be noted that different image boundary track algorithms It is preset with different threshold values, for example, the corresponding threshold value of image boundary track algorithm based on two-value is A, based on small echo The corresponding threshold value of image boundary track algorithm is B, therefore, according to the algorithm of use by the smoothness of acquisition and corresponding thresholding Value is compared, and when judgement is known and reaches preset threshold value with the smoothness, then illustrates that zone boundary is easy to be split Processing, directly using the boundary of second video data on picture frame as first position region.Judging to know that smoothness does not have Have when reaching preset threshold value, then illustrates that zone boundary is not easy to be split processing, it can be according to preset compensating parameter Determine smooth region corresponding with zone boundary, and then using smooth region as first position region.
In step 305, it is shown according to first position region determination for showing the screen of the picture frame, corresponding to Show the second position region of second video data.
Terminal device according to the first position for intercutting corresponding second video data of instruction information on picture frame Region, the second position region for determining the screen for showing picture frame, corresponding to display target content.It should be noted that It determines that there are many realization method in the second position region on screen according to the first position region of picture frame, is illustrated below;
Mode one,
Picture frame is zoomed in and out first, wherein what first position region also synchronized zooms in and out;
When picture frame is zoomed to screen size, the first position area information after record scaling, the first position area Domain information can be as the second position region of screen, corresponding display target content for showing the picture frame.
Mode two,
Multiple first coordinate informations on the region of first position are obtained first, for example, it is assumed that first position region is pros Shape, multiple first coordinate informations corresponding with the first position region can be the coordinate information at four angles;Assuming that first position Region is circle, and multiple first coordinate informations corresponding with the first position region can be at least two diameters and circular boundary Intersecting point coordinate information;
According to the dimension scale of the picture frame and the screen, multiple first coordinates on the region of first position are adjusted in proportion Information obtains multiple second coordinate informations corresponding with multiple first coordinate information;
Screen for showing the picture frame can be determined according to multiple second coordinate information, in corresponding display target The second position region of appearance.
Within step 306, UI layers of user interface is generated, wherein corresponding with the second position region on the UI layers Region, which is drawn, first video data.
Terminal device application UI controls generate UI layers of new free user interface;
Then the UI elements that parsing obtains the first video data are carried out to the file for being stored with the first video data, and should UI elements are added on blank UI layers, on screen for showing that the second position region of the first video data coincide corresponding portion Point.
In step 307, during playing the video flowing, described UI layers is covered according to the instruction information of intercutting It covers on second video data.
Terminal device play video flowing during, when the screen display picture frame, by with the second position on screen Coincide corresponding part of region draws and has the UI layers of the first video data to cover on the picture frame, so that first video Data cover the second video data corresponding with instruction information is intercutted, the personalization to meet user demand to user's presentation regard Frequency content.
In conclusion the inserting method of video flowing provided in this embodiment, by obtaining intercutting in video flowing to be played Time indicates information, and the first video counts corresponding with inter cut time instruction information are obtained from pre-stored information database According to being intercutted in video flowing using the switching of the first video data, indicate corresponding second video data of information with intercutting.It realizes and broadcasts When putting video flowing, in the case where that need not distort video stream data, covering in real time, which is intercutted to present to user, meets user's needs Personalized video content, avoid the need for needing to change according to user in advance original video stream data and occupying a large amount of memory space It is stored, improves flexibility and the efficiency of personalized video broadcasting.
It, can basis for there are many UI layers of generating mode in embodiment illustrated in fig. 3 and the realization rates of coverage mode It is different that proportion or the arrangement mode etc. that the second video data corresponding with instruction information is intercutted accounts for picture frame carry out selection UI layer treatment technologies be described in detail below by Fig. 4 and embodiment illustrated in fig. 5 with improving treatment effeciency.
Fig. 4 A are a kind of flow chart of the inserting method of the video flowing shown according to another exemplary embodiment, the present embodiment Should be configured as with the inserting method of the video flowing include show screen terminal device in illustrate.Needle in the present embodiment The instruction information of intercutting specified to user is the first character face, and the distributed areas of first character face on picture frame are only One application scenarios are realized that the inserting method of the video flowing may include following several using UI layers of Local treatment mode A step:
In step 401, the facial characteristics range obtained according to advance training determines on the picture frame of video flowing to be played Facial area.
Feature corresponding with unit window on picture frame is extracted according to preset unit window, is obtained according to advance training Facial characteristics range judges whether this feature belongs to the range intervals, if this feature belongs to the range intervals, illustrates and this feature Corresponding region is facial area, if this feature is not belonging to the range intervals, it is face to illustrate region corresponding with this feature not Region, to the facial area on Quick positioning map piece frame.Wherein, facial characteristics may include:Hear features or FisherFace features or LBPH features can be selected according to application.
In step 402, facial characteristics is extracted from the facial area.
Facial feature extraction is carried out from positions such as profile, eyebrow, eyes, nose, lips in facial area.
In step 403, by the facial characteristics and pattern characteristics database, user is preassigned intercuts instruction letter Corresponding sample face feature is ceased to be matched.
In step 404, instruction information is intercutted described in presence, it is determined that intercut instruction information pair with described if judging to know First position region of the second video data answered on the picture frame.
In step 405, it is shown according to first position region determination for showing the screen of the picture frame, corresponding to Show the second position region of second video data.
In a step 406, the UI layers coincideing with the second position zone boundary are generated, wherein drawn on UI layers entire First video data.
Terminal device application UI controls generate UI layers of new free user interface, the UI layers of zone boundary and the second position Zone boundary, which coincide, to be corresponded to, and then carries out the UI members that parsing obtains the first video data to the file for being stored with the first video data Element, and the UI elements are added on entire blank UI layers.
In step 407, during playing the video flowing, described UI layers is kissed according to the instruction information of intercutting The second position region is covered in conjunction.
During terminal device plays video flowing, when the screen display picture frame, the UI layers is coincide and covers use In the second position region for showing the picture frame, so that first video data covers the second video data, to use The individualized video content for meeting user demand is presented in family.
As an example, the screen display of terminal device shown in Fig. 4 B is original picture frame, terminal shown in Fig. 4 C The screen display of equipment is to intercut picture frame, shown in Fig. 4 B and Fig. 4 C,
Assuming that the second video data corresponding with instruction information is intercutted that user specifies is " Doraemon face " on picture frame, First video data is " Little Bear face ", specifically, by sample corresponding with " Doraemon face " in pattern characteristics database Facial characteristics is matched with the facial characteristics extracted from facial area, if successful match, judgement knows that facial area is " machine Device cat face " then carries out parsing to the file for being stored with " Little Bear face " and obtains UI elements, and the UI elements are added to side Boundary coincide with second position zone boundary on corresponding blank UI layers.
During terminal device plays video flowing, when the screen display picture frame, the UI layers is coincide and covers use In showing Doraemon facial area on the picture frame, so that " Little Bear face " covering " Doraemon face " is somebody's turn to do, to use The individualized video content for meeting user demand is presented in family.
In conclusion the inserting method of video flowing provided in this embodiment, is realized using UI layers of Local treatment mode and is covered Lid intercuts, and in the case where that need not distort video stream data, the individual character for meeting user's needs can be presented to user in real time Video content improves treatment effeciency, has saved process resource.
Fig. 5 A are a kind of flow chart of the inserting method of the video flowing shown according to another exemplary embodiment, the present embodiment Should be configured as with the inserting method of the video flowing include show screen terminal device in illustrate.Needle in the present embodiment The instruction information of intercutting specified to user is multiple patterns, the applied field of distributed areas dispersion of multiple patterns on picture frame Scape is realized that the inserting method of the video flowing may include the following steps using UI layers of disposed of in its entirety mode:
In step 501, the area of the pattern on the picture frame of video flowing to be played is determined according to boundary profile algorithm.
Area of the pattern all on picture frame is determined based on boundary profile algorithm.
In step 502, pattern characteristics are extracted from the area of the pattern.
Pattern characteristics are extracted from area of the pattern, pattern characteristics include color histogram, alternatively, histogram of gradients.
In step 503, by the pattern characteristics and pattern characteristics database, user is preassigned intercuts instruction letter Corresponding sample patterns feature is ceased to be matched.
In step 504, instruction information is intercutted described in presence, it is determined that intercut instruction information pair with described if judging to know First position region of the second video data answered on the picture frame.
In step 505, it is shown according to first position region determination for showing the screen of the picture frame, corresponding to Show the second position region of second video data.
In step 506, the UI layers coincideing with the screen border are generated;Wherein, on the UI layers with described second The band of position, which coincide on corresponding the third place region, draws first video data, and except the third place region Part carry out transparent processing.
Terminal device application UI controls generate UI layers of new free user interface, the UI layers of zone boundary and screen border It coincide and corresponds to, the UI elements that parsing obtains the first video data then are carried out to the file for being stored with the first video data, and will The UI elements are added on UI layers, coincide corresponding the third place region with the second position region on screen, and on UI layers, Part except the third place region carries out transparent processing.
In step 507, during playing the video flowing, indicate that information is whole by described UI layers according to described intercut Body covers on the screen.
During terminal device plays video flowing, when the screen display picture frame, the UI layers of entirety is covered this On picture frame, so that first video data covers the second video data, meet user demand to be presented to user Individualized video content.
As an example, the screen display of terminal device shown in Fig. 5 B is original picture frame, terminal shown in Fig. 5 C The screen display of equipment is to intercut picture frame, shown in Fig. 5 B and Fig. 5 C,
Assuming that the instruction information of intercutting that user specifies includes first pattern and the second pattern, corresponding with the first pattern second Video data is on the picture frame " lower part of the body of health husband ", and corresponding first video data is " tail of mermaid ", with second Corresponding second video data of pattern is " the Doraemon crown ", and corresponding first video data is " the machine cat head with aircraft Top ", specifically, by the corresponding sample patterns feature of first pattern and the second pattern in pattern characteristics database with from pattern area The pattern characteristics of domain extraction are matched, if successful match, judgement knows that area of the pattern is " lower part of the body of health husband " and " machine Cat head top " then parses the file for being stored with " tail of mermaid " and " the Doraemon crown with aircraft " pattern UI elements are obtained, and the UI elements are added on UI layers, corresponding the third place of coincideing with the second position region on screen Part on region, and except the third place region carries out transparent processing.
During terminal device plays video flowing, when the screen display picture frame, the UI layers of entirety is covered this On picture frame, so that " tail of mermaid " pattern covers " lower part of the body of health husband " pattern, " the machine cat head with aircraft Top " pattern covers " the Doraemon crown " pattern, to which the individualized video content for meeting user demand be presented to user.
In conclusion the inserting method of video flowing provided in this embodiment, is realized using UI layers of disposed of in its entirety mode and is covered Lid intercuts, and in the case where that need not distort video stream data, the individual character for meeting user's needs can be presented to user in real time Video content improves treatment effeciency, has saved process resource.
Following is embodiment of the present disclosure, can be configured as execution embodiments of the present disclosure.The disclosure is filled Undisclosed details in embodiment is set, embodiments of the present disclosure is please referred to.
Fig. 6 is a kind of block diagram of terminal device shown according to an exemplary embodiment, as shown in fig. 6, the terminal device, Including:First acquisition module 11, the second acquisition module 12 and playing module 13, wherein
First acquisition module 11 is configured as obtaining in video flowing to be played and intercuts instruction information;
Second acquisition module 12 is configured as obtaining from pre-stored information database and intercuts instruction information with described Corresponding first video data;
Playing module 13 is configured to apply first video data and intercuts in the video flowing, intercuts finger with described Show corresponding second video data of information.
The function and process flow of each module in terminal device provided in this embodiment, may refer to it is above-mentioned shown in method Embodiment, realization principle is similar, and details are not described herein again.
Terminal device provided in this embodiment intercuts instruction information by obtaining in video flowing to be played, is deposited from advance The first video data corresponding with instruction information is intercutted is obtained in the information database of storage, and video is intercutted using the first video data In stream, with intercut corresponding second video data of instruction information.When realizing broadcasting video flowing, video fluxion need not distorted In the case of, the personalized video content for meeting user's needs is presented to user in real time, avoids the need in advance according to user's need It changes original video stream data and occupies a large amount of memory space and stored, improve flexibility and the effect of personalized video broadcasting Rate.
Fig. 7 is a kind of block diagram of the terminal device shown according to another exemplary embodiment, as shown in fig. 7, being based on Fig. 6 institutes Show embodiment, the first acquisition module 11, including:First acquisition unit 111 and the first query unit 112, wherein
First acquisition unit 111 is configured as obtaining the first identifier of video flowing from the header file of video flowing to be played Information;
First query unit 112 is configured as the inter cut time information table to prestore according to the first identifier information searching, Acquisition is corresponding with the first identifier information to intercut instruction information, and the instruction information of intercutting includes:Intercut initial time and The break ends time.
The function and process flow of each module in terminal device provided in this embodiment, may refer to it is above-mentioned shown in method Embodiment, realization principle is similar, and details are not described herein again.
Fig. 8 is a kind of block diagram of the terminal device shown according to another exemplary embodiment, as shown in figure 8, being based on Fig. 6 institutes Show embodiment, the first acquisition module 11, including:Second acquisition unit 113 and the second query unit 114, wherein
Second acquisition unit 113 is configured as obtaining the second identifier information of the picture frame of video flowing to be played;
Second query unit 114 is configured as intercutting coordinate information table according to what the second identifier information searching prestored, Acquisition is corresponding with the second identifier information to intercut instruction information, and the instruction information of intercutting includes:It is multiple to intercut coordinate letter Breath.
The function and process flow of each module in terminal device provided in this embodiment, may refer to it is above-mentioned shown in method Embodiment, realization principle is similar, and details are not described herein again.
Fig. 9 is a kind of block diagram of the terminal device shown according to another exemplary embodiment, as shown in figure 9, being based on Fig. 6 institutes Show embodiment, the first acquisition module 11, including:Third acquiring unit 115 and the first recognition unit 116, wherein
Third acquiring unit 115 is configured as obtaining the pattern characteristics information of the picture frame of video flowing to be played;
First recognition unit 116 is configured as identifying the pattern characteristics information according to the pattern characteristics database to prestore Whether be that user is preassigned intercuts instruction information;Wherein, the pattern characteristics database includes intercutting instruction letter with described Cease corresponding sample patterns characteristic information.
The function and process flow of each module in terminal device provided in this embodiment, may refer to it is above-mentioned shown in method Embodiment, realization principle is similar, and details are not described herein again.
Figure 10 is a kind of block diagram of the terminal device shown according to another exemplary embodiment, as shown in Figure 10, is based on Fig. 6 Illustrated embodiment, the first acquisition module 11, including:4th acquiring unit 117 and the second recognition unit 118, wherein
4th acquiring unit 117 is configured as obtaining the spectrum signature information of video flowing to be played;
Second recognition unit 118 is configured as identifying the spectrum signature information according to the spectral feature data library to prestore Whether be that user is preassigned intercuts instruction information;Wherein, the spectral feature data library includes intercutting instruction letter with described Cease corresponding sample spectra characteristic information.
The function and process flow of each module in terminal device provided in this embodiment, may refer to it is above-mentioned shown in method Embodiment, realization principle is similar, and details are not described herein again.
Figure 11 is a kind of block diagram of the terminal device shown according to another exemplary embodiment, as shown in figure 11, is based on Fig. 6 Illustrated embodiment, playing module 13, including:Control unit 131 and first intercuts unit 132, wherein
Control unit 131 is configured as during playing the video flowing, is stopped according to the instruction information of intercutting Play second video data;
First intercuts unit 132, is configured as that first video data is played simultaneously.
The function and process flow of each module in terminal device provided in this embodiment, may refer to it is above-mentioned shown in method Embodiment, realization principle is similar, and details are not described herein again.
In conclusion terminal device provided in this embodiment, is indicated by the inter cut time obtained in video flowing to be played Information obtains from pre-stored information database and indicates corresponding first video data of information with inter cut time, using the The switching of one video data intercuts in video flowing, indicates corresponding second video data of information with intercutting.Realize broadcasting video flowing When, in the case where video stream data need not be distorted, in real time switching intercut to user present meet user needs individual character regard Frequency content avoids the need for needing to change original video stream data and occupy a large amount of memory space to deposit according to user in advance Storage improves flexibility and the efficiency of personalized video broadcasting.
Figure 12 is a kind of block diagram of the terminal device shown according to another exemplary embodiment, as shown in figure 12, is based on Fig. 6 Illustrated embodiment, playing module 13, including:First positioning unit 133, the second positioning unit 134, drawing unit 135 and second Intercut unit 136, wherein
First positioning unit 133 is configured to determine that on the picture frame of the video flowing, intercuts instruction information pair with described First position region of the second video data answered on the picture frame;
Second positioning unit 134 is configured as being determined for showing the picture frame according to the first position region On screen, correspond to the second position region for showing second video data;
Drawing unit 135 is configurable to generate UI layers of user interface, wherein on the UI floor and second position area The corresponding region in domain, which is drawn, first video data;
Second intercuts unit 136, is configured as during playing the video flowing, and instruction information is intercutted according to described Described UI layers is covered on second video data.
The function and process flow of each module in terminal device provided in this embodiment, may refer to it is above-mentioned shown in method Embodiment, realization principle is similar, and details are not described herein again.
In conclusion terminal device provided in this embodiment, is indicated by the inter cut time obtained in video flowing to be played Information obtains from pre-stored information database and indicates corresponding first video data of information with inter cut time, using the The switching of one video data intercuts in video flowing, indicates corresponding second video data of information with intercutting.Realize broadcasting video flowing When, in the case where video stream data need not be distorted, in real time covering intercut to user present meet user needs individual character regard Frequency content avoids the need for needing to change original video stream data and occupy a large amount of memory space to deposit according to user in advance Storage improves flexibility and the efficiency of personalized video broadcasting.
Further, the first positioning unit 133, is configured as:
Whether the smoothness based on image boundary track algorithm detection zone boundary corresponding with second video data Reach preset threshold value;
If judgement knows that the smoothness reaches the threshold value, will regional edge corresponding with second video data Boundary is as the first position region;
If judgement knows that the smoothness does not reach the threshold value, it is determined that corresponding with the zone boundary smooth Region, and using the smooth region as the first position region.
Further, the second positioning unit 134, is configured as:
According to the dimension scale of the picture frame and the screen, adjust in proportion multiple on the first position region First coordinate information obtains multiple second coordinate informations corresponding with the multiple first coordinate information;
The second position region on the screen is determined according to the multiple second coordinate information.
Further, drawing unit 135 are configured as:
Generate the UI layers coincideing with the second position zone boundary, wherein draw first video on UI layers entire Data identical cover institute so as to during playing the video flowing according to the instruction information of intercutting by described UI layer State second position region.
In conclusion terminal device provided in this embodiment, realizes that covering is intercutted using UI layers of Local treatment mode, In the case of video stream data need not being distorted, the personalized video content for meeting user's needs can be presented to user in real time, Treatment effeciency is improved, process resource has been saved.
Further, drawing unit 135 are configured as:
Generate the UI layers coincideing with the screen border;Wherein, it coincide with the second position region on the UI layers First video data is drawn on corresponding the third place region, and the part except the third place region carries out thoroughly Daylight is managed, during playing the video flowing, to be covered described UI layers entirety according to the instruction information of intercutting On the screen.
In conclusion terminal device provided in this embodiment, realizes that covering is intercutted using UI layers of disposed of in its entirety mode, In the case of video stream data need not being distorted, the personalized video content for meeting user's needs can be presented to user in real time, Treatment effeciency is improved, process resource has been saved.
Figure 13 is a kind of block diagram of terminal device shown according to an exemplary embodiment.For example, terminal device 1300 can To be mobile phone, computer, tablet device etc..
Referring to Fig.1 3, terminal device 1300 may include following one or more components:Processing component 1302, memory 1304, power supply module 1306, multimedia component 1308, audio component 1310, the interface 1312 of input/output (I/O), sensor Component 1314 and communication component 1316.
The integrated operation of 1302 usual control terminal equipment 1300 of processing component, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 1302 may include one or more processors 1320 It executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1302 may include one or more Module, convenient for the interaction between processing component 1302 and other assemblies.For example, processing component 1302 may include multimedia mould Block, to facilitate the interaction between multimedia component 1308 and processing component 1302.
Memory 1304 is configured as storing various types of data to support the operation in terminal device 1300.These numbers According to example include any application program or method that are configured as operating on terminal device 1300 instruction, contact number According to, telephone book data, message, picture, video etc..Memory 1304 can be by any kind of volatibility or non-volatile memories Equipment or combination thereof are realized, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1306 provides electric power for the various assemblies of terminal device 1300.Power supply module 1306 may include power supply Management system, one or more power supplys and other with for terminal device 1300 generate, management and distribution associated group of electric power Part.
Multimedia component 1308 is included in touching for one output interface of the offer between the terminal device 1300 and user Control display screen.In some embodiments, touching display screen may include liquid crystal display (LCD) and touch panel (TP).It touches Panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.The touch sensor The boundary of a touch or slide action can be not only sensed, but also detects the duration associated with the touch or slide operation And pressure.In some embodiments, multimedia component 1308 includes a front camera and/or rear camera.Work as terminal Equipment 1300 is in operation mode, and when such as screening-mode or video mode, front camera and/or rear camera can receive External video data.Each front camera and rear camera can be a fixed optical lens system or have burnt Away from and optical zoom ability.
Audio component 1310 is configured as output and/or input audio signal.For example, audio component 1310 includes a wheat Gram wind (MIC), when terminal device 1300 is in operation mode, when such as call model, logging mode and speech recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1304 or via Communication component 1316 is sent.In some embodiments, audio component 1310 further includes a loud speaker, is configured as output audio Signal.
I/O interfaces 1312 provide interface, above-mentioned peripheral interface module between processing component 1302 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor module 1314 includes one or more sensors, is configured as providing various aspects for terminal device 1300 Status assessment.For example, sensor module 1314 can detect the state that opens/closes of terminal device 1300, the phase of component It is the display and keypad of terminal device 1300 to positioning, such as the component, sensor module 1314 can also detect end The position change of 1,300 1 components of end equipment 1300 or terminal device, the presence or do not deposit that user contacts with terminal device 1300 In the temperature change of 1300 orientation of terminal device or acceleration/deceleration and terminal device 1300.Sensor module 1314 may include Proximity sensor is configured to detect the presence of nearby objects without any physical contact.Sensor module 1314 It can also be configured as using in imaging applications such as CMOS or ccd image sensor including optical sensor.In some implementations In example, which can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor Or temperature sensor.
Communication component 1316 is configured to facilitate the logical of wired or wireless way between terminal device 1300 and other equipment Letter.Terminal device 1300 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.One In a exemplary embodiment, communication component 1316 via broadcast channel receive broadcast singal from external broadcasting management system or Broadcast related information.In one exemplary embodiment, the communication component 1316 further includes near-field communication (NFC) module, with Promote short range communication.For example, can be based on radio frequency identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology surpasses Broadband (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 1300 can by one or more application application-specific integrated circuit (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field-programmable gate array Arrange (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, be configured as executing above-mentioned document and show Method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 1304 of instruction, above-metioned instruction can be executed by the processor 1320 of terminal device 1300 to complete above-mentioned side Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by terminal device 1300 When processor executes so that terminal device 1300 is able to carry out a kind of document display method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (9)

1. a kind of inserting method of video flowing, which is characterized in that the method includes:
It obtains in video flowing to be played and intercuts instruction information;
It is obtained from pre-stored information database and indicates corresponding first video data of information with described intercut;
It intercutted in the video flowing using first video data, intercut corresponding second video counts of instruction information with described According to;
Wherein, the application first video data intercuts in the video flowing, indicates information corresponding the with described intercut Two video datas, including:
Determine on the picture frame of the video flowing, with corresponding second video data of instruction information that intercuts in the picture frame On first position region;
Screen, corresponding display second video counts for showing the picture frame are determined according to the first position region According to second position region;
Generate UI layer of user interface, wherein the drafting of corresponding with second position region region has described the on the UI layers One video data;
During playing the video flowing, second video is covered by described UI layers according to the instruction information of intercutting In data;
Wherein, described obtain in video flowing to be played intercuts instruction information, including:
Obtain the pattern characteristics information of the picture frame of video flowing to be played;
Identify whether the pattern characteristics information is that user is preassigned and intercuts instruction according to the pattern characteristics database to prestore Information;Wherein, the pattern characteristics database includes intercutting the corresponding sample patterns characteristic information of instruction information with described;
Wherein, described to be determined described in screen for showing the picture frame, corresponding display according to the first position region The second position region of second video data, including:
According to the dimension scale of the picture frame and the screen, multiple first on the first position region are adjusted in proportion Coordinate information obtains multiple second coordinate informations corresponding with the multiple first coordinate information;
The second position region on the screen is determined according to the multiple second coordinate information.
2. according to the method described in claim 1, it is characterized in that, on the picture frame of the determination video flowing, with it is described First position region of corresponding second video data of instruction information on the picture frame is intercutted, including:
Whether the smoothness that zone boundary corresponding with second video data is detected based on image boundary track algorithm is reached Preset threshold value;
If judgement knows that the smoothness reaches the threshold value, zone boundary corresponding with second video data is made For the first position region;
If judgement knows that the smoothness does not reach the threshold value, it is determined that smooth area corresponding with the zone boundary Domain, and using the smooth region as the first position region.
3. method according to claim 1 or 2, which is characterized in that UI layers of the generation user interface, including:
Generate the UI layers coincideing with the second position zone boundary, wherein first video data is drawn on UI layers entire, So as to during playing the video flowing, identical described second is covered by described UI layer according to the instruction information of intercutting The band of position.
4. method according to claim 1 or 2, which is characterized in that UI layers of the generation user interface, including:
Generate the UI layers coincideing with the screen border;Wherein, it coincide with the second position region on the UI layers corresponding The third place region on draw first video data, and the part except the third place region carries out transparent place Reason is intercutted described in instruction information integrally covers described UI layer according to described so as to during playing the video flowing On screen.
5. a kind of terminal device, which is characterized in that the equipment includes:
First acquisition module is configured as obtaining in video flowing to be played and intercuts instruction information;
Second acquisition module is configured as the acquisition from pre-stored information database and indicates that information is corresponding with described intercut First video data;
Playing module is configured to apply first video data and intercuts in the video flowing, intercuts instruction information with described Corresponding second video data;
Wherein, the playing module, including:
First positioning unit is configured to determine that on the picture frame of the video flowing, intercuts instruction information corresponding the with described First position region of two video datas on the picture frame;
Second positioning unit, be configured as according to the first position region determine for show the picture frame screen, The corresponding second position region for showing second video data;
Drawing unit is configurable to generate UI layers of user interface, wherein corresponding with the second position region on the UI layers Region, which is drawn, first video data;
Second intercuts unit, is configured as during playing the video flowing, will be described according to the instruction information of intercutting UI layers cover on second video data;
Wherein, first acquisition module, including:
Third acquiring unit is configured as obtaining the pattern characteristics information of the picture frame of video flowing to be played;
First recognition unit is configured as identifying whether the pattern characteristics information is use according to the pattern characteristics database to prestore Family is preassigned to intercut instruction information;Wherein, the pattern characteristics database includes indicating that information is corresponding with described intercut Sample patterns characteristic information;
Wherein, second positioning unit, is configured as:
According to the dimension scale of the picture frame and the screen, multiple first on the first position region are adjusted in proportion Coordinate information obtains multiple second coordinate informations corresponding with the multiple first coordinate information;
The second position region on the screen is determined according to the multiple second coordinate information.
6. equipment according to claim 5, which is characterized in that first positioning unit is configured as:
Whether the smoothness that zone boundary corresponding with second video data is detected based on image boundary track algorithm is reached Preset threshold value;
If judgement knows that the smoothness reaches the threshold value, zone boundary corresponding with second video data is made For the first position region;
If judgement knows that the smoothness does not reach the threshold value, it is determined that smooth area corresponding with the zone boundary Domain, and using the smooth region as the first position region.
7. equipment according to claim 5 or 6, which is characterized in that the drawing unit is configured as:
Generate the UI layers coincideing with the second position zone boundary, wherein first video data is drawn on UI layers entire, So as to during playing the video flowing, identical described second is covered by described UI layer according to the instruction information of intercutting The band of position.
8. equipment according to claim 5 or 6, which is characterized in that the drawing unit is configured as:
Generate the UI layers coincideing with the screen border;Wherein, it coincide with the second position region on the UI layers corresponding The third place region on draw first video data, and the part except the third place region carries out transparent place Reason is intercutted described in instruction information integrally covers described UI layer according to described so as to during playing the video flowing On screen.
9. a kind of terminal device, which is characterized in that the equipment includes:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
It obtains in video flowing to be played and intercuts instruction information;
It is obtained from pre-stored information database and indicates corresponding first video data of information with described intercut;
It intercutted in the video flowing using first video data, intercut corresponding second video counts of instruction information with described According to;
Wherein, the application first video data intercuts in the video flowing, indicates information corresponding the with described intercut Two video datas, including:
Determine on the picture frame of the video flowing, with corresponding second video data of instruction information that intercuts in the picture frame On first position region;
Screen, corresponding display second video counts for showing the picture frame are determined according to the first position region According to second position region;
Generate UI layer of user interface, wherein the drafting of corresponding with second position region region has described the on the UI layers One video data;
During playing the video flowing, second video is covered by described UI layers according to the instruction information of intercutting In data;
Wherein, described obtain in video flowing to be played intercuts instruction information, including:
Obtain the pattern characteristics information of the picture frame of video flowing to be played;
Identify whether the pattern characteristics information is that user is preassigned and intercuts instruction according to the pattern characteristics database to prestore Information;Wherein, the pattern characteristics database includes intercutting the corresponding sample patterns characteristic information of instruction information with described;
Wherein, described to be determined described in screen for showing the picture frame, corresponding display according to the first position region The second position region of second video data, including:
According to the dimension scale of the picture frame and the screen, multiple first on the first position region are adjusted in proportion Coordinate information obtains multiple second coordinate informations corresponding with the multiple first coordinate information;
The second position region on the screen is determined according to the multiple second coordinate information.
CN201510213758.8A 2015-04-29 2015-04-29 The inserting method and terminal device of video flowing Active CN104853223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510213758.8A CN104853223B (en) 2015-04-29 2015-04-29 The inserting method and terminal device of video flowing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510213758.8A CN104853223B (en) 2015-04-29 2015-04-29 The inserting method and terminal device of video flowing

Publications (2)

Publication Number Publication Date
CN104853223A CN104853223A (en) 2015-08-19
CN104853223B true CN104853223B (en) 2018-09-04

Family

ID=53852520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510213758.8A Active CN104853223B (en) 2015-04-29 2015-04-29 The inserting method and terminal device of video flowing

Country Status (1)

Country Link
CN (1) CN104853223B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847965A (en) * 2016-03-29 2016-08-10 百度在线网络技术(北京)有限公司 Video data processing method and video data processing system
CN106792003B (en) * 2016-12-27 2020-04-14 西安石油大学 Intelligent advertisement insertion method and device and server
CN108537867B (en) * 2018-04-12 2020-01-10 北京微播视界科技有限公司 Video rendering method and device according to user limb movement
CN111629253A (en) * 2020-06-11 2020-09-04 网易(杭州)网络有限公司 Video processing method and device, computer readable storage medium and electronic equipment
CN114697724A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Media playing method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557464A (en) * 2009-04-01 2009-10-14 深圳市融创天下科技发展有限公司 Method for dynamically embedding other media segments in video program playback
CN101616288A (en) * 2008-06-27 2009-12-30 上海乐程文化传播有限公司 A kind of method and apparatus that fast video intercuts on the portable video terminal
CN102572558A (en) * 2011-12-31 2012-07-11 华为技术有限公司 Video inter-cut method, device and system
CN103595992A (en) * 2013-11-08 2014-02-19 深圳市奥拓电子股份有限公司 Court LED display screen system and advertisement insertion method thereof capable of achieving precise advertisement delivery
CN103634540A (en) * 2012-08-20 2014-03-12 联想(北京)有限公司 A control method, a data terminal and a data transmitting device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616288A (en) * 2008-06-27 2009-12-30 上海乐程文化传播有限公司 A kind of method and apparatus that fast video intercuts on the portable video terminal
CN101557464A (en) * 2009-04-01 2009-10-14 深圳市融创天下科技发展有限公司 Method for dynamically embedding other media segments in video program playback
CN102572558A (en) * 2011-12-31 2012-07-11 华为技术有限公司 Video inter-cut method, device and system
CN103634540A (en) * 2012-08-20 2014-03-12 联想(北京)有限公司 A control method, a data terminal and a data transmitting device
CN103595992A (en) * 2013-11-08 2014-02-19 深圳市奥拓电子股份有限公司 Court LED display screen system and advertisement insertion method thereof capable of achieving precise advertisement delivery

Also Published As

Publication number Publication date
CN104853223A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN110850593B (en) Mobile device and method for pairing electronic devices by mobile device
CN105244048B (en) Audio play control method and device
CN107040646A (en) Mobile terminal and its control method
CN106791893A (en) Net cast method and device
CN104853223B (en) The inserting method and terminal device of video flowing
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
CN106210184A (en) Mobile terminal and control method thereof
CN103207728A (en) Method Of Providing Augmented Reality And Terminal Supporting The Same
CN105122361B (en) Terminal and its control method
TWI544336B (en) Classes,electronic device and method of pairing thereof and seamless content playback method
CN106664334A (en) Mobile terminal and method of controlling same
CN107870712A (en) A kind of screenshot processing method and device
CN105631804A (en) Image processing method and device
CN104902318B (en) Control method for playing back and terminal device
CN109523461A (en) Method, apparatus, terminal and the storage medium of displaying target image
CN107330391A (en) Product information reminding method and device
CN107704190A (en) Gesture identification method, device, terminal and storage medium
CN104883603B (en) Control method for playing back, system and terminal device
CN105335714A (en) Photograph processing method, device and apparatus
CN107085823A (en) Face image processing process and device
CN106612370A (en) Mobile device and method of controlling therefor
CN108040280A (en) Content item display methods and device, storage medium
CN105426904B (en) Photo processing method, device and equipment
CN107507128A (en) Image processing method and equipment
CN106604101A (en) Live streaming interaction method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant