CN105872700A - Method and device for realizing seamless circulation of startup video - Google Patents

Method and device for realizing seamless circulation of startup video Download PDF

Info

Publication number
CN105872700A
CN105872700A CN201510857489.9A CN201510857489A CN105872700A CN 105872700 A CN105872700 A CN 105872700A CN 201510857489 A CN201510857489 A CN 201510857489A CN 105872700 A CN105872700 A CN 105872700A
Authority
CN
China
Prior art keywords
video
frame
video pictures
stem
afterbody
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.)
Pending
Application number
CN201510857489.9A
Other languages
Chinese (zh)
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201510857489.9A priority Critical patent/CN105872700A/en
Publication of CN105872700A publication Critical patent/CN105872700A/en
Pending legal-status Critical Current

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/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
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Circuits (AREA)

Abstract

The invention discloses a method and device for realizing seamless circulation of a startup video. The method comprises the following steps of: obtaining a video unit of the startup video; overlapping at least one frame of video picture positioned at the head part of the video unit and at least one frame of video picture positioned at the tail part of the video unit; cutting the any position in the middle of the video unit, and jointing the front part and the rear part of the cut video unit by inversing the sequence so as to obtain a new video unit; and sequentially connecting more than two new video units according to the length of the startup video so as to obtain the startup video. According to the method and device for realizing seamless circulation of the startup video provided in the invention, the processing procedure of the startup video can be simplified; and furthermore, correction is easily carried out.

Description

The implementation method of start video seamless circulating and device
Technical field
The present invention relates to technical field of image processing, particularly relate to the realization side of a kind of video seamless circulating of starting shooting Method and device.
Background technology
Start video, is the commonly used technology of modern smart machine, and it is smart machine starting up During, show one section of video pictures, so that the process that user waits start is the most dry as dust.
Start video of the prior art, it is common that first design one section of video, further according to the available machine time Length carries out repeatedly loop play to this section of video, thus obtains complete start video;In short, A bit of video is carried out repeatedly loop play and obtains by start video.
But, complete owing to start video have employed a bit of video repeatedly loop play, and normal conditions Under, it is not easy to be connected between the first frame and the last frame of segment video, thus frame-skipping easily occurs Situation, Consumer's Experience is bad.
In prior art, generally use and be overlapped solving frame-skipping problem by between adjacent segment video, But as a example by circulation 10 times, then need superposition 9 times (first paragraph video and second segment video superimpose, second Tri-sections of superpositions of Duan Yu ..., to the last one section of superposition completes), cause the make efficiency circulating video Relatively low, multiple stacking is the most easily made mistakes, and is not easy to revise simultaneously.
Summary of the invention
In view of this, it is an object of the invention to propose a kind of start video seamless circulating player method and device, The processing procedure of start video can be simplified, and be prone to revise.
Implementation method based on the start video seamless circulating that the above-mentioned purpose present invention provides, including:
Obtain the video unit of described start video;
Will be located in the least one frame of video pictures of described video unit stem and be positioned at described video unit tail The least one frame of video pictures in portion is overlapped processing;
The optional position at the middle part of described video unit is blocked, before and after blocking afterwards before and after two parts Reversed order splicing obtains new video unit;
According to the length of required start video, video unit new for two or more is sequentially connected with, is opened Machine video.
In some embodiments, will be located in the least one frame of video pictures of described video unit stem described in It is overlapped processing with the least one frame of video pictures being positioned at described video unit afterbody and also includes:
Judge that the difference value between the first frame video pictures and the last frame video pictures of afterbody of stem is No beyond predetermined threshold value;
If difference value exceeds predetermined threshold value, then the video pictures of more than two frames of stem and afterbody is selected to fold Add process;
If difference value is without departing from predetermined threshold value, then utilize the first frame video pictures of stem and the last of afterbody One frame video pictures is overlapped processing.
In some embodiments, video pictures more than two frames of described selection stem and afterbody is overlapped The step processed includes:
Select the video pictures of more than two frames of stem and afterbody respectively;More than two frames of stem and afterbody regarding Frequently picture is according to order one_to_one corresponding;
The frame number of the video pictures according to selected stem, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 0~100% successively;
The frame number of the video pictures according to selected afterbody, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 100%~0 successively;
Video pictures more than two frames of stem and afterbody is overlapped correspondingly according to order.
In some embodiments, the described step bag that the optional position at the middle part of described video unit is blocked Include:
The link position selecting the two continuous frames video pictures of picture change minimum blocks.
In some embodiments, the connection position of the two continuous frames video pictures of described selection picture change minimum Put and carry out blocking including:
The rgb value of each corresponding pixel points of video pictures adjacent for every two frames in video unit is carried out Contrast;
Obtain the absolute RGB difference of each corresponding pixel points;
Calculate the meansigma methods of the absolute RGB difference of whole picture;
Judge that the minimum two frame adjacent video pictures of the meansigma methods of absolute RGB difference are as picture change minimum Two continuous frames video pictures, and block at the two link position.
In some embodiments, described will block after before and after before and after two parts reversed order splice Included before the step of new video unit:
It is overlapped processing by blocking at least one frame video pictures before and after position;
By the video pictures after overlap-add procedure, it is positioned at the order blocked before and after position according to it, makees respectively New afterbody and stem for described video unit.
What another aspect of the present invention additionally provided a kind of video seamless circulating of starting shooting realizes device, including:
Acquisition module, for obtaining the video unit of described start video;
Laminating module from beginning to end, for will be located in least one frame of video pictures and the position of described video unit stem Least one frame of video pictures in described video unit afterbody is overlapped processing;
Truncation module, for blocking the optional position at the middle part of described video unit, before and after blocking afterwards Before and after two parts, reversed order splicing obtains new video unit;
Start video composite module, for the length according to described start video, by video new for two or more Unit is sequentially connected with, and obtains video of starting shooting.
In some embodiments, described device also includes difference value judge module, for judging the of stem Whether the difference value between one frame video pictures and the last frame video pictures of afterbody is beyond predetermined threshold value;
If difference value exceeds predetermined threshold value, the most described head and the tail laminating module is additionally operable to select stem and the two of afterbody Video pictures more than frame is overlapped processing;
If difference value is additionally operable to utilize the first of stem without departing from predetermined threshold value, the most described head and the tail laminating module The last frame video pictures of frame video pictures and afterbody is overlapped processing.
In some embodiments, described head and the tail laminating module is additionally operable to:
Select the video pictures of more than two frames of stem and afterbody respectively;More than two frames of stem and afterbody regarding Frequently picture is according to order one_to_one corresponding;
The frame number of the video pictures according to selected stem, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 0~100% successively;
The frame number of the video pictures according to selected afterbody, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 100%~0 successively;
Video pictures more than two frames of stem and afterbody is overlapped correspondingly according to order.
In some embodiments, described truncation module is additionally operable to select the two continuous frames of picture change minimum to regard Frequently the link position of picture blocks.
In some embodiments, described truncation module is additionally operable to every adjacent the regarding of two frames in video unit Frequently the rgb value of each corresponding pixel points of picture contrasts;
Obtain the absolute RGB difference of each corresponding pixel points;
Calculate the meansigma methods of the absolute RGB difference of whole picture;
Judge that the minimum two frame adjacent video pictures of the meansigma methods of absolute RGB difference are as picture change minimum Two continuous frames video pictures, and block at the two link position.
In some embodiments, described device also includes blocking position laminating module, for blocking position At least one frame video pictures before and after place is overlapped processing;And, by the video pictures after overlap-add procedure, The order blocked before and after position it is positioned at, respectively as new afterbody and the head of described video unit according to it Portion.
From the above it can be seen that the implementation method of the start video seamless circulating of present invention offer and device, By first carrying out blocking from middle part after superposition by video unit, make video unit after head and the tail connect successively When constituting start video, before and after being positioned at connecting portion, two frame video pictures inherently belong to same video unit Adjacent two frame video pictures, thus solve frame-skipping problem well;Meanwhile, because being to use from superposition Mode, therefore it may only be necessary to video unit self to be carried out an overlap-add procedure, and need not be as existing Carry out a superposition between the such each adjacent video unit of technology, both decreased error rate, and improve again Start video production efficiency.
Accompanying drawing explanation
The flow process of one embodiment of the implementation method of the start video seamless circulating that Fig. 1 provides for the present invention Schematic diagram;
The stream of another embodiment of the implementation method of the start video seamless circulating that Fig. 2 provides for the present invention Journey schematic diagram;
Fig. 3 shows for the modular structure realizing device embodiment of the start video seamless circulating that the present invention provides It is intended to;
Superposition in the implementation method of the start video seamless circulating that Fig. 4 provides for the present invention and device embodiment The schematic diagram of one frame video pictures;
Superposition in the implementation method of the start video seamless circulating that Fig. 5 provides for the present invention and device embodiment The schematic diagram of three frame video pictures.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, And referring to the drawings, the present invention is described in more detail.
It should be noted that the statement of all uses " first " and " second " is all in the embodiment of the present invention The parameter of entity or non-equal in order to distinguish two same names non-equal, it is seen that " first " " second " Only for the convenience of statement, should not be construed as the restriction to the embodiment of the present invention, subsequent embodiment is to this no longer Illustrate one by one.
The first aspect of the invention provides a kind of processing procedure that can simplify start video and is prone to repair The implementation method of positive start video seamless circulating.As it is shown in figure 1, for the present invention provide start video without The schematic flow sheet of one embodiment of the implementation method of seam circulation.
The implementation method of described start video seamless circulating, including:
Step 101: obtain the video unit of described start video;Described video unit is for complete in advance A bit of video, be for build start video elementary cell, its duration can be designed as required, The shortest, such as 10~30 seconds;
Step 102: will be located at least the one of described video unit stem (referring to accompanying drawing 4 and accompanying drawing 5) The video pictures of frame and at least one frame being positioned at described video unit afterbody (referring to accompanying drawing 4 and accompanying drawing 5) Video pictures be overlapped processing and (i.e. according to certain merging rule, corresponding video pictures closed Become, refer to accompanying drawing 4 and accompanying drawing 5);
Step 103: the optional position at the middle part of described video unit is blocked, will block after before and after two Before and after part, reversed order splicing obtains new video unit;With reference to accompanying drawing 4 and accompanying drawing 5, generally block The former frame video pictures of position (Fig. 4, the 4th frame) in 5 is as new afterbody, and blocks position The a later frame video pictures at the place of putting (Fig. 4, the 5th frame) in 5 is as new stem;
Step 104: according to the length of required start video, new by video unit new for two or more Stem and afterbody are sequentially connected with, and obtain start video and (refer to showing of the bottom in accompanying drawing 4 and accompanying drawing 5 It is intended to);Such as, a length of 30 seconds of video unit, and video of starting shooting needs 2 minutes, then can be by 4 Individual video unit is sequentially connected with, and obtains the start video of a length of 2 minutes.
From above-described embodiment it can be seen that the implementation method of the start video seamless circulating of present invention offer, logical Cross and first carry out blocking from middle part after superposition by video unit, make video unit structure after head and the tail connect successively When becoming start video, before and after being positioned at connecting portion, two frame video pictures inherently belong to same video unit Adjacent two frame video pictures, thus solve frame-skipping problem well;Meanwhile, because being to use from superposition Mode, therefore it may only be necessary to video unit self to be carried out an overlap-add procedure, and need not be as existing skill Carry out a superposition between the such each adjacent video unit of art, both decreased error rate, and improve out again Machine video production efficiency.
Use said method to boot up the making of video, by software form, above-mentioned process step can be carried out Encapsulation, video unit to be recycled only need to be added in this software by user, and selects video length of starting shooting, The start video of complete seamless circulating can be obtained based on said method, use very convenient.
Optionally, in some embodiments, will be located in the least one frame of of described video unit stem described in Video pictures and the least one frame of video pictures being positioned at described video unit afterbody are overlapped the step processed May further include the steps of: before rapid 102
Judge that the difference value between the first frame video pictures and the last frame video pictures of afterbody of stem is No beyond predetermined threshold value;
If difference value exceeds predetermined threshold value, illustrate only to be overlapped or may by two frame video pictures from beginning to end Frame-skipping problem occurs, therefore selects the video pictures of the continuous multiple frames of stem and afterbody to be overlapped processing;
If difference value is without departing from predetermined threshold value, then can directly utilize the first frame video pictures and afterbody of stem Last frame video pictures be overlapped process.
Wherein, the last frame of the first frame video pictures and afterbody that described difference value may refer to stem regards Frequently the meansigma methods of the absolute difference of the rgb value of the corresponding pixel points of picture or summation, correspondingly, presets Threshold value is then the tolerance of this meansigma methods or summation;It can certainly be the image comparison side using other The difference value that formula obtains, predetermined threshold value then can be arranged according to tolerance.
Use the method that above-described embodiment provides so that by judging the of stem before being overlapped processing Whether the difference value between one frame video pictures and the last frame video pictures of afterbody exceeds predetermined threshold value, from And judge that difference therebetween is the most excessive, if excessive, then select more frame to be overlapped, with desalination The problem of frame-skipping, if difference is all the time, then can the video pictures of only superposition one frame, thus simplify operating procedure, Improve efficiency.
Further, in some embodiments, referring to the drawings 5, described selection stem and afterbody continuous The step that the video pictures of multiframe is overlapped processing uses the method that the transparency of video merges folded picture, Specifically can comprise the following steps that
Select the video pictures of continuous multiple frames (can also be two frames) of stem and afterbody (such as Fig. 5 respectively Shown in, select the 0th of stem the, 1, the video pictures of 2 frames, and, the 7th of afterbody the, 8,9 frame videos Picture);The video pictures of the continuous multiple frames of stem and afterbody is according to order one_to_one corresponding (wherein, the 7th frame Corresponding 0th frame, corresponding 1st frame of the 8th frame, corresponding 2nd frame of the 9th frame);
The frame number of the video pictures according to selected stem (as a rule, this frame number with select from afterbody Frame number should be equal, is 3 frames in Fig. 5), according to frame sequence (frame number i.e. chosen according to the time Putting in order of priority) transparency of every frame video pictures is set by arithmetic progression from 0~100% successively Put (transparency of the such as the 0th frame is 0, and the 1st frame is 50%, and the 2nd frame is 100%);
The frame number of the video pictures according to selected afterbody, according to transparent by every frame video pictures of frame sequence Degree successively from 100%~0 by arithmetic progression be configured (transparency of the such as the 7th frame is 100%, the 8th Frame is 50%, and the 9th frame is 0);
By the video pictures of stem and the continuous multiple frames of afterbody according to order be overlapped correspondingly (that is, 7th frame and the 0th frame superposition, the 8th frame and the 1st frame superposition, the 9th frame and the 2nd frame superposition).
According to above-mentioned stacking method, in like manner, 5 frame video pictures are selected to be overlapped respectively for head and the tail, It is also adopted by the mode being similar to, does not repeats them here.
Wherein, the video of usual Chinese Industrial Standards (CIS) is usually 24 frames/second, the therefore video unit of one minute length Generally should include 24*60=1440 frame video pictures;Therefore, Fig. 4, Fig. 5 are merely to schematically Show the production method of described start video, do not represent video unit itself and only comprise 10 frame video pictures. Meanwhile, can calculate and the video unit of a length of 30 seconds generally should comprise 24*30=720 frame regard Frequently picture, therefore, only superposition several pictures therein, the length for video unit itself can't cause The biggest impact, therefore can ignore the time that video unit loses because of superposition.
Use the method that above-described embodiment provides, it is possible to preferably eliminate the frame-skipping phenomenon at head and the tail position, and side Method is simple.
In like manner, the last frame video pictures of described the first frame video pictures utilizing stem and afterbody is carried out First frame video pictures of stem and the last frame video of afterbody then can directly be drawn by the step of overlap-add procedure Face has been overlapped after being all processed as the transparency of 50%.
It is also preferred that the left in some embodiments, the described optional position by the middle part of described video unit is blocked Step 103 include:
The link position selecting the two continuous frames video pictures of picture change minimum blocks.
In this way, described start video (the most not referring to video unit) can be made in loop play Time, obvious frame-skipping phenomenon will not occur.
Further, in some embodiments, the two continuous frames video of described selection picture change minimum is drawn The link position in face carries out blocking following steps can be used to complete, including:
The rgb value of each corresponding pixel points of video pictures adjacent for every two frames in video unit is carried out Contrast;
Obtain the absolute RGB difference of each corresponding pixel points;
Calculate the meansigma methods of the absolute RGB difference of whole picture;
Judge that the minimum two frame adjacent video pictures of the meansigma methods of absolute RGB difference are as picture change minimum Two continuous frames video pictures, and block at the two link position.
By said method, can preferably select and block position, so that start video (does not refers to Video unit) when loop play, obvious frame-skipping phenomenon will not occur, and the method is simple, no Error-prone.Certainly the image comparison method that may be used without other finds out the two continuous frames video picture that change is minimum Face, thus obtain blocking position, these modes broadly fall into protection scope of the present invention.
Optionally, in some embodiments, described will block after before and after order top before and after two parts Spell backward and also can further include steps of before connecing the step 103 obtaining new video unit
By block at least one frame video pictures before and after position be overlapped processing (referring to the drawings 4, can To use, the 4th frame and the 5th frame are overlapped);
By the video pictures (the 4th frame that superposition completes and the 5th frame) after overlap-add procedure, it is positioned at according to it and cuts Order before and after disconnected position, respectively as the new afterbody of described video unit and stem (that is, when After 4th frame is added on the 5th frame, as stem, on the 5th frame is added to the 4th frame after, by it As afterbody).
Here, described stacked system can carry out superposition in the way of using both at 50% transparency;Also can root It is set to other ratios according to needs, such as 30% and 70%, that is, the 4th frame of 30% transparency is folded After being added on the 5th frame of 70% transparency, as stem, by the 5th frame superposition of 30% transparency After on the 4th frame of 70% transparency, as afterbody, etc..
In this way, the frame-skipping problem that connecting portion is likely to occur has been desalinated further.
With reference to Fig. 2, another embodiment of the implementation method of the start video seamless circulating provided for the present invention Schematic flow sheet.
The implementation method of described start video seamless circulating, including:
Step 201: obtain the video unit of described start video;
Step 202: judge between the first frame video pictures and the last frame video pictures of afterbody of stem Whether difference value is beyond predetermined threshold value;
Step 203: the most then select the video pictures of the continuous multiple frames of stem and afterbody to be overlapped processing;
Step 204: if it is not, then utilize the first frame video pictures of stem and the last frame video of afterbody to draw Face is overlapped processing;
Step 205: the least one frame of video pictures that will be located in described video unit stem regards described in being positioned at Frequently the least one frame of video pictures of unit tail is overlapped processing;
Step 206: select the link position of the two continuous frames video pictures of picture change minimum to block;
Step 207: be overlapped processing by blocking at least one frame video pictures before and after position;
Step 208: by the video pictures after overlap-add procedure, is positioned at block before and after position suitable according to it Sequence, respectively as new afterbody and the stem of described video unit;
Step 209: according to the length of required start video, by new stem and the tail of multiple video units Portion is sequentially connected with, and obtains video of starting shooting.
From above-described embodiment it can be seen that the implementation method of the start video seamless circulating of present invention offer, logical Cross and first carry out blocking from middle part after superposition by video unit, make video unit structure after head and the tail connect successively When becoming start video, before and after being positioned at connecting portion, two frame video pictures inherently belong to same video unit Adjacent two frame video pictures, thus solve frame-skipping problem well;Meanwhile, because being to use from superposition Mode, therefore it may only be necessary to video unit self to be carried out an overlap-add procedure, and need not be as existing skill Carry out a superposition between the such each adjacent video unit of art, both decreased error rate, and improve out again Machine video production efficiency.Additionally, also by judging that the difference value mode whether beyond predetermined threshold value have selected folded The frame number added, thus reach more preferable video effect;Further, the also selection to blocking position is screened, Make video effect more preferable.
What the second aspect of the invention provided a kind of video seamless circulating of starting shooting realizes device.Such as Fig. 3 Shown in, for the modular structure schematic diagram realizing device embodiment of the start video seamless circulating that the present invention provides.
Described start video seamless circulating realize device, including:
Acquisition module 301, for obtaining the video unit of described start video;Described video unit is in advance The a bit of video completed, is the elementary cell for building start video, and its duration can be as required It is designed, the shortest, such as 10~30 seconds;
Laminating module 302 from beginning to end, are used for will be located in described video unit stem and (refer to accompanying drawing 4 and accompanying drawing 5) least one frame of video pictures and be positioned at described video unit afterbody (referring to accompanying drawing 4 and accompanying drawing 5) Least one frame of video pictures be overlapped processing (i.e. according to certain merging rule, by corresponding video Picture synthesizes, and refers to accompanying drawing 4 and accompanying drawing 5);
Truncation module 303, for blocking the optional position at the middle part of described video unit, after blocking Before and after former and later two parts, reversed order splicing obtains new video unit;With reference to accompanying drawing 4 and accompanying drawing 5, The former frame video pictures (Fig. 4, the 4th frame) in 5 generally blocking position is as new afterbody, And a later frame video pictures (Fig. 4, the 5th frame) in 5 blocking position is as new stem;
Start video composite module 304 is for the length according to required start video, new by two or more Video unit be sequentially connected with, obtain start shooting video (refer to showing of the bottom in accompanying drawing 4 and accompanying drawing 5 It is intended to);Such as, a length of 30 seconds of video unit, and video of starting shooting needs 2 minutes, then can be by 4 Individual video unit is sequentially connected with, and obtains the start video of a length of 2 minutes.
From above-described embodiment it can be seen that the start video seamless circulating that provides of the present invention realize device, logical Cross and first carry out blocking from middle part after superposition by video unit, make video unit structure after head and the tail connect successively When becoming start video, before and after being positioned at connecting portion, two frame video pictures inherently belong to same video unit Adjacent two frame video pictures, thus solve frame-skipping problem well;Meanwhile, because being to use from superposition Mode, therefore it may only be necessary to video unit self to be carried out an overlap-add procedure, and need not be as existing skill Carry out a superposition between the such each adjacent video unit of art, both decreased error rate, and improve out again Machine video production efficiency.
Above-mentioned start video seamless circulating realize device, by software form, each module can be packaged, Video unit to be recycled only need to be added in this software by user, and selects video length of starting shooting, Ji Keji Obtain the start video of complete seamless circulating in said method, use very convenient.
Optionally, in some embodiments, described start video seamless circulating realize device, also include Difference value judge module 305, for judging the first frame video pictures of stem and the last frame video of afterbody Whether the difference value between picture is beyond predetermined threshold value;
If difference value exceeds predetermined threshold value, illustrate only to be overlapped or may by two frame video pictures from beginning to end Frame-skipping problem occur, the most described head and the tail laminating module 302 is additionally operable to select more than two frames of stem and afterbody Video pictures is overlapped processing;
If difference value is additionally operable to utilize stem without departing from predetermined threshold value, the most described head and the tail laminating module 302 The last frame video pictures of the first frame video pictures and afterbody is overlapped processing.
Wherein, the last frame of the first frame video pictures and afterbody that described difference value may refer to stem regards Frequently the meansigma methods of the absolute difference of the rgb value of the corresponding pixel points of picture or summation, correspondingly, presets Threshold value is then the tolerance of this meansigma methods or summation;It can certainly be the image comparison side using other The difference value that formula obtains, predetermined threshold value then can be arranged according to tolerance.
Pass through above-described embodiment so that by judging that the first frame video of stem is drawn before being overlapped processing Whether the difference value between the last frame video pictures of face and afterbody is beyond predetermined threshold value, thus judges the two Between difference the most excessive, if excessive, then select more frame to be overlapped, to desalinate the problem of frame-skipping, If difference is all the time, then can the video pictures of only superposition one frame, thus simplify operating procedure, improve efficiency.
Further, in some embodiments, referring to the drawings 5, described head and the tail laminating module 302 is also used In:
Select the video pictures of continuous multiple frames (can also be two frames) of stem and afterbody (such as Fig. 5 respectively Shown in, select the 0th of stem the, 1, the video pictures of 2 frames, and, the 7th of afterbody the, 8,9 frame videos Picture);The video pictures of the continuous multiple frames of stem and afterbody is according to order one_to_one corresponding (wherein, the 7th frame Corresponding 0th frame, corresponding 1st frame of the 8th frame, corresponding 2nd frame of the 9th frame);
The frame number of the video pictures according to selected stem (as a rule, this frame number with select from afterbody Frame number should be equal, is 3 frames in Fig. 5), according to frame sequence (frame number i.e. chosen according to the time Putting in order of priority) transparency of every frame video pictures is set by arithmetic progression from 0~100% successively Put (transparency of the such as the 0th frame is 0, and the 1st frame is 50%, and the 2nd frame is 100%);
The frame number of the video pictures according to selected afterbody, according to transparent by every frame video pictures of frame sequence Degree successively from 100%~0 by arithmetic progression be configured (transparency of the such as the 7th frame is 100%, the 8th Frame is 50%, and the 9th frame is 0);
By the video pictures of stem and the continuous multiple frames of afterbody according to order be overlapped correspondingly (that is, 7th frame and the 0th frame superposition, the 8th frame and the 1st frame superposition, the 9th frame and the 2nd frame superposition).
According to above-mentioned stacking method, in like manner, 5 frame video pictures are selected to be overlapped respectively for head and the tail, It is also adopted by the mode being similar to, does not repeats them here.
Wherein, the video of usual Chinese Industrial Standards (CIS) is usually 24 frames/second, the therefore video unit of one minute length Generally should include 24*60=1440 frame video pictures;Therefore, Fig. 4, Fig. 5 are merely to schematically Show the production method of described start video, do not represent video unit itself and only comprise 10 frame video pictures. Meanwhile, can calculate and the video unit of a length of 30 seconds generally should comprise 24*30=720 frame regard Frequently picture, therefore, only superposition several pictures therein, the length for video unit itself can't cause The biggest impact, therefore can ignore the time that video unit loses because of superposition.
Pass through above-described embodiment, it is possible to preferably eliminate the frame-skipping phenomenon at head and the tail position, and method is simple.
In like manner, the last frame video pictures of described the first frame video pictures utilizing stem and afterbody is carried out First frame video pictures of stem and the last frame video of afterbody then can directly be drawn by the step of overlap-add procedure Face has been overlapped after being all processed as the transparency of 50%.
It is also preferred that the left in some embodiments, described truncation module 303 is additionally operable to select picture change minimum The link position of two continuous frames video pictures block.In this way, described start can be made to regard Frequently (the most do not refer to video unit) when loop play, obvious frame-skipping phenomenon will not occur.
Further, in some embodiments, described truncation module 303 is additionally operable in video unit The rgb value of each corresponding pixel points of the video pictures that every two frames are adjacent contrasts;
Obtain the absolute RGB difference of each corresponding pixel points;
Calculate the meansigma methods of the absolute RGB difference of whole picture;
Judge that the minimum two frame adjacent video pictures of the meansigma methods of absolute RGB difference are as picture change minimum Two continuous frames video pictures, and block at the two link position.
By above-described embodiment, can preferably select and block position, so that start video (is not Refer to video unit) when loop play, obvious frame-skipping phenomenon will not occur, and the method is simple, The most error-prone.Certainly the image comparison method that may be used without other finds out the two continuous frames video that change is minimum Picture, thus obtain blocking position, these modes broadly fall into protection scope of the present invention.
Optionally, in some embodiments, described start video seamless circulating realize device, also include Block position laminating module 306, for folding blocking at least one frame video pictures before and after position Add process (referring to the drawings 4, can use and the 4th frame and the 5th frame are overlapped);And, by superposition Video pictures after process (the 4th frame that superposition completes and the 5th frame), is positioned at according to it and blocks position Order front and back, respectively as the new afterbody of described video unit and stem (that is, when the 4th frame superposition After on the 5th frame, as stem, on the 5th frame is added to the 4th frame after, as afterbody).
Here, described stacked system can carry out superposition in the way of using both at 50% transparency;Also can root It is set to other ratios according to needs, such as 30% and 70%, that is, the 4th frame of 30% transparency is folded After being added on the 5th frame of 70% transparency, as stem, by the 5th frame superposition of 30% transparency After on the 4th frame of 70% transparency, as afterbody, etc..
In this way, the frame-skipping problem that connecting portion is likely to occur has been desalinated further.
Below in conjunction with reference to Fig. 2, how that introduces the start video seamless circulating that the present invention provides realizes device It is applied in the implementation method of the start video seamless circulating that the present invention provides.
The implementation method of described start video seamless circulating, including:
Step 201: acquisition module 301 obtains the video unit of described start video;
Step 202: difference value judge module 305 judges the first frame video pictures of stem and the last of afterbody Whether the difference value between one frame video pictures is beyond predetermined threshold value;
Step 203: the most then head and the tail laminating module 302 selects the video of continuous multiple frames of stem and afterbody Picture is overlapped processing;
Step 204: if it is not, then head and the tail laminating module 302 utilizes the first frame video pictures and afterbody of stem Last frame video pictures be overlapped process;
Step 205: laminating module 302 will be located in the least one frame of video of described video unit stem from beginning to end Picture and the least one frame of video pictures being positioned at described video unit afterbody are overlapped processing;
Step 206: truncation module 303 selects the connection position of the two continuous frames video pictures of picture change minimum Put and block;
Step 207: block position laminating module 306 and draw blocking at least one frame video before and after position Face is overlapped processing;
Step 208: truncation module 303, by the video pictures after overlap-add procedure, is positioned at according to it and blocks position Order before and after place, respectively as new afterbody and the stem of described video unit;
Step 209: start video composite module 304, according to the length of required start video, regards multiple Frequently new stem and the afterbody of unit is sequentially connected with, and obtains video of starting shooting.
From above-described embodiment it can be seen that the start implementation method of video seamless circulating that provides of the present invention and dress Put, by first carrying out blocking from middle part after superposition by video unit, make video unit connect at head and the tail successively When constituting start video after connecing, before and after being positioned at connecting portion, two frame video pictures inherently belong to same video The adjacent two frame video pictures of unit, thus solve frame-skipping problem well;Meanwhile, because being to use certainly The mode of superposition, therefore it may only be necessary to video unit self to be carried out an overlap-add procedure, and need not picture Carry out a superposition between the such each adjacent video unit of prior art, both decreased error rate, and carried again High start video production efficiency.Additionally, also by judging that the difference value mode whether beyond predetermined threshold value is selected Select the frame number of superposition, thus reach more preferable video effect;Further, also selection to blocking position is carried out Screening so that video effect is more preferable.
Those of ordinary skill in the field it is understood that the discussion of any of the above embodiment is exemplary only, It is not intended to imply that the scope of the present disclosure (including claim) is limited to these examples;Think of in the present invention Under road, can also be combined between the technical characteristic in above example or different embodiment, and exist Other change of the many of the different aspect of the present invention as above, in order to concisely they carry in details Supply.Therefore, all within the spirit and principles in the present invention, any omission of being made, amendment, equivalent, Improve, should be included within the scope of the present invention.

Claims (12)

1. the implementation method of a video seamless circulating of starting shooting, it is characterised in that including:
Obtain the video unit of described start video;
Will be located in the least one frame of video pictures of described video unit stem and be positioned at described video unit tail The least one frame of video pictures in portion is overlapped processing;
The optional position at the middle part of described video unit is blocked, before and after blocking afterwards before and after two parts Reversed order splicing obtains new video unit;
According to the length of described start video, video unit new for two or more is sequentially connected with, is started shooting Video.
Method the most according to claim 1, it is characterised in that described in will be located in described video unit The least one frame of video pictures of stem and the least one frame of video pictures being positioned at described video unit afterbody It is overlapped process to include:
Judge that the difference value between the first frame video pictures and the last frame video pictures of afterbody of stem is No beyond predetermined threshold value;
If difference value exceeds predetermined threshold value, then the video pictures of more than two frames of stem and afterbody is selected to fold Add process;
If difference value is without departing from predetermined threshold value, then utilize the first frame video pictures of stem and the last of afterbody One frame video pictures is overlapped processing.
Method the most according to claim 2, it is characterised in that described selection stem and the two of afterbody The step that video pictures more than frame is overlapped processing includes:
Select the video pictures of more than two frames of stem and afterbody respectively;More than two frames of stem and afterbody regarding Frequently picture is according to order one_to_one corresponding;
The frame number of the video pictures according to selected stem, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 0~100% successively;
The frame number of the video pictures according to selected afterbody, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 100%~0 successively;
Video pictures more than two frames of stem and afterbody is overlapped correspondingly according to order.
Method the most according to claim 1, it is characterised in that described by described video unit The step that the optional position in portion is blocked includes:
The link position selecting the two continuous frames video pictures of picture change minimum blocks.
Method the most according to claim 4, it is characterised in that described selection picture change minimum The link position of two continuous frames video pictures carries out blocking including:
The rgb value of each corresponding pixel points of video pictures adjacent for every two frames in video unit is carried out Contrast;
Obtain the absolute RGB difference of each corresponding pixel points;
Calculate the meansigma methods of the absolute RGB difference of whole picture;
Judge that the minimum two frame adjacent video pictures of the meansigma methods of absolute RGB difference are as picture change minimum Two continuous frames video pictures, and block at the two link position.
Method the most according to claim 1, it is characterised in that described will block after before and after two Before and after part, reversed order also includes before splicing the step obtaining new video unit:
It is overlapped processing by blocking at least one frame video pictures before and after position;
By the video pictures after overlap-add procedure, it is positioned at the order blocked before and after position according to it, makees respectively New afterbody and stem for described video unit.
7. a video seamless circulating of starting shooting realize device, it is characterised in that including:
Acquisition module, for obtaining the video unit of described start video;
Laminating module from beginning to end, for will be located in least one frame of video pictures and the position of described video unit stem Least one frame of video pictures in described video unit afterbody is overlapped processing;
Truncation module, for blocking the optional position at the middle part of described video unit, before and after blocking afterwards Before and after two parts, reversed order splicing obtains new video unit;
Start video composite module, for the length according to described start video, by video new for two or more Unit is sequentially connected with, and obtains video of starting shooting.
Device the most according to claim 7, it is characterised in that also include difference value judge module, Difference value between the first frame video pictures and the last frame video pictures of afterbody judging stem is No beyond predetermined threshold value;
If difference value exceeds predetermined threshold value, the most described head and the tail laminating module is additionally operable to select stem and the two of afterbody Video pictures more than frame is overlapped processing;
If difference value is additionally operable to utilize the first of stem without departing from predetermined threshold value, the most described head and the tail laminating module The last frame video pictures of frame video pictures and afterbody is overlapped processing.
Device the most according to claim 8, it is characterised in that described head and the tail laminating module is additionally operable to:
Select the video pictures of more than two frames of stem and afterbody respectively;More than two frames of stem and afterbody regarding Frequently picture is according to order one_to_one corresponding;
The frame number of the video pictures according to selected stem, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 0~100% successively;
The frame number of the video pictures according to selected afterbody, according to transparent by every frame video pictures of frame sequence Degree is configured by arithmetic progression from 100%~0 successively;
Video pictures more than two frames of stem and afterbody is overlapped correspondingly according to order.
Device the most according to claim 7, it is characterised in that described truncation module is additionally operable to select The link position of the two continuous frames video pictures of picture change minimum blocks.
11. devices according to claim 10, it is characterised in that described truncation module be additionally operable to by The rgb value of each corresponding pixel points of the video pictures that every two frames in video unit are adjacent contrasts;
Obtain the absolute RGB difference of each corresponding pixel points;
Calculate the meansigma methods of the absolute RGB difference of whole picture;
Judge that the minimum two frame adjacent video pictures of the meansigma methods of absolute RGB difference are as picture change minimum Two continuous frames video pictures, and block at the two link position.
12. devices according to claim 7, it is characterised in that also include blocking position laminating module, For being overlapped processing by blocking at least one frame video pictures before and after position;And, at superposition Video pictures after reason, is positioned at the order blocked before and after position, respectively as described video list according to it The new afterbody of unit and stem.
CN201510857489.9A 2015-11-30 2015-11-30 Method and device for realizing seamless circulation of startup video Pending CN105872700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510857489.9A CN105872700A (en) 2015-11-30 2015-11-30 Method and device for realizing seamless circulation of startup video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510857489.9A CN105872700A (en) 2015-11-30 2015-11-30 Method and device for realizing seamless circulation of startup video

Publications (1)

Publication Number Publication Date
CN105872700A true CN105872700A (en) 2016-08-17

Family

ID=56623812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510857489.9A Pending CN105872700A (en) 2015-11-30 2015-11-30 Method and device for realizing seamless circulation of startup video

Country Status (1)

Country Link
CN (1) CN105872700A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107509110A (en) * 2017-08-03 2017-12-22 乐蜜有限公司 A kind of loop play method and device of video file
CN107948562A (en) * 2017-11-30 2018-04-20 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN108012101A (en) * 2017-11-30 2018-05-08 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN109889737A (en) * 2019-03-15 2019-06-14 北京字节跳动网络技术有限公司 Method and apparatus for generating video
CN111343500A (en) * 2020-02-28 2020-06-26 珠海豹趣科技有限公司 Video processing method and device and computer readable storage medium
CN111970560A (en) * 2020-07-09 2020-11-20 北京百度网讯科技有限公司 Video acquisition method and device, electronic equipment and storage medium
CN111970559A (en) * 2020-07-09 2020-11-20 北京百度网讯科技有限公司 Video acquisition method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472960A (en) * 2003-06-13 2004-02-04 天津大学 Method for controlling and adjusting for circulating play transfer flow
CN2779763Y (en) * 2004-12-24 2006-05-10 上海广电(集团)有限公司中央研究院 A media player
CN101742274A (en) * 2009-12-04 2010-06-16 苏州昂信科技有限公司 Video dispatching method for launching streaming media advertisement
CN103618896A (en) * 2013-12-06 2014-03-05 北京牡丹视源电子有限责任公司 Method and device for generating seamless circulating transmission stream for testing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472960A (en) * 2003-06-13 2004-02-04 天津大学 Method for controlling and adjusting for circulating play transfer flow
CN2779763Y (en) * 2004-12-24 2006-05-10 上海广电(集团)有限公司中央研究院 A media player
CN101742274A (en) * 2009-12-04 2010-06-16 苏州昂信科技有限公司 Video dispatching method for launching streaming media advertisement
CN103618896A (en) * 2013-12-06 2014-03-05 北京牡丹视源电子有限责任公司 Method and device for generating seamless circulating transmission stream for testing

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107509110A (en) * 2017-08-03 2017-12-22 乐蜜有限公司 A kind of loop play method and device of video file
US11070886B2 (en) 2017-08-03 2021-07-20 Hong Kong Liveme Corporation Limited Method and apparatus for looping a video file
EP3709633A4 (en) * 2017-11-30 2020-09-16 Guangzhou Baiguoyuan Information Technology Co., Ltd. Video recording method and video recording terminal
CN107948562B (en) * 2017-11-30 2020-05-15 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN108012101A (en) * 2017-11-30 2018-05-08 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN107948562A (en) * 2017-11-30 2018-04-20 广州市百果园信息技术有限公司 Video recording method and video recording terminal
US11089259B2 (en) 2017-11-30 2021-08-10 Bigo Technology Pte. Ltd. Video recording method and video recording terminal
CN109889737A (en) * 2019-03-15 2019-06-14 北京字节跳动网络技术有限公司 Method and apparatus for generating video
CN111343500A (en) * 2020-02-28 2020-06-26 珠海豹趣科技有限公司 Video processing method and device and computer readable storage medium
CN111970560A (en) * 2020-07-09 2020-11-20 北京百度网讯科技有限公司 Video acquisition method and device, electronic equipment and storage medium
CN111970559A (en) * 2020-07-09 2020-11-20 北京百度网讯科技有限公司 Video acquisition method and device, electronic equipment and storage medium
CN111970559B (en) * 2020-07-09 2022-07-22 北京百度网讯科技有限公司 Video acquisition method and device, electronic equipment and storage medium
CN111970560B (en) * 2020-07-09 2022-07-22 北京百度网讯科技有限公司 Video acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105872700A (en) Method and device for realizing seamless circulation of startup video
CN104639911B (en) A kind of panoramic video joining method and device
US9020238B2 (en) Stereoscopic image generation method and stereoscopic image generation system
US9251612B2 (en) Optimal dynamic seam adjustment system and method for image stitching
CN104902088B (en) Mobile terminal adjusts the method and device of screen intensity
CN105321151A (en) Panorama stitching brightness equalization method and system
EP2764696A2 (en) Resolution enhanced 3d video rendering systems and methods
CN106485649A (en) Image processing apparatus based on different zoom ratio and method and its electronic system
CN101710276A (en) Method and device for setting and unlocking screensaver
CN101459724A (en) Love couple mobile terminal capable of integrating two into one
CN109819180B (en) Ultra-wide picture fusion display method and system
MX342728B (en) Side-gusset bag made of a plastic fabric composite, and method for the production thereof.
CN106331694A (en) Method for adjusting vehicular environment system
CN105681686A (en) Image processing method and system
KR20130001869A (en) Image proceesing apparatus and image processing method thereof
CN102300104A (en) 3D television and menu processing method thereof
CN106991644A (en) A kind of method that video-splicing is carried out based on sports ground multi-path camera
CN103780887B (en) A kind of video signal processing method and device
CN103986895B (en) Projection system control method and projection device
CN106982366A (en) A kind of 3D joining methods for splicing 3x3 based on 6x2
CN106507079A (en) A kind of color rendition method and device
CN103049908B (en) The method and apparatus generating stereoscopic video file
CN103186916B (en) A kind of method and apparatus of playing animation
JP2008292666A (en) Viewing direction image data generator, directional display image data generator, directional display device, directional display system, viewing direction image data generating method, and directional display image data generating method
CN102867498A (en) Display control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160817

WD01 Invention patent application deemed withdrawn after publication