Editing template generation method and device, and storage medium

By selecting an initial editing template and third-party media materials, and using electronic devices to automatically replace the materials to generate the target editing template, the problems of low efficiency and high cost in the production of editing templates in the existing technology are solved, and the automated batch generation of editing templates is realized.

WO2026103419A1PCT designated stage Publication Date: 2026-05-21BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2025-10-16
Publication Date
2026-05-21

Smart Images

  • Figure CN2025128140_21052026_PF_FP_ABST
    Figure CN2025128140_21052026_PF_FP_ABST
Patent Text Reader

Abstract

Provided are an editing template generation method and device, and a storage medium. The method comprises: in response to a template selection instruction, selecting an initial editing template (S201); determining third media assets on the basis of the initial editing template, wherein the quantity of the third media assets is not less than the quantity of first media assets in the initial editing template (S202); and replacing the first media assets in the initial editing template with at least one media asset among the third media assets to generate a target editing template (S203).
Need to check novelty before this filing date? Find Prior Art

Description

Methods, equipment, and storage media for generating editing templates

[0001] Cross-references to related applications

[0002] This application is based on and claims priority to Chinese application No. 202411640660.6, filed on November 15, 2024, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0003] This disclosure relates to the field of computer and network communication technology, and in particular to a method, device and storage medium for generating editing templates. Background Technology

[0004] Currently, using video editing templates for video creation has become one of the most popular solutions in the video creation field. Users only need to select editing templates and materials to quickly generate videos, which improves the efficiency of video production and reduces the difficulty of video production. Summary of the Invention

[0005] In a first aspect, embodiments of this disclosure provide a method for generating an editing template, comprising: selecting an initial editing template in response to a template selection instruction; wherein the initial editing template includes a first media material, first editing information, and a first replacement marker, the first editing information indicating an editing operation on the first media material, and the first replacement marker indicating a replacement of the first media material in the initial editing template with a second media material to generate a first target video; determining a third media material based on the initial editing template, wherein the number of the third media material is not less than the number of the first media material in the initial editing template; and replacing the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template; wherein the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information indicating an editing operation on at least one media material from the third media material, and the second replacement marker indicating a replacement of at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

[0006] Secondly, embodiments of this disclosure provide an editing template generation device, comprising: a template selection unit, configured to select an initial editing template in response to a template selection instruction; wherein the initial editing template includes first media material, first editing information, and a first replacement marker, the first editing information indicating an editing operation on the first media material, and the first replacement marker indicating the replacement of the first media material in the initial editing template with a second media material to generate a first target video; a material selection unit, configured to determine a third media material based on the initial editing template, wherein the number of the third media material is not less than the number of the first media material in the initial editing template; and a generation unit, configured to replace the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template; wherein the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information indicating an editing operation on at least one media material from the third media material, and the second replacement marker indicating the replacement of at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

[0007] Thirdly, embodiments of this disclosure provide an electronic device, including: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, causing the at least one processor to perform the method for generating an editing template as described in the first aspect and various possible designs of the first aspect.

[0008] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method for generating an editing template as described in the first aspect and various possible designs of the first aspect.

[0009] Fifthly, embodiments of this disclosure provide a computer program product, including computer execution instructions, which, when executed by a processor, implement the method for generating an editing template as described in the first aspect and various possible designs of the first aspect.

[0010] In a sixth aspect, embodiments of this disclosure provide a computer program comprising: instructions that, when executed by a processor, cause the processor to perform the method for generating an editing template as described in the first aspect and various possible designs of the first aspect. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 is a scenario example diagram of an editing template generation method provided in an embodiment of this disclosure;

[0013] Figure 2 is a schematic flowchart of an editing template generation method provided in an embodiment of this disclosure;

[0014] Figures 3a, 3b, 3c, and 3d are schematic diagrams of the interface of the editing template generation method provided in the embodiments of this disclosure;

[0015] Figure 4 is a structural block diagram of an editing template generation device provided in an embodiment of this disclosure;

[0016] Figure 5 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0018] In related technologies, editing templates usually require the creation of production personnel, which reduces the efficiency of editing template production and increases the production cost of editing templates.

[0019] To address the aforementioned technical problems, this disclosure provides a method for generating editing templates. By selecting an initial editing template and third media materials, and combining the initial editing template and the third media materials, new editing templates can be automatically generated in batches, thereby improving the efficiency of editing template production and reducing costs.

[0020] The application scenario of this disclosure embodiment is shown in Figure 1. It can be applied to electronic devices such as terminal devices or servers. Users can select an initial editing template and third-party media materials on the electronic device, and the electronic device can automatically generate new editing templates in batches.

[0021] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.

[0022] The method for generating editing templates disclosed herein will be described in detail below with reference to specific embodiments.

[0023] Referring to Figure 2, which is a schematic flowchart of an editing template generation method according to an embodiment of the present disclosure, the method of this embodiment can be applied to electronic devices such as terminal devices or servers. The editing template generation method includes steps S201 to S203.

[0024] In step S201, in response to the template selection instruction, an initial editing template is selected; wherein the initial editing template includes a first media material, a first editing information and a first replacement mark, the first editing information is used to indicate the editing operation on the first media material, and the first replacement mark is used to indicate that the first media material in the initial editing template is replaced with a second media material to generate a first target video.

[0025] In this embodiment, when a user needs to generate a new editing template, the user can first select an initial editing template as the base template or reference template for the new editing template. The initial editing template is a video editing draft, including first media material, first editing information, and first replacement mark.

[0026] The first media material is a component of the initial editing template. Some or all of the first media material can be replaced during subsequent video creation based on the initial editing template. For example, any media material in this embodiment includes, but is not limited to, video clips, audio clips, images, text, etc. The first editing information is used to indicate editing operations on the first media material, such as adding effects, filters, transitions, etc. The first replacement marker is used to indicate that a new second media material can be used to replace the first media material in the initial editing template to generate the first target video during subsequent video creation based on the initial editing template.

[0027] Specifically, when selecting an initial editing template, the electronic device can provide an interface for selecting the initial editing template, as shown in Figure 3a. The interface provides an input control for the identifier (ID) of the initial editing template. The user can directly enter the identifier of the initial editing template in the input control, and then search for and retrieve the initial editing template from the preset editing template library based on the entered identifier. The editing template library stores multiple preset editing templates in advance. Alternatively, the user can enter the attribute information of the initial editing template, and search for and retrieve the initial editing template from the preset editing template library based on the attribute information. Alternatively, the interface can also display the preset editing templates in the preset editing template library, and the user can select a preset editing template as the initial editing template from the interface. Or, the initial editing template can be determined in other ways, such as the user directly importing the file of the initial editing template into the electronic device.

[0028] In addition, initial editing templates can be filtered by conditions. For example, users can enter filtering conditions for initial editing templates, and then select alternative initial editing templates from the preset editing template library according to the filtering conditions.

[0029] In some embodiments, a threshold for the number of selected initial editing templates can be preset. If the number of selected initial editing templates exceeds the threshold, an error can be reported. For example, the threshold can be set to 1 (of course, the threshold is not limited to 1 and can be set according to the situation). When it is determined that the number of selected initial editing templates exceeds 1, an error can be reported, such as displaying "The number of selected initial editing templates exceeds 1, please select again". Alternatively, selection conditions for initial editing templates can be preset. When selecting an initial editing template, it can be determined whether the selected initial editing template meets the selection conditions. If not, an error can be reported, such as displaying "The selected initial editing template does not meet the conditions, please select again". For example, the selection condition could be that the region of the selected initial editing template must match the publishing region of the new editing template. The region of the initial editing template can be determined and compared with the pre-set publishing region of the new editing template. If they do not match, an error or prompt can be issued.

[0030] In some embodiments, after the initial editing template is selected, the initial editing template can be parsed to identify the first replaceable media material in the initial editing template. That is, the first media material can be completely replaced or partially replaced. Then, the number and types of the replaceable first media material can be displayed so that the user can select the third media material in the media material library interface according to the number and types of the first media material.

[0031] In step S202, a third media material is determined according to the initial editing template, wherein the number of the third media material is not less than the number of the first media material in the initial editing template.

[0032] In this embodiment, after selecting an initial editing template, a third media material can be obtained. The third media material is used to replace the first media material in the initial editing template during the process of generating a new editing template.

[0033] In some embodiments, after selecting an initial editing template, a media library interface is displayed. Users can select third-party media materials in the media library interface. This can be achieved by clicking on or triggering operations of the preset media materials displayed in the media library interface. Of course, the media selection command can also be triggered by any other possible selection method to determine the desired third-party media material. For example, the media library interface displays preset media materials in a multi-page manner, where each page displays a specific number of preset media materials and provides a control to select all preset media materials on the current page. After triggering this control, all preset media materials on the current page can be selected as third-party media materials.

[0034] In some embodiments, when the media library interface displays multiple preset media materials, it can display the attribute information of the preset media materials, including but not limited to one or more of the following: name, thumbnail, scene, tags (such as tags for attribute information), etc. It can also display the number of times the preset media materials have been used (or popularity information), etc. In some embodiments, if the media library interface displays thumbnails of preset media materials, in response to a user's trigger operation command on the thumbnail, a preview of the preset media material can be displayed. If the preset media material is an image, the preview can be a large-image preview of the preset media material (e.g., enlarging the thumbnail in a display control to display a larger version of the preset media material). If the preset media material is a video, the preview can be used to play the preset media material (e.g., playing the preset media material in a small window or other playback control). Furthermore, the trigger operation command on the thumbnail can be a long press, a click, or moving the mouse within the thumbnail area, etc.

[0035] In some embodiments, after selecting a third media asset, the selected third media asset can be displayed, for example, by showing a list of selected third media assets in any designated area of ​​the media asset library interface (e.g., displaying the name, thumbnail, and other asset information of the selected third media assets), and also by displaying the total number of selected third media assets and / or the number of third media assets of each type. Furthermore, users can also delete selected third media assets, for example, by dragging or dropping them or by triggering a delete button.

[0036] After the user completes the selection of third-party media materials, the selection can be ended by triggering the control in the media material library interface that indicates the end of the selection (the control can be a confirmation button or a material import button, etc.).

[0037] In some embodiments, after selecting an initial editing template, the user can proceed to the next step of media material selection (e.g., clicking the "Next" button in Figure 3a). This displays the media material group management interface shown in Figure 3b. Different media material groups can be created in this interface, and these groups can be used to generate a set of target editing templates in batches. The user selects a third media material for each media material group. For example, clicking the "Start Selection" button displays the media material library interface shown in Figure 3c, or clicking the "Next" button in Figure 3a directly displays the media material library interface shown in Figure 3c (without displaying the interface shown in Figure 3b). The media material library interface displays multiple preset media materials, including but not limited to audio clips, video clips, and images, for the user to select from. In some embodiments, the media material library interface can be triggered by a confirmation or other triggering operation after selecting the initial editing template. In some embodiments, the media material library interface can be displayed as a floating page, such as a semi-floating or fully floating page.

[0038] In step S203, at least one media material from the third media material is used to replace the first media material in the initial editing template to generate a target editing template; wherein, the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information being used to indicate editing operations on at least one media material from the third media material, and the second replacement marker being used to indicate replacing at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

[0039] In this embodiment, after determining the initial editing template and the third media material, the initial editing template can be combined with the third media material. That is, at least one media material in the third media material can be used to replace the first media material in the initial editing template to generate a new editing template, namely the target editing template. Similarly, the target editing template also contains a video editing draft, at least one media material in the third media material, second editing information, and a second replacement mark.

[0040] In this process, at least one media material in the third media material is a component of the target editing template, and some or all of these media materials can be replaced during subsequent video creation based on the initial editing template. The second editing information indicates editing operations on at least one media material in the third media material, such as adding effects, filters, transitions, etc. The second replacement marker indicates that during subsequent video creation based on the initial editing template, at least one media material in the third media material of the initial editing template can be replaced with a new fourth media material to generate the second target video. Since the target editing template simply replaces the first media material with at least one media material in the third media material, the second editing information and the second replacement marker correspond to the first editing information and the first replacement marker. They can be determined based on the first editing information and the first replacement marker, can be completely identical to the first editing information and the first replacement marker, or can be adaptively adjusted based on the third media material.

[0041] In some embodiments, all the first media materials in the initial editing template are replaceable. Therefore, the number of third media materials is not less than the number of first media materials in the initial editing template, to ensure that all the first media materials in the initial editing template can be replaced. The replaceable first media materials are located in preset slots in the initial editing template, where the preset slots are the positions for placing materials. In this embodiment, the initial editing template can be identified using any feasible method, that is, the replaceable first media materials in the preset slots can be identified. For example, the replaceable first media materials can be pre-marked. Furthermore, during replacement, the first media materials in the preset slots can be deleted, and at least one of the third media materials can be placed in the slot to replace the materials in the initial editing template.

[0042] Optionally, during the generation of the target editing template, other video editing operations can also be performed, such as one or more of the following:

[0043] Highlight extraction operation: If the length of at least one media material in any third media material is greater than the length of the corresponding first media material to be replaced, then a media fragment is obtained from at least one of the third media materials according to the length of the first media material to be replaced, and the first media material to be replaced is replaced with the media fragment. Considering that the length (video duration) of any selected third media material may be greater than the length of the first media material to be replaced, in order for the third media material to be precisely replaced at the position of the first media material, it is necessary to extract a media fragment from the third media material, making its length equal to the length of the first media material. That is, the length of the media fragment is equal to the length of the first media material. For example, highlight scenes (highlight moments) can be identified and extracted from the target pixel to obtain highlight fragments from the third media material. Any known method can be used to obtain the highlight fragments, and no restrictions are placed here.

[0044] Freeze-frame operation: If it is determined from the first editing information that any first media material has a preset freeze-frame effect, then video frames are extracted from at least one of the third media materials, and freeze-frame effects are added to the video frames. The preset freeze-frame effect of the first media material means that after playing a certain frame of the first media material, the playback stops at that frame for a period of time. Therefore, if a first media material is identified as having a preset freeze-frame effect, then at least one of the third media materials used to replace the first media material also needs to have a freeze-frame effect set. Video frames that need to be frozen can be extracted from the third media material to add the freeze-frame effect. In specific implementation, the freeze-frame information of the initial editing template can be obtained from the first editing information, and the video frames that need to be frozen can be extracted from the third media material based on the freeze-frame information. Then, the freeze-frame information of the target editing template can be generated based on these video frames.

[0045] Frame interpolation: After replacing the first media material with at least one media material from the third media material, determine whether frame interpolation is needed for the target editing template. For example, determine whether the smoothness of the target editing template meets preset conditions, and / or whether a transition needs to be added to the target editing template. If it is determined that the smoothness does not meet the preset conditions (conditions for measuring the smoothness), and / or a transition needs to be added to the target editing template, then frame interpolation is performed on the target editing template to make the replacement result smoother. The smoothness detection can use any feasible method, and the determination of whether to add a transition can also use any feasible method; there are no restrictions here.

[0046] Of course, other video editing operations can also be performed during the generation of the target editing template, which will not be elaborated here.

[0047] In some embodiments, the generated target editing template can be displayed, as shown in Figure 3d, for users to browse, select, and publish.

[0048] The method for generating editing templates in this embodiment involves selecting an initial editing template in response to a template selection instruction; determining third media materials based on the initial editing template, wherein the number of third media materials is not less than the number of first media materials in the initial editing template; and replacing the first media materials in the initial editing template with at least one of the third media materials to generate a target editing template. This embodiment, by selecting an initial editing template and third media materials and combining them, can automatically generate new editing templates in batches, improving the efficiency of editing template creation and reducing costs.

[0049] Based on any of the above embodiments, when determining the third media material according to the initial editing template, it may specifically include: obtaining the target attributes of the third media material, filtering candidate media materials from the media material library according to the target attributes, and displaying them; and in response to the media material selection instruction, selecting the third media material from the candidate media materials.

[0050] In this embodiment, to facilitate users in quickly selecting the desired third media material, a material filtering function can be used. The target attributes of the third media material can be obtained as filtering conditions first, and then candidate media materials that meet the filtering conditions can be filtered from the media material library based on the target attributes of the third media material and displayed in the media material library interface. Then, users can select the desired third media material from the candidate media materials, thereby improving the efficiency of material selection.

[0051] In some embodiments, when obtaining the target attribute of the third media material and filtering candidate media materials from the media material library based on the target attribute, the target attribute can be selected from a plurality of pre-configured candidate attributes. These candidate attributes include, but are not limited to, name, publisher, type, theme, style, resolution, size, etc. The user can then trigger a target attribute selection command, and in response, select the target attribute from the plurality of candidate attributes, and then filter candidate media materials from the media material library based on the target attribute. For example, the media material library interface can also include an attribute selection control, where the user can input an attribute selection command to determine one or more target attributes, such as type "video" or theme "travel theme." The selected target attribute can then be used as a filtering condition to filter candidate media materials from the media material library that match the target attribute, and this is implemented in the media material library interface.

[0052] In some embodiments, the electronic device may also automatically perform some filtering, such as obtaining the attributes of the first media material in the initial editing template, using the attributes of the first media material as target attributes, and filtering candidate media materials that match the target attributes from the media material library. Of course, automatic filtering and the above-mentioned filtering based on user-input target attributes can both be performed if they do not conflict, and the order of their execution is not limited in this embodiment.

[0053] Based on any of the above embodiments, all third media materials are divided into multiple groups, wherein the number of third media materials in each group is equal to the number of first media materials; the first media materials in the initial editing template can be replaced with the third media materials of any group to generate a target editing template, thereby realizing the batch production of editing templates.

[0054] In this embodiment, a certain division rule can be adopted during the division, such as random division or division according to the selection order, so that the number of third media materials in each group is equal to the first number of first media materials in the initial editing template. In this way, each group of third media materials replaces the first media materials in the initial editing template to generate a new editing template. During grouping, there may be insufficient third media materials left over as a group. In this case, these remaining third media materials can be discarded without replacement.

[0055] Based on any of the above embodiments, when determining the third media material according to the initial editing template, the method may further include: determining the number of target editing templates that can be generated based on the number of the first media material and the number of the third media material, and displaying this information to prompt the user to continue selecting the third media material based on the number of target editing templates, or to end the selection of the third media material.

[0056] Based on any of the above embodiments, considering that the selected third media material is used to replace the first media material in the initial editing template, the number of selected third media materials for an initial editing template needs to be greater than or equal to the number of first media materials in the initial editing template. Considering that the editing template does not need to strictly focus on the content of each material, swapping the positions of each material is not very meaningful for the editing template. Therefore, a third media material is only used once. If the number of third media materials is equal to the number of first media materials in the initial editing template, only one target editing template is generated. In order to achieve batch generation of target editing templates, the number of third media materials needs to be greater than the number of first media materials in the initial editing template. Optionally, the number of third media materials is at least twice the number of first media materials, so that more than two target editing templates can be produced.

[0057] Based on the above embodiments, when selecting third media materials, the number of target editing templates that can be generated can be determined according to the number of currently selected third media materials and the number of first media materials in the initial editing template. Then, during the process of selecting third media materials in the media material library interface, the number of target editing templates that can be generated can be displayed in the media material library interface, for example, displaying "N new editing templates can be generated". This can be used to prompt the user to continue selecting third media materials according to this number, or to end the selection of third media materials. That is, if the number of third media materials meets the number of target editing templates required by the user, the user can end the selection of third media materials. If the number of third media materials does not meet the number of target editing templates required by the user, the user can continue to select third media materials until the number of target editing templates that can be generated reaches the required number of target editing templates.

[0058] The expected number of target editing templates that can be generated can be obtained by dividing the number of third media materials by the number of first media materials and rounding down. Furthermore, if the number of third media materials is less than the number of first media materials, then the number of target editing templates that can be generated is 0. This can be indicated by displaying "0 target editing templates can be generated" or by displaying a prompt to continue selecting third media materials. Especially when the user finishes selecting third media materials, if it is determined that the number of third media materials is less than the number of first media materials, the user can be prompted that the currently selected number of third media materials is too small to generate one target editing template, and that they need to continue selecting third media materials.

[0059] Of course, in the above embodiments, a third media material may not be limited to being used only once. In this case, the number of target editing templates that can be generated can be determined by permutation and combination, that is, more new editing templates can be generated.

[0060] In some embodiments, after generating a target editing template based on the initial editing template and the third media material, any frame can be obtained from the target editing template and determined as the cover of the target editing template. For example, the first frame, a middle frame, or a highlight frame (highlight frame) of the target editing template can be selected. The highlight frame can be obtained using any method to identify highlight frames in the target editing template. Furthermore, in some embodiments, preset text can be obtained from a preset text library and determined as the title text or editing template description text of the target editing template. The preset text library stores preset title text or preset editing template description text in advance. A preset title text can be randomly selected or selected through a specific matching rule as the title text of the target editing template, or a preset editing template description text can be selected as the description text of the target editing template. The matching rule can be any matching rule, such as matching based on the attribute information of the material, etc., and is not limited here.

[0061] Based on the above embodiments, after generating the target editing template, one or more of the cover, title text, and editing template description text of the target editing template can be displayed in the target editing template list, as shown in Figure 3d. For example, when any target editing template in the target editing template list is triggered, the target editing template can be previewed. The triggering operation can be any possible operation such as clicking or moving the mouse to the target editing template area, thereby allowing the target editing template to be previewed. The preview method can be implemented in any way, such as using a small window.

[0062] In some embodiments, users can also select or delete target editing templates from the target editing template list. After selecting one or more target editing templates, the selected target editing templates can be published. Specifically, in response to the user's trigger operation command on the publishing control, the selected target editing templates can be published to the specified platform. After successful publication, a success message can be displayed. Of course, due to network problems, permission issues, or other reasons, publication may fail. In the event of publication failure, a failure message can be displayed.

[0063] In some embodiments, the generation progress of the target editing template may also be displayed during the generation process. In some embodiments, the publishing progress may also be displayed during the publishing process of the target editing template.

[0064] Optionally, if the user is not satisfied with the target editing template or the target editing template fails to be published, the target editing template can also be regenerated. In response to the regeneration command, the target editing template can be regenerated based on the initial editing template and third-party media materials. The user can reselect the third-party media materials, or change the order of the third-party media materials during the regeneration process to generate different target editing templates.

[0065] Based on any of the above embodiments, before displaying the media material library interface, preset media materials can be imported in advance. Specifically, this may include: obtaining a list of media materials to be imported, the list of media materials to be imported including the attribute information and path of each media material to be imported into the media material library; and parsing the list of media materials to be imported to add each media material included in the list of media materials to be imported into the media material library.

[0066] In this embodiment, the user can first obtain a list of media materials to be imported. This list includes the attribute information and path of each preset media material. For example, one row in the list represents a preset media material, specifically storing its attribute information, such as name, publisher, type, theme, style, resolution, size, and character-related information (e.g., number of people, mood, etc.), as well as its path. The list of media materials to be imported can be filled in by the user or obtained through any other means. Furthermore, the list can be implemented using any form of list, such as a table file.

[0067] Furthermore, media materials can be imported into the media material library based on a list of media materials to be imported. For example, a media material import control can be configured, allowing users to trigger the control, upload the list of media materials to be imported, and parse the list to add the preset media materials included therein to the media material library. During the parsing process, each preset media material can be validated, such as checking its availability, missing attribute information, correct data type (text, numeric, etc.), and conforming to preset rules. If the validation passes, the material is added to the media material library; if it fails, a prompt can be displayed, such as indicating the import failure or the reason for the failure. If the import of the media material list fails due to network issues, users can trigger a re-import, re-uploading the list of media materials to be imported.

[0068] In addition, the preset media materials included in the list of media materials to be imported can be displayed. For example, after triggering the media management control, the preset media materials included in the list of media materials to be imported can be displayed in the media management interface, or all preset media materials in the media material library can be displayed in the media management interface. Optionally, the media materials can be displayed in a list format in the media management interface, which can display the name, thumbnail (which can be obtained during the parsing process, such as selecting the first frame image, middle frame image, or highlight image, etc.), attribute information, etc. In response to the user's trigger operation command on the thumbnail, the preview content of the preset media material can be displayed. If the preset media material is an image, the preview content can be a large-image preview of the preset media material (for example, enlarging the thumbnail in a display control to display a larger preset media material). If the preset media material is a video, the preview content can be a playback of the preset media material (for example, playing the preset media material in a small window or other playback control). In addition, users can also modify or delete preset media materials in the media management interface, and the modification can include, but is not limited to, modifying any attribute information.

[0069] Corresponding to the method for generating editing templates in the above embodiments, Figure 4 is a structural block diagram of an editing template generation device provided in this disclosure embodiment. For ease of explanation, only the parts related to this disclosure embodiment are shown. Referring to Figure 4, the editing template generation device 400 includes: a template selection unit 401, a material selection unit 402, and a generation unit 403.

[0070] The template selection unit 401 is used to select an initial editing template in response to a template selection instruction; wherein the initial editing template includes a first media material, first editing information and a first replacement mark, the first editing information is used to indicate the editing operation on the first media material, and the first replacement mark is used to indicate that the first media material in the initial editing template is replaced with a second media material to generate a first target video.

[0071] The material selection unit 402 is used to determine a third media material based on the initial editing template, wherein the number of the third media material is not less than the number of the first media material in the initial editing template.

[0072] The generation unit 403 is used to replace the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template; wherein, the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information being used to indicate editing operations on at least one media material from the third media material, and the second replacement marker being used to indicate replacing at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

[0073] In one or more embodiments of this disclosure, when the generation unit 403 replaces the first media material in the initial editing template using at least one media material from the third media material, it is configured to: in response to the fact that the length of at least one media material from the third media material is greater than the length of the first media material, obtain a media material fragment from at least one media material from the third media material according to the length of the first media material, and replace the first media material with the media material fragment.

[0074] In one or more embodiments of this disclosure, when the generation unit 403 replaces the first media material in the initial editing template using at least one media material from the third media material, it is configured to: in response to determining that the first media material has a preset stop-motion effect based on the first editing information, extract video frames from at least one media material from the third media material, add stop-motion effects to the video frames, and configure corresponding stop-motion effect editing operation information in the second editing information.

[0075] In one or more embodiments of this disclosure, after the generation unit 403 replaces the first media material in the initial editing template with at least one media material from the third media material to generate the target editing template, it is further configured to: determine whether the smoothness of the target editing template meets a preset condition, and / or whether a transition needs to be added to the target editing template, and in response to determining that the smoothness does not meet the preset condition and / or a transition needs to be added to the target editing template, perform frame interpolation on the target editing template.

[0076] In one or more embodiments of this disclosure, when the material selection unit 402 determines the third media material according to the initial editing template, it is configured to: obtain the target attributes of the third media material, filter out candidate media materials from the media material library according to the target attributes, and display them; and in response to the media material selection instruction, select the third media material from the candidate media materials.

[0077] In one or more embodiments of this disclosure, when the material selection unit 402 acquires the target attribute of the third media material and filters candidate media materials from the media material library based on the target attribute, it is configured to: in response to a target attribute selection instruction, select a target attribute from multiple candidate attributes and filter candidate media materials from the media material library based on the target attribute; and / or acquire the attribute of the first media material, determine the attribute of the first media material as the target attribute, and filter candidate media materials from the media material library based on the target attribute.

[0078] In one or more embodiments of this disclosure, when the generation unit 403 replaces the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template, it is configured to: divide all the third media materials into multiple groups, wherein the number of the third media materials in each group is equal to the number of the first media materials; replace the first media material in the initial editing template with the third media material from any group to generate a target editing template.

[0079] In one or more embodiments of this disclosure, when the material selection unit 402 determines the third media material according to the initial editing template, it is further configured to: determine the number of target editing templates that can be generated based on the number of the first media material and the number of the third media material, and display the result to prompt the user to continue selecting the third media material based on the number of target editing templates, or to end the selection of the third media material.

[0080] In one or more embodiments of this disclosure, the material selection unit 402 is further configured to: in response to the number of the third media material being less than the number of the first media material, display that the number of target editing templates that can be generated is 0, or display a prompt message to continue selecting the third media material.

[0081] In one or more embodiments of this disclosure, after generating the target editing template, the generation unit 403 is further configured to: obtain any frame from the generated target editing template and determine it as the cover of the generated target editing template; and / or obtain preset text from a preset text library and determine it as the title text or template description text of the generated target editing template.

[0082] In one or more embodiments of this disclosure, before filtering candidate media materials from the media material library according to the target attribute, the material selection unit 402 is further configured to: obtain a list of media materials to be imported, the list of media materials to be imported including attribute information and paths of each media material to be imported into the media material library; and parse the list of media materials to be imported to add each media material included in the list of media materials to be imported into the media material library.

[0083] In one or more embodiments of this disclosure, the generation unit 403 is further configured to regenerate the target editing template based on the initial editing template and the third media material in response to a regeneration instruction.

[0084] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0085] Referring to Figure 5, a schematic diagram of the structure of an electronic device 500 suitable for implementing embodiments of the present disclosure is shown. The electronic device 500 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 5 is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present disclosure.

[0086] As shown in Figure 5, the electronic device 500 may include a processing unit (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. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0087] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 shows an electronic device 500 with various devices, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0088] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.

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

[0090] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0091] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0092] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0094] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0095] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

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

[0097] In a first aspect, according to one or more embodiments of this disclosure, a method for generating an editing template is provided, comprising: selecting an initial editing template in response to a template selection instruction; wherein the initial editing template includes first media material, first editing information, and a first replacement marker, the first editing information indicating an editing operation on the first media material, and the first replacement marker indicating a replacement of the first media material in the initial editing template with a second media material to generate a first target video; determining a third media material based on the initial editing template, wherein the number of the third media material is not less than the number of the first media material in the initial editing template; and replacing the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template; wherein the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information indicating an editing operation on at least one media material from the third media material, and the second replacement marker indicating a replacement of at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

[0098] According to one or more embodiments of this disclosure, replacing the first media material in the initial editing template with at least one media material from the third media material includes: if the length of at least one media material from the third media material is greater than the length of the first media material, then obtaining a media material fragment from at least one media material from the third media material according to the length of the first media material, and replacing the first media material with the media material fragment.

[0099] According to one or more embodiments of this disclosure, the length of the media material segment is equal to the length of the first media material.

[0100] According to one or more embodiments of this disclosure, replacing the first media material in the initial editing template with at least one media material from the third media material includes: if it is determined from the first editing information that the first media material has a preset freeze-frame effect, then extracting video frames from at least one media material from the third media material, adding freeze-frame effects to the video frames, and configuring the corresponding freeze-frame effect editing operation information in the second editing information.

[0101] According to one or more embodiments of this disclosure, after replacing the first media material in the initial editing template with at least one media material from the third media material to generate the target editing template, the method further includes: determining the smoothness of the target editing template, and / or whether a transition needs to be added to the target editing template; if it is determined that the smoothness does not meet the preset conditions, and / or a transition needs to be added to the target editing template, then frame interpolation is performed on the target editing template.

[0102] According to one or more embodiments of this disclosure, determining the third media material based on the initial editing template includes: obtaining the target attributes of the third media material, filtering candidate media materials from a media material library based on the target attributes, and displaying them; and selecting the third media material from the candidate media materials in response to a media material selection instruction.

[0103] According to one or more embodiments of this disclosure, obtaining the target attribute of the third media material and filtering candidate media materials from the media material library based on the target attribute includes: in response to a target attribute selection instruction, selecting a target attribute from a plurality of candidate attributes, and filtering candidate media materials from the media material library based on the target attribute; and / or obtaining the attribute of the first media material, determining the attribute of the first media material as the target attribute, and filtering candidate media materials from the media material library based on the target attribute.

[0104] According to one or more embodiments of this disclosure, replacing the first media material in the initial editing template with at least one of the third media materials to generate a target editing template includes: dividing all the third media materials into multiple groups, wherein the number of the third media materials in each group is equal to the number of the first media materials; replacing the first media material in the initial editing template with the third media materials from any group to generate a target editing template.

[0105] According to one or more embodiments of this disclosure, determining the third media material based on the initial editing template further includes: determining the number of target editing templates that can be generated based on the number of the first media materials and the number of the third media materials, and displaying the result to prompt the user to continue selecting third media materials based on the number of target editing templates, or to end the selection of third media materials.

[0106] According to one or more embodiments of this disclosure, the method further includes: if the number of the third media materials is less than the number of the first media materials, then displaying that the number of target editing templates that can be generated is 0, or displaying a prompt message to continue selecting the third media materials.

[0107] According to one or more embodiments of this disclosure, after generating the target editing template, the method further includes: obtaining any frame from the generated target editing template and determining it as the cover of the generated target editing template; and / or obtaining preset text from a preset text library and determining it as the title text or template description text of the generated target editing template.

[0108] According to one or more embodiments of this disclosure, before filtering candidate media materials from the media material library based on the target attribute, the method further includes: obtaining a list of media materials to be imported, the list of media materials to be imported including attribute information and paths of each media material to be imported into the media material library; and parsing the list of media materials to be imported to add each media material included in the list of media materials to be imported into the media material library.

[0109] According to one or more embodiments of this disclosure, the method further includes: in response to a regeneration instruction, regenerating the target editing template based on the initial editing template and the third media material.

[0110] Secondly, according to one or more embodiments of this disclosure, an editing template generation device is provided, comprising: a template selection unit, configured to select an initial editing template in response to a template selection instruction; wherein the initial editing template includes first media material, first editing information, and a first replacement marker, the first editing information indicating an editing operation on the first media material, and the first replacement marker indicating the replacement of the first media material in the initial editing template with a second media material to generate a first target video; a material selection unit, configured to determine a third media material based on the initial editing template, wherein the number of the third media material is not less than the number of the first media material in the initial editing template; and a generation unit, configured to replace the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template; wherein the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information indicating an editing operation on at least one media material from the third media material, and the second replacement marker indicating the replacement of at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

[0111] According to one or more embodiments of this disclosure, when the generation unit replaces the first media material in the initial editing template with at least one media material from the third media material, it is configured to: if the length of at least one media material from the third media material is greater than the length of the first media material, obtain a media material fragment from at least one media material from the third media material according to the length of the first media material, and replace the first media material with the media material fragment.

[0112] According to one or more embodiments of this disclosure, the length of the media material segment is equal to the length of the first media material.

[0113] According to one or more embodiments of this disclosure, when the generation unit replaces the first media material in the initial editing template using at least one media material from the third media material, it is configured to: if it is determined from the first editing information that the first media material has a preset freeze-frame effect, extract video frames from at least one media material from the third media material, add freeze-frame effects to the video frames, and configure the corresponding freeze-frame effect editing operation information in the second editing information.

[0114] According to one or more embodiments of this disclosure, after the generation unit replaces the first media material in the initial editing template with at least one media material from the third media material to generate the target editing template, it is further configured to: determine the smoothness of the target editing template, and / or whether a transition needs to be added to the target editing template; if it is determined that the smoothness does not meet the preset conditions, and / or a transition needs to be added to the target editing template, then frame interpolation is performed on the target editing template.

[0115] According to one or more embodiments of this disclosure, when the material selection unit determines a third media material based on the initial editing template, it is configured to: obtain the target attributes of the third media material, filter out candidate media materials from the media material library based on the target attributes, and display them; and, in response to a media material selection instruction, select the third media material from the candidate media materials.

[0116] According to one or more embodiments of this disclosure, when the material selection unit acquires the target attribute of the third media material and filters candidate media materials from the media material library based on the target attribute, it is configured to: select a target attribute from multiple candidate attributes in response to a target attribute selection instruction, and filter candidate media materials from the media material library based on the target attribute; and / or acquire the attribute of the first media material, determine the attribute of the first media material as the target attribute, and filter candidate media materials from the media material library based on the target attribute.

[0117] According to one or more embodiments of this disclosure, when the generation unit replaces the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template, it is configured to: divide all the third media materials into multiple groups, wherein the number of the third media materials in each group is equal to the number of the first media materials; replace the first media material in the initial editing template with the third media material from any group to generate a target editing template.

[0118] According to one or more embodiments of this disclosure, when the material selection unit determines the third media material based on the initial editing template, it is further configured to: determine the number of target editing templates that can be generated based on the number of the first media material and the number of the third media material, and display the result to prompt the user to continue selecting the third media material based on the number of target editing templates, or to end the selection of the third media material.

[0119] According to one or more embodiments of this disclosure, the material selection unit is further configured to: if the number of the third media materials is less than the number of the first media materials, display that the number of target editing templates that can be generated is 0, or display a prompt message to continue selecting the third media materials.

[0120] According to one or more embodiments of this disclosure, after generating the target editing template, the generation unit is further configured to: obtain any frame from the generated target editing template and determine it as the cover of the generated target editing template; and / or obtain preset text from a preset text library and determine it as the title text or template description text of the generated target editing template.

[0121] According to one or more embodiments of this disclosure, before the material selection unit filters out candidate media materials from the media material library based on the target attribute, it is further configured to: obtain a list of media materials to be imported, the list of media materials to be imported including attribute information and paths of each media material to be imported into the media material library; and parse the list of media materials to be imported to add each media material included in the list of media materials to be imported into the media material library.

[0122] According to one or more embodiments of this disclosure, the generation unit is further configured to regenerate the target editing template based on the initial editing template and the third media material in response to a regeneration instruction.

[0123] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory; the memory storing computer-executable instructions; the at least one processor executing the computer-executable instructions stored in the memory, such that the at least one processor performs the method for generating an editing template as described in the first aspect above and various possible designs of the first aspect.

[0124] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the method for generating an editing template as described in the first aspect and various possible designs of the first aspect is implemented.

[0125] Fifthly, according to one or more embodiments of the present disclosure, a computer program product is provided, including computer execution instructions that, when executed by a processor, implement the method for generating an editing template as described in the first aspect and various possible designs of the first aspect.

[0126] In a sixth aspect, according to one or more embodiments of the present disclosure, a computer program is provided, comprising: instructions that, when executed by a processor, cause the processor to perform the method for generating an editing template as described in the first aspect above and various possible designs of the first aspect.

[0127] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0128] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0129] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for generating an editing template, comprising: In response to a template selection instruction, an initial editing template is selected; wherein, the initial editing template includes a first media material, first editing information, and a first replacement marker, the first editing information being used to indicate editing operations on the first media material, and the first replacement marker being used to indicate replacing the first media material in the initial editing template with a second media material to generate a first target video; Based on the initial editing template, a third media material is determined, wherein the number of the third media material is not less than the number of the first media material in the initial editing template; and The first media material in the initial editing template is replaced by at least one media material from the third media material to generate a target editing template; wherein the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information being used to indicate editing operations on at least one media material from the third media material, and the second replacement marker being used to indicate replacing at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

2. The method for generating an editing template according to claim 1, wherein, The step of replacing the first media material in the initial editing template with at least one media material from the third media material includes: In response to the fact that the length of at least one of the third media materials is greater than the length of the first media material, a media material fragment is obtained from at least one of the third media materials according to the length of the first media material, and the first media material is replaced with the media material fragment.

3. The method for generating an editing template according to claim 2, wherein, The length of the media material segment is equal to the length of the first media material.

4. The method for generating an editing template according to any one of claims 1 to 3, wherein, The step of replacing the first media material in the initial editing template with at least one media material from the third media material includes: In response to determining that the first media material has a preset stop-motion effect based on the first editing information, video frames are extracted from at least one of the third media materials, and stop-motion effects are added to the video frames. The corresponding stop-motion effect editing operation information is configured in the second editing information.

5. The method for generating an editing template according to any one of claims 1 to 4, further comprising: After replacing the first media material in the initial editing template with at least one of the third media materials to generate the target editing template, it is determined whether the smoothness of the target editing template meets the preset conditions, and / or whether a transition needs to be added to the target editing template. In response to determining that the smoothness does not meet the preset conditions and / or a transition needs to be added to the target editing template, the target editing template is frame-filled.

6. The method for generating an editing template according to any one of claims 1 to 5, wherein, The step of determining the third media material based on the initial editing template includes: Obtain the target attributes of the third media material, filter candidate media materials from the media material library based on the target attributes, and display them; and In response to the media material selection instruction, the third media material is selected from the candidate media materials.

7. The method for generating an editing template according to claim 6, wherein, The step of obtaining the target attributes of the third media material and filtering candidate media materials from the media material library based on the target attributes includes: In response to a target attribute selection instruction, a target attribute is selected from multiple candidate attributes, and candidate media materials are filtered from the media material library based on the target attribute; and / or Obtain the attributes of the first media material, determine the attributes of the first media material as target attributes, and filter candidate media materials from the media material library based on the target attributes.

8. The method for generating an editing template according to any one of claims 1 to 7, wherein, The step of replacing the first media material in the initial editing template with at least one media material from the third media material to generate the target editing template includes: All the third media materials are divided into multiple groups, wherein the number of third media materials in each group is equal to the number of first media materials; the first media materials in the initial editing template are replaced with the third media materials from any group to generate a target editing template.

9. The method for generating an editing template according to claim 8, wherein, The step of determining the third media material based on the initial editing template includes: The number of target editing templates that can be generated is determined based on the number of the first media materials and the number of the third media materials, and is displayed to prompt the user to continue selecting third media materials based on the number of target editing templates, or to end the selection of third media materials.

10. The method for generating an editing template according to claim 9, further comprising: In response to the fact that the number of the third media material is less than the number of the first media material, the system displays that the number of target editing templates that can be generated is 0, or displays a prompt message to continue selecting the third media material.

11. The method for generating an editing template according to any one of claims 1 to 10, wherein, After generating the target editing template, the generation method further includes: Obtain any frame from the generated target editing template and determine it as the cover of the generated target editing template; and / or Retrieve preset text from the preset text library and determine it as the title text or template description text for generating the target editing template.

12. The method for generating an editing template according to claim 6 or 7, further comprising: Before selecting candidate media materials from the media material library based on the target attributes, a list of media materials to be imported is obtained. The list of media materials to be imported includes the attribute information and path of each media material to be imported into the media material library. and The list of media materials to be imported is parsed to add each media material included in the list to the media material library.

13. The method for generating an editing template according to any one of claims 1 to 12, further comprising: In response to the regeneration instruction, the target editing template is regenerated based on the initial editing template and the third media material.

14. A device for generating editing templates, comprising: A template selection unit is used to select an initial editing template in response to a template selection instruction; wherein the initial editing template includes a first media material, first editing information and a first replacement mark, the first editing information is used to indicate the editing operation on the first media material, and the first replacement mark is used to indicate that the first media material in the initial editing template is replaced with a second media material to generate a first target video; The material selection unit is used to determine third media materials based on the initial editing template, wherein the number of third media materials is not less than the number of first media materials in the initial editing template; and A generation unit is configured to replace the first media material in the initial editing template with at least one media material from the third media material to generate a target editing template; wherein the target editing template includes at least one media material from the third media material, second editing information, and a second replacement marker, the second editing information being used to indicate editing operations on at least one media material from the third media material, and the second replacement marker being used to indicate replacing at least one media material from the third media material in the target editing template with a fourth media material to generate a second target video.

15. An electronic device comprising: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method for generating an editing template as described in any one of claims 1 to 13.

16. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the method for generating an editing template as described in any one of claims 1 to 13.

17. A computer program product comprising computer-executable instructions, which, when executed by a processor, implement the method for generating an editing template as described in any one of claims 1 to 13.

18. A computer program comprising: Instructions, when executed by a processor, cause the processor to perform the method for generating an editing template as described in any one of claims 1 to 13.