Summary of the invention
Embodiment of the present invention technical problem to be solved is, provides a kind of video creating method based on QuartzComposer and device, can obtain diversified video effect, promotes the experience property that user video makes.
In order to solve the problems of the technologies described above, embodiments provide a kind of video creating method based on QuartzComposer, comprising:
Receive the video content of user's input;
According to the importing rule preset, described video content is automatically imported in the video template of coupling;
According to preset controling parameters, described video template is made as video file.
Wherein, described default importing rule is: the video content of any one type or the combination of polytype video content correspond to a video template;
Described preset controling parameters comprises: the duration that the playing sequence of video template, the broadcasting time of video template, video template are play at every turn.
Wherein, the importing rule that described basis is preset, is automatically imported in the video template of coupling by described video content, comprises:
Determine the type of described video content, described type comprises: any one or more in picture, audio file, video file;
According to the importing rule preset, described video content is automatically imported at least one video template of coupling.
Wherein, described described video content is automatically imported in the video template of coupling after, before described video template is made as video file, also comprise:
Receive and respond the operation of user to described video template;
Wherein, the operation of described user to described video template comprises: in described video template, add word and/or edit the video content in described video template.
Wherein, described according to preset controling parameters, described video template is made as video file, comprises:
According to preset controling parameters, described video template is treated to Frame;
Every frame data frame is compressed, forms video file.
Correspondingly, the embodiment of the present invention additionally provides a kind of video creating device based on QuartzComposer, comprising:
Content receiver module, for receiving the video content of user's input;
Import module, for according to the importing rule preset, the video content that described content receiver module receives is automatically imported in the video template of coupling;
Make module, for according to preset controling parameters, the video template after described importing module importing is made as video file.
Wherein, described default importing rule is: the video content of any one type or the combination of polytype video content correspond to a video template;
Described preset controling parameters comprises: the duration that the playing sequence of each video template, the broadcasting time of each video template, each video template are play at every turn.
Wherein, described importing module comprises:
Type determining units, for determining the type of the video content that described content receiver module receives, described type comprises: any one or more in picture, audio file, video file;
Import unit, for according to the importing rule preset, described video content is automatically imported at least one video template of coupling.
Wherein, described device also comprises:
Receive respond module, in described importing module described video content is automatically imported coupling video template in after, receive and respond the operation of user to described video template;
Wherein, the operation of described user to described each video template comprises: in described video template, add word and/or edit the video content in described video template.
Wherein, described making module comprises:
Processing unit, for according to preset controling parameters, is treated to Frame by the described video template after described importing module importing;
Compression unit, compresses for the every frame data frame obtained described processing unit, forms video file.
Implement the embodiment of the present invention, there is following beneficial effect:
The video content that user inputs, according to the importing rule preset, imports in the video template of coupling, and according to preset controling parameters, described video template is made as video file by the embodiment of the present invention automatically; Because video creating device can carry out coupling and imports by the video content of user's input voluntarily, avoid manually selected to video template of user, improve the efficiency of the intelligent of device and video production; Because the video template of coupling may exist one or more according to video content, make the video file obtained can comprise one or more formwork style, thus obtain diversified video effect, meet the demand of user to video variation and excellent degree.
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.
Referring to Fig. 1, is the structural representation of the first embodiment of the video creating device based on QuartzComposer of the present invention; Described device comprises: content receiver module 101, importing module 102 and making module 103.
Content receiver module 101, for receiving the video content of user's input.
In the embodiment of the present invention, described video creating device can be QuartzComposer device, also can for comprising the terminal equipment of QuartzComposer device, and it can provide multiple QuartzComposer video template to make video file for user.When user need make video file time, can input video make required for video content; Described content receiver module 101 receives the video content of described user input, and described video content can comprise: picture, animation, music, document, etc.
Import module 102, for according to the importing rule preset, the video content that described content receiver module 101 receives is automatically imported in the video template of coupling.
Described default importing rule can be: the video content of any one type or the combination of polytype video content correspond to a video template.Which kind of adopts import rule, can be pre-seted according to the hobby of oneself and needs by user, such as: if setting imports rule be: the corresponding video template of video content of a type, if content receiver module 101 receives a width picture of user's input, an audio file and a video file, then importing module 102 needs the picture by user inputs to be automatically imported in a video template of coupling, the audio file that user inputs is automatically imported in another video template of coupling, the video file that user inputs is automatically imported in another video template of coupling, for another example: if setting imports rule be: the corresponding video template of combination of the video content of picture/mb-type and audio file type, the corresponding video template of video content of video file type, then according to above-mentioned example, import module 102 to need the picture of user's input and audio file to be automatically imported in a video template of coupling, and the video file of user's input is automatically imported in another video template of coupling.Importing module 102 is automatically carried out coupling to the video content of user's input and is imported, and avoids user's manually selecting video template, improves the intelligent of video creating device, improve the efficiency of video production simultaneously.
Make module 103, for according to preset controling parameters, the video template after described importing module 102 being imported is made as video file.
Described preset controling parameters can comprise: the duration that the playing sequence of video template, the broadcasting time of video template, video template are play at every turn.Make module 103 and according to preset controling parameters, first described video template can be treated to Frame, then every frame data frame is compressed, form video file.It should be noted that, after making module 103 obtains video file, user can carry out preview to this video file in video creating device, also this video file can be exported in player and play.
Referring to Fig. 2, is the structural representation of the embodiment of the importing module shown in Fig. 1; Described importing module 102 comprises:
Type determining units 211, for determining the type of the video content that described receiver module 101 receives.
Described type can comprise: any one or more in picture, audio file, video file.After content receiver module 101 receives the video content of user's input, type determining units 211 determines the type of the video content that user inputs.
Import unit 212, for according to the importing rule preset, described video content is automatically imported at least one video template of coupling.
As aforementioned, described default importing rule can be: the video content of any one type or the combination of polytype video content correspond to a video template.According to the type of the video content of user's input, and the importing rule preset, importing unit 212 can automatically for the video content of user's input mates corresponding video template, and the number of this video template can be one, also can be multiple.Import unit 212 automatically the video content that user inputs to be directed in corresponding video template.Be understandable that, after the video content inputted for user have matched corresponding video template, import unit 212 importing process of the video template of video content importing coupling with reference to the process in prior art, the video content that user inputs being imported the video template that user select, can be not repeated herein.
Referring to Fig. 3, is the structural representation of the embodiment of the making module shown in Fig. 1; Described making module 103 comprises:
Processing unit 311, for according to preset controling parameters, the described video template after described importing module 102 being imported is treated to Frame.
Described preset controling parameters can comprise: the duration that the playing sequence of video template, the broadcasting time of video template, video template are play at every turn.Described controling parameters can pre-set according to the hobby of user or needs, such as: if setting imports in three video template of the video content importing coupling that user inputs by module 102, comprise: template one, template two and template three, then user pre-sets in the video file making and obtain as required, and the playing sequence of video template is: template one, template two, template three, template one, template three; The broadcasting time of video template is: template one plays 2 times, and template two plays 1 time, and template three plays 2 times; The duration that video template is play at every turn is: template one is play 3 minutes at every turn, and template two is play 2 minutes at every turn, and template three is play 5 minutes at every turn.Described controling parameters is once arrange successfully, processing unit 311 is also determined thus according to the quantity of the Frame that this controling parameters preset obtains, such as: setting corresponding 25 frame data frames each second, then according to above-mentioned example, processing unit 311 is according to described preset controling parameters, described video template is treated to Frame successively, and the quantity of the Frame obtained after process is: 3*60*25+2*60*25+5*60*25+3*60*25+5*60*25=27000 frame data frame.Be understandable that, the quantity of the Frame that each second is corresponding also can set according to actual needs.
Compression unit 312, compresses for the every frame data frame obtained described processing unit 311, forms video file.
The compressed package that described compression unit 312 can compress system or code for QuickTime(mono-kind, its time-base signal generated is referred to as film), every frame data frame that described processing unit 311 obtains can compress by it, forms video file.It should be noted that, after compression unit 312 obtains video file, user can carry out preview to this video file in video creating device, also can export in player and play.According to the example in the present embodiment, the process of the video file obtained being carried out to preview or broadcasting is: first according to template one, play wherein picture; After 3 minutes, then look file and video file according to template two sound play wherein; After 2 minutes, then play video file wherein according to template three; After 5 minutes, then play picture wherein according to template one; After 3 minutes, finally play video file wherein according to template three.
Referring to Fig. 4, is the structural representation of the second embodiment of the video creating device based on QuartzComposer of the present invention; Identical with the arbitrary example shown in above-mentioned Fig. 1-Fig. 3, described device comprises: content receiver module 101, importing module 102 and making module 103.In the present embodiment, described device comprises further:
Receive respond module 104, in described importing module 102 described video content is automatically imported coupling video template in after, receive and respond the operation of user to described video template.
Described user can comprise the operation of described video template: in described video template, add word, such as: in certain video template, add some text descriptions, etc., described user also can comprise the operation of described video template: edit the video content in described video template, such as: the position of editing the picture imported in certain video template, color, size etc., described user can also comprise the operation of described video template: to the replacement operation of video template, such as: the template one of the picture importing user's input can be replaced by template two by user, the template that the picture now inputted with user matches becomes template two, etc., described reception respond module 104 receives and responds the aforesaid operations of user.Receive reception and the response of respond module 104 pairs of user operations, achieve the adjustment to video template, due to when carrying out video production, described video creating device automatically carries out coupling to the video content of user's input and imports, the video template used possibly cannot meet the demand of each user, now user can according to oneself requirement to video, adjust described video template, described reception respond module 104 couples of users adjust the response of operation, make the video template after adjusting can meet the making demand of user, thus promote the experience degree of user.
The video content that user inputs, according to the importing rule preset, imports in the video template of coupling, and according to preset controling parameters, described video template is made as video file by the embodiment of the present invention automatically; Because video creating device can carry out coupling and imports by the video content of user's input voluntarily, avoid manually selected to video template of user, improve the efficiency of the intelligent of device and video production; Because the video template of coupling may exist one or more according to video content, make the video file obtained can comprise one or more formwork style, thus obtain diversified video effect, meet the demand of user to video variation and excellent degree.
Corresponding to the video creating device based on QuartzComposer described in accompanying drawing 1-accompanying drawing 4, below in conjunction with accompanying drawing 5-accompanying drawing 6, describe in detail to the video creating method based on QuartzComposer that the embodiment of the present invention provides, above-mentioned device can be applied in embodiment of the method below.
Referring to Fig. 5, is the flow chart of the first embodiment of the video creating method based on QuartzComposer of the present invention; Described method comprises:
S101, receives the video content of user's input.
In the embodiment of the present invention, can adopt QuartzComposer device, also can adopt the terminal equipment comprising QuartzComposer device, it can provide multiple QuartzComposer video template to make video file for user.When user need make video file time, can input video make required for video content; Step S101 then receives the video content of described user input, and described video content can comprise: picture, animation, music, document, etc.
S102, according to the importing rule preset, is automatically imported described video content in the video template of coupling.This step S102 mainly imports corresponding video content in the selected each video template of step S101.
Described default importing rule can be: the video content of any one type or the combination of polytype video content correspond to a video template.Which kind of adopts import rule, can be pre-seted according to the hobby of oneself and needs by user, such as: if setting imports rule be: the corresponding video template of video content of a type, if step S101 receives a width picture of user's input, an audio file and a video file, then step S102 needs the picture by user inputs to be automatically imported in a video template of coupling, the audio file that user inputs is automatically imported in another video template of coupling, the video file that user inputs is automatically imported in another video template of coupling, for another example: if setting imports rule be: the corresponding video template of combination of the video content of picture/mb-type and audio file type, the corresponding video template of video content of video file type, then according to above-mentioned example, step S102 needs the picture of user's input and audio file to be automatically imported in a video template of coupling, and the video file of user's input is automatically imported in another video template of coupling.Step S102 automatically carries out coupling to the video content of user's input and imports, and avoids user's manually selecting video template, improves the intelligent of video creating device, improve the efficiency of video production simultaneously.
S103, according to preset controling parameters, is made as video file by described video template.
Described preset controling parameters can comprise: the duration that the playing sequence of video template, the broadcasting time of video template, video template are play at every turn.In step S103, according to preset controling parameters, first described video template can be treated to Frame, then every frame data frame be compressed, form video file.It should be noted that, after obtaining video file, user can carry out preview to this video file in video creating device, also this video file can be exported in player and play.
Referring to Fig. 6, is the flow chart of the second embodiment of the video creating method based on QuartzComposer of the present invention; Described method comprises:
S201, receives the video content of user's input.
The step S201 of the present embodiment with reference to the step S101 in embodiment illustrated in fig. 5, can be not repeated herein.
S202, determines the type of described video content.
Described type can comprise: any one or more in picture, audio file, video file.When after the video content receiving user's input, step S202 then determines the type of the video content that user inputs.
S203, according to the importing rule preset, is automatically imported described video content at least one video template of coupling.
As aforementioned, described default importing rule can be: the video content of any one type or the combination of polytype video content correspond to a video template.According to the type of the video content of user's input, and the importing rule preset, step S203 can automatically for the video content of user's input mates corresponding video template, and the number of this video template can be one, also can be multiple.The video content that user inputs is directed in corresponding video template by step S203 automatically.Be understandable that, after the video content inputted for user have matched corresponding video template, the importing process that video content is imported the video template of coupling by step S203 with reference to the process in prior art, the video content that user inputs being imported the video template that user selectes, can be not repeated herein.
The step S202-step S203 of the present embodiment can be the concrete refinement flow process of step S102 embodiment illustrated in fig. 5.
S204, receives and responds the operation of user to described video template.
Described user can comprise the operation of described video template: in described video template, add word, such as: in certain video template, add some text descriptions, etc., described user also can comprise the operation of described video template: edit the video content in described video template, such as: the position of editing the picture imported in certain video template, color, size etc., described user can also comprise the operation of described video template: to the replacement operation of video template, such as: the template one of the picture importing user's input can be replaced by template two by user, the template that the picture now inputted with user matches becomes template two, etc., step S204 receives and responds the aforesaid operations of user.In step S204, to reception and the response of user operation, achieve the adjustment to video template, due to when carrying out video production, described video creating device automatically carries out coupling to the video content of user's input and imports, the video template used possibly cannot meet the demand of each user, now user can according to oneself requirement to video, adjust described video template, step S204 adjusts the response of operation to user, make the video template after adjusting can meet the making demand of user, thus promote the experience degree of user.
S205, according to preset controling parameters, is treated to Frame by described video template.
Described preset controling parameters can comprise: the duration that the playing sequence of video template, the broadcasting time of video template, video template are play at every turn.Described controling parameters can pre-set according to the hobby of user or needs, such as: if the video content of setting user input is imported in three video template of coupling, comprise: template one, template two and template three, then user pre-sets in the video file making and obtain as required, and the playing sequence of video template is: template one, template two, template three, template one, template three; The broadcasting time of video template is: template one plays 2 times, and template two plays 1 time, and template three plays 2 times; The duration that video template is play at every turn is: template one is play 3 minutes at every turn, and template two is play 2 minutes at every turn, and template three is play 5 minutes at every turn.Described controling parameters is once arrange successfully, step S205 also determines thus according to the quantity of the Frame that this controling parameters preset obtains, such as: setting corresponding 25 frame data frames each second, then according to above-mentioned example, step S205 is according to described preset controling parameters, described video template is treated to Frame successively, and the quantity of the Frame obtained after process is: 3*60*25+2*60*25+5*60*25+3*60*25+5*60*25=27000 frame data frame.Be understandable that, the quantity of the Frame that each second is corresponding also can set according to actual needs.
S206, compresses every frame data frame, forms video file.
Step S206 can adopt QuickTime, is compressed by every frame data frame, forms video file.It should be noted that, after step S206 obtains video file, user can carry out preview to this video file in video creating device, also can export in player and play.According to the example in the present embodiment, the process of the video file obtained being carried out to preview or broadcasting is: first according to template one, play wherein picture; After 3 minutes, then look file and video file according to template two sound play wherein; After 2 minutes, then play video file wherein according to template three; After 5 minutes, then play picture wherein according to template one; After 3 minutes, finally play video file wherein according to template three.
The video content that user inputs, according to the importing rule preset, imports in the video template of coupling, and according to preset controling parameters, described video template is made as video file by the embodiment of the present invention automatically; Because video creating device can carry out coupling and imports by the video content of user's input voluntarily, avoid manually selected to video template of user, improve the efficiency of the intelligent of device and video production; Because the video template of coupling may exist one or more according to video content, make the video file obtained can comprise one or more formwork style, thus obtain diversified video effect, meet the demand of user to video variation and excellent degree.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.