CN105898560A - Video editing method and device - Google Patents
Video editing method and device Download PDFInfo
- Publication number
- CN105898560A CN105898560A CN201610200740.9A CN201610200740A CN105898560A CN 105898560 A CN105898560 A CN 105898560A CN 201610200740 A CN201610200740 A CN 201610200740A CN 105898560 A CN105898560 A CN 105898560A
- Authority
- CN
- China
- Prior art keywords
- multimedia label
- control operation
- touch control
- interface
- label
- 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 48
- 230000008569 process Effects 0.000 claims description 22
- 238000013519 translation Methods 0.000 claims description 13
- 230000015572 biosynthetic process Effects 0.000 claims description 8
- 230000008859 change Effects 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 8
- 238000003786 synthesis reaction Methods 0.000 claims description 8
- 230000002194 synthesizing effect Effects 0.000 abstract 1
- 230000003068 static effect Effects 0.000 description 26
- 230000015654 memory Effects 0.000 description 13
- 238000010422 painting Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 238000012217 deletion Methods 0.000 description 6
- 230000037430 deletion Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 6
- WYTGDNHDOZPMIW-RCBQFDQVSA-N alstonine Natural products C1=CC2=C3C=CC=CC3=NC2=C2N1C[C@H]1[C@H](C)OC=C(C(=O)OC)[C@H]1C2 WYTGDNHDOZPMIW-RCBQFDQVSA-N 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 239000003973 paint Substances 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 230000001360 synchronised effect Effects 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/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- 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/44016—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 splicing one content stream with another content stream, e.g. for substituting a video clip
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a video editing method and device. The video editing method comprises the steps of: obtaining a multimedia label which needs to be loaded into a video; according to touch control operation of a user on an interface, editing the multimedia label; and encoding and decoding the edited multimedia label, and then synthesizing the multimedia label into the video. By adopting the above mode, the multimedia label can be loaded into the video.
Description
Technical field
The present invention relates to multimedia technology field, be specifically related to method and the dress of a kind of video editing
Put.
Background technology
Along with the maturation of electronic technology, more digital product produces, digital camera, panel computer,
The digital products such as smart mobile phone popular and universal, brings great convenience for the numerous common people, user
Often carry out recorded video by digital product thus record the drop of life.Such as at daily life
In, wedding, once travelling or certain party, all can carry out recorded video by digital product,
To record course of life.
But, there is presently no suitable Video editing software, it is possible to load some units in video
Element, thus realize the personalized editor to video.
Summary of the invention
The technical problem that present invention mainly solves is to provide the method and device of a kind of video editing, energy
Enough loading multimedia labels in video.
First aspect, the embodiment of the present invention provides a kind of method of video editing, and described method includes:
Obtain the multimedia label needing to be loaded in video;Receive user's touch control operation at interface, root
According to described touch control operation, described multimedia label is edited;By the described multimedia mark after editor
Label are synthesized in described video after carrying out coding and decoding.
Wherein, described multimedia label includes at least in text, barrage and Dynamic Graph
Kind.
Wherein, described reception user's touch control operation at interface, according to described touch control operation to described
Multimedia label carries out editor and includes: receive user's touch control operation at interface, to described multimedia
Label carries out rotating, scales, translates, designated frame broadcasting, playing duration, playback period, deletion
Or replicate operation.
Wherein, when described multimedia label includes barrage or Dynamic Graph, described reception user is on boundary
The touch control operation in face, edits described multimedia label according to described touch control operation and also includes:
Receive user's touch control operation at interface, the described barrage in multimedia label described to described control
Or Dynamic Graph carries out rotating, scaling or while translation, control described barrage or Dynamic Graph follows
Ring is play.
Wherein, receive user's touch control operation at interface, described multimedia label is rotated,
Scaling or translation include: receive user's touch control operation at interface, determine according to described touch control operation
Multimedia label scaling multiple and angle delta data;Multiple is scaled according to described multimedia label
And angle change, after processing to be rotated, scale or translate to described multimedia label
Multimedia label.
Second aspect, the embodiment of the present invention provides the device of a kind of video editing, described video editing
Device include acquisition module, editor module and synthesis module, wherein: described acquisition module use
In obtaining the multimedia label needing to be loaded in video;Described editor module is used for receiving user and exists
The touch control operation at interface, edits described multimedia label according to described touch control operation;Described
Synthesis module is synthesized to described after the described multimedia label after editor is carried out coding and decoding
In video.
Wherein, described multimedia label includes at least in text, barrage and Dynamic Graph
Kind.
Wherein, described editor module is for receiving user's touch control operation at interface, to described many matchmakers
Body label carries out rotating, scales, translates, designated frame broadcasting, playing duration, playback period, delete
Remove or replicate operation.
Wherein, when described multimedia label includes barrage or Dynamic Graph, described editor module is used for
Accept user's touch control operation at interface, the described barrage in multimedia label described to described control
Or Dynamic Graph carries out rotating, scaling or while translation, control described barrage or Dynamic Graph follows
Ring is play.
Wherein, described editor module, for receiving user's touch control operation at interface, touches according to described
Control operation determines multimedia label scaling multiple and angle delta data, according to described multimedia mark
Sign scaling multiple and angle change, process to be rotated, contract to described multimedia label
Multimedia label after putting or translating.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention obtains needs and adds
The multimedia label being downloaded in video, according to user's touch control operation at interface, to multimedia label
Edit, and will editor after multimedia label carry out coding and decoding after be synthesized in video.Logical
Cross such mode, it is possible to insert multimedia label in video, and can be based at interface
Touch control operation realizes the editor to multimedia label so that the multimedia label inserting video meets use
The individual demand at family, realizes the personalized editor to video simply and easily.
Accompanying drawing explanation
Fig. 1 is the method indicative flowchart of a kind of video editing that the embodiment of the present invention provides;
Fig. 2 is the apparatus structure schematic diagram of a kind of video editing that the embodiment of the present invention provides.
Detailed description of the invention
For making the object of the invention, feature, the advantage can be the most obvious and understandable, below will knot
Close the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Whole description, it is clear that described embodiment is only a part of embodiment of the present invention, rather than entirely
Portion's embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making wound
The every other embodiment obtained under the property made work premise, broadly falls into the scope of protection of the invention.
The embodiment that the present invention provides includes the embodiment of the method for video editing, on the other hand, and this
The embodiment of bright offer also includes the device embodiment realizing video editing, will carry out respectively in detail below
Describe in detail bright.
Refer to the method signal that Fig. 1, Fig. 1 are a kind of video editings that the embodiment of the present invention provides
Property flow chart, as it can be seen, the method for the present embodiment comprises the following steps S101-S103, in detail
It is described as follows:
S101: obtain the multimedia label needing to be loaded in video.
Multimedia label in the embodiment of the present invention can be, but not limited to be text (static image strip
Word can be edited), one or more in barrage and Dynamic Graph, it is of course also possible to be it
His multimedia label.
S102: receive user's touch control operation at interface, according to touch control operation, multimedia label is entered
Edlin.
Interface in the embodiment of the present invention refers to show the touch interface of described video, such as intelligence hands
The interface of the display video such as machine, Intelligent flat.
User at the touch control operation of program, can be single-point touch operation can also be multi-point touch behaviour
Make.Such as, one point of touch at interface of user or operated at Surface active component etc. by finger.
According to the touch control operation of user, multimedia label can be rotated, scale, translate,
Designated frame broadcasting, playing duration, playback period, delete or replicate operation etc..Certainly, the most not
It is confined to this, can be other edit operation.
Wherein, in the embodiment of the present invention, it is mainly based upon Android platform, in conjunction with Android
Graphics process (such as Android Graphics), operating system processing routine/message class (such as
Android OS Handler/Message), text class (such as Android Text), tool-class (ratio
Such as Android Util), view class (such as Android View), input/output interface class (such as
Java IO), thread class (such as Java Thread/Runnable).
Wherein, graphics process class includes:
Matrix: scale for carrying out image rotating;
Canvas: painting canvas class, is used for presenting image;
Paint: paintbrush class, is used for drawing and writing;
Bitmap/BitmapFactory: for load image, and be supplied to Matrix and zoom in and out;
Another purposes is for providing the image generated after rotating scaling.
Operating system processing routine/message class, sends different mainly by Handler with Message
Step message, updates user interface view.
Text class, for writing on painting canvas, can realize retouching the effects such as limit simultaneously.
Tool-class is primarily used to obtain some parameters such as screen aspect.
View class, such as multiparty control view (Multi PointControl View) is to be inherited from
Android view class, it is achieved that multiple methods of view class, the mechanism inheriting view class is come real
Now include static map, barrage, the loading of Dynamic Graph, present or the various functions such as broadcasting.Android
View class is the basic support of multiparty control view realization.
Input/output interface class is mainly used for the local of image and reads/preserve.
Thread class is mainly used for broadcasting (barrage and the circulation of Dynamic Graph of each view dynamic content
Play).
In the one of which embodiment of the present invention, it is possible to achieve multimedia label is realized by single-point touch
Rotate, scale, translate.It mainly realizes process is to receive user's touch control operation at interface, root
Multimedia label scaling multiple and angle delta data is determined, then according to many matchmakers according to touch control operation
Body label scaling multiple and angle change, process to be rotated, scale to multimedia label
Or the multimedia label after translation.
As a example by text, it realizes process and specifically may is that picture resource is read in internal memory also
Preserve with bitmap file form, the increment moved by finger touch control point afterwards, calculate respectively
The front distance of new/old point, the respective distance to center picture, thus obtain the scaling multiple of picture,
Angle change the most again by the cosine law and range data, before and after calculating.Get these numbers
According to rear, enable Matrix these parameters incoming, picture is processed, thus after being converted
Picture, carry out new picture size data calculating again layout this view (the most above-mentioned static state
Picture and text), and refresh view, trigger onDraw function logics, new picture is drawn on painting canvas, reaches
Rotation to static map scales purpose.Picture is edited word by static topology (Static
Layout) carry out word to write, calculate height and the view altitude of word, by painting canvas Canvas
(ensure the placed in the middle of word) after shifting accordingly, this Static Layout is drawn on painting canvas i.e.
Can realize the function write on picture, font also can be with painting canvas scaling in proportion and synchronization rotation simultaneously
Turn.The logic of pan view is fairly simple, as long as calculating new and old position, this view of layout is i.e. again
Can.
The realization adding barrage in video is similar with the editor's principle adding text, mainly base
In Static Layout and Canvas, but for the barrage rolled, in addition it is also necessary to temporally calculate literary composition
The display position of word, thus realize word and constantly move to what screen opposite side disappeared from view side
Effect.For the broadcasting of barrage, an animation thread to be started, As time goes on, constantly
Calculate the new position of barrage, adjust the side-play amount of Canvas, then by the Static Layout of barrage
Being drawn on Canvas, animation thread is spaced at every fixed time and just transmits a letter refreshing view
Breath, thus constantly elapse the new position of drawing word.
Dynamic Graph and barrage equally rotate, scale, and are circulated broadcasting simultaneously, and it is concrete
The process that realizes and the rotation of text scaling translation similar, the embodiment of the present invention is the most detailed at this
Repeat.
Can add the Dynamic Graph of two Class Type in the embodiment of the present invention in video, the first kind is base
In .gif Dynamic Graph form, Equations of The Second Kind is based on one group of static images (boil down to .dtt) form dynamic
State figure.
.gif the picture of Dynamic Graph form adds in video, it is possible to realizes multiparty control view and plays
Dynamic Graph, and multiparty control view can be passed through, when implementing, gif to be write decodes
Module, reads in internal memory by each frame picture of gif, and saves as list and quoted.Play
Logical AND barrage is similar to, and when difference is to enable animation thread, is to refresh in regular intervals
View loads current cursor indication picture (promote gif group figure quotes vernier simultaneously), the most permissible
Specified by calculating time interval and show a certain frame of Dynamic Graph statically.Wherein to .gif Dynamic Graph
The picture of form, the process that touch-control realizes rotating, scaling is similar with text, the most superfluous at this
State.Through above processing mode, it is possible to achieve simultaneously, user can be real-time for Dynamic Graph loop play
Ground carries out rotating the effect of each generic operations such as scaling to pattern.
Dtt Dynamic Graph adds in video, is by a series of reading internal memories order-statistic figure, comes
Realize the broadcasting demand of Dynamic Graph.The process of implementing is: by one group of orderly static map (containing group
The relevant information of figure, is encapsulated as the compressed package of .dtt) read in after internal memory, it is managed being quoted,
Constantly advancing equally vernier afterwards in playing thread, switching picture also refreshes view and presents.
Play with touch-control editor to realize principle basically identical with .gif, but eliminate the resolving of gif,
Such that it is able to the time of saving.
By add in video and touch control operation based on user to multimedia label realize
Propertyization is edited, and during implementing, is possible not only to touch to translate pattern, also by touch
Specified point, it is achieved control the size of scaling pattern, rotate the angle etc. of pattern, it is also possible to click on and refer to
Fixed figure punctuate, carries out the operations such as the duplication of pattern, deletion.Dynamic for Dynamic Graph or barrage etc.
State content, it is possible to realize loop play, copy editor, pattern transcoding preserve, temporally put lookup
Certain frame etc. function.
Such as user can be touched at interface by finger and form desired trajectory, thus adds
Multimedia label can carry out arranging or moving based on desired trajectory in video display process.With
As a example by adding barrage in video, user can pass through touch control operation so that barrage is relative to level
Face is that the angle of 30 degree or 45 degree specialties moves display, or can touch based on user
The serpentine track of control gesture, along serpentine track mobile display etc..Can only relative to tradition barrage
Move horizontally or the mode of fixing display so that on video, the displaying of barrage can more have individual
Property.In other embodiments, it is also possible to the multimedia added is zoomed in and out by touch control operation,
Implementation is simple and convenient, can better meet again the individual demand of user.
S103: be synthesized in video after the multimedia label after editor is carried out coding and decoding.
After the multimedia label added in video is edited, further by many after editor
Media label carries out coding and decoding thus is synthesized in video so that the multimedia label of interpolation with regard
Frequency one entirety of synthesis, it is simple to follow-up further operation, such as preserves, shares, broadcasting etc..
In another embodiment, outer users can be passed through after multimedia label is edited
Interface, can control the persistent period of pattern, thus control this view play the period observability,
Watch this view designated frame etc. in certain moment.
The method of a kind of video editing that the above embodiment of the present invention provides, acquisition needs are loaded into and regard
Multimedia label in Pin, according to user's touch control operation at interface, compiles multimedia label
Volume, and will editor after multimedia label carry out coding and decoding after be synthesized in video.By so
Mode, it is possible in video insert multimedia label, and can based at interface touch-control grasp
Realize the editor to multimedia label so that the multimedia label inserting video meets the individual of user
Property demand, realize the personalized editor to video simply and easily.
The method of the above embodiment of the present invention, during adding multimedia label, it is right not only to realize
Single-touch in a view carries out the function rotating, scaling, support simultaneously view translation,
Upper strata is provided callback interface realize triggering the deletion of view, duplication, temporally search, play/
Multiple logics such as time-out, top set bottom set.And be possible not only to support static map loading, operation with
Copy editor, supports barrage and Dynamic Graph simultaneously, while user carries out rotating scaling, and can be with
The operation of user, synchronously loop play barrage and Dynamic Graph content, and add a large amount of other
Multimedia label, user interface also will not be blocked, internal memory also will not be revealed.
Such scheme based on the present invention, multiparty control view can load, present and real-time circulation
Play static map, barrage and Dynamic Graph, it is possible to specify the duration play, temporally put static state
Show the content in this moment.Meanwhile, the view of the embodiment of the present invention, it is also possible to by himself with
And specify the touch control point of position, it is achieved control scaling size, the anglec of rotation, replicate, delete
Remove, the basic interface interactive operation such as translation, provide readjustment to outside, it is achieved on-demand makes by oneself simultaneously
Justice interface.
It addition, based on the solution of the present invention, it is possible to achieve view can be real for barrage and Dynamic Graph
Time be circulated broadcasting/time-out, provide interface that reproduction time, playback period are set simultaneously, can be pressed certain
The content in this moment is searched and shown to moment, meanwhile, user can be rotated the picture after scaling,
Barrage and Dynamic Graph, carry out transcoding and preserve, and carries out next step for outside, such as closes
Become video etc..
It addition, by the such scheme of the embodiment of the present invention, it is possible to achieve multiple multiparty control are regarded
The various merits such as the duplication of figure example, deletion, top set bottom set, broadcasting/time-out, temporally lookup content
Energy.
Refer to the knot that Fig. 2, Fig. 2 are the devices of a kind of video editing that the embodiment of the present invention provides
Structure schematic diagram, the device of the present embodiment is for the method performing above-mentioned embodiment illustrated in fig. 1, such as figure
Shown in, the device 100 of the video editing of the present embodiment includes acquisition module 11, editor module 12
And synthesis module 13, wherein:
Acquisition module 11 is for obtaining the multimedia label needing to be loaded in video, multimedia mark
Sign at least one included in text, barrage and Dynamic Graph.
Multimedia label in the embodiment of the present invention can be, but not limited to be text (static image strip
Word can be edited), one or more in barrage and Dynamic Graph, it is of course also possible to be it
His multimedia label.
Editor module 12 is for receiving user's touch control operation at interface, according to touch control operation to institute
State multimedia label to edit.
Interface in the embodiment of the present invention refers to show the touch interface of described video, such as intelligence hands
The interface of the display video such as machine, Intelligent flat.
User at the touch control operation of program, can be single-point touch operation can also be multi-point touch behaviour
Make.Such as, one point of touch at interface of user or operated at Surface active component etc. by finger.
According to the touch control operation of user, multimedia label can be rotated, scale, translate,
Designated frame broadcasting, playing duration, playback period, delete or replicate operation etc..Certainly, the most not
It is confined to this, can be other edit operation.
Wherein, in the embodiment of the present invention, it is mainly based upon Android platform, in conjunction with Android
Graphics process (such as Android Graphics), operating system processing routine/message class (such as
Android OS Handler/Message), text class (such as Android Text), tool-class (ratio
Such as Android Util), view class (such as Android View), input/output interface class (such as
Java IO), thread class (such as Java Thread/Runnable).
Wherein, graphics process class includes:
Matrix: scale for carrying out image rotating;
Canvas: painting canvas class, is used for presenting image;
Paint: paintbrush class, is used for drawing and writing;
Bitmap/BitmapFactory: for load image, and be supplied to Matrix and zoom in and out;
Another purposes is for providing the image generated after rotating scaling.
Operating system processing routine/message class, sends different mainly by Handler with Message
Step message, updates user interface view.
Text class, for writing on painting canvas, can realize retouching the effects such as limit simultaneously.
Tool-class is primarily used to obtain some parameters such as screen aspect.
View class, such as multiparty control view (Multi PointControl View) is to be inherited from
Android view class, it is achieved that multiple methods of view class, the mechanism inheriting view class is come real
Now include static map, barrage, the loading of Dynamic Graph, present or the various functions such as broadcasting.Android
View class is the basic support of multiparty control view realization.
Input/output interface class is mainly used for the local of image and reads/preserve.
Thread class is mainly used for broadcasting (barrage and the circulation of Dynamic Graph of each view dynamic content
Play).
In the one of which embodiment of the present invention, it is possible to achieve multimedia label is realized by single-point touch
Rotate, scale, translate.It mainly realizes process is to receive user's touch control operation at interface, root
Multimedia label scaling multiple and angle delta data is determined, then according to many matchmakers according to touch control operation
Body label scaling multiple and angle change, process to be rotated, scale to multimedia label
Or the multimedia label after translation.
As a example by text, it realizes process and specifically may is that picture resource is read in internal memory also
Preserve with bitmap file form, the increment moved by finger touch control point afterwards, calculate respectively
The front distance of new/old point, the respective distance to center picture, thus obtain the scaling multiple of picture,
Angle change the most again by the cosine law and range data, before and after calculating.Get these numbers
According to rear, enable Matrix these parameters incoming, picture is processed, thus after being converted
Picture, carry out new picture size data calculating again layout this view (the most above-mentioned static state
Picture and text), and refresh view, trigger onDraw function logics, new picture is drawn on painting canvas, reaches
Scaling purpose is rotated to static map.Picture is edited word by static topology (Static Layout)
Carry out word to write, calculate height and the view altitude of word, painting canvas Canvas is carried out accordingly
Displacement after (ensure word placed in the middle), this Static Layout is drawn on painting canvas and can realize figure
The function write on sheet, font also can be with painting canvas scaling in proportion and synchronous rotary simultaneously.Translation
The logic of view is fairly simple, as long as calculating new and old position, and this view of layout again.
The realization adding barrage in video is similar with the editor's principle adding text, mainly base
In Static Layout and Canvas, but for the barrage rolled, in addition it is also necessary to temporally calculate literary composition
The display position of word, thus realize word and constantly move to what screen opposite side disappeared from view side
Effect.For the broadcasting of barrage, an animation thread to be started, As time goes on, constantly
Calculate the new position of barrage, adjust the side-play amount of Canvas, then by the Static Layout of barrage
Being drawn on Canvas, animation thread is spaced at every fixed time and just transmits a letter refreshing view
Breath, thus constantly elapse the new position of drawing word.
Dynamic Graph and barrage equally rotate, scale, and are circulated broadcasting simultaneously, and it is concrete
The process that realizes and the rotation of text scaling translation similar, the embodiment of the present invention is the most detailed at this
Repeat.
Can add the Dynamic Graph of two Class Type in the embodiment of the present invention in video, the first kind is base
In .gif Dynamic Graph form, Equations of The Second Kind is based on one group of static images (boil down to .dtt) form dynamic
State figure.
.gif the picture of Dynamic Graph form adds in video, it is possible to realizes multiparty control view and plays
Dynamic Graph, and multiparty control view can be passed through, when implementing, gif to be write decodes
Module, reads in internal memory by each frame picture of gif, and saves as list and quoted.Play
Logical AND barrage is similar to, and when difference is to enable animation thread, is to refresh in regular intervals
View loads current cursor indication picture (promote gif group figure quotes vernier simultaneously), the most permissible
Specified by calculating time interval and show a certain frame of Dynamic Graph statically.Wherein to .gif Dynamic Graph
The picture of form, the process that touch-control realizes rotating, scaling is similar with text, the most superfluous at this
State.Through above processing mode, it is possible to achieve simultaneously, user can be real-time for Dynamic Graph loop play
Ground carries out rotating the effect of each generic operations such as scaling to pattern.
Dtt Dynamic Graph adds in video, is by a series of reading internal memories order-statistic figure, comes
Realize the broadcasting demand of Dynamic Graph.The process of implementing is: by one group of orderly static map (containing group
The relevant information of figure, is encapsulated as the compressed package of .dtt) read in after internal memory, it is managed being quoted,
Constantly advancing equally vernier afterwards in playing thread, switching picture also refreshes view and presents.
Play with touch-control editor to realize principle basically identical with .gif, but eliminate the resolving of gif,
Such that it is able to the time of saving.
By add in video and touch control operation based on user to multimedia label realize
Propertyization is edited, and during implementing, is possible not only to touch to translate pattern, also by touch
Specified point, it is achieved control the size of scaling pattern, rotate the angle etc. of pattern, it is also possible to click on and refer to
Fixed figure punctuate, carries out the operations such as the duplication of pattern, deletion.Dynamic for Dynamic Graph or barrage etc.
State content, it is possible to realize loop play, copy editor, pattern transcoding preserve, temporally put lookup
Certain frame etc. function.
Such as user can be touched at interface by finger and form desired trajectory, thus adds
Multimedia label can carry out arranging or moving based on desired trajectory in video display process.With
As a example by adding barrage in video, user can pass through touch control operation so that barrage is relative to level
Face is that the angle of 30 degree or 45 degree specialties moves display, or can touch based on user
The serpentine track of control gesture, along serpentine track mobile display etc..Can only relative to tradition barrage
Move horizontally or the mode of fixing display so that on video, the displaying of barrage can more have individual
Property.In other embodiments, it is also possible to the multimedia added is zoomed in and out by touch control operation,
Implementation is simple and convenient, can better meet again the individual demand of user.
Synthesis module 13 is synthesized to regard after the multimedia label after editor is carried out coding and decoding
In Pin.
After editing the multimedia label added in video, synthesis module 13 is further
Multimedia label after editor is carried out coding and decoding thus is synthesized in video so that interpolation is many
Media label and one entirety of Video Composition, it is simple to follow-up further operation, such as preserve, share,
Play etc..
In another embodiment, can be after multimedia label be edited, editor module 12
Outer users interface can be passed through, control the persistent period of pattern, thus control this view and playing
The observability of period, watch this view designated frame etc. in certain moment.
By the detailed description of the method and device of the video editing of the invention described above embodiment, permissible
Understand, the embodiment of the present invention needs the multimedia label being loaded in video by acquisition, according to
Multimedia label, at the touch control operation at interface, is edited by family, and by the multimedia mark after editor
Label are synthesized in video after carrying out coding and decoding.By such mode, it is possible to insert in video
Multimedia label, and the volume to multimedia label can be realized based on the touch control operation at interface
Volume so that the multimedia label inserting video meets the individual demand of user, real simply and easily
The now personalized editor to video.
More specifically, during adding multimedia label, the list for a view is not only realized
Touch carries out the function rotating, scaling, and supports the translation of view simultaneously, provides readjustment to upper strata
Interface realize triggering the deletion of view, duplication, temporally search, play/suspend, top set bottom set etc.
Multiple logics.And be possible not only to support the loading of static map, operation and copy editor, prop up simultaneously
Hold barrage and Dynamic Graph, while user carries out rotating scaling, can be same along with the operation of user
Step ground loop play barrage and Dynamic Graph content, and add other multimedia label a large amount of, use
Interface, family also will not be blocked, internal memory also will not be revealed.
In several embodiments provided by the present invention, it should be understood that disclosed system, dress
Put and method, can realize by another way.Such as, device embodiment described above
It is only schematically, such as, described module or the division of unit, it is only a kind of logic function
Dividing, actual can have other dividing mode, the most multiple unit or assembly to tie when realizing
Close or be desirably integrated into another system, or some features can be ignored, or not performing.Another
Point, shown or discussed coupling each other or direct-coupling or communication connection can be to pass through
The INDIRECT COUPLING of some interfaces, device or unit or communication connection, can be electrical, machinery or its
Its form.
The described unit illustrated as separating component can be or may not be physically separate
, the parts shown as unit can be or may not be physical location, i.e. may be located at
One place, or can also be distributed on multiple NE.Can select according to the actual needs
Select some or all of unit therein to realize the purpose of the present embodiment scheme.
Process single it addition, each functional unit in each embodiment of the present invention can be integrated in one
In unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit collection
Become in a unit.Above-mentioned integrated unit both can realize to use the form of hardware, it is also possible to
The form using SFU software functional unit realizes.
If described integrated unit realizes and as independent product using the form of SFU software functional unit
When product are sold or use, can be stored in a computer read/write memory medium.Based on so
Understanding, part that prior art is contributed by technical scheme the most in other words or
Completely or partially can embodying with the form of software product of this technical scheme of person, this computer
Software product is stored in a storage medium, including some instructions with so that a computer sets
Standby (can be personal computer, server, or the network equipment etc.) or processor (processor)
Perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium
Including: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), with
Machine access memorizer (RAM, Random Access Memory), magnetic disc or CD etc. are various
The medium of program code can be stored.
The foregoing is only embodiments of the invention, not thereby limit the scope of the claims of the present invention,
Every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process conversion, or
Directly or indirectly being used in other relevant technical fields, the patent being the most in like manner included in the present invention is protected
In the range of protecting.
Claims (10)
1. the method for a video editing, it is characterised in that described method includes:
Obtain the multimedia label needing to be loaded in video;
Receive user's touch control operation at interface, according to described touch control operation to described multimedia label
Edit;
Described multimedia label after editor is synthesized in described video.
Method the most according to claim 1, it is characterised in that described multimedia label includes
At least one in text, barrage and Dynamic Graph.
Method the most according to claim 1, it is characterised in that described reception user is at interface
Touch control operation, according to described touch control operation, described multimedia label is carried out editor and includes:
Receive user's touch control operation at interface, described multimedia label is rotated, scale,
Translation, designated frame broadcasting, playing duration, playback period, delete or replicate operation.
Method the most according to claim 3, it is characterised in that when described multimedia label bag
When including barrage or Dynamic Graph, the described reception user touch control operation at interface, grasp according to described touch-control
Described multimedia label of opposing carries out editing also including:
Receive user's touch control operation at interface, described in multimedia label described to described control
Barrage or Dynamic Graph carry out rotating, scaling or while translation, control described barrage or dynamic
Figure loop play.
Method the most according to claim 3, it is characterised in that receive user's touching at interface
Control operation, rotates described multimedia label, scale or translates and include:
Receive user's touch control operation at interface, determine that multimedia label contracts according to described touch control operation
Put multiple and angle delta data;
According to described multimedia label scaling multiple and angle change, described multimedia label is entered
Row processes with the multimedia label after being rotated, scale or translating.
6. the device of a video editing, it is characterised in that the device of described video editing includes obtaining
Delivery block, editor module and synthesis module, wherein:
Described acquisition module is for obtaining the multimedia label needing to be loaded in video;
Described editor module is for receiving user's touch control operation at interface, according to described touch control operation
Described multimedia label is edited;
Described synthesis module closes after the described multimedia label after editor is carried out coding and decoding
Become in described video.
Device the most according to claim 6, it is characterised in that described multimedia label includes
At least one in text, barrage and Dynamic Graph.
Device the most according to claim 6, it is characterised in that described editor module is used for connecing
Receive user's touch control operation at interface, described multimedia label is rotated, scale, translate,
Designated frame broadcasting, playing duration, playback period, delete or replicate operation.
Device the most according to claim 8, it is characterised in that when described multimedia label bag
When including barrage or Dynamic Graph, described editor module is for accepting user's touch control operation at interface, right
Described barrage or Dynamic Graph in described control described multimedia label carry out rotating, scale or translating
While operation, control described barrage or Dynamic Graph loop play.
Device the most according to claim 8, it is characterised in that described editor module is used for connecing
Receive user's touch control operation at interface, determine that multimedia label scales multiple according to described touch control operation
And angle delta data, according to described multimedia label scaling multiple and angle change, to institute
State the multimedia label that multimedia label carries out processing after being rotated, scale or translating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610200740.9A CN105898560A (en) | 2016-03-31 | 2016-03-31 | Video editing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610200740.9A CN105898560A (en) | 2016-03-31 | 2016-03-31 | Video editing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105898560A true CN105898560A (en) | 2016-08-24 |
Family
ID=57011835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610200740.9A Pending CN105898560A (en) | 2016-03-31 | 2016-03-31 | Video editing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105898560A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106488296A (en) * | 2016-10-18 | 2017-03-08 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus of display video barrage |
CN107613402A (en) * | 2017-09-07 | 2018-01-19 | 咪咕音乐有限公司 | A kind of barrage adjusting method, device and storage medium |
CN107635156A (en) * | 2017-10-27 | 2018-01-26 | 杭州当虹科技有限公司 | A kind of carousel system and carousel operation flow method based on distributed structure/architecture |
CN107728905A (en) * | 2017-10-12 | 2018-02-23 | 咪咕动漫有限公司 | A kind of barrage display methods, device and storage medium |
CN107992246A (en) * | 2017-12-22 | 2018-05-04 | 珠海格力电器股份有限公司 | Video editing method and device and intelligent terminal |
CN108614844A (en) * | 2016-12-13 | 2018-10-02 | 腾讯科技(北京)有限公司 | Multimedia file producting method and device |
WO2019007281A1 (en) * | 2017-07-04 | 2019-01-10 | 上海全土豆文化传播有限公司 | Method for displaying on-screen comment, and client |
CN110198491A (en) * | 2019-05-28 | 2019-09-03 | 北京奇艺世纪科技有限公司 | A kind of video sharing method and device |
CN111046642A (en) * | 2019-11-11 | 2020-04-21 | 中国建设银行股份有限公司 | Method and device for improving generation efficiency of combined identification of subject code |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060103662A1 (en) * | 2004-11-12 | 2006-05-18 | Samsung Electronics Co., Ltd. | Method and system for displaying a menu which has an icon |
CN101930779A (en) * | 2010-07-29 | 2010-12-29 | 华为终端有限公司 | Video commenting method and video player |
CN103780973A (en) * | 2012-10-17 | 2014-05-07 | 三星电子(中国)研发中心 | Video label adding method and video label adding device |
CN104703018A (en) * | 2015-02-12 | 2015-06-10 | 北京橘子文化传媒有限公司 | Display method of picture barrage |
CN104703044A (en) * | 2015-02-12 | 2015-06-10 | 北京橘子文化传媒有限公司 | Picture barrage publishing method |
CN104935997A (en) * | 2015-06-01 | 2015-09-23 | 上海幻电信息科技有限公司 | Method and device for customizing high-level barrage for a viewer |
CN105323624A (en) * | 2014-07-31 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Video recording method, device and system |
-
2016
- 2016-03-31 CN CN201610200740.9A patent/CN105898560A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060103662A1 (en) * | 2004-11-12 | 2006-05-18 | Samsung Electronics Co., Ltd. | Method and system for displaying a menu which has an icon |
CN101930779A (en) * | 2010-07-29 | 2010-12-29 | 华为终端有限公司 | Video commenting method and video player |
CN103780973A (en) * | 2012-10-17 | 2014-05-07 | 三星电子(中国)研发中心 | Video label adding method and video label adding device |
CN105323624A (en) * | 2014-07-31 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Video recording method, device and system |
CN104703018A (en) * | 2015-02-12 | 2015-06-10 | 北京橘子文化传媒有限公司 | Display method of picture barrage |
CN104703044A (en) * | 2015-02-12 | 2015-06-10 | 北京橘子文化传媒有限公司 | Picture barrage publishing method |
CN104935997A (en) * | 2015-06-01 | 2015-09-23 | 上海幻电信息科技有限公司 | Method and device for customizing high-level barrage for a viewer |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106488296B (en) * | 2016-10-18 | 2019-06-11 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus showing video barrage |
CN106488296A (en) * | 2016-10-18 | 2017-03-08 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus of display video barrage |
CN108614844B (en) * | 2016-12-13 | 2020-12-29 | 腾讯科技(北京)有限公司 | Multimedia file generation method and device |
CN108614844A (en) * | 2016-12-13 | 2018-10-02 | 腾讯科技(北京)有限公司 | Multimedia file producting method and device |
TWI698122B (en) * | 2017-07-04 | 2020-07-01 | 英屬開曼群島商阿里巴巴集團控股有限公司 | Barrage display method and client |
WO2019007281A1 (en) * | 2017-07-04 | 2019-01-10 | 上海全土豆文化传播有限公司 | Method for displaying on-screen comment, and client |
CN107613402A (en) * | 2017-09-07 | 2018-01-19 | 咪咕音乐有限公司 | A kind of barrage adjusting method, device and storage medium |
CN107728905A (en) * | 2017-10-12 | 2018-02-23 | 咪咕动漫有限公司 | A kind of barrage display methods, device and storage medium |
CN107635156A (en) * | 2017-10-27 | 2018-01-26 | 杭州当虹科技有限公司 | A kind of carousel system and carousel operation flow method based on distributed structure/architecture |
CN107635156B (en) * | 2017-10-27 | 2022-03-08 | 杭州当虹科技股份有限公司 | Carousel system based on distributed architecture and carousel business flow method |
CN107992246A (en) * | 2017-12-22 | 2018-05-04 | 珠海格力电器股份有限公司 | Video editing method and device and intelligent terminal |
CN110198491A (en) * | 2019-05-28 | 2019-09-03 | 北京奇艺世纪科技有限公司 | A kind of video sharing method and device |
CN110198491B (en) * | 2019-05-28 | 2021-07-30 | 北京奇艺世纪科技有限公司 | Video sharing method and device |
CN111046642A (en) * | 2019-11-11 | 2020-04-21 | 中国建设银行股份有限公司 | Method and device for improving generation efficiency of combined identification of subject code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105898560A (en) | Video editing method and device | |
RU2606055C2 (en) | Desktop system of mobile terminal and interface interaction method and device | |
CN103562839B (en) | Multi-application environment | |
CN100565433C (en) | Browsing media items | |
CA2128984C (en) | Interactive method and system for producing address-correlated information using user-specified address zones | |
CN107728905B (en) | Bullet screen display method and device and storage medium | |
CN108804002B (en) | Text annotation method and device for interactive intelligent equipment | |
US10325398B2 (en) | Absolute age for a digital ink stroke | |
CN106484242A (en) | The method for information display at interface and device | |
CN105900053A (en) | Interface device for link designation, interface device for viewer, and computer program | |
CN102609172A (en) | Electronic device system with process continuation mechanism and method of operation thereof | |
CN104142776A (en) | Icon processing method and device | |
CN105786417A (en) | Method, device and equipment for dynamically displaying static pictures | |
CN103472989A (en) | Wallpaper switching method and wallpaper switching terminal | |
CN106708478B (en) | Scroll view display method and apparatus | |
WO2020186837A1 (en) | Text animation control method and device, storage medium and processor | |
WO2015105804A1 (en) | System and method for generating and using spatial and temporal metadata | |
CN103460174A (en) | Augmenting user interface elements | |
Hürst et al. | HiStory: a hierarchical storyboard interface design for video browsing on mobile devices | |
CN106940617B (en) | Display method and electronic equipment | |
CN115550741A (en) | Video management method and device, electronic equipment and readable storage medium | |
CN107450792B (en) | Information processing method and mobile terminal | |
CN106775634A (en) | One kind displaying block display method and device | |
CN108491139B (en) | Object fixing method and device, terminal equipment and storage medium | |
CN114286164B (en) | Video synthesis method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160824 |