One kind carrying out synthetic method and device to video file by mobile terminal
Technical field
The present invention relates to Video Composition field, in particular to a kind of side that video file is synthesized by mobile terminal
Method and device.
Background technique
With the increasing popularization of smart mobile phone, the related application of daily shooting video is more and more extensive therewith.Currently, market
After usually popular mobile video software is shooting video, overall processing production is carried out to video file.With video transmission
The geometry grade of amount increases, and the demand of the Video Applications of differentiation is increasing.The video applications software major part needle of market popularity
To the video of single hop video and short period, single incident usually is showed using video.The video capture of the more scenes of multiple clips
Mobile phone terminal application is deficient with being produced on, and more scene captures and the production of mobile video software realization complexity how is utilized, in hand
It is not easy to realize in machine application.
Summary of the invention
The technical problem to be solved in the present invention is that being not easy to realize complicated more scene captures for the above-mentioned of the prior art
And the defect of production, provide a kind of complexity easy to accomplish more scene captures and production by mobile terminal to video file into
Row synthetic method and device.
The technical solution adopted by the present invention to solve the technical problems is: constructing one kind by mobile terminal to video file
Synthetic method is carried out, the mobile terminal is equipped with the video software for editing video, and described method includes following steps:
A several scenes) are stored in advance in the video software and preset template, and expand difference in server beyond the clouds
Scene preset template;
B) scene built in it is called to preset template or by described in video software calling by the video software
In cloud server corresponding scene preset template, according to the scene called preset template specified in scene predetermined manner into
The shooting of row branch fields scape imports video file, obtains multiple video clip files;
C starting position and the end position of each video clip files) are found out respectively, and to each piece of video
Time corresponding to segment file starting position and end position is adjusted, and carries out video to each video clip files
Special efficacy editor obtains video segment compilation file;
D the input of subtitle) is carried out to each video segment compilation file, and according to each video segment compilation
The difference of the scene content of file is respectively that it selects corresponding audio file, obtains audio-video part edit file;
E) each audio-video part edit file is synthesized according to the scene predetermined manner, and by synthesis
Video file uploads to cloud and is stored or distributed.
Video file is carried out in synthetic method by mobile terminal of the present invention, the scene presets template
Subtitle and multiple video clips with timing have been preset, and has preset the most short shooting time and most of each video clip
Long shooting time.
Video file is carried out in synthetic method by mobile terminal of the present invention, the step E) further
Include:
E1) successively the transparency of the tail frame picture of each audio-video part edit file is minimized from maximum transparency
Transparency;
E2) successively the tail frame picture of each audio-video part edit file is connected according to the scene predetermined manner
To the first frame picture of next audio-video part edit file, the video file synthesized;
E3 the video file of the synthesis) is uploaded to the cloud to be stored or distributed.
Video file is carried out in synthetic method by mobile terminal of the present invention, the maximum transparency is
100, the minimum transparency is 0.
Video file is carried out in synthetic method by mobile terminal of the present invention, the special video effect includes
Any one in coloration, brightness, Gaussian Blur and deformation effects or any several combination.
The invention further relates to a kind of device realized above by mobile terminal to video file progress synthetic method, institutes
It states mobile terminal and video software for editing video is installed, described device includes:
Template storage unit: template is preset for several scenes to be stored in advance in the video software, and beyond the clouds
Expand different scenes in server and presets template;
Video clip files acquiring unit: for calling the scene built in it to preset template or lead to by the video software
Crossing the video software calls corresponding scene in the cloud server to preset template, presets template according to the scene called
Specified in scene predetermined manner carry out point scene capture or import video file, obtain multiple video clip files;
Adjust edit cell: for finding out starting position and the end position of each video clip files respectively, and
Time corresponding to each video clip files starting position and end position is adjusted, and to each video
Clip file carries out special video effect editor and obtains video segment compilation file;
Subtitle audio editing unit: for the input to each video segment compilation file progress subtitle, and according to
The difference of the scene content of each video segment compilation file is respectively that it selects corresponding audio file, obtains audio-video
Part edit file;
Synthesis uploading unit: for carrying out each audio-video part edit file according to the scene predetermined manner
Synthesis, and the video file of synthesis is uploaded into cloud and is stored or is distributed.
In device of the present invention, the scene presets template and has preset subtitle and multiple piece of video with timing
Section, and preset the most short shooting time and longest shooting time of each video clip.
In device of the present invention, the synthesis uploading unit further comprises:
Tail frame transparency adjusts module: for successively by the transparency of the tail frame picture of each audio-video part edit file
Transparency is minimized from maximum transparency;
It connects synthesis module: being used for according to the scene predetermined manner successively by each audio-video part edit file
Tail frame picture be connected to the first frame picture of next audio-video part edit file, the video file synthesized;
It uploads distribution module: being stored or distributed for the video file of the synthesis to be uploaded to the cloud.
In device of the present invention, the maximum transparency is 100, and the minimum transparency is 0.
In device of the present invention, the special video effect includes in coloration, brightness, Gaussian Blur and deformation effects
Any one or any several combination.
Implement it is of the invention synthetic method and device are carried out to video file by mobile terminal, have below beneficial to effect
Fruit: due to being equipped with the video software for editing video in the terminal, first in video software it is built-in several
Scape presets template and the scene being stored in cloud server can be called to preset template at any time, presets in template from these scenes
A scene can be called to preset template, and preset scene predetermined manner specified in template according to the scene called and divided
Scene capture imports video file, obtains multiple video clip files;Starting position and knot to each video clip files
Time corresponding to beam position is adjusted, and carries out special video effect editor to each video clip files and obtain video clip volume
Collect file;It carries out the input of subtitle and selects corresponding audio file, video segment compilation file, subtitle and audio are synthesized one
The video file of band audio, more scene captures of complexity easy to accomplish and production.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is that the present invention passes through mobile terminal to method in video file progress synthetic method and device one embodiment
Flow chart;
Fig. 2 be the embodiment in each audio-video part edit file is synthesized according to scene predetermined manner, and
The video file of synthesis is uploaded into the specific flow chart that cloud is stored or distributed;
Fig. 3 is the structural schematic diagram of device in the embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Video file is carried out by mobile terminal in the present invention to pass through movement in synthetic method and Installation practice
The flow chart that terminal carries out synthetic method to video file is as shown in Figure 1.In the present embodiment, mobile terminal is equipped with for compiling
The video software of video is collected, which is mobile phone in the present embodiment, certainly, should under some cases of the present embodiment
Mobile terminal can be tablet computer etc..In Fig. 1, should carry out synthetic method to video file by mobile terminal includes such as
Lower step:
Several scenes are stored in advance in video software and preset template by step S01, and expand not in server beyond the clouds
Same scene presets template: in this step, several scenes is stored in advance in the video software of mobile terminal and preset template, and
Different scenes can be expanded in server at any time beyond the clouds and preset template, whens subsequent applications can call corresponding scene to preset mould
Plate.It is noted that scene presets template and has preset subtitle and multiple video clips with timing in the present embodiment, and
The most short shooting time and longest shooting time of each video clip are preset.Such as: preset multiple videos with timing
Segment can be head scene video segment, process scene video segment and ending scene video segment, process scene video piece
Section may include one or more mid-scene video clips.
Step S02 calls the scene built in it to preset template or calls cloud service by video software by video software
Corresponding scene presets template in device, presets scene predetermined manner specified in template according to the scene called and carries out branch scape
Shooting imports video file, obtains multiple video clip files: in this step, the scene built in it is called by video software
Default template, or call corresponding scene in cloud server to preset template by video software, and according to the field called
Scape presets scene predetermined manner specified in template and carries out point scene capture or import video file, can thus obtain multiple views
The number of frequency clip file, video clip files is identical as the number of preset video clip in the default template of scene.It is worth one
It is mentioned that, when carrying out point scene capture, program can set the most short shooting time for adapting to each scene and when longest is shot
Between.
Step S03 finds out starting position and the end position of each video clip files respectively, and to each video clip
Time corresponding to file start-position and end position is adjusted, and carries out special video effect volume to each video clip files
It collects and obtains video segment compilation file: in this step, finding out starting position and the end position of each video clip files respectively,
And the time corresponding to each video clip files starting position and end position is adjusted, and to each video clip text
Part carries out special video effect editor and obtains video segment compilation file.It is noted that by the starting position of video clip files
The end position of video clip files is known as point by referred to as access point.Special video effect includes coloration, brightness, Gaussian Blur and shape
Become any one in effect or any several combination, such as: it is exactly to grind skin or thin face and other effects that some combination of effects, which come out,.
Step S04 carries out the input of subtitle to each video segment compilation file, and according to each video segment compilation text
The difference of the scene content of part is respectively that it selects corresponding audio file, obtains audio-video part edit file: in this step,
Input to each video segment compilation file (the corresponding scene of each video segment compilation file) progress subtitle, and according to
The difference of the scene content of each video segment compilation file is respectively that it selects corresponding audio file, obtains audio-video segment
Editing files.It is noted that the content of subtitle is arbitrarily added, subtitle position and word according to the prefabricated situation of scene
Number limitation is that the program setting of scene is good.User inputs the caption content for oneself thinking input, or default display scene is preset
The included content of template, such as: it is defaulted as happy vacation, if directly displayed without changing, user can input one three
The vacation of mouth, that is, show the vacation of family of three.Audio file can choose built in local file or selection video software
Online audio content.
Step S05 synthesizes each audio-video part edit file according to scene predetermined manner, and by the view of synthesis
Frequency file uploads to cloud and is stored or distributed: in this step, each audio-video part edit file being preset according to scene
Mode is synthesized, and the video file of synthesis is uploaded to cloud and carries out storage or freely distributes.For the synthesis of preservation
Video file can provide and be edited or used again in the future.It is in fact exactly by video segment compilation text when being synthesized
Part, subtitle and audio file synthesize the video file of a band audio, and when being synthesized, the timing of synthesis is pre- according to scene
What if the sequencing of mode defined was synthesized.Thus it is easily carried out complicated more scene captures and production.This
Embodiment provides not each video clip by providing the function that segmentation imports video or segmentation shooting in mobile terminal
Originally flat free recorded video is formed video table abundant after the synthesis with prefabricated scene by same prefabricated scene
Existing effect.
For the present embodiment, above-mentioned steps S05 can also be refined further, and the flow chart after refinement is as shown in Figure 2.
In Fig. 2, above-mentioned steps S05 further comprises:
The transparency of the tail frame picture of each audio-video part edit file is successively down to by step S51 from maximum transparency
Minimum transparency: successively that the transparency of the tail frame picture of each audio-video part edit file is transparent from maximum in this step
Degree minimizes transparency.In the present embodiment, maximum transparency 100, minimum transparency is 0,100 expressions display completely, 0 table
Show and does not show completely.
The tail frame picture of each audio-video part edit file is successively connected to down by step S52 according to scene predetermined manner
The first frame picture of one audio-video part edit file, the video file synthesized: in this step, according to scene predetermined manner
Successively the first frame that the tail frame picture of each audio-video part edit file is connected to next audio-video part edit file is drawn
Face, the video file synthesized, such two frames picture, which links together, is synthesized the continuity of i.e. certifiable picture, is accomplished
Seamless connection.It is noted that the transparency of the picture of video link position remains unchanged, and can thus protect in connection
The transparency for demonstrate,proving obtained entire video pictures remains unchanged.
The video file of synthesis is uploaded to cloud and is stored or distributed by step S53: in this step, by the video of synthesis
File uploads to cloud and is stored or distributed.The present embodiment carries out more scenes by the video software of mobile terminal and presets, root
It is shot and is edited according to more scenes are default, the expressive force and video content of video can be propagated with extreme enrichment mobile terminal
Diversity.It is default according to multifarious scene, news, individual video resume, product introduction and amusement life can be fast implemented
The how convenient video requirement such as living.
The present embodiment further relates to a kind of device realized and carry out synthetic method to video file above by mobile terminal,
Its structural schematic diagram is as shown in Figure 3.Mobile terminal in the present embodiment is equipped with the video software for editing video, in Fig. 3,
The device includes template storage unit 1, video clip files acquiring unit 2, adjustment edit cell 3, subtitle audio editing unit 4
With synthesis uploading unit 5;Wherein, template storage unit 1 presets template for several scenes to be stored in advance in video software,
And expands different scenes in server beyond the clouds and preset template;Scene presets template and has preset subtitle and multiple with timing
Video clip, and preset the most short shooting time and longest shooting time of each video clip.It is noted that user can
It is selected at any time by video software and the scene being stored in cloud server is called to preset template.Video clip files obtain single
Member 2 by video software for calling the scene built in it to preset template or call in cloud server by above-mentioned video software
Corresponding scene presets template, and presets scene predetermined manner specified in template according to the scene called and carry out the bat of branch scape
Video file is taken the photograph or imported, multiple video clip files are obtained;Adjustment edit cell 3 for finding out each video clip text respectively
The starting position of part and end position, and the time corresponding to each video clip files starting position and end position is carried out
Adjustment, and special video effect editor is carried out to each video clip files and obtains video segment compilation file;Special video effect includes color
Any one in degree, brightness, Gaussian Blur and deformation effects or any several combination, such as: some combination of effects come out
Exactly grind skin or thin face and other effects.Subtitle audio editing unit 4 is used to carry out the defeated of subtitle to each video segment compilation file
Enter, and be respectively that it selects corresponding audio file according to the difference of the scene content of each video segment compilation file, obtains
Audio-video part edit file;Uploading unit 5 is synthesized to be used for each audio-video part edit file according to scene predetermined manner
It is synthesized, and the video file of synthesis is uploaded into cloud and is stored or is distributed.
In the present embodiment, synthesis uploading unit 5 further comprises that tail frame transparency adjustment module 51 is used, connects synthesis module
52 and upload distribution module 53;Wherein, tail frame transparency adjustment module 51 is used for successively by each audio-video part edit file
The transparency of tail frame picture minimize transparency from maximum transparency;Maximum transparency is 100, and minimum transparency is 0.Even
Module 52 is bonded into for being successively connected to the tail frame picture of each audio-video part edit file according to scene predetermined manner
The first frame picture of next audio-video part edit file, the video file synthesized;In connection, video link position
The transparency of picture remains unchanged, and ensures that the transparency of obtained entire video pictures remains unchanged in this way;It uploads and divides
Hair module 53 is used to uploading to the video file of synthesis into cloud and is stored or distributed.
In short, in the present embodiment, the video software of mobile terminal provides the function that segmentation imports video or segmentation shooting
Can, different prefabricated scenes is provided for each segment, by originally flat free recorded video, by the conjunction with prefabricated scene
Cheng Hou forms video expression effect abundant, meets the needs of different user, while enhancing the experience of user.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.