CN103606158A - Preprocessing method and terminal for video clipping - Google Patents

Preprocessing method and terminal for video clipping Download PDF

Info

Publication number
CN103606158A
CN103606158A CN201310629366.0A CN201310629366A CN103606158A CN 103606158 A CN103606158 A CN 103606158A CN 201310629366 A CN201310629366 A CN 201310629366A CN 103606158 A CN103606158 A CN 103606158A
Authority
CN
China
Prior art keywords
video
frame
scene
video scene
key 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.)
Pending
Application number
CN201310629366.0A
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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
SHENZHEN LONGGUAN MEDIA 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 SHENZHEN LONGGUAN MEDIA CO Ltd filed Critical SHENZHEN LONGGUAN MEDIA CO Ltd
Priority to CN201310629366.0A priority Critical patent/CN103606158A/en
Publication of CN103606158A publication Critical patent/CN103606158A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the invention discloses a preprocessing method for video clipping. The method comprises the steps of searching key frames of a video file from an assigned video playing moment along the video playing progress direction; obtaining characteristic information of each video scene in the video scenes with preset numbers from the key frames of the video file, wherein the characteristic information comprises the starting frame of a corresponding video scene and corresponding time thereof, the ending frame of the corresponding video scene and corresponding time thereof, and at least one kind of information in key frame numbers contained in the video scenes; displaying the characteristic information of each video scene to a user for the user to select video clipping points with the starting frame or the ending frame in the characteristic information as a selection basis. The invention further discloses a terminal. The preprocessing method and terminal for the video clipping has the advantages that the searching difficulty of the video clipping points can be reduced, the searching efficiency of the video clipping points can be improved, and the efficiency of video clipping and user experience can be improved.

Description

Preprocess method and terminal that a kind of video is sheared
Technical field
The present invention relates to electronic technology field, relate in particular to preprocess method and terminal that a kind of video is sheared.
Background technology
Current along with becoming increasingly abundant of video frequency program is colorful, video production side and consumer are also more and more higher to the requirement of video frequency program, and the reprocessing demand of video frequency program is also day by day urgent.For example, in a video file that comprises advertisement, the reprocessing that can pass through video file, by the advertisement part shear removal in video file, obtains a complete video file that there is no advertisement, watches the experience effect of video to improve user.
In prior art one, to the shearing of video file, be mainly that start time point and end time point by video segment carries out manual record, finally adopt the method for splicing to splice video file, with by video segment shear removals such as advertisements.During due to video playback, can play 24 frames or the video of multiframe more p.s., and user is difficult to accurately capture corresponding time point, and the selection difficulty of video shearing point is large, makes the splicing efficiency of video file shear treatment low, and accuracy rate is low.
In prior art two, be mainly by all key frame of video of video file are enumerated out, all key frames of each video scene in video are represented to user, user selects start frame and end frame to determine video shearing point from all key frames of video file, and according to selected start frame and end frame, video is sheared, spliced.Because general video is a key frame per second, and the terminal screen of displaying video generally can only show 50 key frame pictures simultaneously, can only show the picture of 50 seconds simultaneously, now, if the shearing point that user need to find is beyond 50 seconds, need to continue displaying video, the key frame of video of 50 seconds after determining a time point and showing this time point.If the video segment of need shearing in prior art two (such as advertisement etc.) by organizing similar continuous picture, form more, the key frame of video many (for example comprising a plurality of 50 seconds) that video segment comprises, when shearing video, user need repeatedly displaying video to search video shearing point, and then just can complete video and shear, it is large that video shearing point is searched difficulty, and video shear efficiency is low.
Summary of the invention
The embodiment of the present invention provides a kind of preprocess method and terminal of video shearing, can reduce the selection difficulty of video shearing point, improves the accuracy of searching of video shearing point, improves the efficiency that video is sheared, user's experience that augmented video is sheared.
The preprocess method that the embodiment of the present invention provides a kind of video to shear, comprising:
Start along the key frame of the progress direction search video file of video playback from video playback time of appointment;
The characteristic information that obtains each video scene in the video scene of presetting number from the key frame of described video file, described characteristic information comprises: at least one information in the crucial frame number that the start frame of video scene and corresponding time, end frame and corresponding time, video scene thereof thereof comprise;
The characteristic information of described each video scene is represented to user, and start frame or the end frame of for user, take in described characteristic information are selection foundation selection video shearing point.
Wherein, each video scene comprises the picture group sheet that the frame of video of video file presents under same background;
Or each video scene comprises that similarity reaches one group of continuous picture of predetermined threshold value.
Wherein, the described characteristic information that obtains each video scene in the video scene of presetting number from the key frame of described video file, comprising:
Start to obtain a key frame of described video file from the video playback time of described appointment, and described key frame is set as to the start frame of first video scene, record the time that described start frame is corresponding;
From described video file, obtain next key frame, judge described key frame and before it picture analogies degree of a key frame whether reach default similarity threshold;
If the determination result is YES, described key frame is added in first video scene, the frame number that described first video scene comprises adds 1, if the determination result is NO, described key frame be set as to the start frame of second video scene and record the time that described key frame is corresponding, a key frame above of described key frame is set as to the end frame of first video scene, and records time corresponding to described end frame;
The key frame of described video file is obtained one by one in continuation from described video file, whether the picture analogies degree that judges one by one described key frame and the key frame before it reaches default similarity threshold, and described key frame is joined in corresponding video scene or be set as the start frame of new video scene according to judged result, until the number of the video scene getting reaches default number, and export the characteristic information of each video scene.
Wherein, the described characteristic information by described video scene represents to user, comprising:
The characteristic information of described each video scene is represented to user according to specified format, and described specified format comprises: { s i1, t i1, s i2, t i2, n i;
Wherein, described s i1for the start frame of scene i, t i1for time corresponding to the start frame of scene i, s i2for the end frame of scene i, t i2for time corresponding to the end frame of scene i, n ithe crucial frame number comprising for scene i.
Wherein, after the characteristic information of described each video scene of output, also comprise:
When receiving user's operational order of all key frames that need represent some video scenes, export the time corresponding to each key frame of all key frames and/or the described video scene of described video scene.
The embodiment of the present invention also provides a kind of terminal, comprising:
Search module, started along the key frame of the progress direction search video file of video playback for the video playback time from appointment;
Acquisition module, for the key frame from described video file, obtain the characteristic information of each video scene the video scene of presetting number, described characteristic information comprises: at least one information in the crucial frame number that the start frame of video scene and corresponding time, end frame and corresponding time, video scene thereof thereof comprise;
The first display module, for the characteristic information of described each video scene is represented to user, start frame or the end frame of for user, take in described characteristic information are selection foundation selection video shearing point.
Wherein, each video scene comprises the picture group sheet that the frame of video of video file presents under same background;
Or each video scene comprises that similarity reaches one group of continuous picture of predetermined threshold value.
Wherein, described acquisition module, comprising:
The first acquiring unit, starts to obtain a key frame of video file for the video playback time from described appointment, and described key frame is set as to the start frame of first video scene, records the time that described start frame is corresponding;
Judging unit, for obtaining next key frame from described video file, judge described key frame and before it picture analogies degree of a key frame whether reach default similarity threshold;
Processing unit, while for judgment result is that at described judging unit being, described key frame is added in first video scene, the frame number that described first video scene comprises adds 1, at described judging unit when the determination result is NO, described key frame be set as to the start frame of second video scene and record the time that described key frame is corresponding, a key frame above of described key frame being set as to the end frame of first video scene, and recording time corresponding to described end frame;
Second acquisition unit, for continuing to obtain one by one from described video file the key frame of described video file, whether the picture analogies degree that judges one by one described key frame and the key frame before it reaches default similarity threshold, and described key frame is joined in corresponding video scene or be set as the start frame of new video scene according to judged result, until the number of the video scene getting reaches default number;
Output unit, for exporting the characteristic information of each video scene.
Wherein, when described the first display module represents to user by the characteristic information of described video scene, specifically for:
The characteristic information of described each video scene is represented to user according to specified format, and described specified format comprises: { s i1, t i1, s i2, t i2, n i;
Wherein, described s i1for the start frame of scene i, t i1for time corresponding to the start frame of scene i, s i2for the end frame of scene i, t i2for time corresponding to the end frame of scene i, n ithe crucial frame number comprising for scene i.
Wherein, described terminal, also comprises:
The second display module, for when receiving user's operational order of all key frames that need represent some video scenes, exports the time corresponding to each key frame of all key frames and/or the described video scene of described video scene.
The embodiment of the present invention can be obtained start frame and the time thereof of each video scene from the key frame of video file, or end frame and time thereof, start frame and end frame by each video scene represent video scene to user, user can select video shearing point by start frame and the end frame of video scene, can reduce the selection difficulty of video shearing point, improve the search efficiency of video shearing point, improve video shear efficiency, the user that augmented video is sheared experiences.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the embodiment schematic flow sheet of the preprocess method sheared of the video that provides of the embodiment of the present invention;
Fig. 2 is a structural representation of the embodiment of the terminal that provides of the embodiment of the present invention;
Fig. 3 is another structural representation of the embodiment of the terminal that provides of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, it is the embodiment schematic flow sheet of the preprocess method sheared of the video that provides of the embodiment of the present invention.The preprocess method that video described in the embodiment of the present invention is sheared, comprises step:
S101, started along the key frame of the progress direction search video file of video playback from video playback time of appointment.
S102 obtains the characteristic information of each video scene in the video scene of default number from the key frame of described video file.
In specific implementation, in the video scene described in the embodiment of the present invention, each video scene comprises the picture group sheet that the frame of video of video file presents under same background; Or, each video scene comprises that similarity reaches one group of continuous picture of predetermined threshold value, be that video scene described in the present embodiment mainly refers to one group of continuous similar picture in the frame of video of video file, or in frame of video at a picture group sheet of same background.In some feasible embodiments, a video generally can be comprised of several video scenes, if comprise advertisement in video, advertising segment also can be comprised of a plurality of video scenes, user if desired shears the advertising segment in video, can, by forming a plurality of video scene shear removals of advertising segment, obtain a complete video that there is no advertisement.In specific implementation, in order to make the shear removal of the video segments such as advertisement more thorough, make to shear the video obtaining more perfect, when user shears video, generally need to be by whole video scene shear removal, if the video segments such as advertisement comprise a plurality of video scenes, need a plurality of video scene shear removals, and need to start from first picture (being the start frame of video scene) of video scene to shear or after the end frame of a video scene, start to shear from video scene to be sheared, and can not start to shear from the intermediate picture (key frame in the middle of video scene) of video scene, so user carries out need to obtaining when video is sheared start frame (the first pictures starting) and the end frame of video scene, the start frame of video (or end frame of a upper video scene (going up last picture of a video scene)) is removed and can be cut off a video scene to the segment cut between end frame.In order to meet the shearing demand of user to video scene, improve user and search the start frame of video scene and the efficiency of end frame, the embodiment of the present invention can be searched the start frame of each video scene and end frame represent to user, the number of the key frame that also time of video scene start frame and end frame and this video scene always can be had represents to user, user can find start frame and the end frame of video scene fast, and the shearing point of therefrom selecting video to shear is carried out shear treatment to video.
In some feasible embodiments, because the display screen of the terminal of displaying video has size restriction, the picture number that terminal display can show is simultaneously limited, for example, a terminal display shows the picture of 50 key frames only simultaneously, if video is each a second key frame, the picture that only has 50 seconds that terminal display shows simultaneously, so, in order to make user can find quickly the characteristic informations such as the start frame of the video segment for the treatment of shear removal and end frame, can be according to the number of the pre-defined video scene once showing of the size of the terminal display of displaying video (once the number of displayable key frame of video), and the starting point of the video scene of appointment demonstration, can specify a video playback time as the starting point of the key frame search of video, the progress direction of this video playback time as starting point along video playback of take shows the start frame of the video scene of default number, the characteristic informations such as end frame.For example, at the video of 2 minutes, can specify the locating for 30 seconds as starting point of this video, take the locating for 30 seconds as starting point of this video, the characteristic information that shows backward 3 video scenes, if each video scene is 10 seconds, this video within 30 seconds, be just in time again the start frame of first video scene, the start frame that in the fragment showing, first key frame is first video scene (being the 30th second corresponding key frame of video), in the video of 60 seconds, last key frame is the end frame (i.e. the 60th second corresponding key frame of this video) of the 3rd video scene.
In some feasible embodiments, can start from the video playback time of appointment along the key frame of the progress direction search video file of video playback, from the key frame frame of video file, obtain the characteristic information of each video scene the video scene of default number.Wherein, above-mentioned characteristic information comprises: the start frame of video scene and corresponding time thereof, end frame and corresponding time, the crucial frame number that video scene comprises etc. of video scene, concrete, also can obtain each key frame (i.e. other key frames except start frame and end frame) of each video scene.In specific implementation, while obtaining the characteristic information of each video scene in the video scene of presetting number from the key frame of video file, specifically can be first start to obtain the key frame (for example first key frame of video file) of video file from video playback time of appointment, and this key frame is set as to the start frame of first video scene, record the time that this start frame is corresponding.Then continue to obtain the next key frame of video from video file, and judge this key frame and before it picture analogies degree of a key frame (for example first key frame) whether reach default similarity threshold, can judge by methods such as pixel comparison the background of the picture of this key frame and the picture of previous key frame, or whether the scape in picture, thing feature be similar, take that this judges that whether these two key frames are the key frame of same video scene.If judgement is learnt the similarity of this key frame and a key frame above and is reached default similarity threshold, can judge and learn this key frame and a key frame that key frame is same video scene above, this key frame can be joined in the video scene (being first video scene) of previous key frame, the number of the key frame that now first video scene comprises adds 1; If the similarity of learning this key frame and a key frame above of judgement does not reach default similarity threshold, can judge and learn this key frame and a key frame that key frame is not same video scene above, now this key frame can be set as to the start frame of second video scene and record the time that this key frame is corresponding, also previous key frame can be set as to the end frame of first video scene, and record time corresponding to this end frame.
Obtain the similarity that can continue to obtain the 3rd key frame from video file and judge the 3rd key frame and second key frame after second key frame of video file, take and determine that whether the 3rd key frame and second key frame be the key frame of same video scene, and then the 3rd key frame joined in the video scene of second key frame or be set as the start frame of the 3rd video scene, can be according to obtain one by one the key frame of video file from video file, and one by one the key frame that gets of judgement and before it picture analogies degree of a key frame whether reach default similarity threshold, and then each key frame is joined in corresponding video scene or be set as the start frame of new video scene according to judged result, according to said method cycle criterion, set, until the number of the video scene getting reaches default number.For example, if predefined video scene number is 3, before and after 10 key frames that start to get continuously from video playback time of appointment, the similarity of 2 key frames all reaches default similarity threshold, these 10 key frames can be set as to the key frame of first video scene, wherein, first key frame is the start frame of first video scene, the tenth end frame that key frame is first video scene, the frame number that first video scene comprises is 10, and records start frame and time corresponding to end frame difference.While obtaining the 11 key frame, the similarity that judgement obtains this key frame and the tenth key frame does not reach default similarity threshold, the 11 key frame can be set as to the start frame of second video scene, record the time that this key frame is corresponding and continue to obtain the key frame of video file.If the similarity of former and later two key frames all reaches default similarity threshold in ensuing 9 key frames, these 10 key frames can be set as to the key frame of second video scene, wherein the 20 key frame is the end frame of second video scene, the frame number that second video scene comprises is also 10, and records time corresponding to end frame.While obtaining the 21 key frame, judgement learns that the similarity of this key frame and the 20 key frame does not reach default similarity threshold, the 21 key frame can be set as to the start frame of the 3rd video scene, record the time that this key frame is corresponding and continue to obtain the key frame of video file.If the similarity of former and later two key frames all reaches default similarity threshold in ensuing 9 key frames, these 10 key frames can be set as to the key frame of the 3rd video scene, the 30 end frame that key frame is the 3rd video scene wherein, the 3rd frame number that video scene comprises is also 10, and records time corresponding to end frame.So, after getting the characteristic information of three video scenes, the characteristic information of these three video scenes can be exported on the display screen of terminal, for user, select.
S103, represents the characteristic information of described each video scene to user, and start frame or the end frame of for user, take in described characteristic information are selection foundation selection video shearing point.
In some feasible embodiments, after getting the characteristic information of the video scene of presetting number, can be by the characteristic information of these video scenes, comprise that start frame and corresponding time, end frame and corresponding time thereof thereof, the information such as frame number that video scene comprises represent to user, user can select corresponding start frame and end frame as video shearing point, video to be sheared according to the characteristic information of the video scene representing on terminal display.In specific implementation, when the characteristic information of the video scene obtaining is represented to user, the characteristic information of each video scene of default number can be represented to user according to specified format, wherein, above-mentioned specified format can comprise: { s i1, t i1, s i2, t i2, n i; Wherein, s i1for the start frame of scene i, t i1for time corresponding to the start frame of scene i, s i2for the end frame of scene i, t i2for time corresponding to the end frame of scene i, n ithe crucial frame number comprising for scene i.For example, default video scene number is 3, and after having got the characteristic information of 3 video scenes, the characteristic information of these three video scenes can be represented to user according to above-mentioned form, for example { s 11, t 11, s 12, t 12, n 1, { s 21, t 21, s 22, t 22, n 2, { s 31, t 31, s 32, t 32, n 3etc., start frame s wherein i1, end frame s i2specifically can be a concrete picture.
In some feasible embodiments, the characteristic information of video scene is represented to after user, the shearing point that user can shear as video according to concrete some point of the Information Selection of the start frame of each video scene and end frame, from the start frame of video scene, start to shear, at the end frame place of video scene, stop shearing, so can be by this video scene shear removal, if video segment to be sheared comprises continuous or discontinuous a plurality of video scenes, can select corresponding shearing point by this video segment shear removal according to the concrete time point of the start frame of these video scenes or end frame, for example, to obtain a complete video that there is no unnecessary content (advertisement).The present embodiment is only by the start frame of video scene and end frame and corresponding time thereof, the frame number of video scene represents to user, can make full use of the information that the limited resources such as terminal display represent more video scene, if the terminal display of displaying video can show the picture of 50 key frames, if the key frame number of each video scene is 10, prior art only can represent 5 video scenes, the embodiment of the present invention can represent 25 video scenes, the embodiment of the present invention has improved the once number of displayable scene of terminal display greatly, the user once number of browsable video scene has increased widely, reduced the difficulty of searching of video shearing point, improved the efficiency of searching of video shearing point, also improved the efficiency that video is sheared.
In addition, embodiment of the present invention acquiescence is by the start frame of video scene and corresponding time thereof, end frame and corresponding time thereof, the characteristic informations such as frame number that video scene comprises represent to after user, also can meet user's specific demand, for example, when user wants to shear video from the centre position of video scene, can to terminal, send user's operational order of all key frames that need represent this video scene by double-clicking the modes such as this video scene, after terminal receives this user's operational order, all key frames of exportable this video scene, also time corresponding to each key frame of this video scene can be represented to user, user can select optional position as video shearing point from all key frames of this video scene, video is carried out to shear treatment.
The embodiment of the present invention can be obtained start frame and the time thereof of each video scene from the key frame of video file, or end frame and time thereof, start frame and end frame by each video scene represent video scene to user, user can select video shearing point by start frame and the end frame of video scene, can under the condition of existing terminal display size, represent more video scene, can reduce the selection difficulty of video shearing point, reduce man-machine interaction, improve the search efficiency of video shearing point, improve video shear efficiency, the user that augmented video is sheared experiences.
Referring to Fig. 2, it is the example structure schematic diagram of the terminal that provides of the embodiment of the present invention.Terminal described in the present embodiment, comprising:
Search module 10, started along the key frame of the progress direction search video file of video playback for the video playback time from appointment.
Acquisition module 20, for the key frame from described video file, obtain the characteristic information of each video scene the video scene of presetting number, described characteristic information comprises: at least one information in the crucial frame number that the start frame of video scene and corresponding time, end frame and corresponding time, video scene thereof thereof comprise.
The first display module 30, for the characteristic information of described each video scene is represented to user, start frame or the end frame of for user, take in described characteristic information are selection foundation selection video shearing point.
In some feasible embodiments, the terminal (as Fig. 3) described in the embodiment of the present invention, also comprises:
The second display module 40, for when receiving user's operational order of all key frames that need represent some video scenes, exports the time corresponding to each key frame of all key frames and/or the described video scene of described video scene.
In some feasible embodiments, the acquisition module 20 described in the embodiment of the present invention, comprising:
The first acquiring unit 21, starts to obtain a key frame of video file for the video playback time from described appointment, and described key frame is set as to the start frame of first video scene, records the time that described start frame is corresponding.
Judging unit 22, for obtaining next key frame from described video file, judge described key frame and before it picture analogies degree of a key frame whether reach default similarity threshold.
Processing unit 23, while for judgment result is that at described judging unit being, described key frame is added in first video scene, the frame number that described first video scene comprises adds 1, at described judging unit when the determination result is NO, described key frame be set as to the start frame of second video scene and record the time that described key frame is corresponding, a key frame above of described key frame being set as to the end frame of first video scene, and recording time corresponding to described end frame.
Second acquisition unit 24, for continuing to obtain one by one from described video file the key frame of described video file, whether the picture analogies degree that judges one by one described key frame and the key frame before it reaches default similarity threshold, and described key frame is joined in corresponding video scene or be set as the start frame of new video scene according to judged result, until the number of the video scene getting reaches default number.
Output unit 25, for exporting the characteristic information of each video scene.
In specific implementation, in the video scene described in the embodiment of the present invention, each video scene comprises the picture group sheet that the frame of video of video file presents under same background; Or, each video scene comprises that similarity reaches one group of continuous picture of predetermined threshold value, be that video scene described in the present embodiment mainly refers to one group of continuous similar picture in the frame of video of video file, or in frame of video at a picture group sheet of same background.In some feasible embodiments, a video generally can be comprised of several video scenes, if comprise advertisement in video, advertising segment also can be comprised of a plurality of video scenes, user if desired shears the advertising segment in video, can, by forming a plurality of video scene shear removals of advertising segment, obtain a complete video that there is no advertisement.In specific implementation, in order to make the shear removal of the video segments such as advertisement more thorough, make to shear the video obtaining more perfect, when user shears video, generally need to be by whole video scene shear removal, if the video segments such as advertisement comprise a plurality of video scenes, need a plurality of video scene shear removals, and need to start from first picture (being the start frame of video scene) of video scene to shear or after the end frame of a video scene, start to shear from video scene to be sheared, and can not start to shear from the intermediate picture (key frame in the middle of video scene) of video scene, so user carries out need to obtaining when video is sheared start frame (the first pictures starting) and the end frame of video scene, the start frame of video (or end frame of a upper video scene (going up last picture of a video scene)) is removed and can be cut off a video scene to the segment cut between end frame.In order to meet the shearing demand of user to video scene, improve user and search the start frame of video scene and the efficiency of end frame, the embodiment of the present invention can be searched the start frame of each video scene and end frame represent to user, the number of the key frame that also time of video scene start frame and end frame and this video scene always can be had represents to user, user can find start frame and the end frame of video scene fast, and the shearing point of therefrom selecting video to shear is carried out shear treatment to video.
In some feasible embodiments, because the display screen of the terminal of displaying video has size restriction, the picture number that terminal display can show is simultaneously limited, for example, a terminal display shows the picture of 50 key frames only simultaneously, if video is each a second key frame, the picture that only has 50 seconds that terminal display shows simultaneously, so, in order to make user can find quickly the characteristic informations such as the start frame of the video segment for the treatment of shear removal and end frame, can be according to the number of the pre-defined video scene once showing of the size of the terminal display of displaying video (once the number of displayable key frame of video), and the starting point of the video scene of appointment demonstration, can specify a video playback time as the starting point of the key frame search of video, the progress direction of this video playback time as starting point along video playback of take shows the start frame of the video scene of default number, the characteristic informations such as end frame.For example, at the video of 2 minutes, can specify the locating for 30 seconds as starting point of this video, take the locating for 30 seconds as starting point of this video, the characteristic information that shows backward 3 video scenes, if each video scene is 10 seconds, this video within 30 seconds, be just in time again the start frame of first video scene, the start frame that in the fragment showing, first key frame is first video scene (being the 30th second corresponding key frame of video), in the video of 60 seconds, last key frame is the end frame (i.e. the 60th second corresponding key frame of this video) of the 3rd video scene.
In some feasible embodiments, terminal can start along the key frame of the progress direction search video file of video playback from video playback time of appointment by search module 10, and the key frame frame of the video file searching from search module 10 by acquisition module 20 obtains the characteristic information of each video scene the video scene of default number.Wherein, above-mentioned characteristic information comprises: the start frame of video scene and corresponding time thereof, end frame and corresponding time, the frame number that video scene comprises etc. of video scene, concrete, acquisition module 20 also can obtain each key frame (i.e. other key frames except start frame and end frame) of each video scene.In specific implementation, when acquisition module 20 obtains the characteristic information of each video scene in the video scene of presetting number from the key frame of video file, specifically can be first by the first acquiring unit 21, from video playback time of appointment, start to obtain a key frame (for example first key frame of video file) of video file, and this key frame is set as to the start frame of first video scene, record the time that this start frame is corresponding.Then by judge module 22, continue to obtain the next key frame of video from video file, and judge this key frame and before it picture analogies degree of a key frame (for example first key frame) whether reach default similarity threshold, can judge by methods such as pixel comparison the background of the picture of this key frame and the picture of previous key frame, or whether the scape in picture, thing feature be similar, take that this judges that whether these two key frames are the key frame of same video scene.If judging unit 22 judgements learn that the similarity of this key frame and a key frame above reaches default similarity threshold, can judge and learn this key frame and a key frame that key frame is same video scene above, 23 of processing units can join this key frame in the video scene (being first video scene) of previous key frame, and the number of the key frame that now first video scene comprises adds 1; If the similarity of learning this key frame and a key frame above of judging unit 22 judgements does not reach default similarity threshold, can judge and learn this key frame and a key frame that key frame is not same video scene above, now 23 of processing units can be set as this key frame the start frame of second video scene and record the time that this key frame is corresponding, also previous key frame can be set as to the end frame of first video scene, and record time corresponding to this end frame.
Terminal is obtained the similarity that can be continued to obtain the 3rd key frame from video file and be judged the 3rd key frames and second key frame by judging unit 22 by second acquisition unit 24 after second key frame of video file, take and determine that whether the 3rd key frame and second key frame be the key frame of same video scene, and then by processing unit 23, the 3rd key frame joined in the video scene of second key frame or be set as the start frame of the 3rd video scene, be that terminal can be according to obtain one by one the key frame of video file from video file, and one by one the key frame that gets of judgement and before it picture analogies degree of a key frame whether reach default similarity threshold, and then each key frame is joined in corresponding video scene or be set as the start frame of new video scene according to judged result, according to said method cycle criterion, set, until the number of the video scene getting reaches default number.For example, if predefined video scene number is 3, before and after 10 key frames that terminal started to get continuously from video playback time of appointment, the similarity of 2 key frames all reaches default similarity threshold, these 10 key frames can be set as to the key frame of first video scene, wherein, first key frame is the start frame of first video scene, the tenth end frame that key frame is first video scene, the frame number that first video scene comprises is 10, and records start frame and time corresponding to end frame difference.When terminal is obtained the 11 key frame, the similarity that judgement obtains this key frame and the tenth key frame does not reach default similarity threshold, the 11 key frame can be set as to the start frame of second video scene, record the time that this key frame is corresponding and continue to obtain the key frame of video file.If the similarity of former and later two key frames all reaches default similarity threshold in ensuing 9 key frames, these 10 key frames can be set as to the key frame of second video scene, wherein the 20 key frame is the end frame of second video scene, the frame number that second video scene comprises is also 10, and records time corresponding to end frame.When terminal is obtained the 21 key frame, judgement learns that the similarity of this key frame and the 20 key frame does not reach default similarity threshold, the 21 key frame can be set as to the start frame of the 3rd video scene, record the time that this key frame is corresponding and continue to obtain the key frame of video file.If the similarity of former and later two key frames all reaches default similarity threshold in ensuing 9 key frames, these 10 key frames can be set as to the key frame of the 3rd video scene, the 30 end frame that key frame is the 3rd video scene wherein, the 3rd frame number that video scene comprises is also 10, and records time corresponding to end frame.So, after terminal gets the characteristic information of three video scenes, can by output unit 25, the characteristic information of these three video scenes be exported on the display screen of terminal, for user, select.
In some feasible embodiments, after terminal gets the characteristic information of the video scene of presetting number by acquiring unit 20, can be by the first display module 30 by the characteristic information of these video scenes, comprise that start frame and corresponding time, end frame and corresponding time thereof thereof, the information such as frame number that video scene comprises represent to user, user can select corresponding start frame and end frame as video shearing point, video to be sheared according to the characteristic information of the video scene representing on terminal display.In specific implementation, when the first display module 30 represents to user by the characteristic information of the video scene obtaining, the characteristic information of each video scene of default number can be represented to user according to specified format, wherein, above-mentioned specified format can comprise: { s i1, t i1, s i2, t i2, n i; Wherein, s i1for the start frame of scene i, t i1for time corresponding to the start frame of scene i, s i2for the end frame of scene i, t i2for time corresponding to the end frame of scene i, n ithe crucial frame number comprising for scene i.For example, default video scene number is 3, and after having got the characteristic information of 3 video scenes, the first 30 of display units can represent the characteristic information of these three video scenes to user according to above-mentioned form, for example { s 11, t 11, s 12, t 12, n 1, { s 21, t 21, s 22, t 22, n 2, { s 31, t 31, s 32, t 32, n 3etc., start frame s wherein i1, end frame s i2specifically can be a concrete picture.
In some feasible embodiments, the first display module 30 represents the characteristic information of video scene to after user, the shearing point that user can shear as video according to concrete some point of the Information Selection of the start frame of each video scene and end frame, from the start frame of video scene, start to shear, at the end frame place of video scene, stop shearing, so can be by this video scene shear removal, if video segment to be sheared comprises continuous or discontinuous a plurality of video scenes, can select corresponding shearing point by this video segment shear removal according to the concrete time point of the start frame of these video scenes or end frame, for example, to obtain a complete video that there is no unnecessary content (advertisement).The present embodiment is only by the start frame of video scene and end frame and corresponding time thereof, the frame number of video scene represents to user, can make full use of the information that the limited resources such as terminal display represent more video scene, if the terminal display of displaying video can show the picture of 50 key frames, if the key frame number of each video scene is 10, prior art only can represent 5 video scenes, the embodiment of the present invention can represent 25 video scenes, the embodiment of the present invention has improved the once number of displayable scene of terminal display greatly, the user once number of browsable video scene has increased widely, reduced the difficulty of searching of video shearing point, improved the efficiency of searching of video shearing point, also improved the efficiency that video is sheared.
In addition, the embodiment of the present invention is passed through the first display module 30 by the start frame of video scene and corresponding time thereof, end frame and corresponding time thereof, the characteristic informations such as frame number that video scene comprises represent to after user, also can meet by the second display module 40 user's specific demand, for example, when user wants to shear video from the centre position of video scene, can to terminal, send user's operational order of all key frames that need represent this video scene by double-clicking the modes such as this video scene, after terminal receives this user's operational order, can be by all key frames of second display module 40 these video scenes of output, also time corresponding to each key frame of this video scene can be represented to user, user can select optional position as video shearing point from all key frames of this video scene, video is carried out to shear treatment.
The described terminal of the embodiment of the present invention can be obtained start frame and the time thereof of each video scene from the key frame of video file, or end frame and time thereof, start frame and end frame by each video scene represent video scene to user, user can select video shearing point by start frame and the end frame of video scene, can under the condition of existing terminal display size, represent more video scene, can reduce the selection difficulty of video shearing point, reduce man-machine interaction, improve the search efficiency of video shearing point, improve video shear efficiency, the user that augmented video is sheared experiences.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (10)

1. the preprocess method that video is sheared, is characterized in that, comprising:
Start along the key frame of the progress direction search video file of video playback from video playback time of appointment;
The characteristic information that obtains each video scene in the video scene of presetting number from the key frame of described video file, described characteristic information comprises: at least one information in the crucial frame number that the start frame of video scene and corresponding time, end frame and corresponding time, video scene thereof thereof comprise;
The characteristic information of described each video scene is represented to user, and start frame or the end frame of for user, take in described characteristic information are selection foundation selection video shearing point.
2. the method for claim 1, is characterized in that, each video scene comprises the picture group sheet that the frame of video of video file presents under same background;
Or each video scene comprises that similarity reaches one group of continuous picture of predetermined threshold value.
3. method as claimed in claim 2, is characterized in that, the described characteristic information that obtains each video scene in the video scene of presetting number from the key frame of described video file, comprising:
Start to obtain a key frame of described video file from the video playback time of described appointment, and described key frame is set as to the start frame of first video scene, record the time that described start frame is corresponding;
From described video file, obtain next key frame, judge described key frame and before it picture analogies degree of a key frame whether reach default similarity threshold;
If the determination result is YES, described key frame is added in first video scene, the frame number that described first video scene comprises adds 1, if the determination result is NO, described key frame be set as to the start frame of second video scene and record the time that described key frame is corresponding, a key frame above of described key frame is set as to the end frame of first video scene, and records time corresponding to described end frame;
The key frame of described video file is obtained one by one in continuation from described video file, whether the picture analogies degree that judges one by one described key frame and the key frame before it reaches default similarity threshold, and described key frame is joined in corresponding video scene or be set as the start frame of new video scene according to judged result, until the number of the video scene getting reaches default number, and export the characteristic information of each video scene.
4. the method as described in any one in claim 1-3, is characterized in that, the described characteristic information by described video scene represents to user, comprising:
The characteristic information of described each video scene is represented to user according to specified format, and described specified format comprises: { s i1, t i1, s i2, t i2, n i;
Wherein, described s i1for the start frame of scene i, t i1for time corresponding to the start frame of scene i, s i2for the end frame of scene i, t i2for time corresponding to the end frame of scene i, n ithe crucial frame number comprising for scene i.
5. method as claimed in claim 3, is characterized in that, after the characteristic information of described each video scene of output, also comprises:
When receiving user's operational order of all key frames that need represent some video scenes, export the time corresponding to each key frame of all key frames and/or the described video scene of described video scene.
6. a terminal, is characterized in that, comprising:
Search module, started along the key frame of the progress direction search video file of video playback for the video playback time from appointment;
Acquisition module, for the key frame from described video file, obtain the characteristic information of each video scene the video scene of presetting number, described characteristic information comprises: at least one information in the crucial frame number that the start frame of video scene and corresponding time, end frame and corresponding time, video scene thereof thereof comprise;
The first display module, for the characteristic information of described each video scene is represented to user, start frame or the end frame of for user, take in described characteristic information are selection foundation selection video shearing point.
7. terminal as claimed in claim 6, is characterized in that, each video scene comprises the picture group sheet that the frame of video of video file presents under same background;
Or each video scene comprises that similarity reaches one group of continuous picture of predetermined threshold value.
8. terminal as claimed in claim 7, is characterized in that, described acquisition module, comprising:
The first acquiring unit, starts to obtain a key frame of video file for the video playback time from described appointment, and described key frame is set as to the start frame of first video scene, records the time that described start frame is corresponding;
Judging unit, for obtaining next key frame from described video file, judge described key frame and before it picture analogies degree of a key frame whether reach default similarity threshold;
Processing unit, while for judgment result is that at described judging unit being, described key frame is added in first video scene, the frame number that described first video scene comprises adds 1, at described judging unit when the determination result is NO, described key frame be set as to the start frame of second video scene and record the time that described key frame is corresponding, a key frame above of described key frame being set as to the end frame of first video scene, and recording time corresponding to described end frame;
Second acquisition unit, for continuing to obtain one by one from described video file the key frame of described video file, whether the picture analogies degree that judges one by one described key frame and the key frame before it reaches default similarity threshold, and described key frame is joined in corresponding video scene or be set as the start frame of new video scene according to judged result, until the number of the video scene getting reaches default number;
Output unit, for exporting the characteristic information of each video scene.
9. the terminal as described in claim 6-8 any one, is characterized in that, when described the first display module represents to user by the characteristic information of described video scene, specifically for:
The characteristic information of described each video scene is represented to user according to specified format, and described specified format comprises: { s i1, t i1, s i2, t i2, n i;
Wherein, described s i1for the start frame of scene i, t i1for time corresponding to the start frame of scene i, s i2for the end frame of scene i, t i2for time corresponding to the end frame of scene i, n ithe crucial frame number comprising for scene i.
10. terminal as claimed in claim 8, is characterized in that, described terminal, also comprises:
The second display module, for when receiving user's operational order of all key frames that need represent some video scenes, exports the time corresponding to each key frame of all key frames and/or the described video scene of described video scene.
CN201310629366.0A 2013-11-29 2013-11-29 Preprocessing method and terminal for video clipping Pending CN103606158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310629366.0A CN103606158A (en) 2013-11-29 2013-11-29 Preprocessing method and terminal for video clipping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310629366.0A CN103606158A (en) 2013-11-29 2013-11-29 Preprocessing method and terminal for video clipping

Publications (1)

Publication Number Publication Date
CN103606158A true CN103606158A (en) 2014-02-26

Family

ID=50124378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310629366.0A Pending CN103606158A (en) 2013-11-29 2013-11-29 Preprocessing method and terminal for video clipping

Country Status (1)

Country Link
CN (1) CN103606158A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093090A (en) * 2014-06-13 2014-10-08 北京奇艺世纪科技有限公司 Video processing method and device
CN105227999A (en) * 2015-09-29 2016-01-06 北京奇艺世纪科技有限公司 A kind of method and apparatus of video cutting
CN105469381A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Information processing method and terminal
WO2017107394A1 (en) * 2015-12-23 2017-06-29 深圳Tcl数字技术有限公司 Method of previewing video playback progress and device
US9799376B2 (en) 2014-09-17 2017-10-24 Xiaomi Inc. Method and device for video browsing based on keyframe
CN108235118A (en) * 2018-01-29 2018-06-29 北京奇虎科技有限公司 A kind of video toning treating method and apparatus
CN108933962A (en) * 2018-06-15 2018-12-04 网宿科技股份有限公司 Smart machine and its control method
CN109429093A (en) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 A kind of method and terminal of video clipping
CN110119711A (en) * 2019-05-14 2019-08-13 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment obtaining video data personage segment
CN111612875A (en) * 2020-04-23 2020-09-01 北京达佳互联信息技术有限公司 Dynamic image generation method and device, electronic equipment and storage medium
CN114125516A (en) * 2020-08-26 2022-03-01 Oppo(重庆)智能科技有限公司 Video playing method, wearable device and storage medium
WO2023279951A1 (en) * 2021-07-05 2023-01-12 北京有竹居网络技术有限公司 Screen recording video processing method and apparatus, and readable medium and electronic device
US11995371B2 (en) 2020-05-29 2024-05-28 Boe Technology Group Co., Ltd. Dividing method, distribution method, medium, server, system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070182861A1 (en) * 2006-02-03 2007-08-09 Jiebo Luo Analyzing camera captured video for key frames
CN101021855A (en) * 2006-10-11 2007-08-22 鲍东山 Video searching system based on content
CN102413381A (en) * 2011-11-21 2012-04-11 福建师范大学 Video watermark based on optical flow method and digital holographic

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070182861A1 (en) * 2006-02-03 2007-08-09 Jiebo Luo Analyzing camera captured video for key frames
CN101021855A (en) * 2006-10-11 2007-08-22 鲍东山 Video searching system based on content
CN102413381A (en) * 2011-11-21 2012-04-11 福建师范大学 Video watermark based on optical flow method and digital holographic

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093090B (en) * 2014-06-13 2018-04-13 北京奇艺世纪科技有限公司 A kind of method for processing video frequency and device
CN104093090A (en) * 2014-06-13 2014-10-08 北京奇艺世纪科技有限公司 Video processing method and device
CN105469381B (en) * 2014-09-11 2021-02-05 腾讯科技(深圳)有限公司 Information processing method and terminal
CN105469381A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Information processing method and terminal
US9799376B2 (en) 2014-09-17 2017-10-24 Xiaomi Inc. Method and device for video browsing based on keyframe
CN105227999B (en) * 2015-09-29 2018-12-14 北京奇艺世纪科技有限公司 A kind of method and apparatus that video is cut
CN105227999A (en) * 2015-09-29 2016-01-06 北京奇艺世纪科技有限公司 A kind of method and apparatus of video cutting
US10893335B2 (en) 2015-12-23 2021-01-12 Shenzhen Tcl Digital Technology Ltd. Method and device for previewing video playback progress
WO2017107394A1 (en) * 2015-12-23 2017-06-29 深圳Tcl数字技术有限公司 Method of previewing video playback progress and device
CN109429093A (en) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 A kind of method and terminal of video clipping
CN108235118A (en) * 2018-01-29 2018-06-29 北京奇虎科技有限公司 A kind of video toning treating method and apparatus
CN108933962A (en) * 2018-06-15 2018-12-04 网宿科技股份有限公司 Smart machine and its control method
CN110119711A (en) * 2019-05-14 2019-08-13 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment obtaining video data personage segment
CN110119711B (en) * 2019-05-14 2021-06-11 北京奇艺世纪科技有限公司 Method and device for acquiring character segments of video data and electronic equipment
CN111612875A (en) * 2020-04-23 2020-09-01 北京达佳互联信息技术有限公司 Dynamic image generation method and device, electronic equipment and storage medium
US11995371B2 (en) 2020-05-29 2024-05-28 Boe Technology Group Co., Ltd. Dividing method, distribution method, medium, server, system
CN114125516A (en) * 2020-08-26 2022-03-01 Oppo(重庆)智能科技有限公司 Video playing method, wearable device and storage medium
CN114125516B (en) * 2020-08-26 2024-05-10 Oppo(重庆)智能科技有限公司 Video playing method, wearable device and storage medium
WO2023279951A1 (en) * 2021-07-05 2023-01-12 北京有竹居网络技术有限公司 Screen recording video processing method and apparatus, and readable medium and electronic device

Similar Documents

Publication Publication Date Title
CN103606158A (en) Preprocessing method and terminal for video clipping
DE69823917T2 (en) Information recording medium, reproducing apparatus and method
CN102222103B (en) Method and device for processing matching relationship of video content
CN112422804B (en) Video special effect generation method and terminal
EP2079234A2 (en) Video searching apparatus, editing apparatus, video searching method, and program
CN103442252A (en) Method and device for processing video
CN104469516B (en) A kind of video web page treating method and apparatus of Android system
JP2009529826A (en) Thumbnail image-based video browsing
CN113613065A (en) Video editing method and device, electronic equipment and storage medium
US20170092324A1 (en) Automatic Video Compositing
CN104185088B (en) A kind of method for processing video frequency and device
US20140363142A1 (en) Information processing apparatus, information processing method and program
KR101440168B1 (en) Method for creating a new summary of an audiovisual document that already includes a summary and reports and a receiver that can implement said method
CN104717571A (en) Key playing time point determination method, video playing method and related device
CN114339285B (en) Knowledge point processing method, video processing method, device and electronic equipment
CN106202157A (en) Video method for quickly retrieving based on time stream
CN101630524A (en) Method for searching multimedia contents
CN1902935B (en) Apparatus and method for searching for a video clip
CN103390416B (en) Video broadcasting method and device
US10402438B2 (en) Systems and methods of visualizing multimedia content
CN118175382A (en) Material video generation method, device, equipment and storage medium
CN104768083B (en) A kind of video broadcasting method and device of chapters and sections content displaying
EP1662508A1 (en) Multimedia data playback device and driving method thereof
JP2005252372A (en) Digest video image producing device and method
CN100518260C (en) Method for providing recorded program content information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN TONGZHOU ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHENZHEN LONGSHI MEDIA CO., LTD.

Effective date: 20140514

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140514

Address after: 518057 Nanshan District hi tech park, Guangdong, North District Rainbow science and Technology Building

Applicant after: Shenzhen Tongzhou Electronic Co., Ltd.

Address before: 518057 District, Guangdong, Nanshan District hi tech Zone, the North Zone of the Fifth Industrial Zone, rainbow science and technology building, A2-3 District,

Applicant before: Shenzhen Longguan Media Co., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140226