The method and system of the online quick editor's video based on web terminal
Technical field
The present invention relates to video technique field, more particularly to a kind of method of the online quick editor's video based on web terminal
And system.
Background technology
" internet+" and " cloud storage " technology is increasingly mature at present, and all conglomeraties begin setting up video resource platform, will be straight
Broadcast video and be indexed to cloud server, provide the user the video of multiple format, in the prior art, if compiled to video
, it is necessary to first foradownloaded video, then generates new file, technology of this mode to user by the Video editing software of specialty when collecting
It is required that it is higher, generally require and use ability with skilled software, meanwhile, the video if necessary to make is multiple video files
Splicing, then need to download multiple video files, if a simply small fragment of video, downloads a complete video,
The storage resource and flow of many are thus wasted, larger waste is caused.
Therefore, prior art needs to improve.
The content of the invention
The invention discloses a kind of method of the online quick editor's video based on web terminal, it is used to solve prior art to deposit
Problem.
Based on one aspect of the present invention, the present invention provides a kind of method of the online quick editor's video based on web terminal,
Including:
Video material storehouse is set up, the video material in the video material storehouse includes the order video and live process of user's upload
In the video included;
Configuration HLS video protocols agency services, video is played with HLS forms, when there is other video formats, accesses transcoding mould
Block, changes extended formatting video into HLS forms;
Page video player is embedded in front end page, and by the incoming page video player of HLS format videos;
One or more that to be edited video, the input time point on page video player is selected to make from video material storehouse
It is the start time point and end time point of video shearing, is directly dragged to editor's queue, video is edited according to editing in queue
Time point, the list of videos serializing in queue will be edited, then send list of videos and compile module to fast;
It is fast to compile the list of videos information that module is received in editor's queue, in line coding by list of videos information, from material database
Source file address is found, and it is sheared according to video time point, be in order new file by each shearing video-splicing, and protect
Deposit to material database.
In another embodiment of the method based on above-mentioned online quick editor's video based on web terminal, the HLS is regarded
Frequency agreement is the video protocols based on http streaming broadcastings, including video file is cut into multistage video segment, during broadcasting according to
Secondary request video segment file, the HLS video protocols are not limited when video is operated by key frame, can accurate edits video position
Put.
In another embodiment of the method based on above-mentioned online quick editor's video based on web terminal, the page
Video player is Flash player, and the Flash player has customization function, by between Java Script
Communication, realizes interactive operation.
In another embodiment of the method based on above-mentioned online quick editor's video based on web terminal, the video
List includes:
Video sart point in time, video end time point, video file, video editing sequence number;
The video sart point in time and video end time point are with the original play time of video file in video material storehouse
It is starting point;
The video file is the file after video clipping;
When the video editing serial number editor video generates new video file, the order of this section of video in video file
Number.
It is described to compile in another embodiment of the method based on above-mentioned online quick editor's video based on web terminal
Collecting the serializing of the list of videos in queue includes:
Video file is set into time point, and is dragged to editor's queue, the time point includes sart point in time and end time
Point;
Edit numbering, filename, the time point of setting of queue record video file;
The editor for completing all video files, compiles to video file according to the order in the video file of generation new video
Number, list of videos is serialized;
Numbered in sequence according to list of videos and ranked.
Based on another aspect of the present invention, what the present invention provided a kind of online quick editor's video based on web terminal is
System, including:Web terminal, HLS proxy servers, transcoding module, video material storehouse;
The web terminal is the fast volume display unit and fast volume display interface for carrying out video editing, for making user intuitively to regarding
Frequency file preview, editing, set time point and pull into editor queue operation, will edit queue in list of videos serializing,
The web terminal includes video player;
The HLS proxy servers are the video playback proxy servers based on http, and the HLS proxy servers are literary by video
Part cuts into multistage video segment, asks video segment file during broadcasting successively, vision operation is not limited by key frame, accurately
Positional editing position;
The transcoding module is used to for the non-HLS format videos file in the video material storehouse to be converted to HLS format videos text
Part, and the HLS format video files generated after HLS proxy server editors are converted to the form of suitable video material library storage
Video file;
The video material storehouse is used to store video file, and the video file includes the order video and live mistake of user's upload
The video included in journey;
The web terminal is connected with HLS proxy servers, and the HLS proxy servers are connected by transcoding module with video material storehouse
Connect.
In another embodiment of the system based on above-mentioned online quick editor's video based on web terminal, the video
Player is Flash player, and the Flash player has customization function, by logical between Java Script
News, realize interactive operation.
In another embodiment of the system based on above-mentioned online quick editor's video based on web terminal, the setting
Time point includes sart point in time and end time point, and the sart point in time is to set to start editing on the video of editing
Time point indicates, and records the flag information of sart point in time, and the end time point is to set to terminate on the video of editing
Editing time point mark, and record end time point flag information.
In another embodiment of the system based on above-mentioned online quick editor's video based on web terminal, the video
List includes:Video numbering, setting time point, video files names;
The list of videos serializing is numbered by video and arranged.
Compared with prior art, the present invention has advantages below:
Multiple format video file is passed through transcoding mould by the present invention using web terminal from video material storehouse direct access video file
Block is converted into HLS files, and by configuring HLS agency services, in the fast volume display interface of web terminal, uses Flash player pair
Video file preview, editing, set time point and pull into editor queue operation, will edit queue in list of videos sequence
Change, spliced according to reference number of a document and the time point for setting, complete the editor of video file, the present invention is without client branch
Hold, play the advantage of cloud storage, video is read online, reduce user's upload, the frequency of foradownloaded video, reach and once upload, it is many
Best edit effect is played in the effect of secondary editor, the Video processing based on HLS protocol, more preferable precise video position, lifting
Consumer's Experience.
Below by drawings and Examples, technical scheme is described in further detail.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used in technology description to do one simply to introduce.
Fig. 1 is a kind of flow of one embodiment of the method for online quick editor's video based on web terminal of the invention
Figure.
Fig. 2 is a kind of stream of another embodiment of the method for online quick editor's video based on web terminal of the invention
Cheng Tu.
Fig. 3 is a kind of structure of one embodiment of the system of online quick editor's video based on web terminal of the invention
Schematic diagram.
In figure:1 web terminal, 2 HLS proxy servers, 3 transcoding modules, 4 video material storehouses.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
Only it is a part of embodiment of the invention, rather than whole embodiments.
Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made
The every other embodiment for obtaining, belongs to the scope of protection of the invention.
Fig. 1 is a kind of flow of one embodiment of the method for online quick editor's video based on web terminal of the invention
Figure, as shown in figure 1, the method for the online quick editor's video based on web terminal includes:
10, video material storehouse 4 is set up, the video material in the video material storehouse 4 includes the order video that user uploads and straight
The video included during broadcasting, the video material storehouse 4 can be the vedio data storehouse based on cloud storage, its video image
There is provided by cloud server;
20, HLS video protocols agency services are configured, video is played with HLS forms, when there are other video formats, access transcoding
Module 3, changes extended formatting video into HLS forms, and the online player of prior art is all based on the player of http agreements,
Just commenced play out after the completion of needing to download video, such as MP4, FLV format player, the loading of these players is slower, it is impossible to the
One time obtained the duration information of video, its seek function existing defects, can only seek to key frame and the data bit for having buffered
Put, it is impossible to be accurately positioned video location, cause editor's video time error larger, the HLS protocol of the streaming broadcasting based on http, its
Principle is that video is cut into multistage section, asks file of cutting into slices during broadcasting in order, and this mode is played fast, operates video
When do not limited by key frame, can accurate edits positions, reach more preferable shear effect;
30, page video player is embedded in front end page, and by the incoming page video player of HLS format videos, the page
Plane video player is Flash player, and the Flash player has customization function, by between Java Script
Communication, realize interactive operation, embedded Flash player is realized the editting function of video playing end, Flash player
The access point record of editor's video is set, as start time point and end time point that video is sheared, and interface transmission is provided
Start time point and end time point are to editor's queue;
40, from interior selection one or more that the to be edited video in video material storehouse 4, the input time on page video player
Point, as start time point and end time point that video is sheared, is directly dragged to editor's queue, according to editor in editor's queue
At the time point of video, the list of videos serializing in queue will be edited, then send list of videos and compile module to fast;
50, it is fast to compile the list of videos information that module is received in editor's queue, in line coding by list of videos information, from material database
Source file address is inside found, and it is sheared according to video time point, be in order new file by each shearing video-splicing, and
Preserve to material database.
The list of videos includes:Video sart point in time, video end time point, video file, video editing sequence number;
The video sart point in time and video end time point are with the original play time of video file in video material storehouse
It is starting point, by video sart point in time and video end time point, can accurately position needs the beginning of editing video
Position and end position, the starting position of positioning video and end position are simultaneously sheared, and the video file of shearing is stitched to
Setting position, that is, realize the editor of video file
The video file is the file after video clipping, and when a length of video end time point of the video file subtracts video
Sart point in time;
When the video editing serial number editor video generates new video file, the order of this section of video in video file
Number, during the video editing serial number jointing video, the location of video file numbering.
Fig. 2 is a kind of stream of another embodiment of the method for online quick editor's video based on web terminal of the invention
Cheng Tu, as shown in Fig. 2 the list of videos serializing that will be edited in queue includes:
41, video file is set into time point, and editor's queue is dragged to, the time point includes sart point in time with the end of
Between point;
42, edit numbering, filename, the time point of setting of queue record video file;
43, the editor for completing all video files enters to video file according to the order in the video file of generation new video
Line number, list of videos is serialized;
44, numbered in sequence according to list of videos and ranked.
Fig. 3 is a kind of structure of one embodiment of the system of online quick editor's video based on web terminal of the invention
Schematic diagram, as shown in figure 3, the system of the online quick editor's video based on web terminal includes:
Web terminal 1, HLS proxy servers 2, transcoding module 3, video material storehouse 4;
The web terminal 1 is the fast volume display unit and fast volume display interface for carrying out video editing, for making user intuitively to regarding
Frequency file preview, editing, set time point and pull into editor queue operation, will edit queue in list of videos serializing,
The web terminal 1 includes video player;
The video player be Flash player, the Flash player have customize function, by with Java
Communication between Script, realizes interactive operation.
The video player of common web terminal 1 mainly has the video labels of HTML5 and Flash, HTML5 many clear at present
Lan Qi manufacturers have all supported, but function is thin, can only optimized integration vision operation, it is impossible to customize new method, Flash
Player can be customized, and by the communication between JavaScript, realize multiple functional interactive operation, embedded Flash
Player, the editting function of video is realized playing end, Flash player can input video access point record, as regarding
The start time point of frequency shearing, and interface transmission start time point to editor's queue is provided.
The HLS proxy servers 2 are the video playback proxy servers based on http, and the HLS proxy servers 2 will
Video file cuts into multistage video segment, asks video segment file during broadcasting successively, vision operation is not limited by key frame
System, is accurately positioned editor position;
The transcoding module 3 is used to for the non-HLS format videos file in the video material storehouse to be converted to HLS format videos text
Part, and the HLS format video files generated after HLS proxy server editors are converted to the form of suitable video material library storage
Video file;
The player plays Internet video of prior art is all based on http agreements, and its mode of operation is first to download video,
Commenced play out after the completion of download, such as MP4, FLV video player, not only result of broadcast is poor for these players, and played
Device loading velocity is slower, it is impossible to which the very first time obtains video duration information, and the function of seek is mostly defective, can only seek to pass
Key frame and the Data Position for having buffered, it is impossible to be accurately positioned video location, cause editor's video time error larger.Using being based on
The streaming broadcasting HLS protocol of http, multistage section is cut into by video, asks file of cutting into slices during broadcasting successively, and this mode is broadcast
Put quick, do not limited by key frame during operation video, energy accurate edits position reaches more preferable shear effect, is regarded when there are other
During frequency form, transcoding module 3 is accessed, turn it and change HLS forms, incoming player editor into.
The video material storehouse 4 is used to store video file, the video file include the order video that user uploads and
The video included during live;
The web terminal 1 is connected with HLS proxy servers 2, and the HLS proxy servers 2 pass through transcoding module 3 and video material
Storehouse 4 connects.
Time point is set on the fast video file for compiling display interface includes sart point in time and end time point, described to open
Time point beginning is that the time point mark for starting editing is set on the video of editing, and records the flag information of sart point in time,
The end time point be on the video of editing set terminate editing time point mark, and record end time point mark
Information.
List of videos in video queue includes:Video numbering, setting time point, video files names, the video
Listing sequenceization is numbered by video and arranged.
Detailed Jie has been carried out to a kind of method of the online quick editor's video based on web terminal provided by the present invention above
Continue, specific case used herein is set forth to principle of the invention and implementation method, the explanation of above example is only
It is to be used to help understand the method for the present invention and its core concept;Simultaneously for those of ordinary skill in the art, according to this hair
Bright thought, be will change in specific embodiments and applications, and in sum, this specification content should not be managed
It is limitation of the present invention to solve.
Finally it should be noted that:The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention,
Although being described in detail to the present invention with reference to the foregoing embodiments, for a person skilled in the art, it still may be used
Modified with to the technical scheme described in foregoing embodiments, or equivalent carried out to which part technical characteristic,
All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in of the invention
Within protection domain.