Summary of the invention
The embodiment of the present invention provides a kind of video editing method and device, to realizing the cutting of multistage video segment and making video editing operations more humane.
The embodiment of the present invention provides a kind of video editing method, it is characterized in that, comprising:
When often receiving the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, described precut videograph comprises cutting initial time and cutting end time;
Receive to the initial button of cutting on the broadcasting scroll bar of the described video editing page and/or cutting conclusion button drag command time, adjust described precut videograph cutting initial time and/or cutting the end time;
Preserve described precut videograph;
When receiving the cutting order of all precut videographs in described list box, the videograph precut according to the every bar listed in described list box cuts described video to be edited, obtains video segment;
The described video segment that cutting obtains is merged into a video.
Preferably, after the videograph that generation one is precut in the list box of the described video editing page, before the cutting order receiving all precut videographs in described list box, also comprise:
Delete described precut videograph.
Preferably, after the videograph that generation one is precut in the list box of the described video editing page, before the described precut videograph of preservation, also comprise:
When receiving the instruction of videograph precut described in preview, the play control controlling the described video editing page is play from the initial button position of the cutting of described precut videograph.
Preferably, described method also comprises:
Described broadcasting scroll bar arranges the first mark, and described first mark is for the precut region on described broadcasting scroll bar between the instruction initial button of cutting and cutting conclusion button.
Preferably, also comprised before receiving the precut order treating editing video:
According to the index file of described video to be edited, described broadcasting scroll bar arranges the second mark, the white space of described second mark for indicating described video to be edited on described broadcasting scroll bar;
Wherein, described index file comprises the time period information recording described video to be edited.
Correspondingly, the embodiment of the present invention also provides a kind of video editing apparatus, it is characterized in that, comprising:
Precut videograph generation module, during for often receiving the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, described precut videograph comprises cutting initial time and cutting end time;
Time regulating module, for receive to the initial button of cutting on the broadcasting scroll bar of the described video editing page and/or cutting conclusion button drag command time, adjust described precut videograph cutting initial time and/or cutting the end time;
Precut videograph preserves module, for preserving described precut videograph;
Video segment generation module, for when receiving the cutting order of all precut videographs in described list box, the videograph precut according to bar every in described list box cuts described video to be edited, obtains video segment;
Video segment merges module, merges into a video for described video segment cutting obtained.
Preferably, described device also comprises:
Precut videograph removing module, for deleting described precut videograph.
Preferably, described device also comprises:
Precut videograph previewing module, for when receiving the instruction of videograph precut described in preview, the play control controlling the described video editing page is play from the initial button position of the cutting of described precut videograph.
Preferably, described device also comprises:
First mark arranges module, and for arranging the first mark on described broadcasting scroll bar, described first mark is for the precut region on described broadcasting scroll bar between the instruction initial button of cutting and cutting conclusion button.
Preferably, described device also comprises:
Second mark arranges module, for the index file according to described video to be edited, described broadcasting scroll bar arranges the second mark, the white space of described second mark for indicating described video to be edited on described broadcasting scroll bar;
Wherein, described index file comprises the time period information recording described video to be edited.
Therefore, in feasible execution modes more of the present invention, precut by treating editing video, precut videograph is generated in the list box of the video editing page, and the initial button of cutting dragged on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, the cutting initial time of the videograph that adjustment is precut and/or cutting end time, preserve the precut videograph after adjustment, then these videographs cut and merge into a video, the cutting of multistage video segment can be realized and make video editing operations more humane.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 3 is the method flow diagram of an embodiment of a kind of video editing method of the present invention.As shown in Figure 3, this video editing method comprises the following steps:
Step S101, when often receiving the precut order treating editing video, generates a precut videograph in the list box of the video editing page, and this precut videograph comprises cutting initial time and cutting end time.
In this step, user, by the video editing page on local client or local browser, browses the video to be edited be positioned on remote server.User, according to the precut videograph gone for, treats editing video and precuts, and sends precut order to the video editing page.When the video editing page often receives the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, this precut videograph is included in the cutting initial time on video to be edited and cuts the end time.This precut order is not treat editing video to carry out real cutting, and just records cutting initial time and the cutting end time of a precut videograph.
When often receiving the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, until complete the precut operation treating editing video.
The friendly interface of this video editing page, user operation is convenient.
Step S102, when receiving the drag command to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph.
Cutting initial time and the cutting end time of the precut videograph generated by step S101 are very inaccurate, therefore, user needs to drag the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph.
The video editing page receive to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button drag command time, cutting initial time and/or the cutting end time of this precut videograph in list box follow change, thus have adjusted cutting initial time and/or the cutting end time of this precut videograph.
As a kind of optional embodiment, the cutting initial time that videograph precut in list box is corresponding and cutting end time can edit, therefore, this video editing method also comprises: when receiving cutting initial time corresponding to videograph precut in list box or the edit instruction of cutting end time, adjusts cutting initial time and/or the cutting end time of this precut videograph.After the videograph that generation one is precut, user first can drag the initial button of cutting on scroll bar and/or cutting conclusion button to a general position, the image of this position of preview again, simultaneously by cutting initial time in modification list frame and the cutting end time finely tunes, make the video that precuts more accurate.
Step S103, preserves precut videograph.
In this step, the videograph that every bar in list box precuts is by the initial button of cutting on dragging scroll bar or cutting conclusion button, or the value in modification list frame to cutting initial time or cutting the end time adjust to user want cut position after, need to this precut videograph carry out preservations confirmation.
Step S104, when receiving the cutting order of all precut videographs in list box, the videograph precut according to bar every in list box treats editing video cutting, obtains video segment.
The background program that all precut videograph in the list box kept is submitted to remote server is cut, background program is when receiving the cutting order of all precut videographs in list box, the videograph precut according to bar every in list box treats editing video cutting, obtains video segment.Each precut videograph correspondingly can obtain a video segment.
Step S105, merges into a video by the video segment that cutting obtains.
The video segment cutting acquisition in step S104 is merged into a video by background program, by the video storage of merging in remote video server, is presented to audience by VOD column.
According to a kind of video editing method that the embodiment of the present invention provides, precut by treating editing video, precut videograph is generated in the list box of the video editing page, and the initial button of cutting dragged on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, the cutting initial time of the videograph that adjustment is precut and/or cutting end time, preserve the precut videograph after adjustment, then these videographs cut and merge into a video, the cutting of multistage video segment can be realized and make video editing operations more humane.
Fig. 4 is the method flow diagram of the further refinement of an embodiment to a kind of video editing method of the present invention shown in Fig. 3.As shown in Figure 4, this video editing method comprises the following steps:
Step S106, broadcasting scroll bar arranges the first mark, and this first mark is for playing the precut region on scroll bar between the instruction initial button of cutting and cutting conclusion button.
User is by the video editing page on local client or local browser, and the video editing page as shown in Figure 5, browses the video to be edited 1 be positioned on remote server.User treats editing video 1 cut by dragging and clicking the initial button 5 of cutting on the broadcasting scroll bar 7 of video to be edited and cutting conclusion button 6, generates precut videograph 2.Cutting zone corresponding to precut videograph clearly can be understood in order to allow user, broadcasting scroll bar 7 arranges the first mark 3, this first mark 3 is for playing the precut region on scroll bar 7 between the instruction initial button of cutting and cutting conclusion button, the broadcasting scroll bar 7 of such as video to be edited is a kind of color, this first mark 3 be another kind of color, in order to the initial button of cutting that indicates a precut videograph and the precut region of cutting between conclusion button.Certainly this first mark 3 is not limited to and represents by color.
Step S107, according to the index file of video to be edited, broadcasting scroll bar arranges the second mark, and this second mark is for playing white space scroll bar indicating video to be edited; Wherein, this index file comprises the time period information recording video to be edited.
Because some video is not that continuation is recorded, such as in order to go advertisement, recording by recording plan, there will be video record so discontinuous, discontinuous video council causes cutting difficulty, because do not know whether there is cavitation in a cut video segment.System while generating the video file recorded, then generates an index file in real time, and this index file comprises channel designation, channel ID and records the time period information of this video.
In this step, in order to which region allowing user clearly understand the broadcasting scroll bar of video to be edited does not have recorded video, according to the index file of video to be edited, broadcasting scroll bar 7 arranges the second mark 4, and this second mark 4 is for playing white space scroll bar 7 indicating video to be edited.Such as, this second mark 4 can be the another kind of color of the broadcasting scroll bar 7 and the first mark 3 that are different from video to be edited.Certainly, the second mark 4 is also not limited to and distinguishes by color.
Step S101, when often receiving the precut order treating editing video, generates a precut videograph in the list box of the video editing page, and this precut videograph comprises cutting initial time and cutting end time.
In this step, user, by the video editing page on local client or local browser, browses the video to be edited be positioned on remote server.User, according to the precut videograph gone for, treats editing video and precuts, and sends precut order to the video editing page.This precuts order and can drag respectively for user and click as the initial button 5 of cutting on double-click broadcasting scroll bar 7 or cutting conclusion button 6 send, also can by additionally arranging " increasing a newly " button on interface, click " increasing newly " button, send a precut order.When the video editing page often receives the precut order treating editing video, a precut videograph is generated in the list box of the video editing page, this precut videograph is included in the cutting initial time on video to be edited and cuts the end time, click the cutting initial time that initial button 5 correspondence of cutting produces precut videograph, click the cutting end time that cutting conclusion button 6 correspondence produces precut videograph.This precut order is not treat editing video to carry out real cutting, and just records cutting initial time and the cutting end time of a precut videograph.
When often receiving the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, until complete the precut operation treating editing video.
The friendly interface of this video editing page, user operation is convenient.
Step S108, when receiving the instruction of the videograph that preview precuts, the play control controlling the video editing page is play from the initial button position of cutting of precut videograph.
Owing to dragging and clicking the initial button of cutting play on scroll bar and the precut videograph cutting conclusion button generation, generally roughly can only locate cutting initial time and the cutting end time of precut videograph, user can click the initial button of cutting play on scroll bar and carry out preview, sees that whether the cutting initial time of this precut videograph is accurate with the cutting end time.
Generate a precut videograph in the list box of the video editing page after, before preserving this precut videograph, if receive the instruction of the videograph that preview precuts, the play control controlling the video editing page is play from the initial button position of cutting of precut videograph.
Step S102, when receiving the drag command to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph
By the preview operation of step S108, can know that cutting initial time and/or the cutting end time of the precut videograph generated by step S101 are very inaccurate, therefore, user needs to drag the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph.
The video editing page receive to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button drag command time, cutting initial time and/or the cutting end time of this precut videograph in list box follow change, thus have adjusted cutting initial time and/or the cutting end time of this precut videograph.
Step S103, preserves precut videograph.
In this step, the videograph that every bar in list box precuts is by the initial button of cutting on dragging scroll bar or cutting conclusion button, or the value in modification list frame to cutting initial time or cutting the end time adjust to user want cut position after, need to this precut videograph carry out preservations confirmation.
As shown in Figure 5, after the videograph that the every bar in list box is precut, there is " preservation " button 8, click and should can preserve this corresponding precut videograph by " preservation " button 8.
Step S109, deletes precut videograph.
After the videograph that generation one is precut in list box, before the cutting order receiving all precut videographs in list, if user wants to delete precut videograph, can to click in list box should " deletion " button 9 after the videograph that precuts of bar, this corresponding precut videograph can be deleted.
Step S104, when receiving the cutting order of all precut videographs in list box, the videograph precut according to the every bar listed in list box treats editing video cutting, obtains video segment.
Click " preservation " button 10 on the video editing page, the background program that all precut videograph in the list box kept is submitted to remote server is cut, background program is when receiving the cutting order of all precut videographs in list box, the videograph precut according to bar every in list box treats editing video cutting, obtains video segment.Each precut videograph correspondingly can obtain a video segment.
Step S105, merges into a video by the video segment that cutting obtains.
The video segment cutting acquisition in step S104 is merged into a video by background program, by the video storage of merging in remote video server, is presented to audience by VOD column.
According to a kind of video editing method that the embodiment of the present invention provides, precut by treating editing video, precut videograph is generated in the list box of the video editing page, and the initial button of cutting dragged on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, the cutting initial time of the videograph that adjustment is precut and/or cutting end time, preserve the precut videograph after adjustment, then these videographs cut and merge into a video, and the first cutting mark and the second cutting mark are set, and preview can be carried out and delete precut videograph, the cutting of multistage video segment can be realized and make video editing operations more humane.
Fig. 6 is the structural representation of an embodiment of a kind of video editing apparatus of the present invention.As shown in Figure 6, this video editing apparatus comprises:
Precut videograph generation module 101, during for often receiving the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, this precut videograph comprises cutting initial time and cutting end time.
User, by the video editing page on local client or local browser, browses the video to be edited be positioned on remote server.User, according to the precut videograph gone for, treats editing video and precuts, and sends precut order to the video editing page.When the video editing page often receives the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, this precut videograph is included in the cutting initial time on video to be edited and cuts the end time.This precut order is not treat editing video to carry out real cutting, and just records cutting initial time and the cutting end time of a precut videograph.
When often receiving the precut order treating editing video, precut videograph generation module 101 generates a precut videograph in the list box of the video editing page, until complete the precut operation treating editing video.
The friendly interface of this video editing page, user operation is convenient.
Time regulating module 102, for when receiving the drag command to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph.
As a kind of optional embodiment, the cutting initial time that videograph precut in list box is corresponding and cutting end time can edit, therefore, time regulating module 102, time also for receiving cutting initial time corresponding to videograph precut in list box or the edit instruction of cutting end time, adjust cutting initial time and/or the cutting end time of this precut videograph.
Cutting initial time and the cutting end time of the precut videograph generated by precut videograph generation module 101 are very inaccurate, therefore, user needs to drag the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph.
The video editing page receive to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button drag command time, cutting initial time and/or the cutting end time of this precut videograph in list box follow change, thus have adjusted cutting initial time and/or the cutting end time of this precut videograph.
Precut videograph preserves module 103, for preserving precut videograph.
The videograph that every bar in list box precuts is by the initial button of cutting on dragging scroll bar or cutting conclusion button, or the value in modification list frame to cutting initial time or cutting the end time adjust to user want cut position after, need to this precut videograph carry out preservations confirmation.
Video segment generation module 104, for when receiving the cutting order of all precut videographs in list box, the videograph precut according to bar every in list box treats editing video cutting, obtains video segment.
The background program that all precut videograph in the list box kept is submitted to remote server is cut, background program is when receiving the cutting order of all precut videographs in list box, the videograph precut according to bar every in list box treats editing video cutting, obtains video segment.Each precut videograph correspondingly can obtain a video segment.
Video segment merges module 105, merges into a video for video segment cutting obtained.
The video segment that video segment generation module 104 is cut acquisition by background program merges into a video, by the video storage of merging in remote video server, is presented to audience by VOD column.
According to a kind of video editing apparatus that the embodiment of the present invention provides, precut by treating editing video, precut videograph is generated in the list box of the video editing page, and the initial button of cutting dragged on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, the cutting initial time of the videograph that adjustment is precut and/or cutting end time, preserve the precut videograph after adjustment, then these videographs cut and merge into a video, the cutting of multistage video segment can be realized and make video editing operations more humane.
Fig. 7 is the structural representation of the further refinement of an embodiment to a kind of video editing apparatus of the present invention shown in Fig. 6.As shown in Figure 7, this video editing apparatus comprises:
First mark arranges module 106, and for arranging the first mark on broadcasting scroll bar, this first mark is for playing the precut region on scroll bar between the instruction initial button of cutting and cutting conclusion button.
User is by the video editing page on local client or local browser, and the video editing page as shown in Figure 5, browses the video to be edited 1 be positioned on remote server.User can treat editing video 1 and cuts by dragging and clicking the initial button 5 of cutting on the broadcasting scroll bar 7 of video to be edited and cutting conclusion button 6, also can by additionally arranging " increasing a newly " button on interface, click " increasing newly " button, send a precut order, generate precut videograph 2.Cutting zone corresponding to precut videograph clearly can be understood in order to allow user, first mark arranges module 106 and arrange the first mark 3 on broadcasting scroll bar 7, this first mark 3 is for playing the precut region on scroll bar 7 between the instruction initial button of cutting and cutting conclusion button, the broadcasting scroll bar 7 of such as video to be edited is a kind of color, this first mark 3 be another kind of color, in order to the initial button of cutting that indicates a precut videograph and the precut region of cutting between conclusion button.Certainly this first mark 3 is not limited to and represents by color.
Second mark arranges module 107, for the index file according to video to be edited, broadcasting scroll bar arranges the second mark, and this second mark is for playing white space scroll bar indicating video to be edited; Wherein, this index file comprises the time period information recording video to be edited.
Because some video is not that continuation is recorded, such as in order to go advertisement, recording by recording plan, there will be video record so discontinuous, discontinuous video council causes cutting difficulty, because do not know whether there is cavitation in a cut video segment.System while generating the video file recorded, then generates an index file in real time, and this index file comprises channel designation, channel ID and records the time period information of this video.
In order to which region allowing user clearly understand the broadcasting scroll bar of video to be edited does not have recorded video, second mark arranges the index file of module 107 according to video to be edited, broadcasting scroll bar 7 arranges the second mark 4, and this second mark 4 is for playing white space scroll bar 7 indicating video to be edited.Such as, this second mark 4 can be the another kind of color of the broadcasting scroll bar 7 and the first mark 3 that are different from video to be edited.Certainly, the second mark 4 is also not limited to and distinguishes by color.
Precut videograph generation module 101, during for often receiving the precut order treating editing video, in the list box of the video editing page, generate a precut videograph, this precut videograph comprises cutting initial time and cutting end time.
User, by the video editing page on local client or local browser, browses the video to be edited be positioned on remote server.User, according to the precut videograph gone for, treats editing video and precuts, and sends precut order to the video editing page.This precut order to be play the initial button 5 of cutting on scroll bar 7 for user drags respectively and clicks and is cut that conclusion button 6 sends as double-clicked.When the video editing page often receives the precut order treating editing video, a precut videograph is generated in the list box of the video editing page, this precut videograph is included in the cutting initial time on video to be edited and cuts the end time, click the cutting initial time that initial button 5 correspondence of cutting produces precut videograph, click the cutting end time that cutting conclusion button 6 correspondence produces precut videograph.This precut order is not treat editing video to carry out real cutting, and just records cutting initial time and the cutting end time of a precut videograph.
When often receiving the precut order treating editing video, precut videograph generation module 101 generates a precut videograph in the list box of the video editing page, until complete the precut operation treating editing video.
The friendly interface of this video editing page, user operation is convenient.
Precut videograph previewing module 108, for when receiving the instruction of the videograph that preview precuts, the play control controlling the video editing page is play from the initial button position of cutting of precut videograph.
Owing to dragging and clicking the initial button of cutting play on scroll bar and the precut videograph cutting conclusion button generation, generally roughly can only locate cutting initial time and the cutting end time of precut videograph, user can click the initial button of cutting play on scroll bar and carry out preview, sees that whether the cutting initial time of this precut videograph is accurate with the cutting end time.
Generate a precut videograph in the list box of the video editing page after, before preserving this precut videograph, if precut videograph previewing module 108 receives the instruction of the videograph that preview precuts, the play control controlling the video editing page is play from the initial button position of cutting of precut videograph.
Time regulating module 102, for when receiving the drag command to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph
By the preview operation of precut videograph previewing module 108, can know that cutting initial time and/or the cutting end time of the precut videograph that precut videograph generation module 101 generates are very inaccurate, therefore, user needs to drag the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, adjusts cutting initial time and/or the cutting end time of this precut videograph.
Time regulating module 102 receive to the initial button of cutting on the broadcasting scroll bar of the video editing page and/or cutting conclusion button drag command time, cutting initial time and/or the cutting end time of this precut videograph in list box follow change, thus have adjusted cutting initial time and/or the cutting end time of this precut videograph.
Precut videograph preserves module 103, for preserving precut videograph.
The videograph that every bar in list box precuts is by the initial button of cutting on dragging scroll bar or cutting conclusion button, or the value in modification list frame to cutting initial time or cutting the end time adjust to user want cut position after, need to this precut videograph carry out preservations confirmation.
As shown in Figure 5, after the videograph that the every bar in list box is precut, there is " preservation " button 8, click and should can preserve this corresponding precut videograph by " preservation " button 8.
Precut videograph removing module 109, for deleting precut videograph.
After the videograph that generation one is precut in list box, before the cutting order receiving all precut videographs in list, if user wants to delete precut videograph, can to click in list box should " deletion " button 9 after the videograph that precuts of bar, this corresponding precut videograph can be deleted.
Precut videograph removing module 109, when receiving delete command, deletes precut videograph.
Video segment generation module 104, for when receiving the cutting order of all precut videographs in list box, the videograph precut according to the every bar listed in list box treats editing video cutting, obtains video segment.
Click " preservation " button 10 on the video editing page, the background program that all precut videograph in the list box kept is submitted to remote server is cut, background program is when receiving the cutting order of all precut videographs in list box, the videograph precut according to bar every in list box treats editing video cutting, obtains video segment.Each precut videograph correspondingly can obtain a video segment.
Video segment merges module 105, merges into a video for video segment cutting obtained.
The video segment that video segment generation module 104 is cut acquisition by background program merges into a video, by the video storage of merging in remote video server, is presented to audience by VOD column.
According to a kind of video editing apparatus that the embodiment of the present invention provides, precut by treating editing video, precut videograph is generated in the list box of the video editing page, and the initial button of cutting dragged on the broadcasting scroll bar of the video editing page and/or cutting conclusion button, the cutting initial time of the videograph that adjustment is precut and/or cutting end time, preserve the precut videograph after adjustment, then these videographs cut and merge into a video, and the first cutting mark and the second cutting mark are set, and preview can be carried out and delete precut videograph, the cutting of multistage video segment can be realized and make video editing operations more humane.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.