Special-effect processing method and apparatus, and electronic device, storage medium and program product

By setting the second media content corresponding to each media content and generating a preview video during the special effects template editing process, the problem of poor display effect caused by the large difference between the images and videos selected by the user and the template effects is solved, and the display effect and user experience of the special effects template are improved.

WO2025200590A1PCT designated stage Publication Date: 2025-10-02BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/138784
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-28
Filing Date
2024-12-12
Publication Date
2025-10-02

AI Technical Summary

Technical Problem

During the creation of special effects templates, the images and/or videos selected by the user differ greatly from the effects of the template, resulting in poor display effects of the special effects video and affecting the user experience.

Method used

By displaying the template editing content of the special effect template in the editing state, responding to the user's effect preview request, setting the second media content corresponding to each media content respectively, and generating a preview video based on the second media content and special effect elements to show the preview effect.

Benefits of technology

It enables the pre-display of special effects of images and/or videos selected by the user during the special effects template production process, thereby improving the display effect of the special effects template and the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024138784_02102025_PF_FP_ABST
    Figure CN2024138784_02102025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a special-effect processing method and apparatus, and an electronic device, a storage medium and a program product. The special-effect processing method comprises: displaying template editing content of a special-effect template in an editing state, wherein the template editing content comprises at least one piece of first media content and a special-effect element acting on the first media content; in response to an effect preview request for the special-effect template, respectively setting second media content corresponding to each piece of first media content; and generating a preview video of the special-effect template on the basis of the second media content and the special-effect element, and displaying the preview video. The technical solution in the embodiments of the present disclosure realizes the effect of customizing settings of preview media content on the basis of edited template editing content and previewing a set special-effect template during manufacturing of a special-effect template.
Need to check novelty before this filing date? Find Prior Art

Description

Special effects processing method, device, electronic device, storage medium and program product

[0001] This application claims priority to Chinese Patent Application No. 202410371169.1 filed on March 28, 2024, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] The embodiments of the present disclosure relate to a special effects processing method, device, electronic device, storage medium, and program product. Background Art

[0003] In image processing or video production scenarios, more and more users are using special effects data to enrich the presentation of images or videos. For example, images and / or videos in special effects templates can be replaced with images and / or videos selected by the user.

[0004] In the related art, when creating special effects templates, template images and / or template videos that closely match the template's intended effect are typically used. However, when using a special effects template, the image and / or video selected as the replacement image and / or template video may differ significantly from the template's intended effect. This can result in poor display quality for the special effects video created based on the special effects template, impacting the user's experience with the template. Summary of the Invention

[0005] The present disclosure provides a special effects processing method, device, electronic device, storage medium and program product to achieve the effect of customizing preview media content based on edited template editing content during the special effects template production process, and previewing the set special effects template.

[0006] In a first aspect, an embodiment of the present disclosure provides a special effects processing method, the method comprising:

[0007] Displaying template editing content of a special effect template in an editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content;

[0008] In response to an effect preview request for the special effect template, respectively setting second media content corresponding to each item of the first media content;

[0009] A preview video of the special effect template is generated based on the second media content and the special effect element, and the preview video is displayed.

[0010] In a second aspect, an embodiment of the present disclosure further provides a special effects processing device, the device comprising:

[0011] A template editing module, configured to display template editing content of a special effect template in an editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content;

[0012] a template preview module, configured to respectively set second media content corresponding to each item of the first media content in response to an effect preview request for the special effect template;

[0013] A video display module is used to generate a preview video of the special effect template based on the second media content and the special effect element, and display the preview video.

[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0015] one or more processors;

[0016] a storage device for storing one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the special effects processing method as described in any one of the embodiments of the present disclosure.

[0018] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute a special effects processing method as described in any one of the embodiments of the present disclosure.

[0019] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the special effects processing method as described in any one of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0021] FIG1 is a schematic flow chart of a special effects processing method provided by an embodiment of the present disclosure;

[0022] FIG2 is a schematic diagram of an interface for displaying template editing content provided by an embodiment of the present disclosure;

[0023] FIG3 is a schematic diagram of an interface for displaying a preview video provided by an embodiment of the present disclosure;

[0024] FIG4 is a flow chart of another special effects processing method provided by an embodiment of the present disclosure;

[0025] FIG5 is a schematic diagram showing an effect of a media content editing interface provided by an embodiment of the present disclosure;

[0026] FIG6 is another schematic diagram of the effect of the media content editing interface provided by the embodiment of the present disclosure;

[0027] FIG7 is a flow chart of another special effects processing method provided by an embodiment of the present disclosure;

[0028] FIG8 is a schematic structural diagram of a special effects processing device provided by an embodiment of the present disclosure; and

[0029] FIG9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0032] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0033] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0034] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0036] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0037] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0038] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0039] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0040] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0041] Figure 1 is a flow chart of a special effects processing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where the template effect of a special effects template is previewed during the production process of the special effects template. The method can be executed by a special effects processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0042] As shown in FIG1 , the method of this embodiment may specifically include:

[0043] S110: Displaying template editing content of a special effect template in an editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content.

[0044] A special effects template can be understood as a special effects processing template with a fixed format that serves as a reference guide during the special effects processing of an image. A special effects template in the editing state can be a special effects template that has not yet been generated and is currently editable. Generally, when editing a special effects template, you can edit at least one edit item included in the special effects template, and the special effects template currently displayed can be considered the special effects template in the editing state. It should be noted that a special effects template in the editing state can be a special effects template that is yet to be generated, that is, a special effects template that has not yet been successfully generated. The template editing content can be understood as the content in the special effects template that is yet to be edited and is associated with the special effects display effect and / or special effects processing method corresponding to the special effects template. The template editing content includes at least one first media content and special effects elements that act on the first media content. The first media content can be understood as the media material that is filled into the special effects template. Generally, users can replace the first media content in the special effects template with media content of their choice to generate a special effects video that meets their special effects processing requirements. The first media content is any type of media content that can be displayed in the interface, such as images and videos. Exemplarily, the first media content may be an image, which may be a default template image, or an image obtained from a target storage space (such as an image library of an application software, or a terminal album, etc.) in response to a user's trigger operation, or an image uploaded from an external device, etc. It should be noted that the first media content may be a single image and / or a video including multiple images. Special effect elements may be special effect props added to an image or video to make the image or video present a corresponding special effect display effect. Optionally, special effect elements may include image special effect elements that act on special effect objects included in the first media content, such as sticker special effect elements, facial special effects, or augmented reality tracking special effects, etc.; they may also include audio special effect elements that act on the first media content, such as adding music, preset sound effects, or voice or ambient sound recorded by a recording device to the first media content.

[0045] In an embodiment of the present disclosure, when a special effect editing request is detected, the request can be responded to and a special effect editing interface can be displayed, which can include a special effect template to be edited. Furthermore, a special effect template editing operation can be input for the special effect template to be edited to determine at least one first media content and a special effect element acting on the first media content based on the special effect template editing operation, that is, to determine the template editing content of the special effect template in the editing state. Moreover, during the special effect template editing process, the template editing content of the special effect template in the editing state can be displayed. Furthermore, the special effect template in the editing state can continue to be processed based on the displayed template editing content. Exemplarily, Figure 2 is a schematic diagram of an interface for displaying template editing content provided by an embodiment of the present disclosure. As shown in Figure 2, the interface may include a template editing area 21 for template editing content and a preview area 22 for template editing content.

[0046] S120 : In response to the effect preview request for the special effect template, respectively set the second media content corresponding to each item of the first media content.

[0047] Among them, the effect preview request can be understood as a request message sent by the client to the server, and the request message is used to request the server to preview the template effect based on the template editing content of the special effect template. The second media content can be understood as the media content that can be filled into the special effect template in the editing state. In the embodiment of the present disclosure, for each first media content included in the template editing content of the special effect template, the second media content that matches the first media content can be determined. Furthermore, the first media content can be replaced with the second media content. The second media content is any type of media content that can be displayed in the interface, such as images and videos. Optionally, the second media content can be media content obtained by real-time shooting of a shooting device, or it can be media content obtained from a target storage space (such as an image library of an application software, or a terminal album, etc.) in response to a user's trigger operation, or it can be media content uploaded from an external device, etc.

[0048] In an embodiment of the present disclosure, an effect preview trigger operation for previewing the template effect of a special effect template can be pre-set. Furthermore, upon detecting that an effect preview trigger operation has been input for a special effect template, an effect preview request can be generated, a response to the effect preview request can be made, and second media content corresponding to each first media content item can be set. Optionally, the effect preview trigger operation can include at least one of the following: triggering a preset effect preview control; receiving an input effect preview trigger instruction; including a wake-up word corresponding to the effect preview in the audio information, etc.

[0049] As an optional implementation in the embodiment of the present disclosure, when the effect preview trigger operation is to trigger a preset effect preview control, and the second media content is media content obtained from the target storage space, the effect preview control can be pre-set in the special effect editing interface that displays the special effect template in the editing state. Furthermore, when a trigger operation for the effect preview control is detected, an effect preview request can be generated. Furthermore, the effect preview request is responded to, and a content display interface corresponding to the target storage space is displayed, which may include multiple candidate media content. Furthermore, for each first media content, candidate media content corresponding to the first media content can be selected from the multiple candidate media content displayed in the interface. Furthermore, the selected candidate media content can be used as the second media content corresponding to the first media content.

[0050] As another optional implementation in the embodiment of the present disclosure, when the effect preview trigger operation is to trigger a preset effect preview control, and the second media content is media content obtained by real-time shooting through a shooting device, an effect preview request can be generated when the trigger operation for the effect preview control is detected. Then, a response is made to the effect preview request, and a content editing item corresponding to each first media content is displayed. Furthermore, for each content editing item corresponding to the first media content, a preset object can be shot by the shooting device, and the shot media content can be filled into the content editing item to obtain the second media content corresponding to the first media content.

[0051] S130: Generate a preview video of the special effect template based on the second media content and the special effect element, and display the preview video.

[0052] The preview video can be used to pre-display the special effects of the special effects template. The preview video can be understood as a video that displays each second media content and the special effects elements acting on the second media content according to the template format of the special effects template.

[0053] As an optional implementation of an embodiment of the present disclosure, after setting the second media content corresponding to each first media content, a setting completion operation can be input. Then, when the setting completion operation is detected, a preview video generation request is generated. Furthermore, a response is made to the preview video generation request, and a preview video of a special effect template is generated based on the set second media content and the special effect elements acting on the second media content, and the preview video is directly displayed when the video generation is completed. Alternatively, when a video display trigger operation for the preview video is detected, the preview video can be displayed based on the interface.

[0054] It should be noted that there are multiple ways to display the preview video. Optionally, it can be displayed through a floating small screen in the interface that displays the template editing content; or, an effect display panel can be displayed in the interface that displays the template editing content, and a preview video of the special effect template can be displayed based on the effect display panel; or, it can be displayed by jumping from the interface that displays the template editing content to another interface, etc. For example, Figure 3 is a schematic diagram of an interface for displaying a preview video provided by an embodiment of the present disclosure. As shown in Figure 3, a preview video is displayed in an interface that is different from an interface that displays the template editing content. The interface may include a preview video 31, a local save control, and a template publishing control. When it is detected that the mouse cursor (the arrow in the figure) triggers an input operation on the playback control of the preview video, the preview video can be displayed.

[0055] In actual applications, during the special effects template editing process, there may be a situation where the template editing content of the special effects template does not meet the user's template editing needs; or, after the preview video of the special effects template is displayed, there may be a situation where the special effects effect of the displayed special effects template does not meet the user's special effects processing needs.

[0056] In response to the above situation, in an embodiment of the present disclosure, after displaying the template editing content of the special effects template in the editing state or showing a preview video, it also includes: updating the template editing content in response to a content adjustment trigger operation for the template editing content, so as to update the special effects template based on the template editing content.

[0057] The content adjustment triggering operation can be understood as an operation for adjusting the edited template editing content in the special effect template. Optionally, the content adjustment triggering operation can include at least one of a media content adjustment operation and a special effect element adjustment operation. The media content adjustment operation can be an operation for adjusting the first media content in the template editing content. The special effect element adjustment operation can be an operation for adjusting the special effect element acting on the first media content.

[0058] It should be noted that the content adjustment trigger operation is a trigger operation for adjusting the first media content and special effect elements in the template editing content of the special effect template. In other words, the content adjustment trigger operation is a trigger operation that does not adjust the second media content.

[0059] As an optional implementation of an embodiment of the present disclosure, after displaying the template editing content of a special effect template in an editing state, a content adjustment trigger operation can be input for the displayed template editing content. Furthermore, upon detecting a content adjustment trigger operation for at least one first media content and / or special effect element within the template editing content, the corresponding template editing content can be updated based on the content adjustment trigger operation. Furthermore, the special effect template can be updated based on the updated template editing content.

[0060] As another optional implementation of the disclosed embodiment, after displaying a preview video of a special effects template, a content adjustment trigger operation can be input for the special effects editing content of the special effects template. Furthermore, upon detecting a content adjustment trigger operation for at least one first media content and / or special effects element within the template editing content, the corresponding template editing content can be updated based on the content adjustment trigger operation. Furthermore, the special effects template can be updated based on the updated template editing content.

[0061] In the embodiment of the present disclosure, during the special effect template editing process, the special effect template can be directly generated according to the template editing content without previewing the effect of the special effect template.

[0062] Optionally, after displaying the template editing content of the special effect template in the editing state, the method further includes: generating a special effect template based on the template editing content in response to a template generation request.

[0063] The template generation request may be understood as a request message sent by the client to the server, and the request message is used to request the server to generate a special effect template based on the template editing content.

[0064] As an optional implementation of an embodiment of the present disclosure, during the special effect template editing process, the template editing content of the special effect template in the editing state can be displayed. Afterwards, when a trigger operation for the editing completion control is detected, a template generation request can be generated. Then, a response is made to the template generation request, and a special effect template is generated based on the first media content included in the template editing content and the special effect elements acting on the first media content. The advantage of this setting is that it achieves the effect of generating a special effect template based on the template editing content, thereby simplifying the template production process of the special effect template.

[0065] In an embodiment of the present disclosure, when the template editing content includes first media content, the playback speed of the first media content can also be adjusted based on the user's template generation requirements, so that the special effects template generated based on the adjusted first media content meets the user's template generation requirements.

[0066] Optionally, after displaying the template editing content of the special effect template in the editing state, it also includes: in response to a speed change setting trigger operation for at least one first media content, adjusting the playback speed of the first media content based on the set speed change parameters.

[0067] Among them, the speed setting trigger operation can be understood as an operation for setting the playback speed of the first media content after being triggered. The speed parameter can be used to indicate the adjusted playback speed of the first media content. Optionally, the speed parameter may include a speed type, a speed gear and / or a speed mode. The speed type may include uniform speed and curve speed. When the speed type is uniform speed, the speed gear may be set. The speed gear may be understood as the playback rate of the media content. Exemplarily, the speed gear may include multiple multiple gears starting from 0.2 times and ending at 3 times, with a multiple interval of 0.1 times. When the speed type is curve speed, the speed mode may be set. The speed mode may be understood as the speed curve mode based on which the curve speed is changed. Optionally, the speed mode may include montage, heroic moment, bullet time, jump cut and flash forward, etc.

[0068] As an optional implementation of an embodiment of the present disclosure, when a speed setting trigger operation for any first media content is detected, a content setting panel corresponding to the first media content can be displayed, and the setting panel can include multiple speed setting items. Furthermore, the user can input corresponding speed parameters based on the speed setting items. Thereafter, when the setting completion trigger operation is detected, the playback speed of the first media content can be adjusted based on the set speed parameters. The advantage of such a setting is that it achieves the effect of customized adjustment of the playback speed of the media content in the template editing content, thereby improving the flexibility of the template editing process and enriching the template effect of the special effect template.

[0069] For example, it is assumed that the default playback speed of the first media content B is 1 times. When a speed setting trigger operation for the first media content B is detected, a content setting panel is displayed. The setting panel may include a speed type setting item, a speed gear setting item, and a speed mode setting item. Further, when a selected trigger operation for uniform speed change is detected, the speed gear setting item may be set. At this time, the speed mode setting item is in an uneditable state. Afterwards, the speed gear setting item is adjusted from the default 1 times to 0.5 times. Further, when a trigger operation for the setting completion control is detected, the playback speed of the first media content B can be adjusted to 0.5 times, that is, the playback speed of the first media content B is slowed down.

[0070] In the embodiment of the present disclosure, after displaying the preview video, the method further includes: saving the preview video into a preset storage space in response to a save trigger operation for the preview video.

[0071] Among them, the save trigger operation can be understood as an operation to save the corresponding media content after being triggered. Optionally, the save trigger operation may include at least one of the following: triggering a preset save control; receiving an input save trigger instruction; the audio information includes a wake-up word corresponding to the save trigger operation, etc. The preset storage space may be a storage space capable of storing preview videos. Optionally, the preset storage space may be a local storage space of the terminal or a storage space of an external device, etc.

[0072] As an optional implementation of an embodiment of the present disclosure, a save control can be pre-set in the display interface of the preview video. Then, when a trigger operation for the save control is detected, it can be determined that a save trigger operation for the preview video has been detected. Then, a response is made to the save trigger operation, and the preview video is stored in a preset storage space. The advantage of this setting is that it achieves the effect of saving the generated preview video, providing material for subsequent display or comparison of the preview effect of the special effects template.

[0073] The technical solution of the embodiment of the present disclosure provides a user with an editing entry for the special effect template by displaying the template editing content of the special effect template in the editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content, and provides a data basis for subsequent special effect template preview based on the displayed template editing content; further, in response to the effect preview request for the special effect template, the second media content corresponding to each first media content is set respectively, so as to achieve the effect of setting the template preview content of the special effect template according to the template editing content, and then, based on the second media content and the special effect element, the special effect template preview content is set according to the template editing content. The special effects element generates a preview video of the special effects template and displays the preview video, which solves the problem in the related art that the image and / or video selected by the user to replace the image and / or template video is quite different from the effect of the template, resulting in poor display effect of the special effects video produced based on the special effects template. It realizes the effect of customizing the preview media content based on the edited template editing content during the special effects template production process and previewing the set special effects template, that is, it realizes the effect of pre-displaying the special effects effect of the special effects template on the image and / or video selected by the user during the special effects template production process.

[0074] FIG4 is a flow chart of another special effect processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment is based on the above embodiment. In response to an effect preview request for a special effect template, a media content editing interface is displayed based on the first media content, wherein the media content editing interface displays a preview content editing item corresponding to each first media content. Afterwards, media content is set for each preview content editing item to obtain the second media content. For specific implementation methods, please refer to the description of this embodiment. Among them, technical features that are the same or similar to those of the above embodiment are not repeated here.

[0075] As shown in FIG4 , the method of this embodiment may specifically include:

[0076] S210: Displaying template editing content of a special effect template in an editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content.

[0077] S220 . In response to the effect preview request for the special effect template, display a media content editing interface based on the first media content, wherein the media content editing interface displays a preview content editing item corresponding to each item of the first media content.

[0078] Among them, the media content editing interface can be a visual editing interface that supports users to edit media content. The media content editing interface may include preview content editing items corresponding to each first media content. In other words, the number of preview content editing items displayed in the media content editing interface is consistent with the number of first media content included in the template editing content. Moreover, the arrangement order of the preview content editing items in the media content editing interface is consistent with the arrangement order of the first media content in the template editing content. For example, it is assumed that the number of first media content included in the template editing content is 4. Correspondingly, the number of preview content editing items displayed in the media content editing interface is also 4.

[0079] Among them, the preview content editing item can be understood as an interactive operation entry for editing the preview content in the special effect template. Generally, the user can input an editing trigger operation for editing the template preview content based on the preview content editing item. Furthermore, the editing of the template preview content of the corresponding preview content editing item can be achieved by responding to the editing trigger operation. It should be noted that the media content editing interface also includes multiple candidate media content to be filled into the preview content editing item; or, the media content editing interface can also include a shooting trigger control or a shooting interface.

[0080] It should be noted that the preview content editing item can match the content format of the first media content of the corresponding item. In other words, for each preview content editing item, the content format of the content filled in the preview content editing item matches the content format of the first media content of the corresponding item. The content format of the first media content can be the content format supported by the slot filled with the first media content, or it can be the content format of the filled first media content. The embodiment of the present disclosure does not specifically limit this. Among them, the content format can include picture formats (such as .gif, .jpg, .jpeg, etc.) and video formats (such as AVI, mpeg, mp4, flv, etc.).

[0081] In an embodiment of the present disclosure, upon detecting an effect preview request for a special effect template, a response is provided to the effect preview request. Furthermore, based on the first media content, quantity, and / or content format in the template editing content, preview content editing items corresponding to each first media content item are determined. Furthermore, the determined preview content editing items can be displayed in the media content editing interface in the order in which the first media content items are displayed in the special effect template.

[0082] In the embodiment of the present disclosure, the media content editing interface may be displayed in a variety of ways, optionally displaying it in an interface displaying template editing content or jumping from the current interface to the media content editing interface for display.

[0083] As an optional implementation of an embodiment of the present disclosure, when an effect preview request for a special effect template is detected, the effect preview request is responded to. Furthermore, a media content editing interface is displayed in the interface displaying the template editing content, and the media content editing interface can display preview content editing items and / or multiple candidate media contents corresponding to each first media content. Exemplarily, Figure 5 is an effect schematic diagram of the media content editing interface provided by an embodiment of the present disclosure. As shown in Figure 5, a media content editing interface 52 can be displayed in an interface 51 displaying the template editing content. Among them, the media content editing interface 52 can display 4 preview content editing items, namely, editing item 1, editing item 2, editing item 3 and editing item 4.

[0084] As another optional implementation of the embodiment of the present disclosure, when an effect preview request for a special effect template is detected, the effect preview request is responded to. Then, the current interface is jumped to the media content editing interface, which can display preview content editing items and / or multiple candidate media contents corresponding to each first media content. Exemplarily, Figure 6 is another effect schematic diagram of the media content editing interface provided by the embodiment of the present disclosure. As shown in Figure 6, the media content editing interface 61 can display 4 preview content editing items, namely editing item 1, editing item 2, editing item 3 and editing item 4.

[0085] S230: Set media content for each preview content editing item to obtain second media content.

[0086] The media content can be understood as the interface resources that can be displayed in the interface. Optionally, the media content can include images, audio and video.

[0087] In an embodiment of the present disclosure, after displaying a media content editing interface including at least one preview content editing item, for each preview content editing item, the media content corresponding to the preview content editing item can be determined and obtained based on the content format corresponding to the preview content editing item. Furthermore, the determined media content can be added to the preview content editing item to obtain second media content corresponding to the preview content editing item.

[0088] In the embodiments of the present disclosure, the second media content may be set in a variety of ways, such as real-time shooting and uploading or obtaining from a target storage space. Optionally, when the second media content is set in the way of obtaining from a target storage space: setting media content for each preview content editing item to obtain the second media content includes: displaying at least one candidate media content on the media content editing interface; and in response to a triggering operation of selecting a preview content editing item and a candidate media content, filling the selected candidate media content into the preview content editing item to obtain the second media content.

[0089] The candidate media content may be understood as the media content to be selected. The candidate media content may be the media content pre-stored in the target storage space (eg, the image library of the application software, or the terminal photo album, etc.).

[0090] In an embodiment of the present disclosure, at least one candidate media content can be displayed in the media content editing interface. Furthermore, when a selection trigger operation is detected for any preview content editing item, the preview content editing item can be used as a selected preview content editing item. Thereafter, when a selection trigger operation is detected for any candidate media content, the candidate media content can be used as a selected candidate media content, and the selected candidate media content can be filled into the selected preview content editing item to obtain the second media content corresponding to the selected preview content editing item. The advantage of such a setting is that it achieves the effect of setting the second media content corresponding to the first media content based on the user's selection trigger operation, and achieves the effect of customized setting of the second media content.

[0091] Continuing with reference to FIG6 , the media content editing interface 61 may display, in addition to four preview content editing items, nine candidate media contents, namely, media content A, media content B, media content C, media content D, media content E, media content F, media content G, media content H, and media content I. When a selection trigger operation is detected for edit item 2, edit item 2 is designated as the selected preview content editing item, and its display state is updated to a selected state. Subsequently, when a selection trigger operation is detected for media content C, media content C may be designated as the selected candidate media content, its display state updated to a selected state, and media content C is added to edit item 2, thereby obtaining the second media content corresponding to edit item 2.

[0092] S240: Generate a preview video of the special effect template based on the second media content and the special effect element, and display the preview video.

[0093] The technical solution of the embodiment of the present disclosure is to display a media content editing interface based on the first media content in response to an effect preview request for a special effect template, wherein the media content editing interface displays preview content editing items corresponding to each first media content, and further, set media content for each preview content editing item to obtain second media content, thereby achieving the effect of determining the preview content editing item according to the template editing content and customizing the media content for the preview content editing item, thereby achieving the effect of customizing the template preview content during the special effect template production process.

[0094] FIG7 is a flow chart of another special effects processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment, based on the above embodiment, replaces the first media content in the special effects rendering instance corresponding to the special effects template with the second media content and then performs special effects rendering to obtain a preview video of the special effects template. For specific implementation methods, please refer to the description of this embodiment. Technical features that are identical or similar to those of the above embodiments will not be repeated here.

[0095] As shown in FIG7 , the method of this embodiment may specifically include:

[0096] S310: Displaying template editing content of a special effect template in an editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content.

[0097] S320 : In response to the effect preview request for the special effect template, respectively set the second media content corresponding to each item of the first media content.

[0098] S330: Replace the first media content in the special effect rendering instance corresponding to the special effect template with the second media content and then perform special effect rendering to obtain a preview video of the special effect template, and display the preview video.

[0099] Among them, the special effect rendering instance is obtained by instantiating the template editing content. Generally, the template generation logic corresponding to the special effect template can be pre-set. When no content is filled in the template editing content, the variable value corresponding to the variable value field in the template generation logic is an empty value. Furthermore, when the template editing content is filled with the first media content and / or special effect elements, the variable value corresponding to the variable value field in the template generation logic can be updated according to the filled first media content and / or special effect elements. Afterwards, the template editing content is instantiated according to the updated template generation logic to obtain the special effect rendering instance.

[0100] In the disclosed embodiments, a special effects rendering instance can be determined based on the template editing content of a special effects template in an editing state. Furthermore, after setting the second media content corresponding to each item of first media content, the first media content in the special effects rendering instance can be replaced with the corresponding second media content. Special effects rendering can then be performed on the replaced special effects rendering instance to obtain a preview video of the special effects template, which can then be displayed.

[0101] In the embodiment of the present disclosure, the preview effect of the template editing content may also be displayed, that is, the special effect preview effect of at least one first media content and the special effect element acting on the first media content may be displayed.

[0102] Optionally, after displaying the template editing content of the special effects template in the editing state, it also includes: instantiating the template editing content to obtain a special effects rendering instance; using the special effects rendering instance to perform special effects rendering on the template editing content to obtain a preview effect of the special effects template, and displaying the preview effect.

[0103] As an optional implementation of an embodiment of the present disclosure, after displaying the template editing content of the special effect template in the editing state, the template editing content can be instantiated according to the template generation logic corresponding to the special effect template to obtain a special effect rendering instance. Furthermore, the special effect rendering instance can be used to perform special effect rendering on the template editing content to obtain a preview effect of the special effect template, that is, to obtain a special effect preview effect of at least one first media content and a corresponding special effect element, and to display the preview effect. The advantage of such a setting is that it realizes the effect of previewing the template effect determined based on the template editing content during the special effect template editing process, so that the user can adjust the template editing content according to the preview effect, thereby improving the flexibility of the template editing process.

[0104] It should be noted that there are multiple ways to display the preview effect. Optionally, it can be displayed through a floating small screen in the interface displaying the template editing content; or, an effect display panel can be displayed in the interface displaying the template editing content, and the preview effect of the special effect template can be displayed based on the effect display panel; or, it can be displayed by jumping from the interface displaying the template editing content to another interface, etc.

[0105] It should be noted that the method for generating a preview video for a special effects template may also include: after separately setting the second media content corresponding to each item of first media content, at least one item of second media content and special effects element may be instantiated to obtain a preview rendering instance. Furthermore, the preview rendering instance is used to perform special effects rendering on the second media content and special effects element to obtain a preview video for the special effects template. The preview rendering instance and the special effects rendering instance are two different rendering instances.

[0106] Exemplarily, the execution process of the special effects processing method provided by the embodiment of the present disclosure can be exemplarily described in conjunction with Figures 2, 3 and 6: the template editing content of the special effects template in the editing state can be displayed based on the interface shown in Figure 2. Furthermore, in the case of detecting an effect preview request for the special effects template, the preview request is responded to and the jump to the media content editing interface shown in Figure 6. The user can set the media content for the four preview content editing items based on the media content editing interface to obtain the second media content corresponding to the four first media contents. Furthermore, in the case of detecting a trigger operation for the setting completion control, the jump to the preview video display interface shown in Figure 3 can be made. Furthermore, the preview video of the special effects template can be displayed based on the interface shown in Figure 3.

[0107] The technical solution of the disclosed embodiment replaces the first media content in the special effects rendering instance corresponding to the special effects template with the second media content and then performs special effects rendering to obtain a preview video of the special effects template. This achieves the effect of performing special effects rendering based on the special effects rendering instance after the media content is replaced and obtaining a preview video, reduces the computational complexity of special effects rendering, and thereby improves the efficiency of special effects rendering.

[0108] FIG8 is a structural diagram of a special effect processing device provided by an embodiment of the present disclosure. As shown in FIG8 , the device includes: a template editing module 410 , a template preview module 420 and a video display module 430 .

[0109] Among them, the template editing module 410 is used to display the template editing content of the special effect template in the editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content; the template preview module 420 is used to respond to the effect preview request for the special effect template, and set the second media content corresponding to each first media content respectively; the video display module 430 is used to generate a preview video of the special effect template based on the second media content and the special effect element, and display the preview video.

[0110] Based on the above optional technical solutions, the template preview module 420 optionally includes: an interface display unit and a content setting unit. The interface display unit is configured to display a media content editing interface based on the first media content, wherein the media content editing interface displays preview content editing items corresponding to each item of the first media content; and the content setting unit is configured to set media content for each preview content editing item to obtain second media content.

[0111] Based on the above optional technical solutions, the content setting unit optionally includes: a content display subunit and a content filling subunit. The content display subunit is configured to display at least one candidate media content item on the media content editing interface; and the content filling subunit is configured to, in response to a triggering operation of selecting the preview content editing item and the candidate media content, fill the selected candidate media content into the preview content editing item to obtain the second media content.

[0112] Based on the above optional technical solutions, the effect display module 430 optionally includes a special effect rendering unit. The special effect rendering unit is configured to replace the first media content in a special effect rendering instance corresponding to the special effect template with the second media content and then perform special effect rendering to obtain a preview video of the special effect template, wherein the special effect rendering instance is obtained by instantiating the template editing content.

[0113] Based on the above optional technical solutions, the apparatus may further include: a content instantiation module and a special effects rendering module. The content instantiation module is configured to, after displaying the template editing content of the special effects template in the editing state, instantiate the template editing content to obtain a special effects rendering instance; and the special effects rendering module is configured to perform special effects rendering on the template editing content using the special effects rendering instance to obtain a preview effect of the special effects template and display the preview effect.

[0114] Based on the above optional technical solutions, the apparatus may further include a content update module configured to update the template editing content in response to a content adjustment triggering operation on the template editing content after displaying the template editing content of the special effect template in the editing state or showing the preview video, so as to update the special effect template based on the template editing content.

[0115] Based on the above optional technical solutions, the apparatus may further include a module generation module configured to generate a special effect template based on the template editing content in response to a template generation request after displaying the template editing content of the special effect template in the editing state.

[0116] Based on the above optional technical solutions, the apparatus may further include a speed adjustment module configured to adjust the playback speed of the first media content based on a set speed parameter in response to a speed change setting trigger operation for at least one item of the first media content after displaying the template edited content of the special effect template in the editing state.

[0117] Based on the above optional technical solutions, the system may further include a video saving module, which is configured to save the preview video to a preset storage space in response to a save trigger operation on the preview video after the preview video is displayed.

[0118] The technical solution of the embodiment of the present disclosure provides a user with an editing entry for the special effect template by displaying the template editing content of the special effect template in the editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content, and provides a data basis for subsequent special effect template preview based on the displayed template editing content; further, in response to the effect preview request for the special effect template, the second media content corresponding to each first media content is set respectively, so as to achieve the effect of setting the template preview content of the special effect template according to the template editing content, and then, based on the second media content and the special effect element, the special effect template preview content is set according to the template editing content. The special effects element generates a preview video of the special effects template and displays the preview video, which solves the problem in the related art that the image and / or video selected by the user to replace the image and / or template video is quite different from the effect of the template, resulting in poor display effect of the special effects video produced based on the special effects template. It realizes the effect of customizing the preview media content based on the edited template editing content during the special effects template production process and previewing the set special effects template, that is, it realizes the effect of pre-displaying the special effects effect of the special effects template on the image and / or video selected by the user during the special effects template production process.

[0119] The special effects processing device provided by the embodiments of the present disclosure can execute the special effects processing method provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.

[0120] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0121] FIG9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG9 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG9 ) 500 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG9 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0122] As shown in FIG9 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0123] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG9 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may be implemented or present instead.

[0124] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0125] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0126] The electronic device provided by the embodiment of the present disclosure and the special effects processing method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0127] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the special effect processing method provided in the above embodiment is implemented.

[0128] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0129] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0130] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0131] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays the template editing content of the special effect template in the editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content; in response to an effect preview request for the special effect template, sets the second media content corresponding to each first media content respectively; generates a preview video of the special effect template based on the second media content and the special effect element, and displays the preview video.

[0132] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0135] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0136] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] According to one or more embodiments of the present disclosure, Example 1 provides a special effects processing method, including: displaying the template editing content of a special effects template in an editing state, wherein the template editing content includes at least one first media content and a special effects element acting on the first media content; in response to an effect preview request for the special effects template, setting second media content corresponding to each first media content respectively; generating a preview video of the special effects template based on the second media content and the special effects element, and displaying the preview video.

[0138] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, further comprising:

[0139] Optionally, setting the second media content corresponding to each item of the first media content includes: displaying a media content editing interface based on the first media content, wherein the media content editing interface displays a preview content editing item corresponding to each item of the first media content; and setting media content for each preview content editing item to obtain the second media content.

[0140] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, further comprising:

[0141] Optionally, media content is set for each preview content editing item to obtain second media content, including: displaying at least one candidate media content on the media content editing interface; in response to a selection trigger operation of the preview content editing item and the candidate media content, filling the selected candidate media content into the preview content editing item to obtain second media content.

[0142] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 1, further comprising:

[0143] Optionally, generating a preview video of the special effects template based on the second media content and the special effects element includes: replacing the first media content in the special effects rendering instance corresponding to the special effects template with the second media content and then performing special effects rendering to obtain a preview video of the special effects template, wherein the special effects rendering instance is obtained by instantiating the template editing content.

[0144] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, further comprising:

[0145] Optionally, after displaying the template editing content of the special effects template in the editing state, it also includes: instantiating the template editing content to obtain a special effects rendering instance; using the special effects rendering instance to perform special effects rendering on the template editing content to obtain a preview effect of the special effects template, and displaying the preview effect.

[0146] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 1, further comprising:

[0147] Optionally, after displaying the template editing content of the special effects template in the editing state or showing the preview video, it also includes: updating the template editing content in response to a content adjustment trigger operation for the template editing content, so as to update the special effects template based on the template editing content.

[0148] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 1, further comprising:

[0149] Optionally, after displaying the template editing content of the special effect template in the editing state, the method further includes: generating a special effect template based on the template editing content in response to a template generation request.

[0150] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 1, further comprising:

[0151] Optionally, after displaying the template editing content of the special effect template in the editing state, it also includes: in response to a speed change setting trigger operation for at least one item of the first media content, adjusting the playback speed of the first media content based on the set speed change parameters.

[0152] According to one or more embodiments of the present disclosure, Example 9 provides the method of Example 1, further comprising:

[0153] Optionally, after displaying the preview video, the method further includes: saving the preview video to a preset storage space in response to a save trigger operation on the preview video.

[0154] According to one or more embodiments of the present disclosure, Example 10 provides a special effects processing device, including: a template editing module for displaying the template editing content of a special effects template in an editing state, wherein the template editing content includes at least one first media content and a special effects element acting on the first media content; a template preview module for setting the second media content corresponding to each first media content in response to an effect preview request for the special effects template; a video display module for generating a preview video of the special effects template based on the second media content and the special effects element, and displaying the preview video.

[0155] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0156] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0157] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A special effects processing method, comprising: Displaying template editing content of a special effect template in an editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content; In response to an effect preview request for the special effect template, respectively setting second media content corresponding to each item of the first media content; A preview video of the special effect template is generated based on the second media content and the special effect element, and the preview video is displayed.

2. The special effect processing method according to claim 1, wherein: The respectively setting of the second media content corresponding to each item of the first media content includes: displaying a media content editing interface based on the first media content, wherein the media content editing interface displays a preview content editing item corresponding to each item of the first media content; Media content is set for each preview content editing item to obtain second media content.

3. The special effect processing method according to claim 2, wherein: The setting of media content for each preview content editing item to obtain second media content includes: Displaying at least one candidate media content on the media content editing interface; In response to a triggering operation of selecting the preview content editing item and the candidate media content, the selected candidate media content is filled into the preview content editing item to obtain second media content.

4. The special effect processing method according to any one of claims 1 to 3, wherein: Generating a preview video of the special effect template based on the second media content and the special effect element includes: The first media content in the special effect rendering instance corresponding to the special effect template is replaced with the second media content and then special effect rendering is performed to obtain a preview video of the special effect template, wherein the special effect rendering instance is obtained by instantiating the template editing content.

5. The special effect processing method according to claim 4, wherein: After displaying the template editing content of the special effect template in the editing state, the special effect processing method further includes: Instantiate the template editing content to obtain a special effects rendering instance; The special effects rendering instance is used to perform special effects rendering on the template editing content to obtain a preview effect of the special effects template, and the preview effect is displayed.

6. The special effect processing method according to any one of claims 1 to 5, wherein: After displaying the template editing content of the special effect template in the editing state or showing the preview video, the special effect processing method further includes: In response to a content adjustment triggering operation on the template editing content, the template editing content is updated to update the special effect template based on the template editing content.

7. The special effect processing method according to any one of claims 1 to 6, wherein: After displaying the template editing content of the special effect template in the editing state, the special effect processing method further includes: In response to the template generation request, a special effect template is generated based on the template editing content.

8. The special effect processing method according to any one of claims 1 to 7, wherein: After displaying the template editing content of the special effect template in the editing state, the special effect processing method further includes: In response to a speed change setting triggering operation for at least one item of the first media content, the playback speed of the first media content is adjusted based on the set speed change parameter.

9. The special effect processing method according to any one of claims 1 to 8, wherein: After displaying the preview video, the special effects processing method further includes: In response to a save trigger operation on the preview video, the preview video is saved in a preset storage space.

10. A special effects processing device, comprising: A template editing module configured to display template editing content of a special effect template in an editing state, wherein the template editing content includes at least one first media content and a special effect element acting on the first media content; a template preview module configured to respectively set second media content corresponding to each item of the first media content in response to an effect preview request for the special effect template; The video display module is configured to generate a preview video of the special effect template based on the second media content and the special effect element, and display the preview video.

11. An electronic device comprising: one or more processors; a storage device configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the special effect processing method according to any one of claims 1 to 9.

12. A storage medium containing computer-executable instructions, wherein: When the computer executable instructions are executed by a computer processor, they are used to execute the special effect processing method according to any one of claims 1 to 9.

13. A computer program product comprising a computer program, wherein When the computer program is executed by a processor, the computer program implements the special effect processing method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Video preview method and device, readable medium and electronic equipment

    CN115022696A

  • Media content editing method and device, electronic equipment and storage medium

    CN116668418A

  • Special effect video determination method and device, electronic equipment and storage medium

    CN116847147A

  • Media content generation method and device, electronic equipment and storage medium

    CN116886989A

  • Media content processing method and apparatus, device, and storage medium

    WO2024037491A1