CN108540849A - The generation method and device of video photograph album - Google Patents
The generation method and device of video photograph album Download PDFInfo
- Publication number
- CN108540849A CN108540849A CN201810230252.1A CN201810230252A CN108540849A CN 108540849 A CN108540849 A CN 108540849A CN 201810230252 A CN201810230252 A CN 201810230252A CN 108540849 A CN108540849 A CN 108540849A
- Authority
- CN
- China
- Prior art keywords
- video
- layer
- photograph album
- template
- scene
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 239000000463 material Substances 0.000 claims description 16
- 238000005516 engineering process Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 9
- 235000013399 edible fruits Nutrition 0.000 description 3
- 210000000988 bone and bone Anatomy 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000004148 unit process Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/85406—Content authoring involving a specific file format, e.g. MP4 format
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
This application discloses a kind of generation methods and device of video photograph album.This method includes:Determine the first video material for making the video photograph album;Receive the first photograph album template determine instruction for presetting photograph album template;According to the first photograph album template determine instruction, first video material is loaded into the default Video Layer of the photograph album template, and generates the video photograph album of first video material simultaneously;By the way of determining the video material for making the video photograph album, the determine instruction of photograph album template is preset by reception, reach according to photograph album template determine instruction, video material is loaded into the default Video Layer of photograph album template, and the purpose of video photograph album is generated simultaneously, to realize the technique effect user-defined video material being loaded into the video photograph album being made of multiple Video Layers, and then solves the problems, such as the technical issues of video photograph album single effect in the related technology.
Description
Technical field
This application involves video photograph album fields, in particular to a kind of generation method and device of video photograph album.
Background technology
With the rapid development of mobile Internet, it is different from traditional photograph album, User Defined picture is loaded into video
The video photograph album technology of formation is maked rapid progress, and user's picture is sleeved in animation template to generate video phase in presently relevant technology
Volume, single effect are badly in need of a kind of generation method and device of video photograph album with this, to solve video photograph album effect in the related technology
The single problem of fruit.
Invention content
The main purpose of the application is to provide a kind of generation method of video photograph album, to solve video in the related technology
The problem of photograph album single effect.
To achieve the goals above, according to the one side of the application, a kind of generation method of video photograph album is provided.
Generation method according to the video photograph album of the application includes:Determine the first video for making the video photograph album
Material;Receive the first photograph album template determine instruction for presetting photograph album template;According to the first photograph album template determine instruction, by institute
It states the first video material to be loaded into the default Video Layer of the photograph album template, and generates first video material simultaneously
Video photograph album.
Further, described according to the first photograph album template determine instruction, first video material is loaded into institute
In the default Video Layer for stating photograph album template, and the video photograph album for generating first video material simultaneously includes:According to described
Photograph album template determine instruction determines the scene information of the photograph album template;According to the scene quantity of the scene information, institute is determined
State multiple Video Layers corresponding to photograph album template.
Further, the scene quantity according to the scene information determines multiple corresponding to the photograph album template
Video Layer includes:According to the scene quantity of the scene information, the first subgraph layer for constituting the Video Layer is obtained,
In, the quantity of the first subgraph layer is equal with the scene quantity;The first subgraph layer is spliced, is obtained corresponding
The Video Layer.
Further, described according to the first photograph album template determine instruction, first video material is loaded into institute
In the default Video Layer for stating photograph album template, and the video photograph album for generating first video material simultaneously further includes:According to institute
Video Layer is stated, the second figure layer element of the Video Layer is obtained;By the resource map of the second figure layer element
As replacing with first material and loading.
Further, described according to the first photograph album template determine instruction, first video material is loaded into institute
In the default Video Layer for stating photograph album template, and the video photograph album for generating first video material simultaneously includes later:Parsing
First figure layer element of the Video Layer, obtains the first figure layer image information;The first figure layer image information is painted
It makes and plays the page;The the second figure layer element for parsing the Video Layer, obtains the second figure layer image information;By described
The superposition of two figure layer image informations is plotted to the broadcasting page;The third figure layer element for parsing the Video Layer, obtains
Third figure layer image information;Third figure layer image information superposition is plotted to the broadcasting page.
To achieve the goals above, according to the another aspect of the application, a kind of generating means of video photograph album are provided.
Generating means according to the video photograph album of the application include:Material determination unit, it is described for making for determining
First video material of video photograph album;Template determination unit, the first photograph album template for receiving default photograph album template, which determines, to be referred to
It enables;Photograph album generation unit, for according to the first photograph album template determine instruction, first video material being loaded into described
In the default Video Layer of photograph album template, and the video photograph album of first video material is generated simultaneously.
Further, the photograph album generation unit includes:Scene determining module, for being referred to according to photograph album template determination
It enables, determines the scene information of the photograph album template;Figure layer determining module, for the scene quantity according to the scene information, really
Multiple Video Layers corresponding to the fixed photograph album template.
Further, the figure layer determining module includes:Subgraph layer determining module, for the field according to the scene information
Scape quantity obtains the first subgraph layer for constituting the Video Layer, wherein the quantity of the first subgraph layer and the scene number
It measures equal;Subgraph layer concatenation module obtains the corresponding Video Layer for splicing the first subgraph layer.
Further, the photograph album generation unit further includes:Second figure layer acquisition module, for according to the video figure
Layer, obtains the second figure layer element of the Video Layer;Second figure layer replacement module, for forming second figure layer
The resource image of element replaces with first material and loads.
Further, include after the photograph album generation unit:First figure layer acquisition module, for parsing the video figure
First figure layer element of layer, obtains the first figure layer image information;First figure layer drafting module is used for first figure layer
Image information is plotted to the broadcasting page;Second figure layer acquisition module parses the second figure layer element of the Video Layer, obtains
To the second figure layer image information;Second figure layer image information superposition is plotted to the broadcasting by the second figure layer drafting module
The page;Third figure layer acquisition module parses the third figure layer element of the Video Layer, obtains third figure layer image letter
Breath;Third figure layer image information superposition is plotted to the broadcasting page by third figure layer drafting module.
In the embodiment of the present application, by the way of determining the video material for making the video photograph album, by connecing
The determine instruction for presetting photograph album template is received, has reached according to photograph album template determine instruction, video material is loaded into photograph album template
Default Video Layer in, and generate the purpose of video photograph album simultaneously, add user-defined video material to realize
The technique effect being downloaded in the video photograph album being made of multiple Video Layers, and then solve video photograph album effect in the related technology
The technical issues of fruit single problem.
Description of the drawings
The attached drawing constituted part of this application is used for providing further understanding of the present application so that the application's is other
Feature, objects and advantages become more apparent upon.The illustrative examples attached drawing and its explanation of the application is for explaining the application, not
Constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is generation method schematic diagram according to a first embodiment of the present invention;
Fig. 2 is generation method schematic diagram according to a second embodiment of the present invention;
Fig. 3 is generation method schematic diagram according to a third embodiment of the present invention;
Fig. 4 is generation method schematic diagram according to a fourth embodiment of the present invention;
Fig. 5 is generation method schematic diagram according to a fifth embodiment of the present invention;
Fig. 6 is generating means schematic diagram according to a first embodiment of the present invention;
Fig. 7 is generating means schematic diagram according to a second embodiment of the present invention;
Fig. 8 is generating means schematic diagram according to a third embodiment of the present invention;And
Fig. 9 is generating means schematic diagram according to a fifth embodiment of the present invention.
Specific implementation mode
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model of the application protection
It encloses.
It should be noted that term " first " in the description and claims of this application and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment those of are not necessarily limited to clearly to list step or unit, but may include without clear
It is listing to Chu or for these processes, method, product or equipment intrinsic other steps or unit.
In this application, term "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outside",
" in ", "vertical", "horizontal", " transverse direction ", the orientation or positional relationship of the instructions such as " longitudinal direction " be orientation based on ... shown in the drawings or
Position relationship.These terms are not intended to limit indicated primarily to preferably describe the utility model and embodiment
Device, element or component must have particular orientation, or constructed and operated with particular orientation.
Also, above-mentioned part term is other than it can be used to indicate that orientation or positional relationship, it is also possible to for indicating it
His meaning, such as term "upper" also are likely used for indicating certain relations of dependence or connection relation in some cases.For ability
For the those of ordinary skill of domain, the concrete meaning of these terms in the present invention can be understood as the case may be.
In addition, term " installation ", " setting ", " being equipped with ", " connection ", " connected ", " socket " shall be understood in a broad sense.For example,
It may be a fixed connection, be detachably connected or monolithic construction;Can be mechanical connection, or electrical connection;It can be direct phase
Even, or indirectly connected through an intermediary, or it is two connections internal between device, element or component.
For those of ordinary skills, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figure 1, this method includes following step S101 to step S103:
Step S101 determines the first video material for making the video photograph album;
Preferably, first video material for making the video photograph album can be the cell phone system of user's selection
Picture in photograph album can also derive from the picture that user selects from other software, specifically, user clicks cell phone software
" starting from video photograph album " button, calling mobile phone system photograph album simultaneously jump to the system photograph album page, and user manually selects at least
One pictures are as the first video material for making the video photograph album.
Preferably, the first video material format includes but not limited to:Picture, video, audio.
Step S102 receives the first photograph album template determine instruction for presetting photograph album template;
Preferably, the photograph album template is composed of at least one layer of figure layer element, specifically, including but unlimited
In:First figure layer element (background video), the second figure layer element (keel animation), third figure layer element are (preceding
Scape video).
Specifically, after the completion of user selects the first video material, system jumps to the stencil-chosen page, the template choosing
It selects the page and is provided at least one photograph album template, each photograph album template is by background video, keel animation, foreground video group
It closes.
Wherein, each photograph album template is preset with different scene quantity, according to different scene quantity, described in composition
Background video, keel animation, the quantity of foreground video and the making of photograph album template also differ.
If a template acquiescence has 3 scenes.Keel cartoon making:Keel are that the animation creation of Design-Oriented teacher is flat
Platform is downloaded and installs keel Animation Editors v4.5.1 versions.Since template acquiescence has 3 scenes, it is therefore desirable to make 3
A keel animation, as follows:Keel animated item db1 is created, 1 keel animation is made, duration db1_duration is interior
Picture containing resource 1 is opened.Export project db1 is json files.Keel animated item db2 is created, 1 keel animation, duration are made
Db2_duration includes resource picture 2 and opens.Export project db2 is json files.Keel animated item db3 is created, makes 1
A keel animation, duration db3_duration include resource picture 1 and open.Export project db3 is json files.At this moment, Wo Menyi
3 keel animations are created altogether, are opened in total containing resource picture 4.
Background video makes:Since template acquiescence has 3 scenes, it is therefore desirable to before making 3 background videos and 3
Scape video.
Make 3 background videos:Bg1.mp4 is made, h264, video length db1_duration are encoded to.It makes
Bg2.mp4 is encoded to h264, video length db2_duration.Bg3.mp4 is made, is encoded to h264, video length is
db3_duration。
Make 3 foreground videos:Fr1.mp4 is made, h264, video length db1_duration are encoded to.It makes
Fr2.mp4 is encoded to h264, video length db2_duration.Fr3.mp4 is made, is encoded to h264, video length is
db3_duration。
First video material is loaded into the phase by step S103 according to the first photograph album template determine instruction
In the default Video Layer of volume template, and the video photograph album of first video material is generated simultaneously.
Preferably, the resource picture used according to above-mentioned keel animation, described in first video material replacement
Resource picture obtains the keel animation for being loaded with the first video material, and background video, keel animation, foreground video is carried out
Splicing, while generating video photograph album.
Specifically, splicing background video and foreground video:The background video quantity of splicing will be equal to foreground video quantity
Final keel animation number, above we calculated that need keel animation number be 5, and we possess 3 at present
A background video, 3 foreground videos, video number are less than keel animation number, and video needs to repeat to splice successively from the beginning.
Splice background video:
Splicing sequence is bg1.mp4+bg2.mp4+bg3.mp4+bg1.mp4+bg2.mp4, is obtained after splicing this 5 videos
bg.mp4。
Splice foreground video:
Splicing sequence is fr1.mp4+fr2.mp4+fr3.mp4+fr1.mp4+fr2.mp4, is obtained after splicing this 5 videos
fr.mp4。
According to an embodiment of the invention, basic principle is that first, system needs when designing MV video photograph album templates
First to determine that the template needs several scenes, here for 3 scenes for;At this moment it just needs to separately design 3 for this 3 scenes
Background video (bg1, bg2, bg3), 3 keel animations (db1, db2, db3), 3 foreground videos (fr1, fr2, fr3).
Then, after user's selection addition keel animation required photo, system just splices bg1, bg2, bg3
At a video bg.mp4, fr1, fr2, fr3 are spliced into a video fr.mp4, user picture is packed into keel animation db1,
In db2, db3.
Finally, according to the progress of broadcasting (such as P time points), the background video image picture BGp at P time points is parsed respectively,
The keel animated image screen D Bp at P time points is parsed, the foreground video image frame FRp at P time points is parsed.Remove the black of FRp
Color region is Transparent color, BGp, DBp, FRp is drawn successively into OpenGL controls.Then time point M, M after P time points are parsed again
Analytic method as P, and so on.
It can be seen from the above description that the present invention realizes following technique effect:
In the embodiment of the present application, by the way of determining the video material for making the video photograph album, by connecing
The determine instruction for presetting photograph album template is received, has reached according to photograph album template determine instruction, video material is loaded into photograph album template
Default Video Layer in, and generate the purpose of video photograph album simultaneously, add user-defined video material to realize
The technique effect being downloaded in the video photograph album being made of multiple Video Layers, and then solve video photograph album effect in the related technology
The technical issues of fruit single problem.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
According to embodiments of the present invention, as preferred in the present embodiment, as shown in Fig. 2, further including following step S201
To step S202:
Step S201 determines the scene information of the photograph album template according to the photograph album template determine instruction;
Preferably, each photograph album template is preset with different scene quantity, according to different scene quantity, forms institute
Background video, keel animation, the quantity of foreground video and the making for stating photograph album template also differ.
Step S202 determines multiple videos corresponding to the photograph album template according to the scene quantity of the scene information
Figure layer.
Preferably, the photograph album template is composed of at least one layer of figure layer element, specifically, including but unlimited
In:First figure layer element (background video), the second figure layer element (keel animation), third figure layer element are (preceding
Scape video).
Specifically, after the completion of user selects the first video material, system jumps to the stencil-chosen page, the template choosing
It selects the page and is provided at least one photograph album template, each photograph album template is by background video, keel animation, foreground video group
It closes.
According to embodiments of the present invention, as preferred in the present embodiment, as shown in figure 3, further including following step S301
To step S302:
Step S301 obtains the first subgraph layer for constituting the Video Layer according to the scene quantity of the scene information,
Wherein, the quantity of the first subgraph layer is equal with the scene quantity;
Preferably, if template acquiescence there are 3 scenes, need to make 3 keel animations, 3 background videos and 3
Foreground video.
Step S302 splices the first subgraph layer, obtains the corresponding Video Layer.
Preferably, splice background video and foreground video:The background video quantity of splicing will be equal to foreground video quantity
Final keel animation number, above we calculated that need keel animation number be 5, and we possess 3 at present
A background video, 3 foreground videos, video number are less than keel animation number, and video needs to repeat to splice successively from the beginning.
Splice background video:
Splicing sequence is bg1.mp4+bg2.mp4+bg3.mp4+bg1.mp4+bg2.mp4, is obtained after splicing this 5 videos
bg.mp4。
Splice foreground video:
Splicing sequence is fr1.mp4+fr2.mp4+fr3.mp4+fr1.mp4+fr2.mp4, is obtained after splicing this 5 videos
fr.mp4。
According to embodiments of the present invention, as preferred in the present embodiment, as shown in figure 4, further including following step S401
To step S402:
Step S401 obtains the second figure layer element of the Video Layer according to the Video Layer;
Preferably, after the background video, keel animation, foreground video that obtain the photograph album template, determine that the keel are dynamic
It draws (i.e. the second figure layer element), and determines resource picture included in the keel animation.
The resource image of the second figure layer element is replaced with first material and loaded by step S402.
Preferably, the resource picture used according to above-mentioned keel animation, described in first video material replacement
Resource picture obtains the keel animation for being loaded with the first video material, and background video, keel animation, foreground video is carried out
Splicing, while generating video photograph album.
According to embodiments of the present invention, as preferred in the present embodiment, as shown in figure 5, further including following step S501
To S506:
Preferably, the process of video playing is exactly continuous decoding video in fact, and the image of each frame of video is showed
Come, if using P time points as initial point, we will play the final image picture for putting P time points, need operation below:
Step S501 parses the first figure layer element of the Video Layer, obtains the first figure layer image information;
Preferably, decoding background video:Current background video is the background video video spliced above, bg.mp4;
Decode bg.mp4 videos.
The first figure layer image information is plotted to the broadcasting page by step S502;
Preferably, the video image picture BGp for solving P time points, BGp is plotted on the control of OpenGL.
Step S503 parses the second figure layer element of the Video Layer, obtains the second figure layer image information;
Preferably, which keel animation first calculates corresponding to P time points is, because the duration of each keel animation is
Know, if P time points are more than db1_duration, is less than db2_duration, then at this moment corresponding keel animation is
The playing progress rate of db2, corresponding db2 are P-db1_duration.
Second figure layer image information superposition is plotted to the broadcasting page by step S504;
Preferably, by the interface of keel animation, the P-db1_duration progresses of db2 animations are jumped to, at this moment keel
Engine can parse user's Picture card cartoon state under the progress, and the image frame DBp under the state is plotted in OpenGL controls
On part.Keel animation is according to the needs of design, and there are some transparent regions, the transparent regions can also penetrate and go, directly see for itself
To background layer.Up to the present, we have been realized in two layers of picture superposition.
Step S505 parses the third figure layer element of the Video Layer, obtains third figure layer image information;
Preferably, foreground video is decoded:Current foreground video is the foreground video video spliced above, fr.mp4;
Fr.mp4 videos are decoded, the video image picture FRp at P time points is solved, FRp at this moment does not have any transparent channel, we
Need one of which color to be converted to transparent color, not so directly FRp be plotted in OpenGL will only show it is uppermost
Foreground layer, and can't see background layer and animation layer.
Third figure layer image information superposition is plotted to the broadcasting page by step S506.
Preferably, each pixel is traversed by OpenGL, the designated color of FRp is set as transparent, then image FRp is painted
At this moment system is penetrated by transparent color in OpenGL and goes to see background layer and animation layer.It arrives here, we realize three
The picture Overlapping display of layer.
According to embodiments of the present invention, a kind of device for implementing above-mentioned video album creating method, such as Fig. 6 are additionally provided
Shown, which includes:Material determination unit 10, for determining the first video material for making the video photograph album;Mould
Plate determination unit 20, the first photograph album template determine instruction for receiving default photograph album template;Photograph album generation unit 30 is used for root
According to the first photograph album template determine instruction, first video material is loaded into the default Video Layer of the photograph album template
In, and the video photograph album of first video material is generated simultaneously.
The first video material that material determination unit 10 according to the ... of the embodiment of the present invention is used to make the video photograph album can
Think the picture in the cell phone system photograph album of user's selection, the picture that user selects from other software, tool can also be derived from
Body, user clicks " starting from video photograph album " button of cell phone software, and calling mobile phone system photograph album simultaneously jumps to system phase
Album of paintings or calligraphy face, user manually select an at least pictures as the first video material for making the video photograph album.
Template determination unit 20 according to the ... of the embodiment of the present invention includes:The photograph album template is made of at least one layer of figure layer to be wanted
Element is composed, specifically, including but not limited to:First figure layer element (background video), the second figure layer element (dragon
Bone animation), third figure layer element (foreground video), specifically, when user select the first video material after the completion of, system jump
Go to the stencil-chosen page, the stencil-chosen page is provided at least one photograph album template, each photograph album template by
Background video, keel animation, foreground video are composed.
Photograph album generation unit 30 according to the ... of the embodiment of the present invention includes:The resource map used according to above-mentioned keel animation
First video material is replaced the resource picture by piece, obtains the keel animation for being loaded with the first video material, and will the back of the body
Scape video, keel animation, foreground video are spliced, while generating video photograph album.
According to embodiments of the present invention, as preferred in the present embodiment, as shown in fig. 7, the photograph album generation unit 30 is also
Including:Scene determining module 31, for according to the photograph album template determine instruction, determining the scene information of the photograph album template;
Figure layer determining module 32 multiple is regarded for according to the scene quantity of the scene information, determine corresponding to the photograph album template
Frequency figure layer;Second figure layer acquisition module 33, for according to the Video Layer, obtaining the second figure layer composition of the Video Layer
Element;Second figure layer replacement module 34, for the resource image of the second figure layer element to be replaced with first element
Material simultaneously loads.
Scene determining module 31 according to the ... of the embodiment of the present invention includes:Each photograph album template is preset with different scenes
Quantity, according to different scene quantity, form the background video of the photograph album template, keel animation, foreground video quantity and
Making also differs.
Figure layer determining module 32 according to the ... of the embodiment of the present invention includes:After the completion of user selects the first video material, it is
System jumps to the stencil-chosen page, and the stencil-chosen page is provided at least one photograph album template, each photograph album template
It is composed of background video, keel animation, foreground video.
Second figure layer acquisition module 33 according to the ... of the embodiment of the present invention includes:Obtain the photograph album template background video,
After keel animation, foreground video, the keel animation (i.e. the second figure layer element) is determined, and determine in the keel animation
Including resource picture.
Second figure layer replacement module 34 according to the ... of the embodiment of the present invention includes:The money used according to above-mentioned keel animation
First video material is replaced the resource picture, obtains the keel animation for being loaded with the first video material by source picture, and
Background video, keel animation, foreground video are spliced, while generating video photograph album.
According to embodiments of the present invention, as preferred in the present embodiment, as shown in figure 8, the figure layer determining module 32 is wrapped
It includes:Subgraph layer determining module 321, for according to the scene quantity of the scene information, obtaining constituting the Video Layer
One subgraph layer, wherein the quantity of the first subgraph layer is equal with the scene quantity;Subgraph layer concatenation module 322, being used for will
The first subgraph layer is spliced, and the corresponding Video Layer is obtained.
Subgraph layer determining module 321 according to the ... of the embodiment of the present invention include:If a template acquiescence there are 3 scenes, need
Make 3 keel animations, 3 background videos and 3 foreground videos.
Subgraph layer concatenation module 322 according to the ... of the embodiment of the present invention include:Splice background video and foreground video:Splicing
Background video quantity will be equal to final keel animation number with foreground video quantity, and above we, which have calculated, needs dragon
Bone animation number is 5, and we possess 3 background videos, 3 foreground videos at present, and video number is less than keel animation
Number, video need to repeat to splice successively from the beginning.
According to embodiments of the present invention, as preferred in the present embodiment, as shown in figure 9, the photograph album generation unit 30 it
After include:First figure layer acquisition module 41, the first figure layer element for parsing the Video Layer, obtains the first figure layer
Image information;First figure layer drafting module 42, for the first figure layer image information to be plotted to the broadcasting page;Second figure layer
Acquisition module 43 parses the second figure layer element of the Video Layer, obtains the second figure layer image information;Second figure layer is painted
Second figure layer image information superposition is plotted to the broadcasting page by molding block 44;Third figure layer acquisition module 45, parsing
The third figure layer element of the Video Layer, obtains third figure layer image information;Third figure layer drafting module 46, by institute
It states the superposition of third figure layer image information and is plotted to the broadcasting page.
First figure layer acquisition module 41 according to the ... of the embodiment of the present invention includes:Decoding background video:Current background video
For the background video video spliced above, bg.mp4;Decode bg.mp4 videos.
First figure layer drafting module 42 according to the ... of the embodiment of the present invention includes:Solve the video image picture at P time points
BGp is plotted in BGp on the control of OpenGL.
Second figure layer acquisition module 43 according to the ... of the embodiment of the present invention includes:It is which first to calculate corresponding to P time points
Keel animation, if P time points are more than db1_duration, is less than db2_ because the duration of each keel animation is known
Duration, then at this moment corresponding keel animation is db2, the playing progress rate of corresponding db2 is P-db1_duration.
Second figure layer drafting module 44 according to the ... of the embodiment of the present invention includes:By the interface of keel animation, db2 is jumped to
The P-db1_duration progresses of animation, at this moment keel engine can parse user's Picture card cartoon state under the progress, this
Image frame DBp under state is plotted on OpenGL controls.For keel animation according to the needs of design, it is transparent that there are some in itself
Region, the transparent region can also be penetrated and be gone, and be immediately seen background layer.Up to the present, we have been realized in two layers of picture
Superposition.
Third figure layer acquisition module 45 according to the ... of the embodiment of the present invention includes:Decode foreground video:Current foreground video
For the foreground video video spliced above, fr.mp4;Fr.mp4 videos are decoded, the video image picture at P time points is solved
FRp, FRp at this moment do not have any transparent channel, it would be desirable to one of which color are converted to transparent color, not so directly
FRp, which is plotted in OpenGL, will only show uppermost foreground layer, and can't see background layer and animation layer.
Third figure layer drafting module 46 according to the ... of the embodiment of the present invention includes:Each pixel is traversed by OpenGL, FRp
Designated color be set as transparent, then image FRp is plotted in OpenGL, at this moment by transparent color through going to see the back of the body
Background layer and animation layer.It arrives here, we realize three layers of picture Overlapping display
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, either they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is merely the preferred embodiments of the application, are not intended to limit this application, for the skill of this field
For art personnel, the application can have various modifications and variations.Within the spirit and principles of this application, any made by repair
Change, equivalent replacement, improvement etc., should be included within the protection domain of the application.
Claims (10)
1. a kind of generation method of video photograph album, for generating the photograph album video file for being loaded with the first material of user, feature
It is, the method includes:
Determine the first video material for making the video photograph album;
Receive the first photograph album template determine instruction for presetting photograph album template;
According to the first photograph album template determine instruction, first video material is loaded into the default of photograph album template and is regarded
In frequency figure layer, and the video photograph album of first video material is generated simultaneously.
2. generation method according to claim 1, which is characterized in that described to be referred to according to the first photograph album template determination
It enables, first video material is loaded into the default Video Layer of the photograph album template, and generate described first simultaneously and regard
The video photograph album of frequency material includes:
According to the photograph album template determine instruction, the scene information of the photograph album template is determined;
According to the scene quantity of the scene information, multiple Video Layers corresponding to the photograph album template are determined.
3. generation method according to claim 2, which is characterized in that the scene quantity according to the scene information,
Determine that multiple Video Layers corresponding to the photograph album template include:
According to the scene quantity of the scene information, the first subgraph layer for constituting the Video Layer is obtained, wherein described first
The quantity of subgraph layer is equal with the scene quantity;
The first subgraph layer is spliced, the corresponding Video Layer is obtained.
4. generation method according to claim 1, which is characterized in that described to be referred to according to the first photograph album template determination
It enables, first video material is loaded into the default Video Layer of the photograph album template, and generate described first simultaneously and regard
The video photograph album of frequency material further includes:
According to the Video Layer, the second figure layer element of the Video Layer is obtained;
The resource image of the second figure layer element is replaced with into first material and is loaded.
5. generation method according to claim 1, which is characterized in that described to be referred to according to the first photograph album template determination
It enables, first video material is loaded into the default Video Layer of the photograph album template, and generate described first simultaneously and regard
Include after the video photograph album of frequency material:
The the first figure layer element for parsing the Video Layer, obtains the first figure layer image information;
The first figure layer image information is plotted to the broadcasting page;
The the second figure layer element for parsing the Video Layer, obtains the second figure layer image information;
Second figure layer image information superposition is plotted to the broadcasting page;
The third figure layer element for parsing the Video Layer, obtains third figure layer image information;
Third figure layer image information superposition is plotted to the broadcasting page.
6. a kind of generating means of video photograph album, for generating the photograph album video file for being loaded with the first material of user, feature
It is, including:
Material determination unit, for determining the first video material for making the video photograph album;
Template determination unit, the first photograph album template determine instruction for receiving default photograph album template;
Photograph album generation unit, for according to the first photograph album template determine instruction, first video material to be loaded into institute
In the default Video Layer for stating photograph album template, and the video photograph album of first video material is generated simultaneously.
7. generating means according to claim 6, which is characterized in that the photograph album generation unit includes:
Scene determining module, for according to the photograph album template determine instruction, determining the scene information of the photograph album template;
Figure layer determining module determines multiple corresponding to the photograph album template for the scene quantity according to the scene information
Video Layer.
8. generating means according to claim 7, which is characterized in that the figure layer determining module includes:
Subgraph layer determining module obtains constituting the first of the Video Layer for the scene quantity according to the scene information
Subgraph layer, wherein the quantity of the first subgraph layer is equal with the scene quantity;
Subgraph layer concatenation module obtains the corresponding Video Layer for splicing the first subgraph layer.
9. generating means according to claim 6, which is characterized in that the photograph album generation unit further includes:
Second figure layer acquisition module, for according to the Video Layer, obtaining the second figure layer element of the Video Layer;
Second figure layer replacement module, for the resource image of the second figure layer element to be replaced with first material simultaneously
Load.
10. generating means according to claim 6, which is characterized in that include after the photograph album generation unit:
First figure layer acquisition module, the first figure layer element for parsing the Video Layer, obtains the first figure layer image
Information;
First figure layer drafting module, for the first figure layer image information to be plotted to the broadcasting page;
Second figure layer acquisition module parses the second figure layer element of the Video Layer, obtains the second figure layer image information;
Second figure layer image information superposition is plotted to the broadcasting page by the second figure layer drafting module;
Third figure layer acquisition module parses the third figure layer element of the Video Layer, obtains third figure layer image information;
Third figure layer image information superposition is plotted to the broadcasting page by third figure layer drafting module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810230252.1A CN108540849A (en) | 2018-03-20 | 2018-03-20 | The generation method and device of video photograph album |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810230252.1A CN108540849A (en) | 2018-03-20 | 2018-03-20 | The generation method and device of video photograph album |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108540849A true CN108540849A (en) | 2018-09-14 |
Family
ID=63484296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810230252.1A Pending CN108540849A (en) | 2018-03-20 | 2018-03-20 | The generation method and device of video photograph album |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108540849A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677734A (en) * | 2019-09-30 | 2020-01-10 | 北京达佳互联信息技术有限公司 | Video synthesis method and device, electronic equipment and storage medium |
WO2022143924A1 (en) * | 2020-12-31 | 2022-07-07 | 北京字跳网络技术有限公司 | Video generation method and apparatus, electronic device, and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794189A (en) * | 2009-09-22 | 2010-08-04 | 俞长根 | Method for displaying image |
US20100220197A1 (en) * | 2009-03-02 | 2010-09-02 | John Nicholas Dukellis | Assisted Video Creation Utilizing a Camera |
CN101847269A (en) * | 2009-03-27 | 2010-09-29 | 上海科泰世纪科技有限公司 | Multi-layer cartoon rendering system and method |
CN103501329A (en) * | 2013-09-29 | 2014-01-08 | 数标时代(北京)科技有限公司 | Intelligent electronic photo frame system |
CN104065888A (en) * | 2013-03-21 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Video manufacturing method and manufacturing device of communication terminal |
CN104318349A (en) * | 2014-10-10 | 2015-01-28 | 南通大学 | Silverlight and ArcGIS-based marine cadastre monitoring and management method |
CN105262959A (en) * | 2015-10-16 | 2016-01-20 | 北京易视通科技有限公司 | Micro video generation system and method based on '' Internet + '' mode |
CN105763885A (en) * | 2014-12-19 | 2016-07-13 | 艾迪普(北京)文化科技股份有限公司 | Three-dimensional graphics and text information real-time distribution method and device |
CN107360383A (en) * | 2017-07-26 | 2017-11-17 | 北京百思科技有限公司 | A kind of method and system for automatically generating video |
-
2018
- 2018-03-20 CN CN201810230252.1A patent/CN108540849A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100220197A1 (en) * | 2009-03-02 | 2010-09-02 | John Nicholas Dukellis | Assisted Video Creation Utilizing a Camera |
CN101847269A (en) * | 2009-03-27 | 2010-09-29 | 上海科泰世纪科技有限公司 | Multi-layer cartoon rendering system and method |
CN101794189A (en) * | 2009-09-22 | 2010-08-04 | 俞长根 | Method for displaying image |
CN104065888A (en) * | 2013-03-21 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Video manufacturing method and manufacturing device of communication terminal |
CN103501329A (en) * | 2013-09-29 | 2014-01-08 | 数标时代(北京)科技有限公司 | Intelligent electronic photo frame system |
CN104318349A (en) * | 2014-10-10 | 2015-01-28 | 南通大学 | Silverlight and ArcGIS-based marine cadastre monitoring and management method |
CN105763885A (en) * | 2014-12-19 | 2016-07-13 | 艾迪普(北京)文化科技股份有限公司 | Three-dimensional graphics and text information real-time distribution method and device |
CN105262959A (en) * | 2015-10-16 | 2016-01-20 | 北京易视通科技有限公司 | Micro video generation system and method based on '' Internet + '' mode |
CN107360383A (en) * | 2017-07-26 | 2017-11-17 | 北京百思科技有限公司 | A kind of method and system for automatically generating video |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677734A (en) * | 2019-09-30 | 2020-01-10 | 北京达佳互联信息技术有限公司 | Video synthesis method and device, electronic equipment and storage medium |
WO2021063096A1 (en) * | 2019-09-30 | 2021-04-08 | 北京达佳互联信息技术有限公司 | Video synthesis method, apparatus, electronic device, and storage medium |
US11996123B2 (en) | 2019-09-30 | 2024-05-28 | Beijing Dajia Internet Information Technology Co., Ltd. | Method for synthesizing videos and electronic device therefor |
WO2022143924A1 (en) * | 2020-12-31 | 2022-07-07 | 北京字跳网络技术有限公司 | Video generation method and apparatus, electronic device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102308840B1 (en) | Dynamic custom interstitial transition videos for video streaming services | |
CN112291484B (en) | Video synthesis method and device, electronic equipment and storage medium | |
CN106453284A (en) | Live broadcast label updating method and device and terminal equipment | |
CN112073649A (en) | Multimedia data processing method, multimedia data generating method and related equipment | |
CN111899322B (en) | Video processing method, animation rendering SDK, equipment and computer storage medium | |
US10277729B2 (en) | Apparatus and method for transmitting and receiving handwriting animation message | |
CN108337547B (en) | Character animation realization method, device, terminal and storage medium | |
KR102614263B1 (en) | Interaction methods and apparatus, electronic devices and computer-readable storage media | |
CN111163360A (en) | Video processing method, video processing device, computer-readable storage medium and computer equipment | |
CN108647313A (en) | A kind of real-time method and system for generating performance video | |
US20180143741A1 (en) | Intelligent graphical feature generation for user content | |
EP4131983A1 (en) | Method and apparatus for processing three-dimensional video, readable storage medium, and electronic device | |
CN102318307B (en) | Method for displaying download progress via poster | |
US20150331558A1 (en) | Method for switching pictures of picture galleries and browser | |
CN110505511A (en) | It is a kind of to play the method, apparatus of video, system in webpage and calculate equipment | |
CN108540849A (en) | The generation method and device of video photograph album | |
CN107610207A (en) | A kind of method, apparatus and system of generation GIF pictures | |
WO2012024852A1 (en) | Method for enabling animation during screen switching and mobile terminal | |
CN113115108A (en) | Video processing method and computing device | |
CN114466222B (en) | Video synthesis method and device, electronic equipment and storage medium | |
CN108305310B (en) | Character animation realization method, device, terminal and storage medium | |
CN108549663A (en) | The method for drafting and device of video photograph album | |
CN116962748A (en) | Live video image rendering method and device and live video system | |
CN116847147A (en) | Special effect video determining method and device, electronic equipment and storage medium | |
CN104252476A (en) | Display method and system for lowering valid page covering rate |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180914 |
|
RJ01 | Rejection of invention patent application after publication |