CN109474855A - Video editing method, device, computer equipment and readable storage medium storing program for executing - Google Patents
Video editing method, device, computer equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109474855A CN109474855A CN201811323847.8A CN201811323847A CN109474855A CN 109474855 A CN109474855 A CN 109474855A CN 201811323847 A CN201811323847 A CN 201811323847A CN 109474855 A CN109474855 A CN 109474855A
- Authority
- CN
- China
- Prior art keywords
- data stream
- additional
- audio data
- track
- synthesized
- 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 67
- 238000003780 insertion Methods 0.000 claims abstract description 87
- 230000037431 insertion Effects 0.000 claims abstract description 87
- 230000015572 biosynthetic process Effects 0.000 claims description 27
- 238000003786 synthesis reaction Methods 0.000 claims description 27
- 238000012545 processing Methods 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 15
- 230000002194 synthesizing effect Effects 0.000 claims description 3
- 238000010189 synthetic method Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 16
- 230000000694 effects Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000000153 supplemental effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000005245 sintering Methods 0.000 description 1
- 239000007787 solid Substances 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/47205—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 manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- 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/439—Processing of audio elementary streams
-
- 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/44008—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 operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- 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)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
This disclosure relates to a kind of video editing method, by obtaining original video data stream timestamp corresponding with insertion time point of the additional audio data stream being inserted into the original video data stream.And additional track is created, insertion time point of the additional audio data stream on the additional track is determined according to the timestamp.Further according to the insertion time point on the additional track, it is inserted into the additional audio data stream in the additional track, obtains voice data stream to be synthesized.The voice data stream to be synthesized and the original video data stream are finally synthesized, target synthetic video is obtained.The video editing method synthetic method that the disclosure provides is simple, reduces the complexity of video editing, reduces the runing time of video editing.
Description
Technical field
This disclosure relates to field of video processing, more particularly to a kind of video editing method, device, computer equipment and can
Read storage medium.
Background technique
With the increasingly raising of living standard with the continuous development of video technique, requirement of the people to video effect be also more next
It is higher.After the completion of video record, it is sometimes desirable to be inserted into other audio files, in video file to form a variety of audios.
Traditional technology is inserted into audio file to video file, is inserted into audio file in the former track of original video file,
New track is generated, then by the video source and new track synthesis in original video file, generates new video file.
However, there is synthesis process complexity in this method.
Summary of the invention
Based on this, it is necessary to for the problem of synthesis process complexity, provide a kind of video editing method, device, computer
Equipment and computer readable storage medium.
A kind of video editing method, which comprises
Obtain original video data stream;
When insertion time point of the additional audio data stream that acquisition is inserted into the original video data stream is corresponding
Between stab;
Additional track is created, and determines the additional audio data stream on the additional track according to the timestamp
It is inserted into time point;
According to the insertion time point on the additional track, the additional audio data is inserted into the additional track
Stream, obtains voice data stream to be synthesized;
The voice data stream to be synthesized and the original video data stream are synthesized, target synthetic video is obtained.
The additional audio data stream being inserted into that obtains is in the original video data stream in one of the embodiments,
In insertion time point corresponding timestamp, comprising:
Obtain the number of the additional audio data stream;
Obtain insertion time point of each additional audio data stream in the original video data stream it is corresponding when
Between stab;
It is described to create additional track, and determine the additional audio data stream in the additional track according to the timestamp
On insertion time point, comprising:
The a plurality of additional track is created according to the number of the additional audio data stream;
According to insertion time point of each additional audio data stream in the original video data stream it is corresponding when
Between stab, determine insertion time point of each additional audio data stream on the wherein one additional track.
The insertion time point according on the additional track in one of the embodiments, in the additional track
The middle insertion additional audio data stream, obtains voice data stream to be synthesized, comprising:
According to insertion time point of each additional audio data stream on the corresponding additional track, by each institute
It states additional audio data stream and is inserted into an additional track, form multiple voice data streams to be synthesized.
The number of the additional audio data stream is equal with the number of the additional track in one of the embodiments,
And the length of the additional track is equal with the duration of the original video data stream.
The synthesis voice data stream to be synthesized and the original video data stream in one of the embodiments,
Before obtaining target synthetic video, the method also includes:
Increase or delete the voice data stream to be synthesized;
And/or replacement voice data stream is obtained, and covered with the replacement voice data stream to be modified described to be synthesized
The additional audio data stream in voice data stream.
Voice data stream to be synthesized and the original video data stream in one of the embodiments, obtain target synthesis
Video, comprising:
Create initial video rail and initial track;
The initial video rail is written into the original video data stream, it will be described in the voice data stream write-in to be synthesized
Initial track obtains the target synthetic video.
The insertion time point according on the additional track in one of the embodiments, in the additional track
The middle insertion additional audio data stream, before obtaining voice data stream to be synthesized, the method also includes:
According to preset volume adjustment ratio, the volume of the additional audio data stream is adjusted.
In one of the embodiments, the method also includes:
Obtain the processing signal to the target synthetic video;
If the processing signal is preview signal, the target synthetic video is played.
If the processing signal is preview signal in one of the embodiments, the target synthesis view is played
After frequency, the method also includes:
If the processing signal is to save signal, the target synthetic video is stored.
Described in the video editing method that the embodiment of the present disclosure provides is determined by creating additional track, according to timestamp
Insertion time point of the additional audio data stream on the additional track, and according to the insertion time point on the additional track,
It is inserted into the additional audio data stream in the additional track, obtains voice data stream to be synthesized.Final synthesis is described wait close
At voice data stream and the original video data stream, target synthetic video is obtained.The video that the embodiment of the present disclosure provides
Edit methods do not need to split the original video data stream, but by way of creating the additional track, it will be described
Additional audio data stream is inserted into the additional track, is then synthesized with the original video data stream.Therefore, the disclosure is real
The video editing method synthetic method for applying example offer is simple, reduces the complexity of video editing, reduces video editing
Runing time.
A kind of video editing apparatus, comprising:
First obtains module, for obtaining original video data stream;
Second obtains module, for obtaining the additional audio data stream being inserted into inserting in the original video data stream
The corresponding timestamp of angle of incidence point;
Track creation module determines the additional audio data stream for creating additional track, and according to the timestamp
Insertion time point on the additional track;
Audio is inserted into module, for being inserted into the additional track according to the insertion time point on the additional track
The additional audio data stream, obtains voice data stream to be synthesized;
Synthesis module obtains target conjunction for synthesizing the voice data stream to be synthesized and the original video data stream
At video.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
The step of device realizes method as described above when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of method as described above is realized when row.
The video editing apparatus, the computer equipment and the computer-readable storage that the embodiment of the present disclosure provides
Medium determines the additional audio data stream in the insertion on the additional track by creating additional track according to timestamp
Between point the additional audio data stream is inserted into the additional track and according to the insertion time point on the additional track,
Obtain voice data stream to be synthesized.The voice data stream to be synthesized and the original video data stream are finally synthesized, mesh is obtained
Mark synthetic video.The video editing apparatus that the embodiment of the present disclosure provides, the computer equipment and described computer-readable
Storage medium reduces the complexity of video editing, reduces the runing time of video editing.
Detailed description of the invention
Fig. 1 is the video editing method application scenario diagram that an embodiment of the present disclosure provides;
Fig. 2 is the video editing method flow diagram that an embodiment of the present disclosure provides;
Fig. 3 is that the acquisition that an embodiment of the present disclosure provides is inserted into auxiliary video data stream in the original video data
Insertion time point corresponding timestamp flow diagram in stream;
Fig. 4 is that the creation that an embodiment of the present disclosure provides adds track, and determines described add according to the timestamp
Insertion time point flow diagram of the voice data stream on the additional track;
Fig. 5 is the synthesis voice data stream to be synthesized and the original video data that an embodiment of the present disclosure provides
Flow flow diagram;
Fig. 6 is the video editing method flow diagram that an embodiment of the present disclosure provides;
Fig. 7 is the video editing apparatus structural schematic diagram that an embodiment of the present disclosure provides;
Fig. 8 is the second acquisition modular structure schematic diagram that an embodiment of the present disclosure provides;
Fig. 9 is the track creation module structural schematic diagram that an embodiment of the present disclosure provides;
Figure 10 is the video editing apparatus structural schematic diagram that an embodiment of the present disclosure provides;
Figure 11 is the synthesis module structural schematic diagram that an embodiment of the present disclosure provides;
Figure 12 is the video editing apparatus structural schematic diagram that an embodiment of the present disclosure provides;
Figure 13 is the video editing apparatus structural schematic diagram that an embodiment of the present disclosure provides;
Figure 14 is the video editing apparatus structural schematic diagram that an embodiment of the present disclosure provides;
Figure 15 is the computer equipment schematic diagram of internal structure that an embodiment of the present disclosure provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present disclosure clearer, below in conjunction with the embodiment of the present disclosure
In attached drawing, the technical solution in the embodiment of the present disclosure is clearly and completely described, it is clear that described embodiment is
Disclosure a part of the embodiment, instead of all the embodiments.Based on the embodiment in the disclosure, those of ordinary skill in the art
Every other embodiment obtained without making creative work belongs to the range of disclosure protection.
The video editing method that the disclosure provides, can be adapted for the application scenarios of video editing system shown in FIG. 1.Figure
Computer equipment shown in 1 can be server, can be PC, can also be personal digital assistant, can also be other
Terminal device, such as PAD, mobile phone etc. intelligent mobile terminal can also be cloud or remote server.The disclosure is to calculating
The concrete form of machine equipment is without limitation.It should be noted that computer equipment can support the operation of various application programs, example
Such as video editor.Optionally, application program can acquire video data stream by computer equipment, obtain voice data stream
Deng, and video data stream and voice data stream are synthesized, target synthetic video is obtained, then obtained target is synthesized and is regarded
Frequency storage is exported by the interface of application program.Optionally, application program can be the processing application of the materials such as video, image,
It can also be browser application etc..The present embodiment to the concrete form of application program without limitation.
It should be noted that the video editing method that the embodiment of the present disclosure provides, executing subject can be computer and set
Video, audio synthesizer in standby, the device can be implemented as counting by way of software, hardware or software and hardware combining
Calculate some or all of of machine equipment.
Please also refer to Fig. 2, an embodiment of the present disclosure provides a kind of video editing method, which comprises
S10 obtains original video data stream.
The original video data stream refers to the data flow for being inserted into the original video of audio.The original video data stream
In include video data.The original video data stream can be pre-stored in the memory of the computer equipment.It is described original
The disclosure such as storage location, the storage form of video data stream do not do any restriction.It needs to flow into the original video data
When edlin, user can be inputted by modes such as voice input, touch input, mouse input, keyboard inputs and transfer order.Meter
It calculates machine equipment and transfers the original video data stream being pre-stored in the memory.The computer equipment can also pass through into
As device such as camera etc. acquires original video data stream.
It is corresponding to obtain insertion time point of the additional audio data stream being inserted into the original video data stream by S20
Timestamp.
The additional audio data stream can lead in the insertion time point corresponding timestamp of the original video data stream
The insertion information of user's input is crossed to determine.The mode that user inputs insertion information can be voice input, and it is defeated to can also be touch
Enter, can also be that mouse clicks input or keyboard input etc..By taking the computer equipment is smart phone as an example, the original view
The corresponding video of frequency data stream is shown in mobile phone screen, and the operation item of strip pattern is arranged.User is by touching or dragging behaviour
Make the time point that the additional audio data is inserted into item selection.Smart phone obtains the additional audio data of user's input
Time point, and the corresponding timestamp of acquisition time point.
S30 creates additional track, and determines the additional audio data stream in the additional track according to the timestamp
On insertion time point.
The additional track is for being inserted into the additional audio data stream.The additional track and the original video data
Flowing corresponding track is parallel track.The additional track can be one, or multiple.Computer equipment is according to S20
The timestamp obtained, determines time point corresponding with the timestamp on the additional track, the as described supplemental audio
Insertion point of the data flow on the additional track.For example, the time point obtained in S20 is the of the original video data stream
At 35S, the additional track is parallel track identical with the original video data flow/time length, then, corresponding according to 35S
Timestamp determines that insertion time point of the additional audio data stream on the additional track is also at 35S.
S40 is inserted into the adventitious sound frequency according to the insertion time point on the additional track in the additional track
According to stream, voice data stream to be synthesized is obtained.
The additional audio data stream refers to that user needs to be inserted into the audio file of the original video data stream.It is described attached
Summation tone frequency data stream can be the audio file for being pre-stored in the computer equipment, or user's sound by voice input
Frequency file can also be the audio file that user is directed into the computer equipment by other external equipments.The calculating
The additional track is written in the additional audio data stream by machine equipment.The starting point of additional audio data stream write-in is
The additional audio data stream that S30 is determined is inserted into time point.
S50 synthesizes the voice data stream to be synthesized and the original video data stream, obtains target synthetic video.
The original video data stream of the obtained voice data stream to be synthesized of S40 and S10 is synthesized.Synthesis
The method disclosure be not specifically limited, multiple choices can be carried out according to actual needs, as long as video data stream can be completed
With the synthesis of voice data stream.The voice data stream to be synthesized and the original data stream can by composite software or
Synthesis module is synthesized, and can also be synthesized by synthesizer, and composite software or synthesis module and conjunction can also be passed through
It is combined at device and completes synthesis.
In the present embodiment, by creating additional track, and determine that the additional audio data stream exists according to the timestamp
Insertion time point on the additional track, further according to the insertion time point on the additional track, in the additional track
It is inserted into the additional audio data stream, obtains voice data stream to be synthesized, finally synthesizes the voice data stream to be synthesized and institute
Original video data stream is stated, target synthetic video is obtained.The video editing method provided in this embodiment does not need will be described
Original video data stream is split, but by way of creating the additional track, the additional audio data stream is inserted into institute
Additional track is stated, is then synthesized with the original video data stream.Therefore, the video editing side provided in this embodiment
Method synthetic method is simple, reduces the complexity of video editing, reduces the runing time of video editing.
The video editing method that the disclosure provides may be implemented will be described in an additional audio data stream insertion
Original video data stream also may be implemented multiple additional audio data streams being inserted into the original video data stream.Below
The original video data stream is inserted by multiple accessory audio data flows to the disclosure by embodiment and in conjunction with attached drawing
Technical solution is further elaborated.
Fig. 3 is referred to, in one embodiment, S20 obtains the additional audio data stream being inserted into the original video
Insertion time point corresponding timestamp in data flow, comprising:
S210 obtains the number of the additional audio data stream.
When user needs to be inserted into multiple additional audio data streams, voice input, touch input, mouse can be passed through
Click the insertion time point for the additional audio data stream that the inputs such as input or keyboard input need to be inserted into.The computer is set
The standby number that the additional audio data stream is determined according to the number at the insertion time point.
It is corresponding to obtain insertion time point of each additional audio data stream in the original video data stream by S220
Timestamp.
The insertion information that the computer equipment is inputted according to user determines the insertion of each additional audio data stream
Time point, and determine the insertion time point corresponding timestamp of the additional audio data stream.For example, user is in the original view
10S, 20S, the 25S of frequency stream input the additional audio data stream respectively.The computer equipment obtains the
10S, 20S and the corresponding timestamp of 25S.
Fig. 4 is referred to, in one embodiment, S30 creates additional track, and determines according to the timestamp described attached
Insertion time point of the summation tone frequency data stream on the additional track, comprising:
S310 creates a plurality of additional track according to the number of the additional audio data stream.
Multiple additional tracks are created according to the number of the S210 additional audio data stream obtained.The adventitious sound
The number of rail and the number of the additional audio data stream may be the same or different.That is, an adventitious sound
The additional audio data stream can be inserted on rail, multiple additional audio data streams also can be inserted.In a reality
It applies in example, the number of the additional audio data stream is equal with the number of the additional track, and the length of the additional track
It is equal with the duration of the original video data stream.For example, it is desired to be inserted into 3 additional audio data streams, then 3 institutes are created
State additional track.The one additional audio data stream of each corresponding insertion of additional track.The additional audio data stream
Number it is equal with the number of the additional track so as to the addition of the additional audio data stream, deletion and change more
It is convenient and efficient, and the additional audio data stream being inserted into will not impact the original video data stream, synthetic effect
It is good.The length of the additional track is equal with the duration of the original video data stream, thereby may be ensured that the supplemental audio
The integrality of data flow avoids the length of the additional track from being less than the duration of the original video data stream, causes to be inserted into
The additional audio data stream be truncated;Alternatively, the length of the additional track be greater than the original video data stream when
It is long, cause the original video data stream broadcasting to finish, the additional audio data stream is still in lasting situation.
S320, it is corresponding according to insertion time point of each additional audio data stream in the original video data stream
Timestamp, determine insertion time point of each additional audio data stream on the wherein one additional track.
According to multiple timestamps that S220 is obtained, determine corresponding with each timestamp on the additional track
Time point.The corresponding relationship of each additional audio data stream and the additional track can be determined according to preset rules.Example
Such as, it can sort according to the time point that the additional audio data stream is inserted into the additional audio data stream, and be described attached
Summation tone rail sequencing numbers.The additional audio data stream and the additional track are corresponded to according to ordering rule.Assuming that first
The additional audio data stream of a time point insertion is No. 1 audio, the additional audio data of second time point insertion
Stream is No. 2 audios.The additional track of first creation is No. 1 track, and the additional track of second creation is No. 2 sounds
Rail.Preset corresponding relationship is corresponding No. 1 track of No. 1 audio, corresponding No. 2 tracks of No. 2 audios.Then, according to the institute of No. 1 audio
Timestamp is stated, insertion time point is determined on No. 1 track.According to the timestamp of No. 2 audios, determines and insert on No. 2 tracks
Angle of incidence point.
It should be noted that corresponding relationship for multiple additional audio data streams and multiple additional tracks and
The rule of correspondence can be arranged according to actual needs, the disclosure for example be merely to illustrate, be not used to limit.
In one embodiment, S40 is inserted in the additional track according to the insertion time point on the additional track
Enter the additional audio data stream, obtain voice data stream to be synthesized, comprising:
S410 will according to insertion time point of each additional audio data stream on the corresponding additional track
Each additional audio data stream is inserted into an additional track, forms multiple voice data streams to be synthesized.
The computer equipment obtains multiple additional audio data streams of user's selection or typing.The computer is set
It insertion time point of the standby additional audio data stream determined according to S320 on the additional track, will be multiple described additional
The voice data stream rule of correspondence as described above, is inserted into the additional track one by one, obtains multiple sounds to be synthesized
Frequency data stream.Continue as above for example, No. 1 audio is inserted into the insertion time point of No. 1 track, obtains No. 1 wait close
At voice data stream;No. 2 audios are inserted into the insertion time point of No. 2 English rule, obtain No. 2 voice data streams to be synthesized.
Multiple additional audio data streams also can be inserted in the additional track.It is appreciated that working as multiple institutes
It, can be in such a way that the time connects, so that multiple described attached when stating additional audio data stream one additional track of insertion
Summation tone frequency data stream thereby may be ensured that the integrality of the additional audio data stream there is no overlapping.
In one embodiment, before S50, the video editing method further include:
Increase one or more voice data streams to be synthesized.In the voice data stream to be synthesized and the original view
Before frequency stream synthesis, the voice data stream to be synthesized can be increased by the step of S20, S30 and S40.
In one embodiment, before S50, the video editing method further include:
Delete one or more voice data streams to be synthesized.In the voice data stream to be synthesized and the original view
Before frequency stream synthesis, one or more of multiple described voice data streams to be synthesized can be directly deleted.
In one embodiment, before S50, the video editing method further include:
Replacement voice data stream is obtained, and covers the audio number to be synthesized to be modified with the replacement voice data stream
According to the additional audio data stream in stream.It, can before the voice data stream to be synthesized is synthesized with the original video stream
With the audio stream data replaced by the way that needs are written into the voice data stream to be synthesized, to cover the audio to be synthesized
The additional audio data stream in data flow, and then complete the modification to the voice data stream to be synthesized.
In the video editing method provided in this embodiment, the voice data stream to be synthesized with the original video
Before data flow synthesis, the additional track is individually stored with the original video data stream, facilitates editor and change.It can lead to
It crosses and increases, the voice data stream to be synthesized is deleted or modified to realize the change of the additional audio data stream, easy to operate,
It is convenient.Meanwhile increase, be deleted or modified it is described be inserted into voice data stream, will not cover, delete or replace in original video
Voice data stream, therefore synthetic effect is more preferable.
The video editing method that above embodiments provide, by obtaining the number of the additional audio data stream and every
Insertion time point corresponding timestamp of a additional audio data stream in the original video data stream.And according to described
The number of additional audio data stream creates a plurality of additional track.Then according to each additional audio data stream described
Insertion time point corresponding timestamp in original video data stream determines each additional audio data stream one wherein
Insertion time point on the additional track.Further according to each additional audio data stream on the corresponding additional track
Insertion time point, each additional audio data stream is inserted into an additional track, is formed multiple described to be synthesized
Voice data stream.The video editing method that above embodiments provide may be implemented to insert multiple additional audio data streams
Enter in the former video data stream, to synthesize the target synthetic video.Traditional technology is inserted into multiple adventitious sound frequencies
When according to stream, the one additional audio data stream of every insertion will generate a composite document.And disclosure above embodiments mention
The video editing method supplied, can be inserted into multiple additional audio data streams simultaneously, and only carry out single sintering mistake
Journey.Therefore, the video editing method that the embodiment of the present disclosure provides simplifies synthesis process, improves combined coefficient, and save
Memory is saved.Voice data stream to be synthesized described in the video editing method that the embodiment of the present disclosure provides with the original view
Before frequency data stream synthesis, the additional track is individually stored with the original video data stream, facilitates editor and change, and can
To realize the change of the additional audio data stream by increasing, being deleted or modified the voice data stream to be synthesized, operation
Simply, convenient.
Fig. 5 is referred to, in one embodiment, S50, voice data stream to be synthesized and the original video data stream obtain
To target synthetic video, comprising:
S510 creates initial video rail and initial track.
The computer equipment can create the video file of blank, the video file include the initial video rail and
The initial track.The initial video rail is for being written the original video data stream.The initial track is for being written institute
State voice data stream to be synthesized.
The original video data stream is written the initial video rail, the voice data stream to be synthesized is write by S520
Enter the initial track, obtains the target synthetic video.
The initial video rail is all written in the original video data stream by the computer equipment frame by frame.Meanwhile institute
It states computer equipment and the initial track is all written into the voice data stream to be synthesized frame by frame.As above institute can be obtained in operation
State target synthetic video.
In the present embodiment, institute is written by creation initial video rail and initial track, and by the original video data stream
Initial video rail is stated, the initial track is written into the voice data stream to be synthesized, obtains the target synthetic video.This reality
The video editing method synthetic method for applying example offer is simple, and combined coefficient is high.Meanwhile the video provided in this embodiment
The additional audio data that the original video data stream for the target synthetic video that edit methods obtain is not inserted into
Stream influences, and synthetic effect is good.
Fig. 6 is referred to, in one embodiment, S40, the insertion time point according on the additional track, in institute
It states and is inserted into the additional audio data stream in additional track, before obtaining voice data stream to be synthesized, the method also includes:
S60 adjusts the volume of the additional audio data stream according to preset volume adjustment ratio.
The volume adjustment ratio refers to the volume ratio of additional audio data stream adjustment front and back.The volume adjustment
The pre-stored fixed value than that can be the computer equipment can also be configured according to the value that user inputs, can also be
The numerical value obtained based on preset algorithm.User inputs the method disclosure of volume adjustment ratio without limitation, can be according to practical need
Seek design.The computer equipment obtains the volume adjustment ratio, and according to the volume adjustment than adjusting the supplemental audio
The volume value of data flow.In the present embodiment, according to preset volume adjustment ratio, the volume of the additional audio data stream is adjusted,
It can satisfy different volume ratio demands, improve the Experience Degree of user.
Continuing with referring to Fig. 6, in one embodiment, the video editing method further include:
S70 obtains the processing signal to the target synthetic video.
After user obtains the target synthetic video, the processing of next step can be carried out to the target synthetic video.Example
Such as, target synthetic video described in preview, or the target synthetic video is saved, or delete the target synthetic video.User to
Processing signal of the computer equipment input to the target synthetic video.The computer equipment obtains the processing letter
Number, and corresponding operation is carried out according to the processing signal.
S80 plays the target synthetic video if the processing signal is preview signal.
The computer equipment obtains the preview signal, then plays out to the target synthetic video.Due to described
Target synthetic video includes the original video data stream and the additional audio data stream, and therefore, user is browsing to original
It, can be with preview to the audio of the additional audio data stream while beginning video.
In the present embodiment, by obtaining the processing signal to the target synthetic video, and according to preview signal, institute is played
Target synthetic video is stated, the intelligence of human-computer interaction is improved.Meanwhile preview plays the target synthetic video, so that user
The effect of the target synthetic video can be browsed, improve user experience.
Continuing with referring to Fig. 6, in one embodiment, S80, if the processing signal is preview signal, play described in
After target synthetic video, the method also includes:
S90 stores the target synthetic video if the processing signal is to save signal.
If in S70, the processing signal that the computer obtains is to save signal, then the computer equipment is according to pre-
If storing path, the target synthetic video is stored.The storing path can be preset solid for computer equipment
Determine storing path, user can also be prompted to carry out the selection of storing path by interactive window.By storing the target synthesis
Video facilitates user's later period to check and use the target synthetic video.
It should be understood that although each step in the flow chart of Fig. 2-6 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-6
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
Fig. 7 is referred to, an embodiment of the present disclosure provides a kind of video editing apparatus 1000 comprising first obtains module
100, second module 200, track creation module 300, audio insertion module 400 and synthesis module 500 are obtained.Described first obtains
Module 100 is for obtaining original video data stream.The second acquisition module 200 is for obtaining the additional audio data being inserted into
Flow the insertion time point corresponding timestamp in the original video data stream.The track creation module 300 is for creating
Additional track, and insertion time point of the additional audio data stream on the additional track is determined according to the timestamp.
The audio insertion module 400 is used to be inserted into institute in the additional track according to the insertion time point on the additional track
Additional audio data stream is stated, voice data stream to be synthesized is obtained.The synthesis module 500 is for synthesizing the audio number to be synthesized
According to stream and the original video data stream, target synthetic video is obtained.
The video editing apparatus 1000 provided in this embodiment, can execute above method embodiment, realization principle
Similar with technical effect, details are not described herein.
Fig. 8 is referred to, in one embodiment, described second, which obtains module 200, includes number obtainment unit 210 and time
Stab acquiring unit 220.The number obtainment unit 210 is used to obtain the number of the additional audio data stream.The timestamp
Acquiring unit 220 is for obtaining insertion time point pair of each additional audio data stream in the original video data stream
The timestamp answered.
Fig. 9 is referred to, in one embodiment, the track creation module 300 includes track creating unit 310 and time
Point determination unit 320.The track creating unit 310 is used for a plurality of described according to the creation of the number of the additional audio data stream
Additional track.The time point determination unit 320 is used for according to each additional audio data stream in the original video number
According to the insertion time point corresponding timestamp in stream, each additional audio data stream adventitious sound wherein is determined
Insertion time point on rail.
In one embodiment, the audio insertion module 400 is used for according to each additional audio data stream right
Each additional audio data stream is inserted into an additional track by the insertion time point on the additional track answered,
Form multiple voice data streams to be synthesized.
In one embodiment, the number of the additional audio data stream is equal with the number of the additional track, and institute
The length for stating additional track is equal with the duration of the original video data stream.
Referring to Figure 10, in one embodiment, the video editing apparatus 1000 further includes modified module 920, described
Modified module 920 is for increasing or deleting the voice data stream to be synthesized;
And/or replacement voice data stream is obtained, and covered with the replacement voice data stream to be modified described to be synthesized
The additional audio data stream in voice data stream.
Referring to Figure 11, in one embodiment, the synthesis module 500 includes creating unit 510 and writing unit
520.The creating unit 510 is for creating initial video rail and initial track.Said write unit 520 is used for will be described original
The initial video rail is written in video data stream, and the initial track is written in the voice data stream to be synthesized, is obtained described
Target synthetic video.
Referring to Figure 12, in one embodiment, the video editing apparatus 1000 further includes volume adjusting module 600.
The volume adjusting module 600 is used to adjust the volume of the additional audio data stream according to preset volume adjustment ratio.
Referring to Figure 13, in one embodiment, the video editing apparatus 1000 further includes processing signal acquisition module
700 and playing module 800.The signal acquisition module 700 is used to obtain the processing signal to the target synthetic video.It is described
Playing module 800 is used to play the target synthetic video when the processing signal is preview signal.
Referring to Figure 14, in one embodiment, the video editing apparatus 1000 further includes memory module 900.It is described
Memory module 900 is used to store the target synthetic video when the processing signal is to save signal.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in figure 15.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is for storing searching order data.The network interface of the computer equipment is used to pass through with external terminal
Network connection communication.To realize a kind of search ordering method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Figure 15, only part relevant to disclosure scheme
The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to disclosure scheme, and specific computer is set
Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
An embodiment of the present disclosure provides a kind of computer equipment, including memory and processor, the memory storage
There is computer program.The following steps when processor executes the computer program:
Obtain original video data stream;
When insertion time point of the additional audio data stream that acquisition is inserted into the original video data stream is corresponding
Between stab;
Additional track is created, and determines the additional audio data stream on the additional track according to the timestamp
It is inserted into time point;
According to the insertion time point on the additional track, the additional audio data is inserted into the additional track
Stream, obtains voice data stream to be synthesized;
The voice data stream to be synthesized and the original video data stream are synthesized, target synthetic video is obtained.
Computer equipment provided by the above embodiment, implementing principle and technical effect are similar with above method embodiment,
Details are not described herein.
An embodiment of the present disclosure provides a kind of computer readable storage medium, is stored thereon with computer program.It is described
Following step is realized when computer program is executed by processor:
Obtain original video data stream;
When insertion time point of the additional audio data stream that acquisition is inserted into the original video data stream is corresponding
Between stab;
Additional track is created, and determines the additional audio data stream on the additional track according to the timestamp
It is inserted into time point;
According to the insertion time point on the additional track, the additional audio data is inserted into the additional track
Stream, obtains voice data stream to be synthesized;
The voice data stream to be synthesized and the original video data stream are synthesized, target synthetic video is obtained.
Computer readable storage medium provided by the above embodiment, implementing principle and technical effect and the above method are implemented
Example is similar, and details are not described herein.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The several embodiments of the disclosure above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to claim therefore cannot be interpreted as.It should be pointed out that coming for those of ordinary skill in the art
It says, under the premise of not departing from disclosure design, various modifications and improvements can be made, these belong to the protection of the disclosure
Range.Therefore, the scope of protection shall be subject to the appended claims for disclosure patent.
Claims (12)
1. a kind of video editing method, which is characterized in that the described method includes:
Obtain original video data stream;
Obtain insertion time point corresponding timestamp of the additional audio data stream being inserted into the original video data stream;
Additional track is created, and insertion of the additional audio data stream on the additional track is determined according to the timestamp
Time point;
According to the insertion time point on the additional track, it is inserted into the additional audio data stream in the additional track, obtains
To voice data stream to be synthesized;
The voice data stream to be synthesized and the original video data stream are synthesized, target synthetic video is obtained.
2. the method according to claim 1, wherein the additional audio data stream being inserted into that obtains is described
Insertion time point corresponding timestamp in original video data stream, comprising:
Obtain the number of the additional audio data stream;
Obtain insertion time point corresponding timestamp of each additional audio data stream in the original video data stream;
It is described to create additional track, and determine the additional audio data stream on the additional track according to the timestamp
It is inserted into time point, comprising:
The a plurality of additional track is created according to the number of the additional audio data stream;
According to insertion time point corresponding timestamp of each additional audio data stream in the original video data stream,
Determine insertion time point of each additional audio data stream on the wherein one additional track.
3. according to the method described in claim 2, it is characterized in that, the insertion time point according on the additional track,
It is inserted into the additional audio data stream in the additional track, obtains voice data stream to be synthesized, comprising:
It, will be each described attached according to insertion time point of each additional audio data stream on the corresponding additional track
Summation tone frequency data stream is inserted into an additional track, forms multiple voice data streams to be synthesized.
4. according to the method described in claim 2, it is characterized in that, the number of the additional audio data stream and the adventitious sound
The number of rail is equal, and the length of the additional track is equal with the duration of the original video data stream.
5. according to the method described in claim 3, it is characterized in that, the synthesis voice data stream to be synthesized and the original
Beginning video data stream, before obtaining target synthetic video, the method also includes:
Increase or delete the voice data stream to be synthesized;
And/or replacement voice data stream is obtained, and cover the audio to be synthesized to be modified with the replacement voice data stream
The additional audio data stream in data flow.
6. the method according to claim 1, wherein voice data stream to be synthesized and the original video data
Stream, obtains target synthetic video, comprising:
Create initial video rail and initial track;
The initial video rail is written into the original video data stream, the voice data stream write-in to be synthesized is described initial
Track obtains the target synthetic video.
7. the method according to claim 1, wherein the insertion time point according on the additional track,
The additional audio data stream is inserted into the additional track, before obtaining voice data stream to be synthesized, the method is also wrapped
It includes:
According to preset volume adjustment ratio, the volume of the additional audio data stream is adjusted.
8. method according to any one of claims 1-7, which is characterized in that the method also includes:
Obtain the processing signal to the target synthetic video;
If the processing signal is preview signal, the target synthetic video is played.
If 9. according to the method described in claim 8, it is characterized in that, the processing signal be preview signal, play
After the target synthetic video, the method also includes:
If the processing signal is to save signal, the target synthetic video is stored.
10. a kind of video editing apparatus characterized by comprising
First obtains module, for obtaining original video data stream;
Second obtains module, when for obtaining insertion of the additional audio data stream being inserted into the original video data stream
Between put corresponding timestamp;
Track creation module determines the additional audio data stream in institute for creating additional track, and according to the timestamp
State the insertion time point on additional track;
Audio is inserted into module, described in being inserted into the additional track according to the insertion time point on the additional track
Additional audio data stream obtains voice data stream to be synthesized;
Synthesis module obtains target synthesis view for synthesizing the voice data stream to be synthesized and the original video data stream
Frequently.
11. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 9 the method when executing the computer program.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 9 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811323847.8A CN109474855A (en) | 2018-11-08 | 2018-11-08 | Video editing method, device, computer equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811323847.8A CN109474855A (en) | 2018-11-08 | 2018-11-08 | Video editing method, device, computer equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109474855A true CN109474855A (en) | 2019-03-15 |
Family
ID=65672080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811323847.8A Pending CN109474855A (en) | 2018-11-08 | 2018-11-08 | Video editing method, device, computer equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109474855A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110072120A (en) * | 2019-04-23 | 2019-07-30 | 上海偶视信息科技有限公司 | A kind of video generation method, device, computer equipment and storage medium |
CN111698568A (en) * | 2020-06-23 | 2020-09-22 | 南京微关爱应用行为分析研究院有限公司 | Interactive video labeling method |
CN112995760A (en) * | 2019-12-18 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Video processing method, device, equipment and computer storage medium |
CN113711575A (en) * | 2019-04-01 | 2021-11-26 | 马里奥·阿穆拉 | System and method for instantly assembling video clips based on presentation |
CN114286179A (en) * | 2021-12-28 | 2022-04-05 | 北京快来文化传播集团有限公司 | Video editing method, apparatus and computer-readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104703043A (en) * | 2015-03-26 | 2015-06-10 | 努比亚技术有限公司 | Video special effect adding method and device |
CN105336348A (en) * | 2015-11-16 | 2016-02-17 | 合一网络技术(北京)有限公司 | Processing system and method for multiple audio tracks in video editing |
US9373320B1 (en) * | 2013-08-21 | 2016-06-21 | Google Inc. | Systems and methods facilitating selective removal of content from a mixed audio recording |
CN105828220A (en) * | 2016-03-23 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Method and device of adding audio file in video file |
CN108429931A (en) * | 2017-02-14 | 2018-08-21 | 优酷网络技术(北京)有限公司 | A kind of method for broadcasting multimedia file and device |
-
2018
- 2018-11-08 CN CN201811323847.8A patent/CN109474855A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9373320B1 (en) * | 2013-08-21 | 2016-06-21 | Google Inc. | Systems and methods facilitating selective removal of content from a mixed audio recording |
CN104703043A (en) * | 2015-03-26 | 2015-06-10 | 努比亚技术有限公司 | Video special effect adding method and device |
CN105336348A (en) * | 2015-11-16 | 2016-02-17 | 合一网络技术(北京)有限公司 | Processing system and method for multiple audio tracks in video editing |
CN105828220A (en) * | 2016-03-23 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Method and device of adding audio file in video file |
CN108429931A (en) * | 2017-02-14 | 2018-08-21 | 优酷网络技术(北京)有限公司 | A kind of method for broadcasting multimedia file and device |
Non-Patent Citations (1)
Title |
---|
八月禅想23: "微信小视频修改字幕 给微信小视频配音 加上背景音乐", 《HTTP://WWW.360DOC.COM/CONTENT/16/1209/17/37152050_613342948.SHTML》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113711575A (en) * | 2019-04-01 | 2021-11-26 | 马里奥·阿穆拉 | System and method for instantly assembling video clips based on presentation |
CN110072120A (en) * | 2019-04-23 | 2019-07-30 | 上海偶视信息科技有限公司 | A kind of video generation method, device, computer equipment and storage medium |
CN112995760A (en) * | 2019-12-18 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Video processing method, device, equipment and computer storage medium |
CN111698568A (en) * | 2020-06-23 | 2020-09-22 | 南京微关爱应用行为分析研究院有限公司 | Interactive video labeling method |
CN114286179A (en) * | 2021-12-28 | 2022-04-05 | 北京快来文化传播集团有限公司 | Video editing method, apparatus and computer-readable storage medium |
CN114286179B (en) * | 2021-12-28 | 2023-10-24 | 北京快来文化传播集团有限公司 | Video editing method, apparatus, and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109474855A (en) | Video editing method, device, computer equipment and readable storage medium storing program for executing | |
US11670339B2 (en) | Video acquisition method and device, terminal and medium | |
US7903927B2 (en) | Editing apparatus and control method thereof, and program and recording medium | |
KR20230042523A (en) | Multimedia data processing method, generation method and related device | |
CN101743531B (en) | Method for inputting user command using user's motion and multimedia apparatus thereof | |
US9142259B2 (en) | Editing device, editing method, and program | |
JPH11341350A (en) | Multimedia information editing and reproducing device, recording medium with multimedia information reproduction program and recording medium with sequence information respectively recorded on them | |
WO2021258821A1 (en) | Video editing method and device, terminal, and storage medium | |
JP7038226B2 (en) | Video processing methods, devices, terminals and media | |
CN112422831A (en) | Video generation method and device, computer equipment and storage medium | |
CN110636365B (en) | Video character adding method and device, electronic equipment and storage medium | |
WO2018076174A1 (en) | Multimedia editing method and device, and smart terminal | |
CN108924622A (en) | A kind of method for processing video frequency and its equipment, storage medium, electronic equipment | |
CN106331869A (en) | Video-based picture re-editing method and device | |
JP2007295218A (en) | Nonlinear editing apparatus, and program therefor | |
JP2004126637A (en) | Contents creation system and contents creation method | |
KR101850285B1 (en) | Device and method for generating video script, and video producing system and method based on video script, computer program media | |
JP2002142188A (en) | Method and device for compiling dynamic image | |
JP4129162B2 (en) | Content creation demonstration system and content creation demonstration method | |
KR102078479B1 (en) | Method for editing video and videos editing device | |
JP7277635B2 (en) | Method and system for generating video content based on image-to-speech synthesis | |
JP2010191634A (en) | Moving image creation program, moving image creation service provision system, and moving image reproduction program | |
JP2005285076A (en) | Method for producing image information | |
JP3841815B2 (en) | How to edit video data | |
JP2001195604A (en) | Method for editing moving picture information |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190315 |