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.
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.