A kind of cloud cuts video record and clipping method and plug-in unitTechnical field
The invention belongs to video clipping technical field, in particular to a kind of cloud cuts video record and clipping method and plug-in unit.
Background technique
With the development of science and technology, improvement of living standard, people are while adapting to allegro life, for life productThe requirement of matter is also gradually promoted, this but also people more pay attention to the efficient utilization for the time, it is incident be exactly forIt reads, chase after play, viewing etc. and all pursue fragmentation and refiningization, to news and current affairs also more pursuit timeliness.Existing video clippingTool is operated locally, and the segment upload after the recording or downloading and editing of video resource is required to spend a large amount ofTime, while operation to local terminal and store function have higher requirement;And for website, software or gameOperation teaching, which is shared also gradually to demonstrate from traditional text study course to more intuitive practice with experience, to be converted, and local terminal is pastToward lack for web page operation carry out real-time recording and editing with the function shared, therefore be gradually unable to satisfy the network user increasinglyThe demand of growth.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of clouds to cut video record and clipping method and plug-in unit.
Specific technical solution of the present invention is as follows:
One aspect of the present invention provides a kind of cloud and cuts video record and clipping method, includes the following steps:
S 1: selecting target video to be clipped, obtains the video address of the target video and is accessed, the meshMark video includes local video, video web page and webpage record frequency;
S2: setting initial position and the final position of editing, finds phase in the target video according to the information of settingThe position answered simultaneously carries out editing, obtains original segments;Additional information is added into the original segments, obtains the editing of finished productSegment, the additional information include in subtitle, label character, watermark, background audio, picture and other original segments at leastIt is a kind of;
S3: the editing segment made is issued by network.
Further, in step S1, the method for obtaining the address of the target video is as follows:
When the target video is local video, from be locally stored it is middle search the local video to be clipped, and onIt reaches cloud to be stored, obtains the address URL in a cloud, the video address of the as described local video;
When the target video is video web page, the address URL of the video web page, the as described webpage are directly acquiredThe video address of video;
When the target video is webpage record screen, the dynamic changing process of selected webpage is recorded, obtains instituteWebpage record screen is stated, and is stored beyond the clouds, the address URL in a cloud, the video address of the as described webpage record screen are obtained.
Further, the method for uploading of the local video is as follows:
A., one duration threshold value T is set0;
B. when the local video duration T is more than T0When, the local video is split into n duration no more than T0It is onlyVertical video slicing, n >=2 and n are integer;
C. multiple video slicings are successively uploaded in order, or at least one specific video slicing is selected to carry outIt passes.
Further, the method for recording of the webpage record screen is as follows:
The address URL for inputting the webpage of screen to be recorded, accesses the webpage;According to request triggering or recording is terminated, or manuallyAt the beginning of setting is recorded and the end time, the operation information and situation of change of the webpage are recorded, obtained describedWebpage record screen.
Further, the specific method is as follows by step S2:
S2.1: initial time is set on the time shaft of the target video and terminates the time, in the target videoIt searches corresponding time point and is replicated, obtained duplication segment is original segments;
S2.2: level-one additional information is added into the original segments, the level-one additional information includes subtitle, text markAt least one of note, watermark and background audio, adjust the format of subtitle or label character and the form of watermark and positionIt sets, and background audio is added as needed, obtain level-one segment;
S2.3: into the level-one segment add second level additional information, the second level additional information include picture and itsAt least one of his original segments, by the second level additional information with patch form be connected to the level-one segment front orRear obtains second level segment;
S2.4:, which choosing the picture in the second level additional information, or any one picture is intercepted from the second level segment makeesFor cover, the editing segment of finished product is obtained.
Further, in step S2.1, initial time and the setting method for terminating the time are as follows:
It is selected on the time shaft of the target video or directly fills in initial time and terminate the time, and as needed forDislocation amplitude is arranged at least one of the initial time and the termination time, and the dislocation amplitude includes delay amplitude or mentionsPreceding amplitude;The initial time and the termination time are corrected according to the dislocation amplitude, when obtaining the starting of editingBetween put and terminate time point, at the beginning of the start time point is no earlier than the target video, the termination time point is notIt is later than the end time of the target video.
Another aspect of the present invention provides a kind of cloud and cuts video record and editing plug-in unit, including following part:
Target video AM access module obtains the video address of the target video for selecting target video to be clippedAnd accessed, the target video includes local video, video web page and webpage record frequency;
Editing management module, for setting initial position and the final position of editing, according to the information of setting in the meshCorresponding position is found in mark video and editing is carried out to target video, obtains original segments;
Additional information adding module obtains the editing segment of finished product for adding additional information into the original segments,The additional information includes at least one of subtitle, label character, watermark, background audio, picture and other original segments;
Release module, for issuing the editing segment made by network.
Further, the target video AM access module includes following part:
Local video uploading unit, for from be locally stored it is middle search the local video to be clipped, and be uploaded to cloudEnd is stored;
Webpage record screen unit is recorded for the dynamic changing process to selected webpage, obtains the webpage record screen,And it is stored beyond the clouds;
URL access unit, the address URL stored beyond the clouds for obtaining the local video or webpage record screen, orThe address URL of the video web page, and accessed.
Further, the local video uploading unit includes following part:
Duration judgment sub-unit, for a duration threshold value T to be arranged0, and the duration of the local video is countedAnd judgement;
Video splits subelement, for being more than T in the local video duration T0When, the local video is split into nA duration is no more than T0Independent video slicing, n >=2 and n are integer;
Fragment uploads subelement, in order successively uploading multiple video slicings, or selects at least one spyFixed video slicing is uploaded;
The webpage record screen unit includes following part:
Webpage access subunit, the address URL of the webpage for obtaining screen to be recorded, and access the webpage;
Subelement is shielded in record, at the beginning of being used to triggering or terminating recording or manual setting recording according to request and terminatesTime records the operation information and situation of change of the webpage, obtains the webpage record screen.
Further, the editing management module includes following part:
Time setting unit, for initial time and termination to be selected or directly filled on the time shaft of the target videoTime, and dislocation amplitude is set as needed at least one of the initial time and the termination time, according to the mistakePosition amplitude is corrected the initial time and the termination time, obtains the start time point of editing and terminates time point;
Copied cells, for the facilities according to the manual setting unit or the automatic setting unit, to describedTarget video is replicated, and original segments are obtained.
Beneficial effects of the present invention are as follows: cutting video record and clipping method the present invention provides a kind of cloud and insert accordinglyPart can carry out editing to local video, video web page even webpage record screen, and can according to need and add to editing videoThe markup informations such as text, picture or watermark can make video information more abundant, detailed, consequently facilitating viewer's quick obtainingAnd the information that accurate understanding editing video provides;The video that multistage can also be mutually related is combined, to expand videoInformation, the information for issuing single more comprehensively, extensively, effectively improve the efficiency of information publication.Aforesaid operations are whole beyond the cloudsIt carries out, the editing segment of acquisition can be stored directly in cloud and be issued by cloud, need not move through local operationTransition can greatly shorten the operating time and can effectively reduce the loss of memory caused by local operation.By the above-mentioned means, canQuickly and easily to carry out editing and publication to various videos, it is particularly suitable for web page operation, software demonstration study course and game and drillsThe production for showing the video informations such as video significantly improves the intuitive of video information under the premise of guaranteeing complete documentation video informationExperience.
Detailed description of the invention
Fig. 1 is the flow chart that a kind of cloud described in embodiment 1 cuts video record and clipping method;
Fig. 2 is the method for uploading process that a kind of cloud as described in example 2 cuts local video in video record and clipping methodFigure;
Fig. 3 is the production method process that a kind of cloud described in embodiment 3 cuts editing segment in video record and clipping methodFigure;
Fig. 4 is the structural schematic diagram that a kind of cloud as described in example 4 cuts video record and editing plug-in unit;
Fig. 5 cuts the structure of target video AM access module in video record and editing plug-in unit for a kind of cloud described in embodiment 5Schematic diagram;
Fig. 6 cuts the structural schematic diagram of video record and editing plug-in unit for a kind of cloud described in embodiment 6.
Specific embodiment
Invention is further described in detail with following embodiment with reference to the accompanying drawing.
Embodiment 1
As shown in Figure 1, the embodiment of the present invention 1, which provides a kind of cloud, cuts video record and clipping method, include the following steps:
S 1: selecting target video to be clipped, obtains the video address of target video and is accessed, target video packetInclude local video (all kinds of videos being locally stored), video web page (video of broadcasting is disclosed on webpage) and webpage record frequency (netPage operations monitoring record, software operate study course and game demonstration etc.);
S2: setting initial position and the final position of editing, is found in target video accordingly according to the information of settingPosition simultaneously carries out editing to target video, obtains original segments;Additional information is added into original segments, obtains cutting for finished productSegment is collected, additional information includes subtitle (can add with self manufacture, can also directly add finished product subtitle), label character (packetInclude the markup informations such as name, place, item name, and be the literal with special effect of reinforcing effect addition), watermark (including producer's nameClaim label or TV station's logo, for declaring copyright ownership), background audio (background music or dubbing), picture (can coverAt least one of entire picture can also appear in the specific position of picture) and other original segments;
S3: the editing segment made is issued by network (can be the social platforms such as microblogging).
It present embodiments provides a kind of cloud and cuts video record and clipping method, it can be to local video, video web page evenIt is that webpage record screen carries out editing, and can according to need to the markup informations such as editing video addition text, picture or watermark, it can be withKeep video information more abundant, detailed, consequently facilitating the information that viewer's quick obtaining and accurate understanding editing video provide;AlsoThe video that multistage can be mutually related is combined, to expand video information, the information for issuing single is more comprehensively, extensivelyIt is general, effectively improve the efficiency of information publication;Aforesaid operations all carry out beyond the clouds, and the editing segment of acquisition can be stored directly inCloud is simultaneously issued by cloud, and the transition of local operation is needed not move through, and can greatly shorten the operating time and can be effectiveMemory caused by local operation is reduced to be lost.By the above-mentioned means, editing and hair quickly and easily can be carried out to various videosCloth is particularly suitable for the production of the video informations such as web page operation, software demonstration study course and game demonstration video, is guaranteeing complete noteThe intuitional and experiential thinking of video information is significantly improved under the premise of record video information.
Embodiment 2
As shown in Fig. 2, embodiment 2 discloses a kind of cloud on the basis of embodiment 1 cuts video record and clipping method, it shouldEmbodiment 2 further defines in step S 1, and the method for obtaining the address of target video is as follows:
When target video is local video, from be locally stored it is middle search local video to be clipped, and be uploaded to cloudIt is stored, obtains the address URL in a cloud, the as video address of local video;
When target video is video web page, directly acquire the address URL of video web page, as the video of video web pageLocation;
When target video is webpage record screen, the dynamic changing process of selected webpage is recorded, obtains webpage recordScreen, and stored beyond the clouds, obtain the address URL in a cloud, the as video address of webpage record screen.
The method for uploading of local video is as follows:
A., one duration threshold value T is set0;
B. when local video duration T is more than T0When, local video is split into n duration no more than T0Independent videoFragment, n >=2 and n are integer;
C. multiple video slicings are successively uploaded in order, or at least one specific video slicing is selected to be uploaded.
Longer local video is divided into multiple fragments to upload, withouts waiting for video and upload completely to terminateBrowsing and editing can be carried out to the fragment that upload is completed, or can be straight in the case where known rough time rangeSelecting is selected corresponding fragment and is uploaded, and time cost can be effectively saved, at the same can reduce upload error or editing loseThe probability of leakage, to effectively increase the efficiency of editing.
The method for recording of webpage record screen is as follows:
The address URL of the webpage of screen to be recorded is inputted, webpage is accessed;According to request triggering or terminate recording or manual settingAt the beginning of recording and the end time, the operation information and situation of change of webpage are recorded, obtain webpage record screen.
When being recorded to the multidate information (such as web page operation record, operation demonstration or game records etc.) of webpage, needThe webpage of screen to be recorded is accessed first, and (recording) is recorded to the dynamic change of the webpage within a certain period of time, thus willContinuous Web page image is converted to dynamic video, as webpage record screen.
Embodiment 3
As shown in figure 3, embodiment 3 discloses a kind of cloud on the basis of embodiment 1 cuts video record and clipping method, it shouldEmbodiment 3 further defines step S2, and the specific method is as follows:
S2.1: on the time shaft of target video manually or automated manner setting initial time and terminate whenBetween, when reaching start time point, operation front end starts to replicate target video, record to stopping when terminating time point, obtainsRecording segment is original segments;
S2.2: level-one additional information is added into original segments, level-one additional information includes subtitle, label character, watermarkAnd at least one of background audio, adjust format (font, color, size, spacing, the language of subtitle or label characterDeng) and watermark form (title, media flag, TV station's logo etc.) and position, and background audio is added as needed, obtainsTo level-one segment;
S2.3: second level additional information is added into level-one segment, second level additional information includes picture and other original sheetsSecond level additional information, the front or behind of level-one segment is connected to patch form, obtains second level piece by least one of sectionSection;
S2.4: choosing the picture in second level additional information or any one picture is intercepted from second level segment as cover,Obtain the editing segment of finished product.
In step S2.1, initial time and the setting method for terminating the time are as follows:
It is selected on the time shaft of target video or directly fills in initial time and terminate the time, and as needed for startingTime and at least one of time setting dislocation amplitude is terminated, dislocation amplitude includes delay amplitude or amplitude in advance;According to dislocationAmplitude is corrected initial time and termination time, obtains the start time point of editing and terminates time point, start time pointIt is no earlier than the time of operation front end access target video.
Initial time and termination time can be set by pulling time shaft, can also directly be filled in specific time point,The duration that initial time can also first be set, fill in interception video again can be derived according to duration and terminate the time;Due to handDynamic setting is easy that there are large errors, therefore for initial time and can terminate the time dislocation amplitude is arranged, when replicatingIt can be advanced or delayed according to dislocation amplitude and be replicated or terminated, in order to avoid important camera lens is omitted, or interception is excessive incoherentCamera lens.Meanwhile the range of video dubbing can not exceed the time range of video itself, therefore start time point is no earlier than targetAt the beginning of video, termination time point is not later than the end time of target video.
Embodiment 4
As shown in figure 4, the embodiment of the present invention 4, which provides a kind of cloud, cuts video record and editing plug-in unit, including following part:
Target video AM access module 1 selects target video to be clipped, and the video address for obtaining the target video is gone forward side by sideRow access, the target video include local video, video web page and webpage record frequency;
Editing management module 2 is regarded according to the information of setting in target for setting initial position and the final position of editingCorresponding position is found in frequency and editing is carried out to target video, obtains original segments;
Additional information adding module 3 obtains the editing segment of finished product for adding additional information into original segments, attachedAdding information includes at least one of subtitle, label character, watermark, background audio, picture and other original segments;
Release module 4, the editing segment for will make are issued by network.
It present embodiments provides a kind of cloud and cuts video record and editing plug-in unit, editing management module 2 can be to target videoLocal video, the video web page even webpage record screen of the access of AM access module 1 carry out editing, and can according to need and believed by additionalAdding module 3 is ceased to markup informations such as editing video addition text, picture or watermarks, and video information can be made more abundant, detailedCarefully, thus after release module 4 is issued, convenient for viewer's quick obtaining and the information of accurate understanding editing video offer;The video that multistage can also be mutually related is combined, to expand video information, the information for issuing single more comprehensively,Extensively, the efficiency of information publication is effectively improved.Aforesaid operations all carry out beyond the clouds, and the editing segment of acquisition can be stored directlyIt is issued beyond the clouds and by cloud, needs not move through the transition of local operation, the operating time can be greatly shortened and can be hadEffect reduces memory caused by local operation and is lost.By above-mentioned plug-in unit, can quickly and easily to various videos carry out editing andPublication is particularly suitable for the production of the video informations such as web page operation, software demonstration study course and game demonstration video, is guaranteeing completelyThe intuitional and experiential thinking of video information is significantly improved under the premise of record video information
Embodiment 5
As shown in figure 5, embodiment 5 discloses a kind of cloud on the basis of embodiment 4 cuts video record and editing plug-in unit, it shouldIt includes following part that embodiment 5, which further defines target video AM access module 1:
Local video uploading unit 11, for from be locally stored it is middle search local video to be clipped, and be uploaded to cloudIt is stored;
Webpage record screen unit 12 is recorded for the dynamic changing process to selected webpage, obtains webpage record screen, andIt is stored beyond the clouds;
URL access unit 13, for obtaining the address URL or webpage view that local video or webpage record screen store beyond the cloudsThe address URL of frequency, and accessed.
Local video uploading unit 11 includes following part:
Duration judgment sub-unit 111, for a duration threshold value T to be arranged0, and to the duration of local video carry out statistics andJudgement;
Video splits subelement 112, for being more than T in local video duration T0When, local video is split into n durationNo more than T0Independent video slicing, n >=2 and n are integer;
Fragment uploads subelement 113, in order successively uploading multiple video slicings, or selects at least one specificVideo slicing uploaded;
Webpage record screen unit 12 includes following part:
Webpage access subunit 121, the address URL of the webpage for obtaining screen to be recorded, and access webpage;
Subelement 122 is shielded in record, at the beginning of being used to triggering or terminating recording or manual setting recording according to request and tiesThe beam time records the operation information and situation of change of webpage, obtains webpage record screen.
Embodiment 6
As shown in fig. 6, embodiment 6 discloses a kind of cloud on the basis of embodiment 4 cuts video record and editing plug-in unit, it shouldIt includes following part that embodiment 6, which further defines editing management module 2:
Time setting unit 21, when for the selection on the time shaft of target video or directly filling in initial time and terminateBetween, and as needed at least one of initial time and termination time setting dislocation amplitude, when according to dislocation amplitude to startingBetween and terminate the time be corrected, obtain editing start time point and terminate time point;
Copied cells 22, for the facilities according to manual setting unit or automatic setting unit, to target video intoRow duplication, obtains original segments.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneouslyLimitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the artFor, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the inventionProtect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.