WO2020029526A1 - Method for adding special effect to video, device, terminal apparatus, and storage medium - Google Patents

Method for adding special effect to video, device, terminal apparatus, and storage medium Download PDF

Info

Publication number
WO2020029526A1
WO2020029526A1 PCT/CN2018/124070 CN2018124070W WO2020029526A1 WO 2020029526 A1 WO2020029526 A1 WO 2020029526A1 CN 2018124070 W CN2018124070 W CN 2018124070W WO 2020029526 A1 WO2020029526 A1 WO 2020029526A1
Authority
WO
WIPO (PCT)
Prior art keywords
special effect
video
instruction
edited
special
Prior art date
Application number
PCT/CN2018/124070
Other languages
French (fr)
Chinese (zh)
Inventor
韩旭
Original Assignee
北京微播视界科技有限公司
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 北京微播视界科技有限公司 filed Critical 北京微播视界科技有限公司
Publication of WO2020029526A1 publication Critical patent/WO2020029526A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Definitions

  • the present disclosure relates to the field of image processing technology, and in particular, the present disclosure relates to a method, a device, a terminal device, and a storage medium for adding a video special effect.
  • users can record personalized video content, edit eye-catching titles, or add special effects to the video to make
  • the video has a richer display format, attracting other users, and increasing video traffic.
  • the present disclosure provides a method for adding a video special effect, the method including:
  • the special effect selection interface includes a type determination interface and a special effect determination interface
  • the special effect selection instruction includes a special effect type determination instruction and a special effect determination instruction
  • the special effect type determination instruction includes a special effect type
  • the special effect determination instruction includes a special effect type. At least one special effect;
  • control and display the special effect determination interface, and the special effect selection interface includes special effect options corresponding to the special effect type
  • the effect type includes at least one of a time effect and a filter effect
  • the effect options corresponding to the time effect include at least one of a time retro effect, a slow motion effect, and a repetitive effect.
  • the special effect selection instruction further includes special effect position information of each special effect in at least one special effect
  • performing corresponding special effect processing on the image of the corresponding video frame in the video to be edited according to the special effect position information of each special effect includes at least one of the following methods:
  • corresponding special effect processing is performed on the images of at least two video frames determined based on the special effect position information in the video to be edited.
  • the at least two video frames determined based on the special effect position information include any one of the following:
  • the video frame corresponding to the special effect position information and the video frame corresponding to the set value before and / or after the video frame corresponding to the special effect position information;
  • a video frame corresponding to the special effect position information and a video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
  • the method further includes:
  • the video to be edited is obtained.
  • obtaining a video to be edited according to a video selection operation includes:
  • the video obtained according to the video selection operation is at least two videos, then the at least two videos are synthesized to obtain a video to be edited.
  • a video special effect adding device which includes:
  • a trigger instruction receiving module for receiving a special effect trigger instruction of a video to be edited by a user
  • a control display module for adding a trigger instruction according to a special effect to control and display a special effect selection interface of a video to be edited
  • a special effect determining module configured to receive a special effect selection instruction through a special effect selection interface, and the special effect selection instruction includes at least one special effect;
  • the special effect processing module is configured to perform corresponding special effect processing on a video to be edited according to at least one special effect.
  • the special effect selection interface includes a type determination interface and a special effect determination interface
  • the special effect selection instruction includes a special effect type determination instruction and a special effect determination instruction
  • the special effect type determination instruction includes a special effect type
  • the special effect determination instruction includes a special effect type. At least one special effect;
  • the special effect determining module includes a type instruction receiving module, a special effect determining interface display module, and a special effect determining instruction receiving module. Among them,
  • a type instruction receiving module for receiving a special effect type determination instruction through a type determination interface
  • the special effect determination interface display module is used to determine an instruction according to the special effect type, to control and display the special effect determination interface corresponding to the special effect type, and the special effect selection interface includes special effect options corresponding to the special effect type;
  • a special effect determining instruction receiving module is configured to receive a special effect determining instruction through a special effect determining interface.
  • the effect type includes at least one of a time effect and a filter effect; the effect options corresponding to the time effect include at least one of a time retro effect, a slow motion effect, and a repetitive effect.
  • the special effect selection instruction further includes special effect position information of each special effect in at least one special effect
  • the special effect processing module is configured to:
  • the special effect processing module includes a first special effect processing module and / or a second special effect processing module, wherein:
  • a first special effect processing module configured to perform corresponding special effect processing on the image of a video frame corresponding to the special effect position information in the edited video according to the special effect position information of each special effect;
  • the second special effect processing module is configured to perform corresponding special effect processing on the images of at least two video frames determined based on the special effect position information in the edited video according to the special effect position information of each special effect.
  • the at least two video frames determined based on the special effect position information include any one of the following:
  • the video frame corresponding to the special effect position information and the video frame corresponding to the set value before and / or after the video frame corresponding to the special effect position information;
  • a video frame corresponding to the special effect position information and a video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
  • the device further includes:
  • the special effect canceling module is used to receive the special effect cancel instruction through the special effect adding interface, and clear the special effect added to the video to be edited according to the special effect cancel instruction.
  • the device further includes:
  • the to-be-edited video determination module is configured to receive a user's video selection trigger instruction before receiving a trigger instruction for adding effects to an edited video; control and display a video selection interface according to the video selection trigger instruction; and obtain a user through the video selection interface Video selection operation; according to the video selection operation, the video to be edited is obtained.
  • the to-be-edited video determination module includes:
  • a video synthesis module is configured to synthesize at least two videos to obtain a video to be edited when the video obtained according to the video selection operation is at least two videos.
  • the present disclosure provides a video special effect adding terminal, which includes:
  • the memory is used to store computer operation instructions
  • the processor is configured to execute a method as shown in any embodiment of the first aspect of the present disclosure by invoking a computer operation instruction.
  • the present disclosure provides a storage medium that stores at least one instruction, at least one program, code set, or instruction set, and at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor To implement the method as shown in any of the embodiments of the first aspect of the present disclosure.
  • the user can participate in the selection of the special effect addition, so that the added special effect can reflect personal characteristics, meet the user's personalized needs, and thereby improve the user's interactive experience.
  • the special effect selection instruction includes at least one special effect
  • at least one special effect selected by the special effect selection instruction can be used to obtain multiple different combinations of special effects. After adding the different combination of special effects to the same video, the video after adding the special effects can be displayed. The effect is more diverse.
  • FIG. 1 is a schematic flowchart of a video special effect adding method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a first display interface of a method for adding a video special effect provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a second display interface of a video special effect adding method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a third display interface of a method for adding a video special effect according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a video special effect adding device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • An embodiment of the present disclosure provides a method for adding a video special effect. As shown in FIG. 1, the method may include:
  • Step S110 Receive a special effect adding trigger instruction of a video to be edited by a user.
  • the special effect adding trigger instruction indicates that the user wants to add special effects to the video to be edited, that is, the user is used to trigger an action to start adding special effects.
  • the specific form of the instruction is configured as required. For example, it can be the user on the client application interface The trigger action of the command position.
  • the instruction can be triggered by the relevant trigger identifier of the client, such as a specified trigger button or input box on the client interface, or a user's voice command. Specifically, it can be displayed on the client's application interface.
  • the virtual button of "addition of special effects", the operation of the user clicking the button will add trigger instructions for the user's special effects.
  • step S120 a trigger instruction is added according to the special effect to control and display the special effect selection interface of the video to be edited.
  • the special effect selection interface is used for interaction between the terminal device and the user, and the user can receive relevant operation instructions during the special effect adding process of the video to be edited through this interface.
  • step S130 a special effect selection instruction is received through the special effect selection interface, and the special effect selection instruction includes at least one special effect.
  • Step S140 Perform corresponding special effect processing on the video to be edited according to at least one special effect.
  • the corresponding special effect processing is performed according to at least one special effect video, and the video to be edited may be processed based on a pre-configured processing strategy. For example, special effect processing may be performed on the entire video to be edited, or special effect processing may be performed on an image of one or some frames in the video to be edited.
  • the solution in the embodiment of the present disclosure can perform corresponding special effect processing on the video to be edited based on one or more special effects selected by the user through the special effect selection interface.
  • the user can participate in the selection of special effect addition, so that the added special effect can be It reflects personal characteristics and meets the user's personalized needs, thereby improving the user's interactive experience.
  • the special effect selection instruction includes at least one special effect, at least one special effect selected by the special effect selection instruction can be used to obtain multiple different combinations of special effects. After adding the different combination of special effects to the same video, the video after adding the special effects can be displayed. The effect is more diverse.
  • the first display interface shown in FIG. 2 is a virtual button of “special effect addition” displayed on the client application interface.
  • the operation of the user clicking the button adds a trigger instruction for the user's special effect; in the special effect selection interface, A, B, C, D, E special effect virtual buttons, the user clicks one of the special effect virtual buttons, such as special effect virtual button A, the special effect corresponding to special effect virtual button A can be added to the video to be edited, and the user can also follow the same operation , Continue to select any one of the special effects virtual buttons A, B, C, D, E to achieve the function of adding multiple special effects to the same video to be edited.
  • the special effect selection interface may include a type determination interface and a special effect determination interface.
  • the special effect selection instruction may include a special effect type determination instruction and a special effect determination instruction.
  • the special effect type determination instruction may include a special effect type.
  • the special effect determination instruction may include a special effect. At least one effect in the type.
  • step S130 may include:
  • control and display the special effect determination interface, and the special effect selection interface includes special effect options corresponding to the special effect type
  • the type of effect can be displayed to the user through the type determination interface, and the user's effect determination instruction is received through this interface to obtain the type of effect selected by the user. After that, the effect options under the type of effect selected by the user can be passed
  • the special effect determination interface is presented to the user, so that the user can select the special effect he wants to add through the special effect options displayed in the interface.
  • the virtual buttons corresponding to the effect type displayed on the type determination interface “type 1" and “type 2”, and the user can select the effect by clicking “type 1” or “type 2" Type, and then get the special effect options 1A, 1B, and 1C under the special effect type selected by the user.
  • the user can click any one of 1A, 1B, and 1C to select the special effect that they want to add.
  • the type determination interface and the special effect determination interface may be the same user interface or different user interfaces.
  • the effect type may include at least one of a time effect and a filter effect.
  • the special effect option corresponding to the time special effect may include at least one of a time retro effect, a slow motion special effect, and a repetitive special effect.
  • the types of special effects are not limited to the above two types, and the special effects options corresponding to filter effects can also include a variety of different filter effects, such as shake effects, particle effects, linear effects, and so on.
  • the special effect selection instruction may further include special effect position information of each special effect in at least one special effect.
  • step S140 may include:
  • the corresponding special effect processing is performed on the image of the corresponding video frame in the edited video.
  • the user can also be involved in determining the special effect position information, that is, the user can select the special effect position information in the video that he wants to perform special effect processing according to actual needs.
  • the special effect position information is used to identify the position of the video frame corresponding to the special effect to be added, and can be determined by the user through the special effect selection interface.
  • One special effect position information may correspond to adding one special effect or may correspond to special conditions with different conditions.
  • the images of all video frames of the video to be edited may not be displayed in the special effect selection interface at one time.
  • the display interface allows users to view the images of all video frames by sliding the image list of the video frames.
  • a preview function can also be provided.
  • N is the total number of images of all video frames of the video to be edited, and the specific content of the image of the i-th video frame Presented in the image preview area as a preview.
  • performing corresponding special effect processing on the image of the corresponding video frame in the video to be edited according to the special effect position information of each special effect includes at least one of the following methods:
  • the first method is to perform corresponding special effect processing on the image of the video frame corresponding to the special effect position information in the edited video according to the special effect position information of each special effect;
  • each special effect corresponds to a special effect position information, and the user can participate in the selection of the special effect position.
  • the determined special effect position information can be obtained first, then the corresponding video frame image can be obtained, and the special effect addition position information can also be obtained at the same time.
  • the image of the corresponding video frame, the image of the determined video frame may also be obtained first, and then the corresponding special effect position information may be obtained.
  • the corresponding special effect position information of the special effect indicates the corresponding added position of the special effect in the video to be edited.
  • the image of the video frame determined by the special effect position information may be all the frame images of the video to be edited, or the video frame corresponding to one of the videos. Image or one of the frames, different special effects correspond to different numbers of video frames. For example, at least two frames of time-lapse effects need to be processed, you need to determine at least two frames of images. Filter effects can For frame image processing, at least one frame image needs to be determined.
  • the at least two video frames determined based on the special effect position information include any one of the following: a video frame corresponding to the special effect position information, and a video frame corresponding to the special effect position information before and / or after And the number of frames is equal to a set value of the video frame; the video frame corresponding to the special effect position information; and the video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
  • the image of the video frame whose frame number is the set value before the video frame corresponding to the frame image is extracted, or An image of a video frame whose frame number is the set value after the video frame corresponding to the frame image, or an image of a video frame whose frame number is the set value before and after is extracted.
  • a frame selected by the user is used as a reference image, and an image of 10 frames is extracted forward, or an image of 10 frames is extracted backward, or 5 frames are extracted forward and backward, respectively.
  • Image a frame selected by the user is used as a reference image, and an image of 10 frames is extracted forward, or an image of 10 frames is extracted backward, or 5 frames are extracted forward and backward, respectively.
  • an image of a video frame within a set period of time before, after, or before and after the frame may be selected.
  • the duration is set to 0.1S
  • the time point corresponding to the frame image is used as the reference time point, and all frame images within the reference time point forward 0.1S are selected, or the reference time point is selected 0.1 backward. All frame images within S, or all frame images within 0.05S forward and all frame images within 0.05S backward at the reference time point.
  • the embodiments of the present disclosure do not limit the manner of selecting images of other video frames.
  • Special effects processing can include:
  • the images of at least two video frames are arranged in an order reverse to the playback timing of the video to be edited, to obtain a reverse image sequence.
  • a time-lapse special effect video corresponding to the images of at least two video frames is obtained.
  • the obtained time-lapse video can be added to the positions corresponding to the images of at least two video frames in the video to be edited, so that the video to be edited has time-lapse special effects.
  • performing the special effect processing on the images of at least two video frames determined based on the special effect position information in the video to be edited for the repeated special effects may include:
  • the images of at least two video frames are repeatedly arranged to obtain an image sequence after repeated arrangement.
  • a repeated special effect video corresponding to the images of at least two video frames is obtained.
  • the images of at least two video frames are repeatedly arranged, and the images of at least two video frames can be repeatedly arranged according to a preset repetition time, and the images whose preset time is longer than at least two video frames correspond to the video to be edited.
  • the duration when a repetitive special effect video is added to a corresponding position in the video to be edited, the playback duration of the image of the video frame after the added position may be extended according to a preset duration.
  • a specific processing method of repeatedly arranging images of at least two video frames can be configured as required.
  • the first frame image in the repeated special effect video is consistent with the first frame image in the image of at least two video frames
  • the last frame image in the repeated special effect video is the last frame image in the image of the at least two video frames. It is consistent; specifically, three frames of ABC images are taken as an example. After repeated arrangement, it can be ABCBABC.
  • the at least one special effect includes a slow motion effect
  • performing corresponding special effect processing on the images of at least two video frames determined based on the special effect position information in the video to be edited may include:
  • a slow motion special effect video corresponding to the images of the at least two video frames is obtained, and the preset frame rate is less than the frame rate of the video to be edited.
  • the length of the slow-motion special-effect video is greater than the length of the image in at least two video frames in the video to be edited.
  • the video after the position can be added
  • the duration of the frame image is extended based on the duration of the slow motion effect and the duration of the video to be edited.
  • the image of the video frame corresponding to the effect position information is the third frame, and if it is a filter effect Based on the solution in the first method, filter effects can be applied to the image of the third video frame, so that the image of the third video frame is an image with a filter effect; if it is a repeated effect, for the second effect
  • the setting value is 2
  • the image of the third video frame can be used as the reference image, and the image of the second frame is extracted forward to obtain the images of the three video frames 1, 2, and 3
  • the images of 3 frames of video frames are repeatedly arranged to obtain images of 7 frames of video frames after repeated arrangement 1232123; based on the images of 7 frames of video frames after repeated arrangement, repeated special effects videos are obtained.
  • time effects and filter effects can be added in the same video to be edited, that is, time effects, filter effects, or multiple types of time effects can be added to the same video to be edited. Special effects, or multiple effects in filter effects.
  • the obtained time-lapse special effect video, repetitive special effect video, and slow motion special effect video can also be saved, and it is not necessary to repeatedly process the image when repeatedly watching the video with the special effect, thereby reducing the calculation amount.
  • the method further includes:
  • step S110 the following operations may be performed:
  • the video to be edited is obtained.
  • the video to be edited may be selected, where the video to be edited is a local video, and / or the video obtained by sending a video acquisition request to the server, where the local video includes the user himself
  • the source of the video to be edited is not limited in the embodiments of the present disclosure.
  • obtaining a video to be edited according to a video selection operation may include:
  • the video obtained according to the video selection operation is at least two videos, then the at least two videos are synthesized to obtain the video to be edited.
  • At least one corresponding special effect may be added to the video to be edited according to the position information of the special effect, and different special effects may be added to the video to be edited in different combinations, so that the special effect of a section of video to be edited It has diversified features. Users can participate in the selection of special effects, making the added video personalized. At the same time, users can select special effects through the special effect selection interface to add special effects. The operation is simple and improves the user. Interactive experience.
  • an embodiment of the present disclosure further provides a video special effect adding device 20.
  • the video special effect adding device 20 may include a trigger instruction receiving module 210, The control display module 220, the special effect determining module 230, and the special effect processing module 240 are controlled.
  • the trigger instruction receiving module 210 may receive a special effect addition trigger instruction of a video to be edited by a user.
  • the control display module 220 may add a trigger instruction according to the special effect to control and display the special effect selection interface of the video to be edited.
  • the special effect selection interface is used for interaction between the terminal device and the user, and the user can receive relevant operation instructions during the special effect adding process of the video to be edited through this interface.
  • the special effect determining module 230 may receive a special effect selection instruction through the special effect selection interface, and the special effect selection instruction includes at least one special effect.
  • the special effect processing module 240 may perform corresponding special effect processing on the video to be edited according to at least one special effect.
  • performing the corresponding special effect processing on the video to be edited according to the at least one special effect may be based on the pre-configured processing strategy.
  • the special effect selection interface may include a type determination interface and a special effect determination interface
  • the special effect selection instruction may include a special effect type determination instruction and a special effect determination instruction
  • the special effect type determination instruction may include a special effect type
  • the special effect determination instruction may include At least one effect in the effect type.
  • the special effect determining module 230 may include a type instruction receiving module, a special effect determining interface display module, and a special effect determining instruction receiving module.
  • the type instruction receiving module can receive a special effect type determination instruction through a type determination interface.
  • the special effect determination interface display module may determine an instruction based on the special effect type to control and display the special effect determination interface corresponding to the special effect type, and the special effect determination interface includes special effect options corresponding to the special effect type.
  • the special effect determining instruction receiving module may receive the special effect determining instruction through the special effect determining interface.
  • the type determination interface and the special effect determination interface may be the same user interface or different user interfaces.
  • the effect type may include at least one of a time effect and a filter effect.
  • the special effect option corresponding to the time special effect may include at least one of a time retro effect, a slow motion special effect, and a repetitive special effect.
  • the types of special effects are not limited to the above two types, and the special effect options corresponding to filter effects can also include a variety of different filter effects, such as shake effects, particle effects, linear effects, and so on.
  • the special effect selection instruction may further include special effect position information of each special effect in at least one special effect.
  • the special effect processing module 240 is configured to:
  • the solution of the embodiment of the present disclosure can also allow the user to participate in the determination of the special effect position information, that is, the user can select the special effect position information in the video that he wants to perform special effect processing according to actual needs.
  • the special effect position information is used to identify the position of the video frame corresponding to the special effect to be added, and can be determined by the user through the special effect selection interface.
  • One special effect position information may correspond to adding one special effect or may correspond to special conditions with different conditions.
  • the special effect processing module may include a first special effect processing module and / or a second special effect processing module.
  • the first special effect processing module may perform corresponding special effect processing on the image of the video frame corresponding to the special effect position information in the video to be edited according to the special effect position information of each special effect.
  • the second special effect processing module may perform corresponding special effect processing on the images of at least two video frames determined based on the special effect position information in the video to be edited according to the special effect position information of each special effect.
  • each special effect corresponds to a special effect position information, and the user can participate in the selection of the special effect position.
  • the determined special effect position information can be obtained first, then the corresponding video frame image can be obtained, and the special effect addition position information can also be obtained at the same time.
  • the image of the corresponding video frame, the image of the determined video frame may also be obtained first, and then the corresponding special effect position information may be obtained.
  • the at least two video frames determined based on the special effect position information include any one of the following: a video frame corresponding to the special effect position information, and a video frame corresponding to the special effect position information before and / or after And the number of frames is equal to a set value of the video frame; the video frame corresponding to the special effect position information; and the video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
  • the second special effect processing module may include:
  • the time-lapse image processing module is configured to arrange the images of at least two video frames in the reverse order of the playback timing of the video to be edited to obtain a reverse-image sequence;
  • the time-lapse video determining module is configured to obtain a time-lapse special effect video corresponding to the images of at least two video frames according to the sequence of the reverse-order images.
  • the obtained time-lapse video can be added to positions corresponding to the images of at least two video frames in the video to be edited, so that the video to be edited has time-lapse special effects.
  • the second special effect processing module may include:
  • Repeated image and image processing module configured to repeatedly arrange images of at least two video frames to obtain an image sequence after repeated arrangement
  • the repeated special effect video determination module is configured to obtain a repeated special effect video corresponding to the images of at least two video frames according to the repeatedly arranged image sequence.
  • the images of at least two video frames are repeatedly arranged, and the images of at least two video frames can be repeatedly arranged according to a preset repetition time, and the images whose preset time is longer than at least two video frames correspond to the video to be edited.
  • the duration when a repetitive special effect video is added to a corresponding position in the video to be edited, the playback duration of the image of the video frame after the added position may be extended according to a preset duration.
  • the second special effect processing module may include:
  • a slow-motion image processing module configured to obtain a slow-motion special-effect video corresponding to the image of at least two video frames according to a preset frame rate and an image of at least two video frames, the preset frame rate being less than the frame rate of the video to be edited;
  • the length of the slow-motion special-effect video is greater than the length of the image in at least two video frames in the video to be edited.
  • the video after the position can be added
  • the duration of the frame image is extended based on the duration of the slow motion effect and the duration of the video to be edited.
  • time effects and filter effects can be added in the same video to be edited, that is, time effects, filter effects, or multiple types of time effects can be added to the same video to be edited. Special effects, or multiple effects in filter effects.
  • the obtained time-lapse special effect video, repetitive special effect video, and slow motion special effect video can also be saved, and it is not necessary to repeatedly process the image when repeatedly watching the video with the special effect, thereby reducing the calculation amount.
  • the device further includes:
  • the special effect canceling module is used to receive the special effect cancel instruction through the special effect addition interface, and clear the special effect added to the video to be edited according to the special effect cancel instruction.
  • the device may further include:
  • the to-be-edited video determination module is configured to receive a user's video selection trigger instruction before receiving a trigger instruction for adding effects to an edited video; control and display a video selection interface according to the video selection trigger instruction; and obtain a user through the video selection interface Video selection operation; according to the video selection operation, the video to be edited is obtained.
  • the video to be edited may be selected, where the video to be edited is a local video, and / or the video obtained by sending a video acquisition request to the server, where the local video includes the user himself
  • the source of the video to be edited is not limited in the embodiments of the present disclosure.
  • the to-be-edited video determination module may include:
  • a video synthesis module is configured to synthesize at least two videos to obtain a video to be edited when the video obtained according to the video selection operation is at least two videos.
  • At least one corresponding special effect may be added to the video to be edited according to the position information of the special effect, and different special effects may be added to the video to be edited in different combinations, so that a special effect of a video to be edited is added.
  • Effects have a variety of characteristics. Users can participate in the selection of special effects, making the added video personalized. At the same time, users only need to select special effects through the special effect selection interface to add special effects. The operation is simple and improved. User interaction experience.
  • the video special effect adding device 20 of this embodiment may execute a video special effect adding method provided by the embodiments of the present disclosure, and the implementation principles thereof are similar, and details are not described herein again.
  • a terminal device 30 is also provided in the embodiment of the present disclosure, as shown in FIG. 6.
  • the terminal device 30 may include, but is not limited to, a processor 310, a memory 320, and a communication bus 330 for connecting different components of the device to implement communication between the different components.
  • the memory 320 may store a computer program and data, and the processor 310 may execute a corresponding action and processing by calling the computer program in the memory 320 to implement the video special effect adding method of the present disclosure.
  • the structure of the terminal device 30 shown in FIG. 6 does not constitute a limitation to the embodiment of the present disclosure.
  • the terminal device 30 may further include a display 340.
  • the processor 310 may display the user interface, prompt information, or interaction information with the end user to the user through the display 340 as needed.
  • the processor 310 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure.
  • the processor 310 may also be a combination that realizes a computing function, for example, a combination including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
  • the communication bus 330 may include a path for transmitting information between the aforementioned components.
  • the bus 330 may be a PCI bus, an EISA bus, or the like.
  • the bus 330 may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only a thick line is used in FIG. 6, but it does not mean that there is only one bus or one type of bus.
  • the memory 320 may be ROM or other types of static storage devices capable of storing static information and instructions, RAM or other types of dynamic storage devices capable of storing information and instructions, and may also be EEPROM, CD-ROM or other optical disk storage, optical disk storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
  • the terminal device 30 may further include an input / output component 350, which realizes input / output of information through the input / output component 350, and the interaction between the user and the device.
  • the input / output component 350 may be configured according to actual needs, and may include, but is not limited to, a keyboard, a mouse, a touch screen, an audio component, and a video component.
  • a terminal device may receive a user's trigger instruction through a touch screen, and the processor may The user's trigger instruction performs the corresponding action or processing.
  • the audio component / video component may be configured as an input and / or output of an audio signal / video signal of the device.
  • the audio component may include, but is not limited to, a speaker, a microphone, and the like
  • the video component may include, but is not limited to, a camera, a video interface (HDMI, VGA, and / or DVI interface), and the like.
  • each of the input / output components 350 described above can perform information processing individually or in combination. For example, when a user's music playback instruction is received through a touch screen, music is played through the audio component.
  • the terminal device 30 may further include a communication component 360 configured to implement communication interaction between the terminal device 30 and other devices (for example, a terminal device, a storage device).
  • the communication component 360 may include, but is not limited to, a wired communication component (such as a mobile network communication unit such as 3G, 4G, and 5G), a wireless communication component (such as Bluetooth, a WIFI communication unit), a USB communication component, an audio component, and a video component.
  • the terminal device 30 may further include a power management module 370.
  • the power management module 370 may be configured for power supply of the device, conversion of power of the device, and charge / discharge management of the power supply.
  • the module may also be configured with a charging interface.
  • terminal devices in the embodiments of the present disclosure may be specifically implemented as including but not limited to smart phones, smart televisions, Personal Digital Assistants (PDAs), tablet computers, desktop computers, and portable terminal devices (such as Portable computer), automotive equipment, etc.
  • PDAs Personal Digital Assistants
  • tablet computers tablet computers
  • desktop computers desktop computers
  • portable terminal devices such as Portable computer
  • automotive equipment etc.
  • a terminal device 30 provided in the embodiments of the present disclosure is applicable to the device embodiments in the above embodiments, and has the same inventive concept and the same beneficial effects as the above device embodiments, and details are not described herein again.
  • the embodiment of the present disclosure further provides a storage medium, which stores at least one instruction, at least one program, code set, or instruction set. At least one instruction, at least one piece of program, code set, or instruction set is loaded by the processor and executes the video special effect adding method of the present disclosure, which is not repeated here.
  • steps in the flowchart of the drawings are sequentially displayed in accordance with the instructions of the head, these steps are not necessarily performed sequentially in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited, and they can be performed in other orders. Moreover, at least a part of the steps in the flowchart of the drawing may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. It is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed in embodiments of the present disclosure are a method for adding a special effect to a video, a device, a terminal apparatus, and a storage medium. The method comprises: receiving, from a user, a trigger instruction for adding a special effect to a video to be edited; controlling and displaying, according to the trigger instruction, a special effect selection interface for the video; receiving, via the special effect selection interface, a special effect selection instruction comprising at least one special effect; and performing, according to the at least one special effect, corresponding special effect processing on the video. The embodiments of the present disclosure enable a user to select a special effect to be added, such that the added special effect reflects personal characteristics, thereby meeting a personalization requirement of users, and enhancing the interactive user experience. The special effect selection instruction also comprises at least one special effect, thereby enriching a display effect of a video to which the special effect is added.

Description

视频特效添加方法、装置、终端设备及存储介质Video special effect adding method, device, terminal equipment and storage medium
相关文件的交叉引用Cross-references to related files
本申请要求2018年8月10日提交的中国专利申请No.2018109102564的优先权日期的权益。上述申请的内容被完整地结合于此。This application claims the benefit of the priority date of Chinese Patent Application No. 2018109102564 filed on August 10, 2018. The content of the above application is fully incorporated herein.
技术领域Technical field
本公开涉及图像处理技术领域,具体而言,本公开涉及一种视频特效添加方法、装置、终端设备及存储介质。The present disclosure relates to the field of image processing technology, and in particular, the present disclosure relates to a method, a device, a terminal device, and a storage medium for adding a video special effect.
背景技术Background technique
在通过视频进行交互的平台中,为提高视频的访问量,用户在制作上传至视频交互平台的视频时,可通过录制个性化的视频内容、通过编辑醒目的标题或通过对视频增加特效以使该视频的显示形式更加丰富,吸引其他用户,提高视频的访问量。In the platform that interacts through video, in order to increase the access to the video, when making videos uploaded to the video interactive platform, users can record personalized video content, edit eye-catching titles, or add special effects to the video to make The video has a richer display format, attracting other users, and increasing video traffic.
现有技术中,用户对待上传的视频进行特效添加时,通常按照预先设定好的特效模板中的特效为视频增加特效,特效模板中设置的是什么样的特效,对应就将该特效添加在视频中,即特效的添加效果只能被动接受;并且,基于特效模板对一段视频只能增加一种特效,使得视频的特效显示效果单一。In the prior art, when users add special effects to the uploaded video, they usually add special effects to the video according to the pre-set special effect templates. What special effects are set in the special effect template, the corresponding special effects are added in In the video, the added effect of special effects can only be passively accepted; and, based on the special effect template, only one special effect can be added to a video, so that the special effect display effect of the video is single.
可见,现有的视频的特效显示效果单一,且用户交互体验较差,不能够满足用户的实际应用需求。It can be seen that the special video display effect of the existing video is single, and the user interaction experience is poor, which cannot meet the user's actual application requirements.
发明内容Summary of the invention
第一方面,本公开提供了一种视频特效添加方法,该方法包括:In a first aspect, the present disclosure provides a method for adding a video special effect, the method including:
接收用户对待编辑视频的特效添加触发指令;Receive trigger instructions for special effects added by users to edit videos;
依据特效添加触发指令,控制显示待编辑视频的特效选择界面;Add trigger instructions according to special effects to control and display the special effect selection interface of the video to be edited;
通过特效选择界面,接收特效选择指令,特效选择指令中包括至少一个特效;Receive a special effect selection instruction through the special effect selection interface, and the special effect selection instruction includes at least one special effect;
依据至少一个特效,对待编辑视频进行相应的特效处理。According to at least one special effect, perform corresponding special effect processing on the video to be edited.
本公开的实施例中,特效选择界面包括类型确定界面和特效确定界面,特效选择指令包括特效类型确定指令和特效确定指令,特效类型确定指令中包括特效类型,特效确定指令中包括特效类型中的至少一个特效;In the embodiment of the present disclosure, the special effect selection interface includes a type determination interface and a special effect determination interface, the special effect selection instruction includes a special effect type determination instruction and a special effect determination instruction, the special effect type determination instruction includes a special effect type, and the special effect determination instruction includes a special effect type. At least one special effect;
通过特效选择界面接收特效选择指令包括:The special effect selection instructions received through the special effect selection interface include:
通过类型确定界面,接收特效类型确定指令;Receive a special effect type determination instruction through the type determination interface;
依据特效类型确定指令,控制显示特效确定界面,特效确定界面中包括特效类型对应的特效选项;According to the special effect type determination instruction, control and display the special effect determination interface, and the special effect selection interface includes special effect options corresponding to the special effect type;
通过特效确定界面,接收特效确定指令。Receive special effect determination instructions through the special effect determination interface.
本公开的实施例中,特效类型包括时间特效和滤镜特效中的至少一项,时间特效对应的特效选项包括时光倒流特效、慢动作特效和反复特效中的至少一项。In the embodiment of the present disclosure, the effect type includes at least one of a time effect and a filter effect, and the effect options corresponding to the time effect include at least one of a time retro effect, a slow motion effect, and a repetitive effect.
本公开的实施例中,特效选择指令中还包括至少一个特效中每个特效的特效位置信息;In the embodiment of the present disclosure, the special effect selection instruction further includes special effect position information of each special effect in at least one special effect;
依据至少一个特效对待编辑视频进行相应的特效处理包括:The corresponding special effects processing for the video to be edited according to at least one special effect includes:
依据每个特效的特效位置信息,对待编辑视频中对应视频帧的图像进行相应的特效处理。According to the special effect position information of each special effect, corresponding special effect processing is performed on the image of the corresponding video frame in the video to be edited.
本公开的实施例中,依据每个特效的特效位置信息对待编辑视频中对应视频帧的图像进行相应的特效处理包括以下方式中的至少一种:In the embodiment of the present disclosure, performing corresponding special effect processing on the image of the corresponding video frame in the video to be edited according to the special effect position information of each special effect includes at least one of the following methods:
依据每个特效的特效位置信息,对待编辑视频中特效位置信息所对应的视频帧的图像进行相应的特效处理;According to the special effect position information of each special effect, perform corresponding special effect processing on the image of the video frame corresponding to the special effect position information in the edited video;
依据每个特效的特效位置信息,对待编辑视频中基于特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理。According to the special effect position information of each special effect, corresponding special effect processing is performed on the images of at least two video frames determined based on the special effect position information in the video to be edited.
本公开的实施例中,基于特效位置信息所确定的至少两个视频帧包括下列中任一种:In the embodiment of the present disclosure, the at least two video frames determined based on the special effect position information include any one of the following:
特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且帧数等于设定值的视频帧;The video frame corresponding to the special effect position information, and the video frame corresponding to the set value before and / or after the video frame corresponding to the special effect position information;
特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且在设定时长内的视频帧。A video frame corresponding to the special effect position information, and a video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
本公开的实施例中,该方法还包括:In an embodiment of the present disclosure, the method further includes:
通过特效添加界面,接收特效撤销指令;Receive the effect cancel instruction through the effect add interface;
依据特效撤销指令,将添加到待编辑视频中的特效清除。Remove the effects added to the video to be edited according to the effect cancel command.
本公开的实施例中,在接收用户对待编辑视频的特效添加触发指令之前,执行下列操作:In the embodiment of the present disclosure, before receiving a user-added special effect trigger instruction of a video to be edited, the following operations are performed:
接收用户的视频选择触发指令;Receiving a user's video selection trigger instruction;
依据视频选择触发指令,控制显示视频选择界面;According to the video selection trigger instruction, control and display the video selection interface;
通过视频选择界面,获取用户的视频选择操作;Get user's video selection operation through video selection interface;
依据视频选择操作,得到待编辑视频。According to the video selection operation, the video to be edited is obtained.
本公开的实施例中,依据视频选择操作得到待编辑视频包括:In the embodiment of the present disclosure, obtaining a video to be edited according to a video selection operation includes:
若依据视频选择操作而得到的视频为至少两段视频,则将至少两段视频合成得到待编辑视频。If the video obtained according to the video selection operation is at least two videos, then the at least two videos are synthesized to obtain a video to be edited.
第二方面,本公开提供了一种视频特效添加装置,该装置包括:In a second aspect, the present disclosure provides a video special effect adding device, which includes:
触发指令接收模块,用于接收用户对待编辑视频的特效添加触发指令;A trigger instruction receiving module for receiving a special effect trigger instruction of a video to be edited by a user;
控制显示模块,用于依据特效添加触发指令,控制显示待编辑视频的特效选择界面;A control display module for adding a trigger instruction according to a special effect to control and display a special effect selection interface of a video to be edited;
特效确定模块,用于通过特效选择界面,接收特效选择指令,特效选择指令中包括至少一个特效;A special effect determining module configured to receive a special effect selection instruction through a special effect selection interface, and the special effect selection instruction includes at least one special effect;
特效处理模块,用于依据至少一个特效,对待编辑视频进行相应的特效处理。The special effect processing module is configured to perform corresponding special effect processing on a video to be edited according to at least one special effect.
本公开的实施例中,特效选择界面包括类型确定界面和特效确定界面,特效选择指令包括特效类型确定指令和特效确定指令,特效类型确定指令中包括特效类型,特效确定指令中包括特效类型中的至少一个特效;In the embodiment of the present disclosure, the special effect selection interface includes a type determination interface and a special effect determination interface, the special effect selection instruction includes a special effect type determination instruction and a special effect determination instruction, the special effect type determination instruction includes a special effect type, and the special effect determination instruction includes a special effect type. At least one special effect;
特效确定模块包括类型指令接收模块、特效确定界面显示模块和特效确定指令接收模块,其中,The special effect determining module includes a type instruction receiving module, a special effect determining interface display module, and a special effect determining instruction receiving module. Among them,
类型指令接收模块,用于通过类型确定界面,接收特效类型确定指令;A type instruction receiving module for receiving a special effect type determination instruction through a type determination interface;
特效确定界面显示模块,用于依据特效类型确定指令,控制显示特效类型对应的特效确定界面,特效确定界面中包括特效类型对应的特效选项;The special effect determination interface display module is used to determine an instruction according to the special effect type, to control and display the special effect determination interface corresponding to the special effect type, and the special effect selection interface includes special effect options corresponding to the special effect type;
特效确定指令接收模块,用于通过特效确定界面,接收特效确定指令。A special effect determining instruction receiving module is configured to receive a special effect determining instruction through a special effect determining interface.
本公开的实施例中,特效类型包括时间特效和滤镜特效中的至少一项;时间特效对应的特效选项包括时光倒流特效、慢动作特效和反复特效中的至少一项。In the embodiment of the present disclosure, the effect type includes at least one of a time effect and a filter effect; the effect options corresponding to the time effect include at least one of a time retro effect, a slow motion effect, and a repetitive effect.
本公开的实施例中,特效选择指令中还包括至少一个特效中每个特效的特效位置信息,特效处理模块被配置成:In the embodiment of the present disclosure, the special effect selection instruction further includes special effect position information of each special effect in at least one special effect, and the special effect processing module is configured to:
依据每个特效的特效位置信息,对待编辑视频中对应视频帧的图像进行相应的特效处理。According to the special effect position information of each special effect, corresponding special effect processing is performed on the image of the corresponding video frame in the video to be edited.
本公开的实施例中,特效处理模块包括第一特效处理模块和/或第二特效处理模块,其中;In the embodiment of the present disclosure, the special effect processing module includes a first special effect processing module and / or a second special effect processing module, wherein:
第一特效处理模块,用于依据每个特效的特效位置信息,对待编辑视频中特效位置信息所对应的视频帧的图像进行相应的特效处理;A first special effect processing module, configured to perform corresponding special effect processing on the image of a video frame corresponding to the special effect position information in the edited video according to the special effect position information of each special effect;
第二特效处理模块,用于依据每个特效的特效位置信息,对待编辑视频中基于特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理。The second special effect processing module is configured to perform corresponding special effect processing on the images of at least two video frames determined based on the special effect position information in the edited video according to the special effect position information of each special effect.
本公开的实施例中,基于特效位置信息所确定的至少两个视频帧包括下列中任一种:In the embodiment of the present disclosure, the at least two video frames determined based on the special effect position information include any one of the following:
特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且帧数等于设定值的视频帧;The video frame corresponding to the special effect position information, and the video frame corresponding to the set value before and / or after the video frame corresponding to the special effect position information;
特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且在设定时长内的视频帧。A video frame corresponding to the special effect position information, and a video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
本公开的实施例中,该装置还包括:In an embodiment of the present disclosure, the device further includes:
特效撤销模块,用于通过特效添加界面,接收特效撤销指令,并依据特撤销指令,将添加到待编辑视频中的特效清除。The special effect canceling module is used to receive the special effect cancel instruction through the special effect adding interface, and clear the special effect added to the video to be edited according to the special effect cancel instruction.
本公开的实施例中,该装置还包括:In an embodiment of the present disclosure, the device further includes:
待编辑视频确定模块,被配置成:在接收到对编辑视频的特效添加触 发指令之前,接收用户的视频选择触发指令;依据视频选择触发指令,控制显示视频选择界面;通过视频选择界面,获取用户的视频选择操作;依据视频选择操作,得到待编辑视频。The to-be-edited video determination module is configured to receive a user's video selection trigger instruction before receiving a trigger instruction for adding effects to an edited video; control and display a video selection interface according to the video selection trigger instruction; and obtain a user through the video selection interface Video selection operation; according to the video selection operation, the video to be edited is obtained.
本公开的实施例中,待编辑视频确定模块包括:In the embodiment of the present disclosure, the to-be-edited video determination module includes:
视频合成模块,用于在依据视频选择操作得到的视频为至少两段视频时,将至少两段视频合成得到待编辑视频。A video synthesis module is configured to synthesize at least two videos to obtain a video to be edited when the video obtained according to the video selection operation is at least two videos.
第三方面,本公开提供了一种视频特效添加终端,该终端包括:In a third aspect, the present disclosure provides a video special effect adding terminal, which includes:
处理器和存储器,Processor and memory,
其中,存储器用于存储计算机操作指令;The memory is used to store computer operation instructions;
处理器用于通过调用计算机操作指令,执行如本公开的第一方面的任一实施例中所示的方法。The processor is configured to execute a method as shown in any embodiment of the first aspect of the present disclosure by invoking a computer operation instruction.
第四方面,本公开提供了一种存储介质,存储介质存储有至少一条指令、至少一段程序、代码集或指令集,至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现如本公开的第一方面的任一实施例中所示的方法。In a fourth aspect, the present disclosure provides a storage medium that stores at least one instruction, at least one program, code set, or instruction set, and at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor To implement the method as shown in any of the embodiments of the first aspect of the present disclosure.
根据本公开的实施例,用户可参与特效添加的选择,使得添加的特效可反映个人特点,满足了用户的个性化需求,从而提升用户的交互体验。此外,由于特效选择指令中包括至少一个特效,因此可依据特效选择指令选择的至少一个特效得到多种不同组合的特效,将不同组合的特效添加到同一视频后,可使添加特效后的视频显示效果更加多样性。According to the embodiment of the present disclosure, the user can participate in the selection of the special effect addition, so that the added special effect can reflect personal characteristics, meet the user's personalized needs, and thereby improve the user's interactive experience. In addition, since the special effect selection instruction includes at least one special effect, at least one special effect selected by the special effect selection instruction can be used to obtain multiple different combinations of special effects. After adding the different combination of special effects to the same video, the video after adding the special effects can be displayed. The effect is more diverse.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本公开实施例中的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the accompanying drawings used in the description of the embodiments of the present disclosure will be briefly introduced below.
图1为本公开的实施例提供的一种视频特效添加方法的流程示意图;FIG. 1 is a schematic flowchart of a video special effect adding method according to an embodiment of the present disclosure;
图2为本公开的实施例提供的一种视频特效添加方法的第一显示界面示意图;2 is a schematic diagram of a first display interface of a method for adding a video special effect provided by an embodiment of the present disclosure;
图3为本公开的实施例提供的一种视频特效添加方法的第二显示界面示意图;FIG. 3 is a schematic diagram of a second display interface of a video special effect adding method according to an embodiment of the present disclosure; FIG.
图4为本公开的实施例提供的一种视频特效添加方法的第三显示界面示意图;FIG. 4 is a schematic diagram of a third display interface of a method for adding a video special effect according to an embodiment of the present disclosure; FIG.
图5为本公开的实施例提供的一种视频特效添加装置的结构示意图;FIG. 5 is a schematic structural diagram of a video special effect adding device according to an embodiment of the present disclosure; FIG.
图6为本公开的实施例提供的一种终端设备的结构示意图。FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
具体实施方式detailed description
下面详细描述本公开的实施例,该实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开的技术方案,而不能解释为对本公开的限制。An embodiment of the present disclosure is described in detail below, and an example of the embodiment is shown in the drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are exemplary, and are only used to explain the technical solution of the present disclosure, and cannot be construed as limiting the present disclosure.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在该特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that the singular forms "a", "an" and "the" used herein may include plural forms unless specifically stated. It should be further understood that the term "including" used in the specification of the present disclosure refers to the presence of the feature, integer, step, operation, element, and / or component, but does not exclude the presence or addition of one or more other features, integers , Steps, operations, elements, components, and / or groups thereof. It should be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or intervening elements may also be present. Furthermore, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and / or" includes all or any of the elements and all combinations of one or more of the associated listed items.
下面以具体地实施例对本公开的技术方案以及本公开的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本公开的实施例进行描述。The following specifically describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below with reference to the drawings.
本公开的实施例提供了一种视频特效添加方法,如图1所示,该方法可以包括:An embodiment of the present disclosure provides a method for adding a video special effect. As shown in FIG. 1, the method may include:
步骤S110,接收用户对待编辑视频的特效添加触发指令。Step S110: Receive a special effect adding trigger instruction of a video to be edited by a user.
其中,特效添加触发指令表示用户想要对待编辑视频添加特效,即用户用于触发开始进行特效添加的动作,该指令的具体形式根据需要配置,例如,可以是用户在客户端的应用程序的界面上指令位置的触发动作。Among them, the special effect adding trigger instruction indicates that the user wants to add special effects to the video to be edited, that is, the user is used to trigger an action to start adding special effects. The specific form of the instruction is configured as required. For example, it can be the user on the client application interface The trigger action of the command position.
在实际应用中,可通过客户端的相关触发标识触发该指令,比如客户端界面上的指定触发按钮或输入框,还可以是用户的语音指令,具体的,可以是在客户端的应用界面上显示的“特效添加”的虚拟按钮,用户点击该按钮的操作即为用户的特效添加触发指令。In actual applications, the instruction can be triggered by the relevant trigger identifier of the client, such as a specified trigger button or input box on the client interface, or a user's voice command. Specifically, it can be displayed on the client's application interface. The virtual button of "addition of special effects", the operation of the user clicking the button will add trigger instructions for the user's special effects.
步骤S120,依据特效添加触发指令,控制显示待编辑视频的特效选择界面。In step S120, a trigger instruction is added according to the special effect to control and display the special effect selection interface of the video to be edited.
其中,特效选择界面用于终端设备与用户之间的交互,通过该界面可以接收用户在待编辑视频的特效添加过程中的相关操作指令。The special effect selection interface is used for interaction between the terminal device and the user, and the user can receive relevant operation instructions during the special effect adding process of the video to be edited through this interface.
步骤S130,通过特效选择界面,接收特效选择指令,特效选择指令中包括至少一个特效。In step S130, a special effect selection instruction is received through the special effect selection interface, and the special effect selection instruction includes at least one special effect.
步骤S140,依据至少一个特效,对待编辑视频进行相应的特效处理。Step S140: Perform corresponding special effect processing on the video to be edited according to at least one special effect.
其中,依据至少一个特效对待编辑视频进行相应的特效处理,可以基于预配置的处理策略,对待编辑视频进行处理。例如,可以是对整个待编辑视频进行特效处理,也可以是对待编辑视频中某个或某些帧的图像进行特效处理。Wherein, the corresponding special effect processing is performed according to at least one special effect video, and the video to be edited may be processed based on a pre-configured processing strategy. For example, special effect processing may be performed on the entire video to be edited, or special effect processing may be performed on an image of one or some frames in the video to be edited.
本公开的实施例中的方案,可基于用户通过特效选择界面选择的一个或多个特效,对待编辑视频进行相应的特效处理,通过该方案,用户可参与特效添加的选择,使得添加的特效可反映个人特点,满足了用户的个性化需求,从而提升用户的交互体验。此外,由于特效选择指令中包括至少一个特效,因此可依据特效选择指令选择的至少一个特效得到多种不同组合的特效,将不同组合的特效添加到同一视频后,可使添加特效后的视频显示效果更加多样性。The solution in the embodiment of the present disclosure can perform corresponding special effect processing on the video to be edited based on one or more special effects selected by the user through the special effect selection interface. Through this solution, the user can participate in the selection of special effect addition, so that the added special effect can be It reflects personal characteristics and meets the user's personalized needs, thereby improving the user's interactive experience. In addition, since the special effect selection instruction includes at least one special effect, at least one special effect selected by the special effect selection instruction can be used to obtain multiple different combinations of special effects. After adding the different combination of special effects to the same video, the video after adding the special effects can be displayed. The effect is more diverse.
如图2所示的第一显示界面,通过客户端的应用界面上显示的“特效添加”的虚拟按钮,用户点击该按钮的操作即为用户的特效添加触发指令;在特效选择界面,通过A、B、C、D、E特效虚拟按钮,用户点击其中一个特效虚拟按钮,比如特效虚拟按钮A,则可将特效虚拟按钮A所对应的特效添加在待编辑视频中,用户还可以按照相同的操作,继续选择特效虚拟按钮A、B、C、D、E对应的任一个特效,实现在同一个待编辑视频中添加多个特效的功能。The first display interface shown in FIG. 2 is a virtual button of “special effect addition” displayed on the client application interface. The operation of the user clicking the button adds a trigger instruction for the user's special effect; in the special effect selection interface, A, B, C, D, E special effect virtual buttons, the user clicks one of the special effect virtual buttons, such as special effect virtual button A, the special effect corresponding to special effect virtual button A can be added to the video to be edited, and the user can also follow the same operation , Continue to select any one of the special effects virtual buttons A, B, C, D, E to achieve the function of adding multiple special effects to the same video to be edited.
本公开的实施例中,特效选择界面可以包括类型确定界面和特效确定界面,特效选择指令可以包括特效类型确定指令和特效确定指令,特效类型确定指令中可以包括特效类型,特效确定指令可以包括特效类型中的至少一个特效。In the embodiment of the present disclosure, the special effect selection interface may include a type determination interface and a special effect determination interface. The special effect selection instruction may include a special effect type determination instruction and a special effect determination instruction. The special effect type determination instruction may include a special effect type. The special effect determination instruction may include a special effect. At least one effect in the type.
本公开的实施例中,步骤S130可以包括:In the embodiment of the present disclosure, step S130 may include:
通过类型确定界面,接收特效类型确定指令;Receive a special effect type determination instruction through the type determination interface;
依据特效类型确定指令,控制显示特效确定界面,特效确定界面中包括特效类型对应的特效选项;According to the special effect type determination instruction, control and display the special effect determination interface, and the special effect selection interface includes special effect options corresponding to the special effect type;
通过特效确定界面,接收特效确定指令。Receive special effect determination instructions through the special effect determination interface.
在实际应用中,可以通过类型确定界面将特效类型显示给用户,通过该界面接收用户的特效确定指令,从而得到用户所选择的特效类型,之后,可将用户选择的特效类型下的特效选项通过特效确定界面呈现给用户,使用户能够通过该界面中显示的特效选项,选择自己想要添加的特效。In practical applications, the type of effect can be displayed to the user through the type determination interface, and the user's effect determination instruction is received through this interface to obtain the type of effect selected by the user. After that, the effect options under the type of effect selected by the user can be passed The special effect determination interface is presented to the user, so that the user can select the special effect he wants to add through the special effect options displayed in the interface.
如图3所示的第二显示界面,在类型确定界面上显示的特效类型对应的虚拟按钮:“类型1”和“类型2”,用户可通过点击“类型1”或“类型2”选择特效类型,之后,得到用户选择的特效类型下的特效选项1A,1B和1C,用户可通过点击1A,1B和1C中的任一个来选择想要添加的特效。As shown in the second display interface shown in FIG. 3, the virtual buttons corresponding to the effect type displayed on the type determination interface: "type 1" and "type 2", and the user can select the effect by clicking "type 1" or "type 2" Type, and then get the special effect options 1A, 1B, and 1C under the special effect type selected by the user. The user can click any one of 1A, 1B, and 1C to select the special effect that they want to add.
其中,类型确定界面和特效确定界面可为同一个用户界面,也可以为不同的用户界面。The type determination interface and the special effect determination interface may be the same user interface or different user interfaces.
本公开的实施例中,特效类型可以包括时间特效和滤镜特效中的至少一项。In the embodiment of the present disclosure, the effect type may include at least one of a time effect and a filter effect.
其中,时间特效对应的特效选项可以包括时光倒流特效、慢动作特效和反复特效中的至少一项。The special effect option corresponding to the time special effect may include at least one of a time retro effect, a slow motion special effect, and a repetitive special effect.
其中,特效类型不限定上述两种,滤镜特效对应的特效选项也可以包括多种不同的滤镜特效,比如抖动特效,粒子特效,线性特效等。The types of special effects are not limited to the above two types, and the special effects options corresponding to filter effects can also include a variety of different filter effects, such as shake effects, particle effects, linear effects, and so on.
本公开的实施例中,特效选择指令中还可以包括至少一个特效中每个特效的特效位置信息,此时,步骤S140可以包括:In the embodiment of the present disclosure, the special effect selection instruction may further include special effect position information of each special effect in at least one special effect. At this time, step S140 may include:
依据每个特效的特效位置信息,对待编辑视频中对应视频帧的图像进 行相应的特效处理。According to the special effect position information of each special effect, the corresponding special effect processing is performed on the image of the corresponding video frame in the edited video.
为提高用户的交互感知,本公开的实施例的方案中,还可以让用户参与到特效位置信息的确定中,即用户可以根据实际需要选择其想要进行特效处理的视频中的特效位置信息。In order to improve the user's interaction perception, in the solution of the embodiment of the present disclosure, the user can also be involved in determining the special effect position information, that is, the user can select the special effect position information in the video that he wants to perform special effect processing according to actual needs.
其中,特效位置信息用于标识所要添加的特效对应的视频帧的位置,可由用户通过特效选择界面确定,一个特效位置信息可以对应添加一个特效,也可以对应条件不同的特效。The special effect position information is used to identify the position of the video frame corresponding to the special effect to be added, and can be determined by the user through the special effect selection interface. One special effect position information may correspond to adding one special effect or may correspond to special conditions with different conditions.
可以理解的是,在实际应用中,由于终端设备的显示屏幕有限,待编辑视频的所有视频帧的图像可能无法一次性全部显示到特效选择界面中,此时,如图4所示的第三显示界面,用户可以通过滑动视频帧的图像列表来查看全部视频帧的图像,为了能使用户清楚的知道选择的图像的具体内容,还可以提供预览功能,在用户选择了至少一帧图像时,比如用户选择了第i帧视频帧的图像时,其中,i大于等于1,小于等于N,N为待编辑视频的全部视频帧的图像总帧数,将第i帧视频帧的图像的具体内容以预览的方式呈现在图像预览区。It can be understood that, in practical applications, because the display screen of the terminal device is limited, the images of all video frames of the video to be edited may not be displayed in the special effect selection interface at one time. At this time, as shown in FIG. The display interface allows users to view the images of all video frames by sliding the image list of the video frames. In order to make the user clearly know the specific content of the selected image, a preview function can also be provided. When the user selects at least one frame of image, For example, when the user selects the image of the i-th video frame, where i is greater than or equal to 1, and less than or equal to N, N is the total number of images of all video frames of the video to be edited, and the specific content of the image of the i-th video frame Presented in the image preview area as a preview.
本公开的实施例中,依据每个特效的特效位置信息对待编辑视频中对应视频帧的图像进行相应的特效处理包括以下方式中的至少一种:In the embodiment of the present disclosure, performing corresponding special effect processing on the image of the corresponding video frame in the video to be edited according to the special effect position information of each special effect includes at least one of the following methods:
第一种方式,依据每个特效的特效位置信息,对待编辑视频中特效位置信息所对应的视频帧的图像进行相应的特效处理;The first method is to perform corresponding special effect processing on the image of the video frame corresponding to the special effect position information in the edited video according to the special effect position information of each special effect;
第二种方式,依据每个特效的特效位置信息,对待编辑视频中基于特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理。In the second method, according to the special effect position information of each special effect, corresponding special effect processing is performed on the images of at least two video frames determined based on the special effect position information in the edited video.
其中,每个特效对应一个特效位置信息,用户可参与特效位置的选择,在实际应用中,可先获得确定的特效位置信息,再获得对应的视频帧的图像,也可同时获得特效添加位置信息及对应的视频帧的图像,也可先获得确定的视频帧的图像,再获得对应的特效位置信息。Among them, each special effect corresponds to a special effect position information, and the user can participate in the selection of the special effect position. In actual application, the determined special effect position information can be obtained first, then the corresponding video frame image can be obtained, and the special effect addition position information can also be obtained at the same time. And the image of the corresponding video frame, the image of the determined video frame may also be obtained first, and then the corresponding special effect position information may be obtained.
其中,特效的对应的特效位置信息表示特效在待编辑视频中对应的添加位置,特效位置信息所确定的视频帧的图像可以是待编辑视频的所有帧图像,也可是其中一段视频对应的视频帧的图像或是其中的一帧图像,不同的特效对应不同数量的视频帧的图像,比如,时光倒流特效需要对至少 两帧图像进行处理,则需要确定至少两帧图像,滤镜特效可以对一帧图像进行处理,则需要确定至少一帧图像即可。Wherein, the corresponding special effect position information of the special effect indicates the corresponding added position of the special effect in the video to be edited. The image of the video frame determined by the special effect position information may be all the frame images of the video to be edited, or the video frame corresponding to one of the videos. Image or one of the frames, different special effects correspond to different numbers of video frames. For example, at least two frames of time-lapse effects need to be processed, you need to determine at least two frames of images. Filter effects can For frame image processing, at least one frame image needs to be determined.
本公开的实施例中,基于特效位置信息所确定的至少两个视频帧包括下列中任一种:特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且帧数等于设定值的视频帧;特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且在设定时长内的视频帧。In the embodiment of the present disclosure, the at least two video frames determined based on the special effect position information include any one of the following: a video frame corresponding to the special effect position information, and a video frame corresponding to the special effect position information before and / or after And the number of frames is equal to a set value of the video frame; the video frame corresponding to the special effect position information; and the video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
在实际应用中,可以基于特定位置信息所对应的视频帧,即用户选择的一帧图像,抽取该帧图像对应的视频帧之前的帧数为设定值的视频帧的图像,或者,抽取该帧图像对应的视频帧之后的帧数为设定值的视频帧的图像,或者,抽取之前和之后的且帧数为设定值的视频帧的图像。In practical applications, based on the video frame corresponding to the specific position information, that is, a frame image selected by the user, the image of the video frame whose frame number is the set value before the video frame corresponding to the frame image is extracted, or An image of a video frame whose frame number is the set value after the video frame corresponding to the frame image, or an image of a video frame whose frame number is the set value before and after is extracted.
具体的,比如设定值为10,则可以以用户选择的一帧图像为基准图像,向前抽取10帧的图像,或向后抽取10帧的图像,或向前和向后各抽取5帧的图像。Specifically, for example, if the setting value is 10, a frame selected by the user is used as a reference image, and an image of 10 frames is extracted forward, or an image of 10 frames is extracted backward, or 5 frames are extracted forward and backward, respectively. Image.
同样的,可以基于用户选择的一帧图像的视频帧,选择该帧之前、之后、或者之前和之后的设定时长内的视频帧的图像。具体的,比如设定时长为0.1S,则以该帧图像对应的时间点为基准时间点,选取该基准时间点向前0.1S内的所有帧图像,或者,选取该基准时间点向后0.1S内的所有帧图像,或者,选取该基准时间点向前0.05S内的所有帧图像和向后0.05S内的所有帧图像。本公开的实施例中不限定其他视频帧的图像的选取方式。Similarly, based on the video frame of an image selected by the user, an image of a video frame within a set period of time before, after, or before and after the frame may be selected. Specifically, for example, if the duration is set to 0.1S, the time point corresponding to the frame image is used as the reference time point, and all frame images within the reference time point forward 0.1S are selected, or the reference time point is selected 0.1 backward. All frame images within S, or all frame images within 0.05S forward and all frame images within 0.05S backward at the reference time point. The embodiments of the present disclosure do not limit the manner of selecting images of other video frames.
本公开的实施例中,若至少一个特效包括时光倒流特效,对于时光倒流特效,依据每个特效的特效位置信息,对待编辑视频中基于特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理,可以包括:In the embodiment of the present disclosure, if at least one of the effects includes a time-lapse effect, for the time-lapse effect, according to the effect position information of each effect, the images of at least two video frames determined based on the effect position information in the edited video are correspondingly processed. Special effects processing can include:
将至少两个视频帧的图像按照与待编辑视频的播放时序相反的顺序进行排列,得到倒序图像序列。The images of at least two video frames are arranged in an order reverse to the playback timing of the video to be edited, to obtain a reverse image sequence.
依据倒序图像序列,得到与至少两个视频帧的图像对应的时光倒流特效视频。According to the reverse image sequence, a time-lapse special effect video corresponding to the images of at least two video frames is obtained.
其中,可将得到的时光倒流视频添加到待编辑视频中至少两个视频帧 的图像对应的位置上,以使待编辑视频带有时光倒流特效。Wherein, the obtained time-lapse video can be added to the positions corresponding to the images of at least two video frames in the video to be edited, so that the video to be edited has time-lapse special effects.
若至少一个特效包括反复特效,对于反复特效,对待编辑视频中基于特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理,可以包括:If the at least one special effect includes repetitive special effects, performing the special effect processing on the images of at least two video frames determined based on the special effect position information in the video to be edited for the repeated special effects may include:
将至少两个视频帧的图像进行反复排列,得到反复排列后的图像序列。The images of at least two video frames are repeatedly arranged to obtain an image sequence after repeated arrangement.
依据反复排列后的图像序列,得到与至少两个视频帧的图像对应的反复特效视频。According to the repeatedly arranged image sequence, a repeated special effect video corresponding to the images of at least two video frames is obtained.
其中,对至少两个视频帧的图像进行反复排列,可依据预设反复时长对至少两个视频帧的图像进行反复排列,预设时长大于至少两个视频帧的图像在待编辑视频中对应的时长时,在将反复特效视频添加到待编辑视频中对应的位置上时,可将添加位置之后的视频帧的图像的播放时长依据预设时长延长。Wherein, the images of at least two video frames are repeatedly arranged, and the images of at least two video frames can be repeatedly arranged according to a preset repetition time, and the images whose preset time is longer than at least two video frames correspond to the video to be edited. During the duration, when a repetitive special effect video is added to a corresponding position in the video to be edited, the playback duration of the image of the video frame after the added position may be extended according to a preset duration.
在实际应用中,对至少两个视频帧的图像进行反复排列的具体处理方式可以根据需要进行配置。例如,反复特效视频中的第一帧图像与至少两个视频帧的图像中的第一帧图像一致,反复特效视频中的最后一帧图像与至少两个视频帧的图像中的最后一帧图像一致;具体以ABC三帧图像为例,进行反复排列后可为ABCBABC。In practical applications, a specific processing method of repeatedly arranging images of at least two video frames can be configured as required. For example, the first frame image in the repeated special effect video is consistent with the first frame image in the image of at least two video frames, and the last frame image in the repeated special effect video is the last frame image in the image of the at least two video frames. It is consistent; specifically, three frames of ABC images are taken as an example. After repeated arrangement, it can be ABCBABC.
若至少一个特效包括为慢动作特效,对于慢动作特效,对待编辑视频中基于特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理,可以包括:If the at least one special effect includes a slow motion effect, for the slow motion effect, performing corresponding special effect processing on the images of at least two video frames determined based on the special effect position information in the video to be edited may include:
依据预设帧率和至少两个视频帧的图像,得到与至少两个视频帧的图像对应的慢动作特效视频,预设帧率小于待编辑视频的帧率。According to the preset frame rate and the images of the at least two video frames, a slow motion special effect video corresponding to the images of the at least two video frames is obtained, and the preset frame rate is less than the frame rate of the video to be edited.
其中,慢动作特效视频的时长大于至少两个视频帧的图像在待编辑视频中的时长,则在将慢动作特效视频添加到待编辑视频中对应的位置上时,可将添加位置之后的视频帧的图像的播放时长依据慢动作特效的时长和待编辑视频的时长延长。The length of the slow-motion special-effect video is greater than the length of the image in at least two video frames in the video to be edited. When adding the slow-motion special-effect video to the corresponding position in the video to be edited, the video after the position can be added The duration of the frame image is extended based on the duration of the slow motion effect and the duration of the video to be edited.
具体的,例如在1,2,3,4,5,6,7,8,9,10帧视频帧的图像中,特效位置信息对应的视频帧的图像为第3帧,如果为滤镜特效,基于第一 种方式中的方案,可对第3帧视频帧的图像进行滤镜特效处理,使第3帧视频帧的图像为带有滤镜特效的图像;如果为反复特效,对于第二种方式中的方案,比如设定值为2,可以第3帧视频帧的图像为基准图像,向前抽取2帧的图像,得到1,2,3,这3帧视频帧的图像;对这3帧视频帧的图像进行反复排列,得到反复排列后的7帧视频帧的图像1232123;基于反复排列后的7帧视频帧的图像,得到反复特效视频。Specifically, for example, among the images of the video frames of 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10, the image of the video frame corresponding to the effect position information is the third frame, and if it is a filter effect Based on the solution in the first method, filter effects can be applied to the image of the third video frame, so that the image of the third video frame is an image with a filter effect; if it is a repeated effect, for the second effect The solution in this way, for example, the setting value is 2, the image of the third video frame can be used as the reference image, and the image of the second frame is extracted forward to obtain the images of the three video frames 1, 2, and 3; The images of 3 frames of video frames are repeatedly arranged to obtain images of 7 frames of video frames after repeated arrangement 1232123; based on the images of 7 frames of video frames after repeated arrangement, repeated special effects videos are obtained.
本公开的实施例中,时间特效和滤镜特效可在同一待编辑视频中进行添加,即同一段待编辑视频中可既添加时间特效,也可添加滤镜特效,或时间特效中的多种特效,或滤镜特效中的多种特效。In the embodiment of the present disclosure, time effects and filter effects can be added in the same video to be edited, that is, time effects, filter effects, or multiple types of time effects can be added to the same video to be edited. Special effects, or multiple effects in filter effects.
本公开的实施例中,还可以对得到的时光倒流特效视频、反复特效视频及慢动作特效视频进行保存,在反复观看带有特效视频的时候无需反复对图像进行处理,减少运算量。In the embodiment of the present disclosure, the obtained time-lapse special effect video, repetitive special effect video, and slow motion special effect video can also be saved, and it is not necessary to repeatedly process the image when repeatedly watching the video with the special effect, thereby reducing the calculation amount.
本公开的实施例中,该方法还包括:In an embodiment of the present disclosure, the method further includes:
通过特效添加界面,接收特效撤销指令;Receive the effect cancel instruction through the effect add interface;
依据特撤销指令,将添加到待编辑视频中的特效清除。According to the special undo command, the special effects added to the video to be edited will be cleared.
在实际应用中,可以根据需要配置不同的特效撤销策略,例如,可按照特效信息在待编辑视频中添加位置的先后顺序或添加时间的先后顺序进行特效的清除,也可以对添加的特效全部清除。In practical applications, you can configure different special effect cancellation strategies according to your needs. For example, you can remove special effects according to the order of the effect information added to the video to be edited or the order of time. You can also clear all the added effects. .
本公开的实施例中,在步骤S110之前,可以执行下列操作:In the embodiment of the present disclosure, before step S110, the following operations may be performed:
接收用户的视频选择触发指令。Receive the user's video selection trigger instruction.
依据视频选择触发指令,控制显示视频选择界面。According to the video selection trigger instruction, control and display the video selection interface.
通过视频选择界面,获取用户的视频选择操作。Through the video selection interface, a user's video selection operation is obtained.
依据视频选择操作,得到待编辑视频。According to the video selection operation, the video to be edited is obtained.
其中,在选择待编辑视频的封面之前,可先选择待编辑视频,其中,待编辑视频为本地视频,和/或,通过向服务器发送视频获取请求获取到的视频,其中,本地视频包括用户自己拍摄后上传的视频,本公开的实施例中不限定待编辑视频的来源。Wherein, before selecting the cover of the video to be edited, the video to be edited may be selected, where the video to be edited is a local video, and / or the video obtained by sending a video acquisition request to the server, where the local video includes the user himself For the video uploaded after shooting, the source of the video to be edited is not limited in the embodiments of the present disclosure.
本公开的实施例中,依据视频选择操作得到待编辑视频可以包括:In the embodiment of the present disclosure, obtaining a video to be edited according to a video selection operation may include:
若依据视频选择操作而得到的视频为至少两段视频,则将至少两段视 频合成得到待编辑视频。If the video obtained according to the video selection operation is at least two videos, then the at least two videos are synthesized to obtain the video to be edited.
由此,本公开的实例中,可依据特效位置信息将对应的至少一个特效添加到待编辑视频中,不同的特效可以不同的组合形式添加到待编辑视频中,使得一段待编辑视频的特效效果具有多样化的特点,用户可参与特效的选择,使得添加后的视频具有个性化的特点,同时,用户只需通过特效选择界面选择添加的特效即可实现特效的添加,操作简单,提升了用户的交互体验。Therefore, in the example of the present disclosure, at least one corresponding special effect may be added to the video to be edited according to the position information of the special effect, and different special effects may be added to the video to be edited in different combinations, so that the special effect of a section of video to be edited It has diversified features. Users can participate in the selection of special effects, making the added video personalized. At the same time, users can select special effects through the special effect selection interface to add special effects. The operation is simple and improves the user. Interactive experience.
基于与图1中所示方法相同的原理,本公开的实施例中还提供了一种视频特效添加装置20,如图5所示,该视频特效添加装置20可以包括:触发指令接收模块210、控制显示模块220、特效确定模块230以及特效处理模块240。Based on the same principle as the method shown in FIG. 1, an embodiment of the present disclosure further provides a video special effect adding device 20. As shown in FIG. 5, the video special effect adding device 20 may include a trigger instruction receiving module 210, The control display module 220, the special effect determining module 230, and the special effect processing module 240 are controlled.
触发指令接收模块210可以接收用户对待编辑视频的特效添加触发指令。The trigger instruction receiving module 210 may receive a special effect addition trigger instruction of a video to be edited by a user.
控制显示模块220可以依据特效添加触发指令,控制显示待编辑视频的特效选择界面。The control display module 220 may add a trigger instruction according to the special effect to control and display the special effect selection interface of the video to be edited.
其中,特效选择界面用于终端设备与用户之间的交互,通过该界面可以接收用户在待编辑视频的特效添加过程中的相关操作指令。The special effect selection interface is used for interaction between the terminal device and the user, and the user can receive relevant operation instructions during the special effect adding process of the video to be edited through this interface.
特效确定模块230可以通过特效选择界面,接收特效选择指令,特效选择指令中包括至少一个特效。The special effect determining module 230 may receive a special effect selection instruction through the special effect selection interface, and the special effect selection instruction includes at least one special effect.
特效处理模块240可以依据至少一个特效,对待编辑视频进行相应的特效处理。The special effect processing module 240 may perform corresponding special effect processing on the video to be edited according to at least one special effect.
其中,依据至少一个特效对待编辑视频进行相应的特效处理可以基于预配置的处理策略,对待编辑视频进行处理。Wherein, performing the corresponding special effect processing on the video to be edited according to the at least one special effect may be based on the pre-configured processing strategy.
本公开的实施例中,特效选择界面可以包括类型确定界面和特效确定界面,特效选择指令可以包括特效类型确定指令和特效确定指令,特效类型确定指令中可以包括特效类型,特效确定指令中可以包括特效类型中的至少一个特效。In the embodiment of the present disclosure, the special effect selection interface may include a type determination interface and a special effect determination interface, the special effect selection instruction may include a special effect type determination instruction and a special effect determination instruction, the special effect type determination instruction may include a special effect type, and the special effect determination instruction may include At least one effect in the effect type.
本公开的实施例中,特效确定模块230可以包括类型指令接收模块、特效确定界面显示模块和特效确定指令接收模块。In the embodiment of the present disclosure, the special effect determining module 230 may include a type instruction receiving module, a special effect determining interface display module, and a special effect determining instruction receiving module.
类型指令接收模块可以通过类型确定界面,接收特效类型确定指令。The type instruction receiving module can receive a special effect type determination instruction through a type determination interface.
特效确定界面显示模块可以依据特效类型确定指令,控制显示特效类型对应的特效确定界面,特效确定界面中包括特效类型对应的特效选项。The special effect determination interface display module may determine an instruction based on the special effect type to control and display the special effect determination interface corresponding to the special effect type, and the special effect determination interface includes special effect options corresponding to the special effect type.
特效确定指令接收模块可以通过特效确定界面,接收特效确定指令。The special effect determining instruction receiving module may receive the special effect determining instruction through the special effect determining interface.
其中,类型确定界面和特效确定界面可为同一个用户界面,也可以为不同的用户界面。The type determination interface and the special effect determination interface may be the same user interface or different user interfaces.
本公开的实施例中,特效类型可以包括时间特效和滤镜特效中的至少一项。In the embodiment of the present disclosure, the effect type may include at least one of a time effect and a filter effect.
其中,时间特效对应的特效选项可以包括时光倒流特效、慢动作特效和反复特效中的至少一项。The special effect option corresponding to the time special effect may include at least one of a time retro effect, a slow motion special effect, and a repetitive special effect.
其中,特效类型不限定上述两种,滤镜特效对应的特效选项也可以包括多种不同的滤镜特效,比如抖动特效,粒子特效、线性特效等。The types of special effects are not limited to the above two types, and the special effect options corresponding to filter effects can also include a variety of different filter effects, such as shake effects, particle effects, linear effects, and so on.
本公开的实施例中,特效选择指令中还可以包括至少一个特效中每个特效的特效位置信息,此时,特效处理模块240被配置成:In the embodiment of the present disclosure, the special effect selection instruction may further include special effect position information of each special effect in at least one special effect. At this time, the special effect processing module 240 is configured to:
依据每个特效的特效位置信息,对待编辑视频中对应视频帧的图像进行相应的特效处理。According to the special effect position information of each special effect, corresponding special effect processing is performed on the image of the corresponding video frame in the video to be edited.
为提高用户的交互感知,本公开的实施例的方案,还可以让用户参与到特效位置信息的确定中,即用户可以根据实际需要选择其想要进行特效处理的视频中的特效位置信息。To improve the user's interaction perception, the solution of the embodiment of the present disclosure can also allow the user to participate in the determination of the special effect position information, that is, the user can select the special effect position information in the video that he wants to perform special effect processing according to actual needs.
其中,特效位置信息用于标识所要添加的特效对应的视频帧的位置,可由用户通过特效选择界面确定,一个特效位置信息可以对应添加一个特效,也可以对应条件不同的特效。The special effect position information is used to identify the position of the video frame corresponding to the special effect to be added, and can be determined by the user through the special effect selection interface. One special effect position information may correspond to adding one special effect or may correspond to special conditions with different conditions.
本公开的实施例中,特效处理模块可以包括第一特效处理模块和/或第二特效处理模块。In the embodiment of the present disclosure, the special effect processing module may include a first special effect processing module and / or a second special effect processing module.
第一特效处理模块可以依据每个特效的特效位置信息,对待编辑视频中特效位置信息所对应的视频帧的图像进行相应的特效处理。The first special effect processing module may perform corresponding special effect processing on the image of the video frame corresponding to the special effect position information in the video to be edited according to the special effect position information of each special effect.
第二特效处理模块可以依据每个特效的特效位置信息,对待编辑视频中基于特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理。The second special effect processing module may perform corresponding special effect processing on the images of at least two video frames determined based on the special effect position information in the video to be edited according to the special effect position information of each special effect.
其中,每个特效对应一个特效位置信息,用户可参与特效位置的选择,在实际应用中,可先获得确定的特效位置信息,再获得对应的视频帧的图像,也可同时获得特效添加位置信息及对应的视频帧的图像,也可先获得确定的视频帧的图像,再获得对应的特效位置信息。Among them, each special effect corresponds to a special effect position information, and the user can participate in the selection of the special effect position. In actual application, the determined special effect position information can be obtained first, then the corresponding video frame image can be obtained, and the special effect addition position information can also be obtained at the same time. And the image of the corresponding video frame, the image of the determined video frame may also be obtained first, and then the corresponding special effect position information may be obtained.
本公开的实施例中,基于特效位置信息所确定的至少两个视频帧包括下列中任一种:特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且帧数等于设定值的视频帧;特效位置信息所对应的视频帧,以及特效位置信息所对应的视频帧之前和/或之后的且在设定时长内的视频帧。In the embodiment of the present disclosure, the at least two video frames determined based on the special effect position information include any one of the following: a video frame corresponding to the special effect position information, and a video frame corresponding to the special effect position information before and / or after And the number of frames is equal to a set value of the video frame; the video frame corresponding to the special effect position information; and the video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
本公开的实施例中,若至少一个特效包括时光倒流特效,对于时光倒流特效,第二特效处理模块可以包括:In the embodiment of the present disclosure, if at least one of the special effects includes a time retro effect, for the time retro effect, the second special effect processing module may include:
时光倒流图像处理模块,用于将至少两个视频帧的图像按照与待编辑视频的播放时序相反的顺序进行排列,得到倒序图像序列;The time-lapse image processing module is configured to arrange the images of at least two video frames in the reverse order of the playback timing of the video to be edited to obtain a reverse-image sequence;
时光倒流视频确定模块,用于依据倒序图像序列,得到与至少两个视频帧的图像对应的时光倒流特效视频。The time-lapse video determining module is configured to obtain a time-lapse special effect video corresponding to the images of at least two video frames according to the sequence of the reverse-order images.
其中,可将得到的时光倒流视频添加到待编辑视频中至少两个视频帧的图像对应的位置上,以使待编辑视频带有时光倒流特效。Wherein, the obtained time-lapse video can be added to positions corresponding to the images of at least two video frames in the video to be edited, so that the video to be edited has time-lapse special effects.
若至少一个特效包括反复特效,对于反复特效,第二特效处理模块可以包括:If at least one of the special effects includes repeated special effects, for the repeated special effects, the second special effect processing module may include:
反复图像图像处理模块,用于将至少两个视频帧的图像进行反复排列,得到反复排列后的图像序列;Repeated image and image processing module, configured to repeatedly arrange images of at least two video frames to obtain an image sequence after repeated arrangement;
反复特效视频确定模块,用于依据反复排列后的图像序列,得到与至少两个视频帧的图像对应的反复特效视频。The repeated special effect video determination module is configured to obtain a repeated special effect video corresponding to the images of at least two video frames according to the repeatedly arranged image sequence.
其中,对至少两个视频帧的图像进行反复排列,可依据预设反复时长对至少两个视频帧的图像进行反复排列,预设时长大于至少两个视频帧的图像在待编辑视频中对应的时长时,在将反复特效视频添加到待编辑视频中对应的位置上时,可将添加位置之后的视频帧的图像的播放时长依据预设时长延长。Wherein, the images of at least two video frames are repeatedly arranged, and the images of at least two video frames can be repeatedly arranged according to a preset repetition time, and the images whose preset time is longer than at least two video frames correspond to the video to be edited. During the duration, when a repetitive special effect video is added to a corresponding position in the video to be edited, the playback duration of the image of the video frame after the added position may be extended according to a preset duration.
若至少一个特效包括为慢动作特效,对于慢动作特效,第二特效处理 模块可以包括:If at least one of the special effects includes a slow motion effect, for a slow motion effect, the second special effect processing module may include:
慢动作图像处理模块,用于依据预设帧率和至少两个视频帧的图像,得到与至少两个视频帧的图像对应的慢动作特效视频,预设帧率小于待编辑视频的帧率;A slow-motion image processing module, configured to obtain a slow-motion special-effect video corresponding to the image of at least two video frames according to a preset frame rate and an image of at least two video frames, the preset frame rate being less than the frame rate of the video to be edited;
其中,慢动作特效视频的时长大于至少两个视频帧的图像在待编辑视频中的时长,则在将慢动作特效视频添加到待编辑视频中对应的位置上时,可将添加位置之后的视频帧的图像的播放时长依据慢动作特效的时长和待编辑视频的时长延长。The length of the slow-motion special-effect video is greater than the length of the image in at least two video frames in the video to be edited. When adding the slow-motion special-effect video to the corresponding position in the video to be edited, the video after the position can be added The duration of the frame image is extended based on the duration of the slow motion effect and the duration of the video to be edited.
本公开的实施例中,时间特效和滤镜特效可在同一待编辑视频中进行添加,即同一段待编辑视频中可既添加时间特效,也可添加滤镜特效,或时间特效中的多种特效,或滤镜特效中的多种特效。In the embodiment of the present disclosure, time effects and filter effects can be added in the same video to be edited, that is, time effects, filter effects, or multiple types of time effects can be added to the same video to be edited. Special effects, or multiple effects in filter effects.
本公开的实施例中,还可以对得到的时光倒流特效视频、反复特效视频及慢动作特效视频进行保存,在反复观看带有特效视频的时候无需反复对图像进行处理,减少运算量。In the embodiment of the present disclosure, the obtained time-lapse special effect video, repetitive special effect video, and slow motion special effect video can also be saved, and it is not necessary to repeatedly process the image when repeatedly watching the video with the special effect, thereby reducing the calculation amount.
本公开的实施例中,该装置还包括:In an embodiment of the present disclosure, the device further includes:
特效撤销模块,用于通过特效添加界面,接收特效撤销指令,并依据特效撤销指令,将添加到待编辑视频中的特效清除。The special effect canceling module is used to receive the special effect cancel instruction through the special effect addition interface, and clear the special effect added to the video to be edited according to the special effect cancel instruction.
本公开的实施例中,该装置还可以包括:In the embodiment of the present disclosure, the device may further include:
待编辑视频确定模块,被配置成:在接收到对编辑视频的特效添加触发指令之前,接收用户的视频选择触发指令;依据视频选择触发指令,控制显示视频选择界面;通过视频选择界面,获取用户的视频选择操作;依据视频选择操作,得到待编辑视频。The to-be-edited video determination module is configured to receive a user's video selection trigger instruction before receiving a trigger instruction for adding effects to an edited video; control and display a video selection interface according to the video selection trigger instruction; and obtain a user through the video selection interface Video selection operation; according to the video selection operation, the video to be edited is obtained.
其中,在选择待编辑视频的封面之前,可先选择待编辑视频,其中,待编辑视频为本地视频,和/或,通过向服务器发送视频获取请求获取到的视频,其中,本地视频包括用户自己拍摄后上传的视频,本公开的实施例中不限定待编辑视频的来源。Wherein, before selecting the cover of the video to be edited, the video to be edited may be selected, where the video to be edited is a local video, and / or the video obtained by sending a video acquisition request to the server, where the local video includes the user himself For the video uploaded after shooting, the source of the video to be edited is not limited in the embodiments of the present disclosure.
本公开的实施例中,待编辑视频确定模块可以包括:In the embodiment of the present disclosure, the to-be-edited video determination module may include:
视频合成模块,用于在依据视频选择操作而得到的视频为至少两段视频时,将至少两段视频合成得到待编辑视频。A video synthesis module is configured to synthesize at least two videos to obtain a video to be edited when the video obtained according to the video selection operation is at least two videos.
由此,本公开的实施例中,可依据特效位置信息将对应的至少一个特效添加到待编辑视频中,不同的特效可以不同的组合形式添加到待编辑视频中,使得一段待编辑视频的特效效果具有多样化的特点,用户可参与特效的选择,使得添加后的视频具有个性化的特点,同时,用户只需通过特效选择界面选择添加的特效即可实现特效的添加,操作简单,提升了用户的交互体验。Therefore, in the embodiment of the present disclosure, at least one corresponding special effect may be added to the video to be edited according to the position information of the special effect, and different special effects may be added to the video to be edited in different combinations, so that a special effect of a video to be edited is added. Effects have a variety of characteristics. Users can participate in the selection of special effects, making the added video personalized. At the same time, users only need to select special effects through the special effect selection interface to add special effects. The operation is simple and improved. User interaction experience.
本实施例的视频特效添加装置20可执行本公开的实施例提供的一种视频特效添加方法,其实现原理相类似,此处不再赘述。The video special effect adding device 20 of this embodiment may execute a video special effect adding method provided by the embodiments of the present disclosure, and the implementation principles thereof are similar, and details are not described herein again.
基于与本公开的实施例的视频特效添加方法相同的原理,本公开的实施例中还提供了一种终端设备30,如图6所示。该终端设备30可以包括但不限于:处理器310、存储器320、用于连接设备的不同组件以实现不同组件间通信的通信总线330。存储器320中可以存储有计算机程序和数据,处理器310可以通过调用存储器320中的计算机程序来执行相应的动作和处理,实现本公开的视频特效添加方法。图6中所示的终端设备30的结构并不构成对本公开的实施例的限定。Based on the same principle as the video special effect adding method of the embodiment of the present disclosure, a terminal device 30 is also provided in the embodiment of the present disclosure, as shown in FIG. 6. The terminal device 30 may include, but is not limited to, a processor 310, a memory 320, and a communication bus 330 for connecting different components of the device to implement communication between the different components. The memory 320 may store a computer program and data, and the processor 310 may execute a corresponding action and processing by calling the computer program in the memory 320 to implement the video special effect adding method of the present disclosure. The structure of the terminal device 30 shown in FIG. 6 does not constitute a limitation to the embodiment of the present disclosure.
终端设备30还可以包括显示器340。处理器310在执行动作或处理的过程中,可以通过显示器340将需要或能够显示的用户界面、提示信息、或者与终端用户的交互信息显示给用户。The terminal device 30 may further include a display 340. During the execution of actions or processes, the processor 310 may display the user interface, prompt information, or interaction information with the end user to the user through the display 340 as needed.
处理器310可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器310也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 310 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure. The processor 310 may also be a combination that realizes a computing function, for example, a combination including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
通信总线330可以包括一通路,在上述组件之间传送信息。总线330可以是PCI总线或EISA总线等。总线330可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 330 may include a path for transmitting information between the aforementioned components. The bus 330 may be a PCI bus, an EISA bus, or the like. The bus 330 may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only a thick line is used in FIG. 6, but it does not mean that there is only one bus or one type of bus.
存储器320可以是ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是 EEPROM、CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 320 may be ROM or other types of static storage devices capable of storing static information and instructions, RAM or other types of dynamic storage devices capable of storing information and instructions, and may also be EEPROM, CD-ROM or other optical disk storage, optical disk storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
终端设备30还可以包括输入/输出组件350,通过输入/输出组件350实现信息的输入/输出,以及用户与设备的交互。The terminal device 30 may further include an input / output component 350, which realizes input / output of information through the input / output component 350, and the interaction between the user and the device.
在实际应用中,输入/输出组件350可以根据实际需要配置,可以包括不限于键盘、鼠标、触摸屏、音频组件、视频组件等,例如,终端设备可以通过触摸屏接收用户的触发指令,处理器可以基于用户的触发指令执行相应的动作或处理。音频组件/视频组件可以被配置为用于设备的音频信号/视频信号的输入和/或输出。音频组件可以包括但不限于扬声器、麦克风等,视频组件可以包括但不限于摄像头、视频接口(HDMI、VGA和/或DVI接口)等。In practical applications, the input / output component 350 may be configured according to actual needs, and may include, but is not limited to, a keyboard, a mouse, a touch screen, an audio component, and a video component. For example, a terminal device may receive a user's trigger instruction through a touch screen, and the processor may The user's trigger instruction performs the corresponding action or processing. The audio component / video component may be configured as an input and / or output of an audio signal / video signal of the device. The audio component may include, but is not limited to, a speaker, a microphone, and the like, and the video component may include, but is not limited to, a camera, a video interface (HDMI, VGA, and / or DVI interface), and the like.
可以理解的是,上述各输入/输出组件350可以单独或者组合实现信息的处理,例如,通过触摸屏接收到用户的音乐播放指令时,通过音频组件进行音乐的播放。It can be understood that each of the input / output components 350 described above can perform information processing individually or in combination. For example, when a user's music playback instruction is received through a touch screen, music is played through the audio component.
终端设备30还可以包括通信组件360,通信组件360被配置为用于实现终端设备30与其它设备(例如终端设备、存储设备)之间的通信交互。其中,通信组件360可以包括但不限于有线通信组件(例如3G、4G、5G等移动网络通信单元)、无线通信组件(例如蓝牙、WIFI通信单元)、USB通信组件、音频组件、视频组件等。The terminal device 30 may further include a communication component 360 configured to implement communication interaction between the terminal device 30 and other devices (for example, a terminal device, a storage device). The communication component 360 may include, but is not limited to, a wired communication component (such as a mobile network communication unit such as 3G, 4G, and 5G), a wireless communication component (such as Bluetooth, a WIFI communication unit), a USB communication component, an audio component, and a video component.
终端设备30还可以包括电源管理模块370,电源管理模块370可以被配置用于设备的供电、设备电能的变换、以及电源的充放电管理等,该模块还可以配置有充电接口。The terminal device 30 may further include a power management module 370. The power management module 370 may be configured for power supply of the device, conversion of power of the device, and charge / discharge management of the power supply. The module may also be configured with a charging interface.
需要说明的是,本公开的实施例的终端设备可以具体实现为包括但不限于智能手机、智能电视机、个人数字助理(Personal Digital Assistant,PDA)、平板电脑、台式电脑、便携终端设备(例如便携式计算机)、车载设备等。It should be noted that the terminal devices in the embodiments of the present disclosure may be specifically implemented as including but not limited to smart phones, smart televisions, Personal Digital Assistants (PDAs), tablet computers, desktop computers, and portable terminal devices (such as Portable computer), automotive equipment, etc.
本公开的实施例提供的一种终端设备30适用于上述实施例中的装置实施例,且具有与上述装置实施例相同的发明构思及相同的有益效果,在此不再赘述。A terminal device 30 provided in the embodiments of the present disclosure is applicable to the device embodiments in the above embodiments, and has the same inventive concept and the same beneficial effects as the above device embodiments, and details are not described herein again.
基于与本公开的实施例的视频特效添加方法相同的原理,本公开的实施例中还提供了一种存储介质,该存储介质存储有至少一条指令、至少一段程序、代码集或指令集,该至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行本公开的视频特效添加方法,在此不再赘述。Based on the same principle as the video special effect adding method of the embodiment of the present disclosure, the embodiment of the present disclosure further provides a storage medium, which stores at least one instruction, at least one program, code set, or instruction set. At least one instruction, at least one piece of program, code set, or instruction set is loaded by the processor and executes the video special effect adding method of the present disclosure, which is not repeated here.
应该理解的是,虽然附图的流程图中的各个步骤按照头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowchart of the drawings are sequentially displayed in accordance with the instructions of the head, these steps are not necessarily performed sequentially in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited, and they can be performed in other orders. Moreover, at least a part of the steps in the flowchart of the drawing may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. It is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
以上仅是本公开的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干修改和润饰,这些修改和润饰也应视为在本公开的范围内。The above are only part of the embodiments of the present disclosure. It should be noted that for those of ordinary skill in the art, without departing from the principles of the present disclosure, several modifications and retouches can be made, and these modifications and retouches should also be considered as Is within the scope of this disclosure.

Claims (12)

  1. 一种视频特效添加方法,包括:A video special effect adding method includes:
    接收用户对待编辑视频的特效添加触发指令;Receive trigger instructions for special effects added by users to edit videos;
    依据所述特效添加触发指令,控制显示所述待编辑视频的特效选择界面;Adding a trigger instruction according to the special effect to control and display a special effect selection interface of the video to be edited;
    通过所述特效选择界面,接收特效选择指令,所述特效选择指令中包括至少一个特效;Receiving a special effect selection instruction through the special effect selection interface, where the special effect selection instruction includes at least one special effect;
    依据所述至少一个特效,对所述待编辑视频进行相应的特效处理。According to the at least one special effect, corresponding special effect processing is performed on the video to be edited.
  2. 根据权利要求1所述的方法,其中,所述特效选择界面包括类型确定界面和特效确定界面,所述特效选择指令包括特效类型确定指令和特效确定指令,所述特效类型确定指令中包括特效类型,所述特效确定指令中包括所述特效类型中的所述至少一个特效;The method according to claim 1, wherein the special effect selection interface includes a type determination interface and a special effect determination interface, the special effect selection instruction includes a special effect type determination instruction and a special effect determination instruction, and the special effect type determination instruction includes a special effect type , The special effect determining instruction includes the at least one special effect of the special effect type;
    通过所述特效选择界面接收特效选择指令包括:Receiving a special effect selection instruction through the special effect selection interface includes:
    通过所述类型确定界面,接收所述特效类型确定指令;Receiving the special effect type determination instruction through the type determination interface;
    依据所述特效类型确定指令,控制显示所述特效确定界面,所述特效确定界面中包括所述特效类型对应的特效选项;Controlling and displaying the special effect determining interface according to the special effect type determining instruction, where the special effect determining interface includes special effect options corresponding to the special effect type;
    通过所述特效确定界面,接收所述特效确定指令。Receiving the special effect determining instruction through the special effect determining interface.
  3. 根据权利要求2所述的方法,其中,所述特效类型包括时间特效和滤镜特效中的至少一项,所述时间特效对应的特效选项包括时光倒流特效、慢动作特效和反复特效中的至少一项。The method according to claim 2, wherein the effect type includes at least one of a time effect and a filter effect, and the effect options corresponding to the time effect include at least one of a time retro effect, a slow motion effect, and a repetitive effect. One item.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述特效选择指令中还包括所述至少一个特效中每个特效的特效位置信息;The method according to any one of claims 1 to 3, wherein the special effect selection instruction further includes special effect position information of each special effect of the at least one special effect;
    依据所述至少一个特效对所述待编辑视频进行相应的特效处理包括:Performing corresponding special effect processing on the video to be edited according to the at least one special effect includes:
    依据所述每个特效的特效位置信息,对所述待编辑视频中对应视频帧的图像进行相应的特效处理。Performing corresponding special effect processing on the image of the corresponding video frame in the video to be edited according to the special effect position information of each special effect.
  5. 根据权利要求4所述的方法,其中,依据所述每个特效的特效位置信息对所述待编辑视频中对应视频帧的图像进行相应的特效处理包括以下方式中的至少一种:The method according to claim 4, wherein performing corresponding special effect processing on the image of the corresponding video frame in the video to be edited according to the special effect position information of each special effect includes at least one of the following methods:
    依据所述每个特效的特效位置信息,对所述待编辑视频中所述特效位置信息所对应的视频帧的图像进行相应的特效处理;Performing corresponding special effect processing on the image of the video frame corresponding to the special effect position information in the video to be edited according to the special effect position information of each special effect;
    依据所述每个特效的特效位置信息,对所述待编辑视频中基于所述特效位置信息所确定的至少两个视频帧的图像进行相应的特效处理。According to the special effect position information of each special effect, perform corresponding special effect processing on the images of at least two video frames determined based on the special effect position information in the video to be edited.
  6. 根据权利要求5所述的方法,其中,所述基于所述特效位置信息所确定的至少两个视频帧包括下列中任一种:The method according to claim 5, wherein the at least two video frames determined based on the special effect position information include any one of the following:
    所述特效位置信息所对应的视频帧,以及所述特效位置信息所对应的视频帧之前和/或之后的且帧数等于设定值的视频帧;Video frames corresponding to the special effect position information, and video frames corresponding to the set value before and / or after the video frames corresponding to the special effect position information;
    所述特效位置信息所对应的视频帧,以及所述特效位置信息所对应的视频帧之前和/或之后的且在设定时长内的视频帧。A video frame corresponding to the special effect position information, and a video frame before and / or after the video frame corresponding to the special effect position information and within a set duration.
  7. 根据权利要求1-3中任一项所述的方法,所述方法还包括:The method according to any one of claims 1-3, further comprising:
    通过特效添加界面,接收特效撤销指令;Receive the effect cancel instruction through the effect add interface;
    依据所述特效撤销指令,将添加到所述待编辑视频中的特效清除。And clearing the special effect added to the video to be edited according to the special effect cancel instruction.
  8. 根据权利要求1-3中任一项所述的方法,其中,在接收用户对待编辑视频的特效添加触发指令之前,执行下列操作:The method according to any one of claims 1-3, wherein before receiving a user-added special effect trigger instruction of a video to be edited, the following operations are performed:
    接收用户的视频选择触发指令;Receiving a user's video selection trigger instruction;
    依据所述视频选择触发指令,控制显示视频选择界面;Controlling and displaying a video selection interface according to the video selection trigger instruction;
    通过所述视频选择界面,获取所述用户的视频选择操作;Obtaining a video selection operation of the user through the video selection interface;
    依据所述视频选择操作,得到所述待编辑视频。According to the video selection operation, the video to be edited is obtained.
  9. 根据权利要求8所述的方法,其中,所述依据所述视频选择操作得到所述待编辑视频包括:The method according to claim 8, wherein the obtaining the video to be edited according to the video selection operation comprises:
    若依据所述视频选择操作而得到的视频为至少两段视频,则将所述至少两段视频合成得到所述待编辑视频。If the video obtained according to the video selection operation is at least two videos, the at least two videos are synthesized to obtain the video to be edited.
  10. 一种视频特效添加装置,包括:A video special effect adding device includes:
    触发指令接收模块,用于接收用户对待编辑视频的特效添加触发指令;A trigger instruction receiving module for receiving a special effect trigger instruction of a video to be edited by a user;
    控制显示模块,用于依据所述特效添加触发指令,控制显示所述待编辑视频的特效选择界面;A control display module, configured to add a trigger instruction according to the special effect to control and display a special effect selection interface of the video to be edited;
    特效确定模块,用于通过所述特效选择界面,接收特效选择指令,所述特效选择指令中包括至少一个特效;A special effect determining module, configured to receive a special effect selection instruction through the special effect selection interface, where the special effect selection instruction includes at least one special effect;
    特效处理模块,用于依据所述至少一个特效,对所述待编辑视频进行相应的特效处理。A special effect processing module is configured to perform corresponding special effect processing on the video to be edited according to the at least one special effect.
  11. 一种终端设备,包括:A terminal device includes:
    处理器和存储器,Processor and memory,
    其中,所述存储器用于存储计算机操作指令;The memory is used to store computer operation instructions;
    所述处理器用于通过调用所述计算机操作指令,执行权利要求1至9中任一项所述的方法。The processor is configured to execute the method according to any one of claims 1 to 9 by calling the computer operation instruction.
  12. 一种存储介质,所述存储介质上存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现权利要求1至9中任一项所述的方法。A storage medium stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, the at least one program, code set, or instruction set is loaded by a processor and Performed to implement the method of any one of claims 1 to 9.
PCT/CN2018/124070 2018-08-10 2018-12-26 Method for adding special effect to video, device, terminal apparatus, and storage medium WO2020029526A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810910256.4A CN109040615A (en) 2018-08-10 2018-08-10 Special video effect adding method, device, terminal device and computer storage medium
CN201810910256.4 2018-08-10

Publications (1)

Publication Number Publication Date
WO2020029526A1 true WO2020029526A1 (en) 2020-02-13

Family

ID=64632764

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/124070 WO2020029526A1 (en) 2018-08-10 2018-12-26 Method for adding special effect to video, device, terminal apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN109040615A (en)
WO (1) WO2020029526A1 (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040615A (en) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 Special video effect adding method, device, terminal device and computer storage medium
CN109640173B (en) * 2019-01-11 2020-09-15 腾讯科技(深圳)有限公司 Video playing method, device, equipment and medium
CN109996026B (en) * 2019-04-23 2021-01-19 广东小天才科技有限公司 Video special effect interaction method, device, equipment and medium based on wearable equipment
CN110049371A (en) * 2019-05-14 2019-07-23 北京比特星光科技有限公司 Video Composition, broadcasting and amending method, image synthesizing system and equipment
CN112533058A (en) * 2019-09-17 2021-03-19 西安中兴新软件有限责任公司 Video processing method, device, equipment and computer readable storage medium
CN111050203B (en) * 2019-12-06 2022-06-14 腾讯科技(深圳)有限公司 Video processing method and device, video processing equipment and storage medium
CN113055738B (en) * 2019-12-26 2022-07-29 北京字节跳动网络技术有限公司 Video special effect processing method and device
CN111031394B (en) * 2019-12-30 2022-03-22 广州酷狗计算机科技有限公司 Video production method, device, equipment and storage medium
CN113079414B (en) * 2020-01-03 2023-04-25 腾讯科技(深圳)有限公司 Video processing method, apparatus, computer readable storage medium and computer device
CN111541936A (en) * 2020-04-02 2020-08-14 腾讯科技(深圳)有限公司 Video and image processing method and device, electronic equipment and storage medium
CN111510645B (en) 2020-04-27 2022-09-27 北京字节跳动网络技术有限公司 Video processing method and device, computer readable medium and electronic equipment
CN113643411A (en) * 2020-04-27 2021-11-12 北京达佳互联信息技术有限公司 Image special effect adding method and device, electronic equipment and storage medium
CN111857923B (en) * 2020-07-17 2022-10-28 北京字节跳动网络技术有限公司 Special effect display method and device, electronic equipment and computer readable medium
CN111757013B (en) 2020-07-23 2022-04-29 北京字节跳动网络技术有限公司 Video processing method, device, equipment and storage medium
CN111935505B (en) * 2020-07-29 2023-04-14 广州华多网络科技有限公司 Video cover generation method, device, equipment and storage medium
CN115484395A (en) * 2021-06-16 2022-12-16 荣耀终端有限公司 Video processing method and electronic equipment
CN113542610A (en) * 2021-07-27 2021-10-22 上海传英信息技术有限公司 Shooting method, mobile terminal and storage medium
CN113630557B (en) * 2021-10-09 2022-02-11 腾讯科技(深圳)有限公司 Image processing method, apparatus, device, storage medium, and computer program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070115256A1 (en) * 2005-11-18 2007-05-24 Samsung Electronics Co., Ltd. Apparatus, medium, and method processing multimedia comments for moving images
CN104703043A (en) * 2015-03-26 2015-06-10 努比亚技术有限公司 Video special effect adding method and device
CN107396150A (en) * 2017-07-26 2017-11-24 北京暴风魔镜科技有限公司 A kind of player method of VR videos, device and VR video players
CN109040615A (en) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 Special video effect adding method, device, terminal device and computer storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815199B (en) * 2010-04-07 2013-08-07 中兴通讯股份有限公司 Video processing method and terminal
CN105120337A (en) * 2015-08-28 2015-12-02 小米科技有限责任公司 Video special effect processing method, video special effect processing device and terminal equipment
CN107256117A (en) * 2017-04-19 2017-10-17 上海卓易电子科技有限公司 The method and its mobile terminal of a kind of video editing
CN108012090A (en) * 2017-10-25 2018-05-08 北京川上科技有限公司 A kind of method for processing video frequency, device, mobile terminal and storage medium
CN108022279B (en) * 2017-11-30 2021-07-06 广州市百果园信息技术有限公司 Video special effect adding method and device and intelligent mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070115256A1 (en) * 2005-11-18 2007-05-24 Samsung Electronics Co., Ltd. Apparatus, medium, and method processing multimedia comments for moving images
CN104703043A (en) * 2015-03-26 2015-06-10 努比亚技术有限公司 Video special effect adding method and device
CN107396150A (en) * 2017-07-26 2017-11-24 北京暴风魔镜科技有限公司 A kind of player method of VR videos, device and VR video players
CN109040615A (en) * 2018-08-10 2018-12-18 北京微播视界科技有限公司 Special video effect adding method, device, terminal device and computer storage medium

Also Published As

Publication number Publication date
CN109040615A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
WO2020029526A1 (en) Method for adding special effect to video, device, terminal apparatus, and storage medium
WO2020029525A1 (en) Method for generating video cover, apparatus, electronic device and storage medium
WO2020077855A1 (en) Video photographing method and apparatus, electronic device and computer readable storage medium
WO2022048478A1 (en) Multimedia data processing method, multimedia data generation method, and related device
US11670339B2 (en) Video acquisition method and device, terminal and medium
WO2020077856A1 (en) Video photographing method and apparatus, electronic device and computer readable storage medium
WO2019086037A1 (en) Video material processing method, video synthesis method, terminal device and storage medium
WO2020029523A1 (en) Video generation method and apparatus, electronic device, and storage medium
WO2021073315A1 (en) Video file generation method and device, terminal and storage medium
US20170024110A1 (en) Video editing on mobile platform
KR20200128132A (en) Video production method and apparatus, computer device and storage medium
JP6321301B2 (en) Video special effect processing method, apparatus, terminal device, program, and recording medium
US11037600B2 (en) Video processing method and apparatus, terminal and medium
JP2020515124A (en) Method and apparatus for processing multimedia resources
WO2016106997A1 (en) Screen capture method and device, and mobile terminal
JP2010507140A (en) Personalized slide show generation
CN111343074B (en) Video processing method, device and equipment and storage medium
CN112653920B (en) Video processing method, device, equipment and storage medium
CN113727140A (en) Audio and video processing method and device and electronic equipment
CN114520876A (en) Time-delay shooting video recording method and device and electronic equipment
US20140282000A1 (en) Animated character conversation generator
WO2022160699A1 (en) Video processing method and video processing apparatus
WO2024104333A1 (en) Cast picture processing method and apparatus, electronic device, and storage medium
CN114430460A (en) Shooting method and device and electronic equipment
WO2024037555A1 (en) Page display method and apparatus, and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18929697

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.05.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18929697

Country of ref document: EP

Kind code of ref document: A1