Invention content
The embodiment of the invention discloses a kind of in splicing video adds the method and device of visual effect, can make addition
Visual effect and splice video video content match.
First aspect of the embodiment of the present invention discloses a kind of method for adding visual effect in splicing video, the method
Including:
It determines and needs to be added to First look effect in splicing video, wherein the splicing video is spelled by multistage video
It connects;
From all splicing time points of the splicing video, determine that target corresponding with the First look effect is spelled
Connect time point;
Splice time point for the target, the First look effect is added in the splicing video.
In the first possible realization method of first aspect of the embodiment of the present invention, it is described for the target splicing when
Between point, the First look effect is added in the splicing video, including:
The initial time setting of the First look effect is spliced into time point in the target;Or
The initial time of the First look effect is arranged in the first segment video for forming the target splicing time point
Time point, wherein the end time of the First look effect, which is located at, to be formed the second segment at target splicing time point and regards
The time point of frequency.
In conjunction with the possible realization method of the first of first aspect of the embodiment of the present invention or first aspect of the embodiment of the present invention,
It is described from when all splicings of the splicing video in second of possible realization method of first aspect of the embodiment of the present invention
Between put, determine corresponding with First look effect target splicing time point, including:
According to duration matching principle, determined and the First look from all splicing time points of the splicing video
The corresponding target of effect splices time point, wherein the duration matching principle is that the duration of the First look effect is not more than
Form the total duration of two sections of videos at the target splicing time point.
In conjunction with the embodiment of the present invention in a first aspect, first aspect of the embodiment of the present invention the third possible realization method
In, the method further includes:
Determine the second visual effect for needing to be added in the splicing video;
Second visual effect is added in the final stage video of the splicing video.
In conjunction with the third possible realization method of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention
The 4th kind of possible realization method in, it is described by second visual effect be added to it is described splicing video final stage regard
In frequency, including:
According to pre-set duration ratio and it is described splicing video final stage video duration, calculate described in most
Object time point corresponding with second visual effect in all time points of latter section of video, and second vision is imitated
The initial time of fruit is arranged in the object time point.
Second aspect of the embodiment of the present invention discloses a kind of device adding visual effect in splicing video, described device
Including the first determination unit, the second determination unit and adding device, wherein:
First determination unit, the First look effect being added in splicing video for determining needs, wherein described
Splicing video is formed by multistage video-splicing;
Second determination unit, for from all splicing time points of the splicing video, determining and described the
The corresponding target of one visual effect splices time point;
The First look effect is added to described by the adding device for splicing time point for the target
Splice in video.
In the first possible realization method of second aspect of the embodiment of the present invention, the adding device is directed to the mesh
Mark splices time point, is by the concrete mode that the First look effect is added in the splicing video:
The initial time setting of the First look effect is spliced into time point in the target;Or
The initial time of the First look effect is arranged in the first segment video for forming the target splicing time point
Time point, wherein the end time of the First look effect, which is located at, to be formed the second segment at target splicing time point and regards
The time point of frequency.
In conjunction with the possible realization method of the first of second aspect of the embodiment of the present invention or second aspect of the embodiment of the present invention,
In second of possible realization method of second aspect of the embodiment of the present invention, second determination unit is from the splicing video
All splicing time points in, determine corresponding with First look effect target splicing time point, including:
According to duration matching principle, determined and the First look from all splicing time points of the splicing video
The corresponding target of effect splices time point, wherein the duration matching principle is that the duration of the First look effect is not more than
Form the total duration of two sections of videos at the target splicing time point.
In conjunction with second aspect of the embodiment of the present invention, in the third possible realization method of second aspect of the embodiment of the present invention
In, first determination unit is additionally operable to determine the second visual effect for needing to be added in the splicing video;
The adding device is additionally operable to for second visual effect to be added to the final stage video of the splicing video
In.
In conjunction with the third possible realization method of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present invention
The 4th kind of possible realization method in, second visual effect is added to the splicing video most by the adding device
Concrete mode in latter section of video is:
According to pre-set duration ratio and it is described splicing video final stage video duration, calculate described in most
Object time point corresponding with second visual effect in all time points of latter section of video, and second vision is imitated
The initial time of fruit is arranged in the object time point.
In the embodiment of the present invention, the First look effect for needing to be added in splicing video is determined, wherein the splicing video
It is to be formed by multistage video-splicing, from all splicing time points of the splicing video, determines and the First look effect pair
At the target splicing time point answered, splices time point for the target, which is added in the splicing video.It can
See, splicing corresponding with visual effect can be determined from all splicing time points of splicing video by implementing the embodiment of the present invention
Visual effect is simultaneously added in splicing video according to the splicing time point determined by time point, and then can make the vision of addition
Effect and the video content of splicing video match, the usage experience and the processing quality to splicing video for improving user.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of in splicing video adds the method and device of visual effect, can make addition
Visual effect and splice video video content match, improve user usage experience and to splice video processing matter
Amount.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of method for adding visual effect in splicing video disclosed by the embodiments of the present invention
Flow diagram.Wherein, method shown in FIG. 1 can be applied to smart mobile phone (such as Android phone, iOS mobile phones), tablet
In the terminals such as computer, palm PC and mobile internet device (Mobile Internet Devices, MID), PAD.Such as figure
Shown in 1, the method that visual effect should be added in splicing video may comprise steps of:
S101, the First look effect for needing to be added in splicing video is determined.
In the embodiment of the present invention, which formed by the multistage video-splicing determined, specifically, determining
Multistage video can be the video that user selects according to self-demand, can also be the video of acquiescence, and the embodiment of the present invention is not done
It limits.And can be at the process of splicing video by the multistage video-splicing determined:It is determined when detecting that user is directed to
When the splicing instruction of multistage video input, splicing instruction is responded, the multistage video determined (is given tacit consent in a certain order
Sequence or sequence set by user) be spliced into splicing video, wherein the length of every section of video can be identical, can not also
Together, the total duration for splicing video is equal to the sum of the duration of every section of video, and the link position of two sections of adjacent videos is regarded in the splicing
It is known as splicing time point in frequency, it is fewer than the video number for forming the splicing video to splice the number at time point in a splicing video
1.As an example it is assumed that splicing video A is spliced by video 1, video 2 and video 3, then splicing video A includes two
A splicing time point:The video 1 and splicing time point T1 of the video 2 and splicing time point T2 of video 2 and video 3.
As an alternative embodiment, determining that the First look effect for needing to be added in splicing video can wrap
It includes:
Determine the target special efficacy that user chooses from pre-stored multiple special efficacys, and the part for including by the target special efficacy
Or whole visual effects are determined as needing to be added to the First look effect in splicing video.Wherein, each special efficacy includes extremely
A few visual effect, if special efficacy A includes visual effect A1 and visual effect A2, special efficacy B includes visual effect B1, vision effect
Fruit B2 and visual effect B3.Optionally, the visual effect in each special efficacy can arrange in a certain order, and the special efficacy
Including the sequence that occurs in splicing video of visual effect can put in order consistent with visual effect in the special efficacy, such as exist
In the case that visual effect A1 and visual effect A2 in special efficacy A can be added to splicing video, visual effect A2 occurs
Time point be later than the time point that visual effect A1 occurs.
S102, from all splicing time points of above-mentioned splicing video, determine corresponding with above-mentioned First look effect
Target splices time point.
In the embodiment of the present invention, when the quantity of above-mentioned First look effect is more than 1, need for each First look effect
Determine corresponding target splicing time point.When being not determined by the corresponding target of some First look effect and splicing time point,
The First look effect can directly be given up, which can also be added to form the last of above-mentioned splicing video
In one section of video, the embodiment of the present invention does not limit.
S103, splice time point for above-mentioned target, above-mentioned First look effect is added in above-mentioned splicing video.
As an alternative embodiment, splicing time point for above-mentioned target, above-mentioned First look effect is added
To may include in above-mentioned splicing video:
The initial time of above-mentioned First look effect or end time setting are spliced into time point in above-mentioned target.
Specifically, determining that target splices the initial time of the First look effect at time point or the end time sets by each
It sets and splices time point in corresponding target.
As another optional embodiment, splice time point for above-mentioned target, above-mentioned First look effect is added
Being added in above-mentioned splicing video to include:
The initial time of above-mentioned First look effect is arranged in the first segment video for forming above-mentioned target splicing time point
Time point, wherein the end time of above-mentioned First look effect, which is located at, to be formed the second segment at above-mentioned target splicing time point and regards
The time point of frequency.
Specifically, determining that target splices the initial time setting of the First look effect at time point in formation pair by each
Some time point of the first segment video at target splicing time point is answered, and the end time of the First look effect is arranged in shape
At some time point for splicing the second segment video at time point at corresponding target, such as the centre position of the First look effect is arranged
At corresponding splicing time point etc..
As an alternative embodiment, from all splicing time points of above-mentioned splicing video, determine with it is above-mentioned
First look effect corresponding target splicing time point may include:
According to duration matching principle, determined and above-mentioned First look from all splicing time points of above-mentioned splicing video
The corresponding target of effect splices time point.
In the optional embodiment, which is not more than for the duration of above-mentioned First look effect forms
The total duration of two sections of videos at target splicing time point corresponding with the First look effect.Specifically, determining to need to add
After being added to the First look effect in above-mentioned splicing video, according to the duration of the First look effect from upper the one of the visual effect
Next splicing time point at the splicing time point of a visual effect addition begins look for a target splicing time point, so that should
The duration of visual effect is less than the total duration for two sections of videos for forming target splicing time point.
As an example it is assumed that video 1, video 2 and video 3 are spliced into splicing video, video 1 is formed with video 2
Splicing time point is T1, and video 2 is T2 with the splicing time point that video 3 is formed, and needs the spy added in the splicing video
Effect is special efficacy A, wherein special efficacy A includes visual effect A1 and visual effect A2, then judges whether the duration of visual effect A1 is small
In the total duration of video 1 and video 2, if so, the centre position addition of visual effect A1 is judged in splicing time point T1
Whether the duration of visual effect A2 is less than the total duration of video 2 and video 3, if so, by the centre position of visual effect A2
Addition is in splicing time point T2.
In an alternative embodiment, before executing step S101, following steps can also be performed:
Whether input pin instructs the splicing for the multistage video determined to detection user, wherein the splicing is instructed for referring to
Show splicing multistage video;
When the test results is yes, output subscriber authentication request, wherein the subscriber authentication is asked for asking
Verify whether user is authorized user;
Receive subscriber authentication response of the user for above-mentioned subscriber authentication request input, wherein user's body
Part auth response includes authentication information input by user;
Judge whether authentication information input by user is identical as default authentication information;
When judging result be when, determine user be authorized user, by the multistage video-splicing determined at splicing video,
And it triggers and executes step S101.
In the optional embodiment, when user needs to go forward side by side multistage video-splicing at splicing video according to self-demand
Before the operation of the subsequent addition visual effect of row, authentication is carried out to user, when receiving authentication input by user
When information, judge whether authentication information input by user is identical as default authentication information, if identical, it is determined that user
For authorized user, the multistage video-splicing determined at splicing video and is executed and above-mentioned determining needs to be added in splicing video
The operation of First look effect, wherein authentication information input by user can be encrypted message, finger print information, fingerprint string
One or more combinations of information and pattern-information, the embodiment of the present invention do not limit, and can improve video processing in this way
Safety.
Optionally, after the step S103 that is finished, directly the splicing video added with visual effect can be exported
To user, so that user carries out preview, and then user is made to be decided whether to preserve the spelling added with visual effect according to self-demand
It connects video or whether adds new visual effect again for above-mentioned splicing video, improve the usage experience of user.
In the embodiment of the present invention, the First look effect for needing to be added in splicing video is determined, wherein the splicing video
It is to be formed by multistage video-splicing, from all splicing time points of the splicing video, determines and the First look effect pair
At the target splicing time point answered, splices time point for the target, which is added in the splicing video.It can
See, splicing corresponding with visual effect can be determined from all splicing time points of splicing video by implementing the embodiment of the present invention
Visual effect is simultaneously added in splicing video according to the splicing time point determined by time point, and then can make the vision of addition
Effect and the video content of splicing video match, the usage experience and the processing quality to splicing video for improving user.
Referring to Fig. 2, Fig. 2 is another method for adding visual effect in splicing video disclosed by the embodiments of the present invention
Flow diagram.Wherein, method shown in Fig. 2 can be applied to smart mobile phone (such as Android phone, iOS mobile phones), put down
In the terminals such as plate computer, palm PC and mobile internet device (Mobile Internet Devices, MID), PAD.Such as
Shown in Fig. 2, the method that visual effect should be added in splicing video may comprise steps of:
S201, by the multistage video-splicing determined at splicing video.
In the embodiment of the present invention, regarded according to what self-demand selected specifically, the multistage video determined can be user
Frequently, can also be the video of acquiescence, the embodiment of the present invention does not limit.And works as and detect that user is directed to the multistage video determined
When the splicing instruction of input, respond splicing instruction, by the multistage video determined in a certain order (sequence of acquiescence or
Person's sequence set by user) it is spliced into splicing video, wherein and the length of every section of video may be the same or different, and splicing regards
The total duration of frequency is equal to the sum of the duration of every section of video, and the link position of two sections of adjacent videos is known as spelling in the splicing video
Time point is connect, it is fewer by 1 than the video number for forming the splicing video to splice the number at time point in a splicing video.Citing comes
It says, it is assumed that splicing video A is spliced by video 1, video 2 and video 3, then when splicing video A includes two splicings
Between point:The video 1 and splicing time point T1 of the video 2 and splicing time point T2 of video 2 and video 3.
S202, the First look effect for needing to be added in above-mentioned splicing video is determined.
In the embodiment of the present invention, determine that the First look effect for needing to be added in splicing video may include:
Determine the target special efficacy that user chooses from pre-stored multiple special efficacys, and the part for including by the target special efficacy
Or whole visual effects are determined as needing to be added to the First look effect in splicing video.Wherein, each special efficacy includes extremely
A few visual effect, if special efficacy A includes visual effect A1 and visual effect A2, special efficacy B includes visual effect B1, vision effect
Fruit B2 and visual effect B3 etc., optionally, the visual effect in each special efficacy can be arranged in a certain order, and the spy
The sequence that visual effect in effect occurs in splicing video in special efficacy visual effect put in order it is consistent, such as in special efficacy A
In visual effect A1 and visual effect A2 be added to splicing video in the case of, evening at time point that visual effect A2 occurs
In the time point that visual effect A1 occurs.
S203, from all splicing time points of above-mentioned splicing video, determine corresponding with above-mentioned First look effect
Target splices time point.
In the embodiment of the present invention, when the quantity of above-mentioned First look effect is more than 1, need for each First look effect
Determine corresponding target splicing time point.When being not determined by the corresponding target of some First look effect and splicing time point,
The First look effect can directly be given up, which can also be added to form the last of above-mentioned splicing video
In one section of video, the embodiment of the present invention does not limit.
In the embodiment of the present invention, from all splicing time points of above-mentioned splicing video, determine and above-mentioned First look
Effect corresponding target splicing time point may include:
According to duration matching principle, determined and above-mentioned First look from all splicing time points of above-mentioned splicing video
The corresponding target of effect splices time point.
Wherein, which is not more than for the duration of above-mentioned First look effect and is formed and the First look effect
The total duration of two sections of videos at corresponding target splicing time point.Specifically, determining to need to be added to above-mentioned splicing video
In First look effect after, added from a upper visual effect for the visual effect according to the duration of the First look effect
Next splicing time point at splicing time point begins look for a target splicing time point, so that the duration of the visual effect is small
In the total duration for two sections of videos for forming target splicing time point
S204, splice time point for above-mentioned target, above-mentioned First look effect is added in above-mentioned splicing video.
As an alternative embodiment, splicing time point for above-mentioned target, above-mentioned First look effect is added
To may include in above-mentioned splicing video:
The initial time of above-mentioned First look effect or end time setting are spliced into time point in above-mentioned target.
Specifically, determining that target splices the initial time of the First look effect at time point or the end time sets by each
It sets and splices time point in corresponding target.
As another optional embodiment, splice time point for above-mentioned target, above-mentioned First look effect is added
Being added in above-mentioned splicing video to include:
The initial time of above-mentioned First look effect is arranged in the first segment video for forming above-mentioned target splicing time point
Time point, wherein the end time of above-mentioned First look effect, which is located at, to be formed the second segment at above-mentioned target splicing time point and regards
The time point of frequency.
Specifically, determining that target splices the initial time setting of the First look effect at time point in formation pair by each
Some time point of the first segment video at target splicing time point is answered, and the end time of the First look effect is arranged in shape
At some time point for splicing the second segment video at time point at corresponding target, such as the centre position of the First look effect is arranged
At corresponding splicing time point etc.
S205, judge whether there is also be not added to above-mentioned splicing video in special efficacy where above-mentioned First look effect
In remaining visual effect.
In the embodiment of the present invention, when the judging result of step S205 is to be, step S206 can be executed, it can also be direct
Terminate this flow, i.e., directly gives up the remaining visual effect being also not added in above-mentioned special efficacy in above-mentioned splicing video;When
When the judging result of step S205 is no, this flow can be terminated.
In the embodiment of the present invention, if the judging result of step S205 is yes, illustrate some vision in above-mentioned special efficacy
Effect can not find the splicing time point in suitable splicing time point or above-mentioned splicing video according to duration matching principle
Through being fully occupied.
S206, the second visual effect for needing to be added in above-mentioned splicing video is determined.
In the embodiment of the present invention, the second visual effect is the visual effect determined from above-mentioned remaining visual effect, and
The total duration for all second visual effects determined is less than the duration for the final stage video for forming above-mentioned splicing video.
S207, each second visual effect is added in the final stage video of above-mentioned splicing video.
Optionally, each second visual effect is added in above-mentioned final stage video and may include:
According to pre-set duration ratio and the duration of final stage video, calculate in above-mentioned final stage video with
Each second visual effect corresponding time point, and each second visual effect is added to corresponding time point.Wherein,
Second visual effect of different numbers can correspond to different duration ratios.
Optionally, when the judging result of step S205 is to be and before executing step S206, following behaviour can also be performed
Make:
Export prompt message, wherein there is also be not added to splicing to regard for prompting in above-mentioned special efficacy for the prompt message
Remaining visual effect in frequency and whether remaining visual effect is added in above-mentioned splicing video;
Receive the response message that user is directed to prompt message input;
When response message is used to indicate, and remaining visual effect is added in above-mentioned splicing video, step S206 is executed.
User can be made to decide whether remaining visual effect being added in above-mentioned splicing video according to self-demand in this way,
The usage experience for improving user makes the processing for splicing video become more flexible.
For example, as shown in figure 3, Fig. 3 be it is disclosed by the embodiments of the present invention another add vision in splicing video
The flow diagram of the method for effect.As shown in figure 3, video 1, video 2 and video 3 are spliced into splicing video, video 1 with
The splicing time point that video 2 is formed is T1, and video 2 is T2 with the splicing time point that video 3 is formed, and needs to add in the splicing
Special efficacy in video is special efficacy B, wherein special efficacy B includes visual effect B1, visual effect B2, visual effect B3 and vision effect
The duration of fruit B4, and the duration of visual effect B1 is less than the total duration of video 1 and video 2, visual effect B2 be less than video 2 with
And the total duration of video 3, and the total duration of visual effect B3 and visual effect B4 are less than the duration 60s of video 3, and and vision
Effect B3 and the corresponding preset ratios of visual effect B4 are 50% and 75%, then add the centre position of visual effect B1
To splicing time point T1, the centre position of visual effect B2 is added to splicing time point T2, by the interposition of visual effect B3
It sets and is added at the 30s of video 3 and the centre position of visual effect B4 is added at the 45s of video 3.
As it can be seen that corresponding splicing can be added to by the visual effect for meeting duration matching principle by implementing the embodiment of the present invention
Time point, and according to pre-set duration ratio by meet in remaining visual effect total duration less than final stage video when
Long visual effect is added in final stage video, can make the video content phase of the visual effect and splicing video of addition
Match, the usage experience and the processing quality to splicing video for improving user.
Referring to Fig. 4, Fig. 4 is a kind of device adding visual effect in splicing video disclosed by the embodiments of the present invention
Structural schematic diagram.Wherein, device shown in Fig. 4 may be mounted at smart mobile phone (such as Android phone, iOS mobile phones), tablet
In the terminals such as computer, palm PC and mobile internet device (Mobile Internet Devices, MID), PAD.Such as figure
Shown in 4, the device of visual effect should be added in splicing video may include the first determination unit 401, secondly determination unit 402
And adding device 403, wherein:
The First look effect that first determination unit 401 is added to for determining needs in splicing video.
In the embodiment of the present invention, it can be that user selects according to self-demand which, which is by the multistage video determined,
The video selected, can also be the video of acquiescence, and the embodiment of the present invention does not limit.And visual effect is added in splicing video
Device by the multistage video-splicing determined at splicing video concrete mode can be:Detect that user is more for determining
When the splicing instruction of section video input, concatenation unit 401 responds splicing instruction, by the multistage video determined according to certain
Sequentially (sequence of acquiescence or sequence set by user) is spliced into splicing video, wherein and the length of every section of video can be identical,
It can also be different, the total duration for splicing video is equal to the sum of the duration of every section of video, and the link position of two sections of adjacent videos exists
It is known as at splicing time point, splicing the number at time point than forming regarding for the splicing video in a splicing video in the splicing video
Frequency number few 1.
Second determination unit 402 was used for from all splicing time points of above-mentioned splicing video, was determined and above-mentioned first
The corresponding target of visual effect splices time point.
In the embodiment of the present invention, when the quantity of above-mentioned First look effect is more than 1, the second determination unit 402 needs are
Each First look effect determines corresponding target splicing time point.When the second determination unit 402 be not determined by some first
When the corresponding target of visual effect splices time point, it can directly give up the First look effect, it can also be by the First look
Effect is added in the final stage video to form above-mentioned splicing video, and the embodiment of the present invention does not limit.
Adding device 403 is used to splice time point for above-mentioned target, and above-mentioned First look effect is added to above-mentioned spelling
It connects in video.
As an alternative embodiment, adding device 403 splices time point for above-mentioned target, above-mentioned first is regarded
Feeling the concrete mode that effect is added in above-mentioned splicing video can be:
The initial time setting of above-mentioned First look effect is spliced into time point in above-mentioned target.
Specifically, adding device 403 by it is each determine target splice time point First look effect initial time
Or end time setting splices time point in corresponding target.
As another optional embodiment, adding device 403 splices time point for above-mentioned target, by above-mentioned first
The concrete mode that visual effect is added in above-mentioned splicing video can be:
The initial time of above-mentioned First look effect is arranged in the first segment video for forming above-mentioned target splicing time point
Time point, wherein the end time of above-mentioned First look effect, which is located at, to be formed the second segment at above-mentioned target splicing time point and regards
The time point of frequency.
Specifically, adding device 403 by it is each determine target splice time point First look effect initial time
It is arranged at some time point for forming corresponding target and splicing the first segment video at time point, and by the end of the First look effect
Some time point in the second segment video for forming corresponding target splicing time point is arranged in time, as by the First look effect
Centre position was arranged at corresponding splicing time point etc..
As an alternative embodiment, all splicing time points of second determination unit 402 from above-mentioned splicing video
In, determine that the concrete mode at target splicing time point corresponding with above-mentioned First look effect can be:
According to duration matching principle, determined and above-mentioned First look from all splicing time points of above-mentioned splicing video
The corresponding target of effect splices time point.
In the optional embodiment, which is not more than for the duration of above-mentioned First look effect forms
The total duration of two sections of videos at target splicing time point corresponding with the First look effect.Specifically, in the first determination unit
401 determine after needing to be added to the First look effect in above-mentioned splicing video, and the second determination unit 402 first is regarded according to this
Feel that next splicing time point at the splicing time point that the duration of effect is added from a upper visual effect for the visual effect opens
Begin to find a target splicing time point, so that the duration of the visual effect is regarded less than form target splicing time point two sections
The total duration of frequency.
In an alternative embodiment, on the basis of apparatus structure shown in Fig. 4, which can also sentence including first
Disconnected unit 404, at this point, the structure of the device can be with as shown in figure 5, Fig. 5 be another kind disclosed by the embodiments of the present invention is splicing
The structural schematic diagram of the device of visual effect is added in video.Wherein:
First judging unit 404 is for whether there is also be not added in the special efficacy where judging above-mentioned First look effect
To the remaining visual effect in above-mentioned splicing video.
In the embodiment of the present invention, when the judging result of the first judging unit 404 is to be, then illustrate there is one in above-mentioned special efficacy
Partial visual effect can not find the splicing in suitable splicing time point or above-mentioned splicing video according to duration matching principle
Time point has been fully occupied.
First determination unit 401 can be also used for, when the judging result of the first judging unit 404 is to be, determining and needing to add
The second visual effect being added in splicing video.
In the embodiment of the present invention, the second visual effect is that the first determination unit 401 is determined from above-mentioned remaining visual effect
The visual effect gone out, and the total duration for all second visual effects determined is less than the final stage for forming above-mentioned splicing video
The duration of video.
The final stage that adding device 403 can be also used for each second visual effect being added to above-mentioned splicing video regards
In frequency.
Further alternative in the optional embodiment, each second visual effect is added to most by adding device 403
Concrete mode in latter section of video can be:
According to pre-set duration ratio and the duration of final stage video, calculate in above-mentioned final stage video with
Each second visual effect corresponding time point, and each second visual effect is added to corresponding time point.Wherein,
Second visual effect of different numbers can correspond to different duration ratios.
In another optional embodiment, on the basis of apparatus structure shown in Fig. 5, which can also include first
Output unit 405 and the first input unit 406, at this point, the structure of the device can be with as shown in fig. 6, Fig. 6 be implementation of the present invention
Disclosed in example and another kind adds the structural schematic diagram of the device of visual effect in splicing video.Wherein:
First output unit 405 is used to when the judging result of the first judging unit 404 be to be and in the first determination unit 401
Before determining the second visual effect for needing to be added in above-mentioned splicing video, prompt message is exported, wherein the prompt message is used
In prompting in above-mentioned special efficacy there is also the remaining visual effect being not added in above-mentioned splicing video and whether regard residue
Feel that effect is added in above-mentioned splicing video.
First input unit 406 is used to receive the sound of prompt message input of the user for the output of the first output unit 405
Information is answered, and when the response message is used to indicate and remaining visual effect is added in above-mentioned splicing video, triggering first is really
Order member 401 executes the operation that above-mentioned determination needs the second visual effect being added in above-mentioned splicing video.
In another optional embodiment, on the basis of apparatus structure shown in Fig. 4, which can also include detection
Unit 407, the second output unit 408, the second input unit 409, second judgment unit 410, third determination unit 411 and spelling
Order member 412, at this point, the structure of the device can with as shown in fig. 7, Fig. 7 be it is disclosed by the embodiments of the present invention another splicing
The structural schematic diagram of the device of visual effect is added in video.Wherein:
Detection unit 407 is used to determine the First look effect in needing to be added to splicing video in the first determination unit 401
Before fruit, whether input pin instructs the splicing of multistage video to detection user, wherein splicing instruction is used to indicate splicing multistage
Video.
Second output unit 408 is used for when the testing result of detection unit 407 is to be, output subscriber authentication is asked
It asks, wherein whether subscriber authentication request is authorized user for requests verification user.
Second input unit 409 is used to receive subscriber authentication request of the user for the output of the second output unit 408
The subscriber authentication of input responds, wherein subscriber authentication response includes authentication information input by user.
Second judgment unit 410 for judge authentication information input by user and default authentication information whether phase
Together.
Third determination unit 411 is used for when the judging result of second judgment unit 410 is to be, determines that user is to authorize to use
Family, and trigger concatenation unit 412 and execute relevant operation.
Concatenation unit 412 is used to, when third determination unit 411 determines that user is authorized user, the multistage determined be regarded
Frequency is spliced into splicing video, and trigger the first determination unit 401 execute it is above-mentioned it is determining need to be added to the first of splicing video regard
Feel the operation of effect.
Wherein, authentication information input by user can be encrypted message, finger print information, fingerprint string information and pattern
One or more combinations of information, the embodiment of the present invention do not limit, and can improve the safety of video processing in this way.
As it can be seen that implement the embodiment of the present invention from splicing video all splicing time points in determine it is corresponding with visual effect
Splicing time point and visual effect is added in splicing video according to splicing time point for determining, and then addition can be made
Visual effect and splice video video content match, improve user usage experience and to splice video processing matter
Amount.
It should be noted that in the above-described embodiments, all emphasizing particularly on different fields to the description of each embodiment, in some embodiment
The part being not described in may refer to the associated description of other embodiment.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, involved action and unit not necessarily this hair
Necessary to bright.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Unit described in the embodiment of the present invention can pass through universal integrated circuit, such as CPU (Central Processing
Unit, central processing unit), or by ASIC (Application Specific Integrated Circuit, it is special integrated
Circuit) it realizes.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Be provided for the embodiments of the invention above it is a kind of in splicing video add visual effect method and device into
It has gone and has been discussed in detail, principle and implementation of the present invention are described for specific example used herein, the above implementation
The explanation of example is merely used to help understand the method and its core concept of the present invention;Meanwhile for the general technology people of this field
Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation
Book content should not be construed as limiting the invention.