CN105072486B - Method and device for adding visual effect to spliced video - Google Patents

Method and device for adding visual effect to spliced video Download PDF

Info

Publication number
CN105072486B
CN105072486B CN201510524354.0A CN201510524354A CN105072486B CN 105072486 B CN105072486 B CN 105072486B CN 201510524354 A CN201510524354 A CN 201510524354A CN 105072486 B CN105072486 B CN 105072486B
Authority
CN
China
Prior art keywords
video
splicing
time point
effect
visual effect
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.)
Active
Application number
CN201510524354.0A
Other languages
Chinese (zh)
Other versions
CN105072486A (en
Inventor
钟久祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jupiter Technology Co ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510524354.0A priority Critical patent/CN105072486B/en
Publication of CN105072486A publication Critical patent/CN105072486A/en
Application granted granted Critical
Publication of CN105072486B publication Critical patent/CN105072486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip

Abstract

The embodiment of the invention discloses a method and a device for adding a visual effect into a spliced video, wherein the method comprises the steps of determining a first visual effect to be added into the spliced video, wherein the spliced video is formed by splicing a plurality of sections of videos, determining a target splicing time point corresponding to the first visual effect from all splicing time points of the spliced video, and adding the first visual effect into the spliced video according to the target splicing time point. By implementing the embodiment of the invention, the added visual effect can be matched with the video content of the spliced video, and the use experience of a user is improved.

Description

A kind of method and device for adding visual effect in splicing video
Technical field
The present invention relates to technical field of video processing, and in particular to a method of adding visual effect in splicing video And device.
Background technology
Currently, user can shoot video, and the video processing applications by being installed on intelligent terminal by intelligent terminal The video shot is handled, such as visual effect is added for the video shot.
In practical applications, video processing applications be video add visual effect mode there are two types of:First, in video Set time point adds fixed visual effect, i.e., each visual effect is only present in the point of the set time in video;Second is that first It is first that each visual effect determines a time scale, is then calculated by the product of time scale and video length each The time point of visual effect actual interpolation, finally by the addition of each visual effect on calculated corresponding time point, i.e., each The time point that visual effect occurs changes with the variation of video length.But when by above two mode be by multistage When the splicing video addition visual effect that the different video of duration is formed, due to fixed in video length, vision effect The time point that fruit occurs also is fixed, this makes the visual effect of addition that can not match with the content of splicing video.
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.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow signal of method for adding visual effect in splicing video disclosed by the embodiments of the present invention Figure;
Fig. 2 is the flow signal of another method that visual effect is added in splicing video disclosed by the embodiments of the present invention Figure;
Fig. 3 is that the flow of another method that visual effect is added in splicing video disclosed by the embodiments of the present invention is illustrated Figure;
Fig. 4 is a kind of structural representation of device adding visual effect in splicing video disclosed by the embodiments of the present invention Figure;
Fig. 5 is the structural representation of another device that visual effect is added in splicing video disclosed by the embodiments of the present invention Figure;
Fig. 6 be it is disclosed by the embodiments of the present invention another added in splicing video visual effect device structural representation Figure;
Fig. 7 be it is disclosed by the embodiments of the present invention another added in splicing video visual effect device structural representation Figure.
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.

Claims (10)

1. a kind of method for adding visual effect in splicing video, which is characterized in that the method includes:
Determine the First look effect for needing to be added in splicing video, wherein the splicing video is by multistage video-splicing It forms;
From all splicing time points of the splicing video, when determining target splicing corresponding with the First look effect Between point;
Splice time point for the target, the First look effect is added in the splicing video;
Wherein, described determining to need the First look effect being added in splicing video to include:
Determine the target special efficacy chosen from pre-stored multiple special efficacys, and the visual effect for including by the target special efficacy is true It is set to the First look effect for needing to be added in splicing video;Wherein, each special efficacy includes at least one visual effect, often Visual effect in a special efficacy arranges in sequence, and the sequence that occurs in splicing video of the special efficacy visual effect that includes with Visual effect puts in order unanimously in the special efficacy.
2. according to the method described in claim 1, it is characterized in that, described splice time point for the target, by described the One visual 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 when the formation target splices the first segment video at time point Between point, wherein the end time of the First look effect is located at the second segment video for forming target splicing time point Time point.
3. method according to claim 1 or 2, which is characterized in that all splicing times from the splicing video In point, target splicing time point corresponding with the First look effect is determined, including:
According to duration matching principle, determined and the First look effect from all splicing time points of the splicing video Corresponding target splices time point, wherein the duration matching principle is not more than for the duration of the First look effect to be formed The total duration of two sections of videos at the target splicing time point.
4. according to the method described in claim 1, it is characterized in that, 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.
5. according to the method described in claim 4, it is characterized in that, described be added to the splicing by second visual effect In the final stage video of video, including:
According to pre-set duration ratio and the duration of the final stage video of the splicing video, calculate it is described last Object time point corresponding with second visual effect in all time points of section video, and by second visual effect Initial time is arranged in the object time point.
6. it is a kind of in splicing video add visual effect device, which is characterized in that described device include the first determination unit, Second determination unit and adding device, wherein:
First determination unit, the First look effect being added in splicing video for determining needs, wherein the splicing Video is formed by multistage video-splicing;
Second determination unit, for from all splicing time points of the splicing video, determining to regard with described first Feel that the corresponding target of effect splices time point;
The First look effect is added to the splicing by the adding device for splicing time point for the target In video;
Wherein, first determination unit determines that the concrete mode for needing to be added to the First look effect in splicing video is:
Determine the target special efficacy chosen from pre-stored multiple special efficacys, and the visual effect for including by the target special efficacy is true It is set to the First look effect for needing to be added in splicing video;Wherein, each special efficacy includes at least one visual effect, often Visual effect in a special efficacy arranges in sequence, and the sequence that occurs in splicing video of the special efficacy visual effect that includes with Visual effect puts in order unanimously in the special efficacy.
7. device according to claim 6, which is characterized in that the adding device splices time point for the target, It 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 when the formation target splices the first segment video at time point Between point, wherein the end time of the First look effect is located at the second segment video for forming target splicing time point Time point.
8. the device described according to claim 6 or 7, which is characterized in that second determination unit is from the splicing video In all splicing time points, target splicing time point corresponding with the First look effect is determined, including:
According to duration matching principle, determined and the First look effect from all splicing time points of the splicing video Corresponding target splices time point, wherein the duration matching principle is not more than for the duration of the First look effect to be formed The total duration of two sections of videos at the target splicing time point.
9. device according to claim 6, which is characterized in that first determination unit is additionally operable to determination and needs to add To the second visual effect in the splicing video;
The adding device is additionally operable to second visual effect being added in the final stage video of the splicing video.
10. device according to claim 9, which is characterized in that the adding device adds second visual effect It is to the concrete mode in the final stage video of the splicing video:
According to pre-set duration ratio and the duration of the final stage video of the splicing video, calculate it is described last Object time point corresponding with second visual effect in all time points of section video, and by second visual effect Initial time is arranged in the object time point.
CN201510524354.0A 2015-08-24 2015-08-24 Method and device for adding visual effect to spliced video Active CN105072486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510524354.0A CN105072486B (en) 2015-08-24 2015-08-24 Method and device for adding visual effect to spliced video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510524354.0A CN105072486B (en) 2015-08-24 2015-08-24 Method and device for adding visual effect to spliced video

Publications (2)

Publication Number Publication Date
CN105072486A CN105072486A (en) 2015-11-18
CN105072486B true CN105072486B (en) 2018-09-21

Family

ID=54501746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510524354.0A Active CN105072486B (en) 2015-08-24 2015-08-24 Method and device for adding visual effect to spliced video

Country Status (1)

Country Link
CN (1) CN105072486B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106470353B (en) * 2016-09-27 2019-11-05 北京金山安全软件有限公司 Multimedia data processing method and device and electronic equipment
CN109005352B (en) * 2018-09-05 2021-02-02 阿里巴巴(中国)有限公司 Method and device for video co-shooting

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347155B (en) * 2013-06-18 2016-08-10 北京汉博信息技术有限公司 Realize transition special effective module and the method for two video flowing difference transition effect switchings
CN104159151B (en) * 2014-08-06 2017-12-05 哈尔滨工业大学深圳研究生院 A kind of device and method for carrying out video intercepting on OTT boxes and handling
CN104184960A (en) * 2014-08-19 2014-12-03 厦门美图之家科技有限公司 Method for carrying out special effect processing on video file

Also Published As

Publication number Publication date
CN105072486A (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN104580125B (en) A kind of payment verification methods, devices and systems
CN105046141B (en) A kind of adaptive identifying code design method and system
CN104881313B (en) Method and device for starting functions in terminal application
CN107276866A (en) Home appliance match somebody with somebody network method, device and home appliance
CN105072486B (en) Method and device for adding visual effect to spliced video
CN104866181A (en) Multi-operation event execution method and device
CN107682328A (en) A kind of data verification method and client
CN106888086B (en) System and method for managing account password
CN105354463A (en) Fingerprint identification method and mobile terminal
CN107528855A (en) A kind of data verification method and server
CN108664392B (en) A kind of application testing method, device, terminal and storage medium
CN108574721A (en) A kind of login method, device and server, user terminal, readable storage medium storing program for executing
CN108632823A (en) A kind of method for switching network, terminal and computer storage media
CN108650594B (en) Sound box management method, user terminal and computer storage medium
CN109618226B (en) Video auditing method and device, electronic equipment and storage medium
CN109688109A (en) The verification method and device of identifying code based on client-side information identification
CN105392087B (en) A kind of speaker management method and user terminal
CN108805813A (en) A kind of picture joining method and device
CN105573596B (en) A kind of the playing sequence method of adjustment and user terminal of playlist
CN106161452B (en) The sending method and device of identifying code
CN106022173B (en) Sensitive data display methods and device
CN108241515A (en) Application shortcut method for building up and terminal
CN102714669B (en) A method and a system for establishing a communication channel between a predetermined number of selected devices and a device and a server arranged for use in the system
CN105208094A (en) Message notification method and message notifications system
CN106022092A (en) Authentication method and device for NFC (Near Field Communication) equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201117

Address after: Room 115, area C, 1 / F, building 8, yard 1, yaojiayuan South Road, Chaoyang District, Beijing

Patentee after: Beijing LEMI Technology Co.,Ltd.

Address before: 100085 Beijing City, Haidian District Road 33, two floor East Xiaoying

Patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231013

Address after: 100000 3870A, 3rd Floor, Building 4, No. 49 Badachu Road, Shijingshan District, Beijing

Patentee after: Beijing Jupiter Technology Co.,Ltd.

Address before: Room 115, area C, 1 / F, building 8, yard 1, yaojiayuan South Road, Chaoyang District, Beijing

Patentee before: Beijing LEMI Technology Co.,Ltd.

TR01 Transfer of patent right