Video editing method and device, equipment and medium

By directly switching templates within the video editing page and automatically mapping materials, the complex template switching operation in the existing technology is solved, and a more efficient video editing process is achieved.

CN120238694APending Publication Date: 2025-07-01BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311841175.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

During the switching process of existing video editing templates, users need to frequently manually select and re-import the materials, which is complex and inefficient.

Method used

Provides a video editing method and device that allows direct switching of templates within the editing page and automatically maps the old template's material to the new template, reducing repeated import steps.

Benefits of technology

It simplifies the template switching process, improves video processing efficiency, reduces user operation complexity, and enhances the convenience and performance of video editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238694A_ABST
    Figure CN120238694A_ABST
Patent Text Reader

Abstract

The invention provides a video editing method and device, equipment and a medium. In one method, a first video editing template is obtained; wherein the first video editing template is used for indicating a filling slot position of the at least one first video clip and a first editing effect applied to the at least one first video clip. Obtaining at least one first image material; and the at least one first image material corresponds to the filling slot of the at least one first video clip and is used for filling the first video editing template to generate the at least one first video clip. And generating a first video editing result according to the first video editing template and the at least one first image material. And in response to the template switching operation, obtaining a second video editing template. Determining at least one second image material according to the at least one first image material; and generating a second video editing result according to the second video editing template and the at least one second image material. In this way, previously imported image materials can be directly applied to subsequent templates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Exemplary implementations of the present disclosure generally relate to video processing, and particularly to video editing methods, apparatuses, devices, and computer-readable storage media. Background Art

[0002] Currently, a variety of video processing solutions have been proposed, and users can obtain videos and edit them according to their expectations. For example, users can set background music, add text, and / or special effects such as stickers to the video. To facilitate user operations, users can use templates to process videos. Templates can define various special effects. After applying a template to a video to be processed, the video will have various special effects defined by the template. However, the existing solutions for template operations are not satisfactory, and users have to perform complex manual operations to switch templates. For example, when switching templates, users have to reselect each video material to be used, and so on. At this time, it is desirable to switch the template of a video in a simpler and more effective way. Summary of the Invention

[0003] In a first aspect of the present disclosure, a video editing method is provided. The method includes: obtaining a first video editing template, where the first video editing template is used to indicate filling slots of at least one first video segment and a first editing effect applied to the at least one first video segment; obtaining at least one first video material, where the at least one first video material corresponds to the filling slots of the at least one first video segment and is used to fill the first video editing template to generate the at least one first video segment; generating a first video editing result according to the first video editing template and the at least one first video material; in response to a template switching operation, obtaining a second video editing template, where the second video editing template is used to indicate filling slots of at least one second video segment and a second editing effect applied to the at least one second video segment; determining at least one second video material according to the at least one first video material, where the at least one second video material corresponds to the filling slots of the at least one second video segment and is used to fill the second video editing template to generate the at least one second video segment; generating a second video editing result according to the second video editing template and the at least one second video material.

[0004] In a second aspect of the present disclosure, a video editing device is provided. The device includes: a first template acquisition module configured to acquire a first video editing template; wherein the first video editing template is used to indicate the filling slots of at least one first video segment and the first editing effects applied to at least one first video segment; a first material acquisition module configured to acquire at least one first video material; wherein at least one first video material corresponds to the filling slots of at least one first video segment and is used to fill the first video editing template to generate at least one first video segment; a first generation module configured to generate a first video editing result according to the first video editing template and at least one first video material; a second template acquisition module configured to acquire a second video editing template in response to a template switching operation; wherein the second video editing template is used to indicate the filling slots of at least one second video segment and the second editing effects applied to at least one second video segment; a second material acquisition module configured to determine at least one second video material according to at least one first video material; wherein at least one second video material corresponds to the filling slots of at least one second video segment and is used to fill the second video editing template to generate at least one second video segment; a second generation module configured to generate a second video editing result according to the second video editing template and at least one second video material.

[0005] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions when executed by the at least one processing unit causing the electronic device to perform the method according to the first aspect of the present disclosure.

[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, the computer program when executed by a processor causing the processor to implement the method according to the first aspect of the present disclosure.

[0007] It should be understood that the content described in this part is not intended to define the key features or important features of the implementation manners of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. Description of the Drawings

[0008] Hereinafter, in combination with the drawings and with reference to the following detailed description, the above and other features, advantages and aspects of the various implementation manners of the present disclosure will become more obvious. In the drawings, the same or similar reference numerals denote the same or similar elements, where:

[0009] Figure 1Shows a block diagram of an application environment according to an exemplary implementation of the present disclosure;

[0010] Figure 2 Shows a video editing block diagram according to some implementations of the present disclosure;

[0011] Figure 3 Shows a block diagram of an editing page according to some implementations of the present disclosure;

[0012] Figures 4A to 4D Shows a block diagram of a video editing process according to some implementations of the present disclosure;

[0013] Figure 5 Shows a block diagram of a prompt message according to some implementations of the present disclosure;

[0014] Figure 6 Shows a block diagram of a selection page according to some implementations of the present disclosure;

[0015] Figure 7 Shows a block diagram of the process of downloading a template according to some implementations of the present disclosure;

[0016] Figure 8 Shows a block diagram of the download failure process according to some implementations of the present disclosure;

[0017] Figure 9 Shows a block diagram of the download success process according to some implementations of the present disclosure;

[0018] Figure 10 Shows a block diagram of the background download process according to some implementations of the present disclosure;

[0019] Figure 11 Shows a block diagram of selecting a candidate template according to some implementations of the present disclosure;

[0020] Figure 12 Shows a block diagram of the detailed information of a candidate template according to some implementations of the present disclosure;

[0021] Figure 13 Shows a block diagram of the process of starting playback according to some implementations of the present disclosure;

[0022] Figure 14 Shows a block diagram of the playback process according to some implementations of the present disclosure;

[0023] Figure 15 Shows a block diagram of the editing page after confirming a candidate template according to some implementations of the present disclosure;

[0024] Figure 16A block diagram showing the switching of a first video editing result according to some implementations of the present disclosure;

[0025] Figure 17 A block diagram showing a prompt message according to some implementations of the present disclosure;

[0026] Figure 18 A block diagram showing a prompt message according to some implementations of the present disclosure;

[0027] Figure 19 A block diagram showing the template position according to some implementations of the present disclosure;

[0028] Figure 20 A flowchart showing a video editing method according to some implementations of the present disclosure;

[0029] Figure 21 A block diagram showing a video editing apparatus according to some implementations of the present disclosure; and

[0030] Figure 22 A block diagram showing a device capable of implementing multiple implementations of the present disclosure. Detailed Implementations

[0031] Implementations of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some implementations of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the implementations set forth herein. Instead, these implementations are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and implementations of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0032] In the description of the implementations of the present disclosure, the term "including" and its like should be understood as open inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one implementation" or "the implementation" should be understood as "at least one implementation". The term "some implementations" should be understood as "at least some implementations". There may also be other explicit and implicit definitions below. As used herein, the term "model" may represent the association relationship between various data. For example, the above association relationship can be obtained based on various technical solutions known currently and / or to be developed in the future.

[0033] It can be understood that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and related provisions.

[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to users and the authorization of users should be obtained through appropriate means in accordance with relevant laws and regulations.

[0035] For example, when responding to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the technical solutions of the present disclosure based on the prompt message.

[0036] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user may, for example, be in the form of a pop-up window, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry selection controls for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0037] It is understandable that the above process of notifying and obtaining user authorization is only illustrative and does not constitute a limitation on the implementation manner of the present disclosure, and other manners that meet relevant laws and regulations can also be applied to the implementation manner of the present disclosure.

[0038] The term "in response to" used herein represents a state in which a corresponding event occurs or a condition is satisfied. It will be understood that the execution timing of the subsequent actions executed in response to the event or condition and the time when the event occurs or the condition is established are not necessarily strongly correlated. For example, in some cases, the subsequent actions can be executed immediately when the event occurs or the condition is established; while in other cases, the subsequent actions can be executed after a period of time after the event occurs or the condition is established.

[0039] Example environment

[0040] Currently, a variety of video processing solutions have been proposed. See Figure 1 Describe the application environment according to an exemplary implementation manner of the present disclosure. The user can select a template to be used to process the video. For example, in a video editing application, page 110 as shown can be presented. Figure 1 The Figure 1 shows a block diagram 100 of an application environment according to an exemplary implementation manner of the present disclosure. As Figure 1As shown, a page 110 for editing a video can be provided. In page 110, multiple controls can be provided. For example, control 120 is used to import the video to be processed (also referred to as the first video editing result), control 130 is used to add background music to the video, control 140 is used to add text to the video, and control 150 is used to add stickers to the video, and so on. It should be understood that Figure 1 each of the controls in

[0041] is merely illustrative. Alternatively and / or additionally, page 110 may include more, fewer, or different controls. For example, the user can perform a swipe operation at the bottom of the page to present more controls.

[0042] In page 110, the user can process the video using a selected template and, when a satisfactory effect is obtained, export the generated video through control 160. Here, the video editing objective may include indicating the filling slots for at least one video segment and the editing effects to be applied to at least one video segment. However, during the process of editing the video using the template, the user may not be satisfied with the effect of the current template. The user has to exit page 110 via control 170 and return to the template selection page. At this time, the editing result in page 110 will be discarded, and the user needs to re-select a new template and perform subsequent editing processes. The user may keep trying multiple templates until a satisfactory effect is obtained and then export the video.

[0043] Overview of video editing

[0044] To at least partially address the deficiencies in the prior art, according to an exemplary implementation of the present disclosure, a video editing method is proposed. Generally speaking, a switching control can be provided in the editing page to allow the user to directly switch templates during the process of editing the current video. In this way, the user does not have to switch back and forth between the editing page and the template selection page, thereby improving the video processing efficiency.

[0045] See Figure 2 A summary of an exemplary implementation of the present disclosure is described. Figure 2 A video editing block diagram 200 according to some implementations of the present disclosure is shown. As Figure 2 shown, in a page 210 for editing the first video editing result (for example, it can be called the editing page), a switching control 220 for switching the template of the first video editing result can be presented. As Figure 2As shown, the switching control 220 is aligned with and located at the forefront of other controls for video editing (such as video, music, text, stickers, etc.), and separators can be used to separate the individual controls.

[0046] The switching control 220 can allow the user to switch the template of the video without exiting the page 210. For example, the user can interact with the switching control 220. Upon detecting an interaction with the switching control 220 (which can be referred to as a first interaction operation), a page 230 for switching templates (such as a switching page) can be presented.

[0047] As Figure 2 As shown on the right, the page 230 can include a selection area 250, which can include multiple candidate templates for editing the first video editing result, such as templates 232, 234, 236, and 238, etc. The user can operate on the page 230, such as selecting a desired template. Alternatively and / or additionally, the page 230 can further include a preview area 260, which can present a second video editing result generated by editing the first video editing result using the selected second video editing template. At this time, the user can directly view the editing effect and can press the control 242 to confirm the selection of a certain candidate template, or press the control 240 to exit the template switching process.

[0048] According to an example implementation of the present disclosure, a first video editing template can be obtained; wherein, the first video editing template is used to indicate the filling slots of at least one first video segment and the first editing effect applied to at least one first video segment. At least one first video image material can be obtained; wherein, the at least one first video image material corresponds to the filling slots of at least one first video segment and is used to fill the first video editing template to generate at least one first video segment. According to the first video editing template and the at least one first video image material, a first video editing result is generated.

[0049] Specifically, the user can switch to a second video editing template during the process of processing the video using the first video editing template. During the switching process, the user does not have to re-import video image materials into the respective filling slots of the second video editing template, but can continue to use the video image materials already filled in the respective slots of the old template in the new template. The user can perform a template switching operation, and in response to this template switching operation, a second video editing template can be obtained; wherein, the second video editing template is used to indicate the filling slots of at least one second video segment and the second editing effect applied to at least one second video segment. In this way, a new video editing template can be directly selected.

[0050] Further, at least one second video clip can be determined based on at least one first video clip; wherein, the at least one second video clip corresponds to the filling slots of at least one second video segment and is used to fill a second video editing template to generate at least one second video segment. A second video editing result is generated according to the second video editing template and the at least one second video clip.

[0051] Using the exemplary implementation of the present disclosure, a desired template can be selected and subsequent editing operations can be performed without exiting the editing page. In this way, during the template switching process, the materials imported based on the previous old template can be directly imported into the switched new template, and then a draft preview can be generated, without having to exit the editing process and re-import the materials. The operation complexity of the user can be reduced, and thus the video processing performance can be improved.

[0052] Detailed process of video editing

[0053] The overview of the template switching process has been described. In the following, more details according to an exemplary implementation of the present disclosure will be described. According to an exemplary implementation of the present disclosure, during the process of editing a video, a first video editing template can be obtained; wherein, the first video editing template is used to indicate the filling slots of at least one first video segment and the first editing effects applied to the at least one first video segment. Specifically, the first video editing template can include one or more filling slots, and desired video clips can be filled into each slot.

[0054] Further, at least one first video clip can be obtained; wherein, the at least one first video clip corresponds to the filling slots of the at least one first video segment and is used to fill the first video editing template to generate the at least one first video segment. It should be understood that the video clips here can include video data. For example, a video data can be imported into one slot.

[0055] It should be understood that the slots can have specified lengths. For example, the first video editing template can include N1 slots, and each slot can have the same length. Alternatively and / or additionally, each slot can have different lengths. For example, the length of the first slot is 1 second, the length of the second slot is 3 seconds,..., the length of the N1th slot is 2 seconds, and so on. Video clips can be filled into the slots, and the length of the filled video clips is the same as the length of the slots. If the length of the video clip is the same as the length of the slot, it can be directly filled. If the length of the video clip is different from the length of the slot, operations such as scaling, cropping, or supplementing can be performed on the video clip to achieve the filling process.

[0056] Further, a first video editing result can be generated based on the first video editing template and the at least one first video material. At this time, the first video editing result will include N1 video materials, and each video material is fused into a video according to the first editing effect.

[0057] According to an exemplary implementation of the present disclosure, the generated first video editing result can include at least any one of a preview draft or a finally exported video file. For example, a preview draft of the first video editing result can be presented based on the first video editing template and the at least one first video material. At this time, the video editing process is still in progress, and the user can adjust the preview draft according to their own expectations. For example, the background music can be modified, text can be added, and so on.

[0058] For another example, a video file of the first video editing result can be exported based on the first video editing template and the at least one first video material. Assuming that the user believes that the preview draft meets their own expectations, the final video file can be exported. Using the exemplary implementation of the present disclosure, it is convenient for the user to operate during the video editing process, and thus the desired video can be generated in a more convenient and effective manner.

[0059] According to an exemplary implementation of the present disclosure, the user can switch templates to try other video editing effects. It should be understood that the above Figure 2 only shows an example position for presenting the switching control 220. Alternatively and / or additionally, the switching control 220 can be presented at other positions on the page 210. Figure 3 The block diagram 300 of an editing page according to some implementations of the present disclosure is shown. As Figure 3 shown, the switching control is aligned with other controls for editing the video (such as video, music, text, stickers, etc.) and is located at the end. Alternatively and / or additionally, the switching control can be presented at other positions at the bottom of the page 310 for performing editing operations. For example, a control for switching templates can be presented at the position shown in the box 320 (such as the right side as shown in the box 330). Alternatively and / or additionally, the switching control can be presented at other positions in the control bar, such as the middle position.

[0060] Hereinafter, refer to Figures 4A to 4D to describe the specific process of determining the video materials for each filling slot indicated by the second video editing template. According to an exemplary implementation of the present disclosure, the number of filling slots indicated by each video editing template can be different. Figure 4A The block diagram 400A of a video editing process according to some implementations of the present disclosure is shown. As Figure 4AAs shown, the first video editing template 410 may indicate slots 412, …, 414, …, and 416. At this time, the number of slots in the first video editing template 410 may be represented as N1. The second video editing template 420 may indicate slots 422, …, 424, …, and 426. At this time, the number of slots in the second video editing template 420 may be represented as N2.

[0061] According to an example implementation of the present disclosure, during the process of determining at least one second video material, the first quantity of filled slots of at least one first video segment and the second quantity of filled slots of at least one second video segment may be compared. Then, based on the comparison result of the quantities, at least one second video material may be selected from at least one first video material. Specifically, N1 and N2 may be compared, and then the specific manner of filling video materials into each slot of the second video editing template 420 may be determined. In this way, the corresponding relationship of the slots in each template before and after switching can be determined in a simpler and more effective manner.

[0062] According to an example implementation of the present disclosure, if it is determined that the first quantity is less than the second quantity, at least one first video material may be selected as at least a part of at least one second video material. In other words, the quantity of video materials involved in the old template is less than the number of slots involved in the new template, so only a part of the slots in the new template can be filled. Refer to Figure 4B for more information. The Figure 4B shows a block diagram 400B of a video editing process according to some implementations of the present disclosure.

[0063] As Figure 4B shown, N1 < N2. At this time, the relevant video materials of slots 412, …, and 416 will be respectively mapped to slots 422, …, 424, and one or more slots at the tail of the second video editing template 420 may be empty. Specifically, assume that the first video editing template includes 3 slots and the second video editing template includes 4 slots. At this time, the 3 video materials corresponding to the 3 slots in the first video editing template may be selected to fill the first to third slots in the second video editing template respectively, and the fourth slot is empty at this time.

[0064] According to an example implementation of the present disclosure, it may be determined whether there are blank segments in the filled slots of at least one second video segment. If there are blank segments, predetermined video material segments may be filled into the blank segments. Here, the blank segments may include, for example, blank slots that have not been filled with video materials (such as Figure 4B slot 426). Predetermined video material segments may be filled into the blank segments.

[0065] According to an example implementation of the present disclosure, a predetermined video material segment may include, for example: pre-specified video materials, materials with a predetermined color (such as a black screen, a white screen, or other predetermined videos), results obtained by copying video materials in one or more slots before a blank slot, and so on. In this way, blank slots can be avoided during the video editing process, thereby preventing potential errors that may occur in subsequent processes.

[0066] According to an example implementation of the present disclosure, if it is determined that the first quantity is not less than (i.e., N1≥N2) the second quantity, at least one second video material can be selected from at least one first video material, and the quantity of at least one second video material is equal to the second quantity. In other words, at this time, the first video editing template involves a larger quantity of video materials, and thus only a part of the video materials can be selected. For example, the first N2 video materials can be selected from N1 video materials to fill the N2 slots in the second video editing template respectively.

[0067] See Figure 4C for more details. The Figure 4C shows a block diagram 400C of a video editing process according to some implementations of the present disclosure. As Figure 4C shown, N1 > N2. At this time, the relevant video materials in slots 412,..., 414 will be respectively mapped to slots 422,..., 426, and the relevant video material in slot 416 will not be mapped to the second video editing template. In this way, it can be ensured that each slot in the second video editing template corresponds to a video material respectively, and subsequent generation processes can then be executed.

[0068] According to an example implementation of the present disclosure, during the process of selecting video materials and performing filling, a length comparison can be further performed. Specifically, for a first target filling slot in the filling slots of at least one first video segment and a second target filling slot corresponding to the first target slot in the filling slots of at least one second video segment, the first length corresponding to the first target filling slot and the second length of the second target filling slot can be compared. Here, the first length can represent the length of the first target slot or the length of the video material filled into the first target slot.

[0069] Furthermore, based on the result of the length comparison, a target video material corresponding to the first target filling slot can be selected from at least one first video material for filling the second target filling slot. In this way, the filled video material can be matched to the slot length, and the video can be edited in a more accurate manner.

[0070] According to an example implementation of the present disclosure, see Figure 4D for more details regarding filling. TheFigure 4D FIG. 400D is a block diagram showing a video editing process according to some implementations of the present disclosure. As Figure 4D shown, the time length T1 of the first target filling slot 430 can be compared with the time length T2 of the first target filling slot 430. If the comparison result 440 indicates that the first length T1 is greater than the second length T2, a portion matching the second length can be intercepted from the target video material for filling the second target filling slot. In other words, at this time T1>T2, and the first target filling slot 430 corresponds to a longer video material. At this time, a portion with a length of T2 can be intercepted from the target video material, and the intercepted portion can be filled into the second target filling slot 432.

[0071] Alternatively and / or additionally, if the comparison result 440 indicates that the first length T1 is not greater than the second length T2 (i.e., T1≤T2), the target video material can be used to fill at least a portion of the second target filling slot. In other words, only a portion of the second target filling slot is filled and not completely filled. At this time, it can be considered that the second target filling slot involves a blank segment, and a predetermined video material segment can be filled into the blank segment. For example, a pre-specified video material, a material with a predetermined color (e.g., a black screen, a white screen, or other predetermined video), data obtained by copying the last frame image of the target video material, etc. can be filled. Using the example implementations of the present disclosure, the problem of incomplete content in the slot resulting in blank segments in the generated video can be avoided.

[0072] It should be understood that although the above describes the case where T1 represents the time length of the first target filling slot 430, alternatively and / or additionally, in the case where the video material filled into the first target filling slot 430 can be obtained, T1 can represent the length of the video material.

[0073] According to an example implementation of the present disclosure, the second video editing template can be obtained based on multiple methods. For example, in the case of receiving a template switching operation, multiple candidate templates can be presented on a switching page for switching the video editing template, and the multiple candidate templates include the second video editing template. Further, in the case of receiving a first interaction operation for the second video editing template, the second video editing template can be obtained. In this way, it is convenient for the user to select a desired template from multiple candidate templates, thereby improving the video editing speed.

[0074] Specifically, in the case of detecting that the user clicks the switching control, a prompt message indicating whether to allow recommending candidate templates for the first video editing result can be further presented. See Figure 5 for more information, the Figure 5FIG. 500 is a block diagram showing a prompt message according to some implementations of the present disclosure. As Figure 5 shown, a prompt message 510 can be presented to ask the user whether to enable the function of automatically recommending templates. The user can interact with the prompt message 510. For example, the user can press a control 520 to allow the automatic provision of multiple candidate templates; for another example, the user can press a control 522 to reject the automatic provision of candidate templates.

[0075] According to an example implementation of the present disclosure, the interaction between the user and the controls 520 and / or 522 can be detected. In the case where an interaction that allows the recommendation of candidate templates for the first video editing result (for example, referred to as a second interaction operation) is detected, multiple candidate templates can be presented, and the multiple candidate templates include a second video editing template. It should be understood that the multiple candidate templates here are recommended based on the first video editing result. With the example implementation of the present disclosure, with the user's permission, a suitable candidate template can be recommended to the user based on the first video editing result. In this way, the complexity for the user to search for templates from a vast template library can be reduced, thereby improving the video processing performance. Alternatively and / or additionally, in the case where an interaction that does not allow the recommendation of candidate templates for the first video editing result (for example, the user clicks the control 522) is detected, the candidate templates can be provided in other ways. For example, the candidate templates can be provided according to the popularity of the templates and / or other ways.

[0076] According to an example implementation of the present disclosure, the candidate templates can be provided based on multiple ways. For example, the candidate templates can be determined based on at least any one of the following of the first video editing result: the content of the first video editing result, the label of the first video editing result, and the slot information of the first video editing result. Specifically, assuming that the content of the first video editing result involves natural scenery, templates related to natural scenery can be recommended. Alternatively and / or additionally, labels can be set for each video. For example, the label of the first video editing result can be "island vacation", and at this time, templates related to "island" and / or "vacation" can be recommended. Alternatively and / or additionally, the slot information in the first video editing result and the slot information in the template can be counted, and templates with matching slot information are preferentially recommended. Here, a video can include multiple slots, and each slot can include a video segment. In this way, templates with the same number of slots as the first video editing result can be preferentially recommended, thereby facilitating the matching between the video and the template.

[0077] Alternatively and / or additionally, the candidate templates can be determined in multiple ways as described above. Further, the determined candidate templates can be weighted based on different weight coefficients. For example, each weight can satisfy the following formula: W content >W label>W slot In this formula, W content represents the content-related weight, and W label represents the label-related weight, and W slot also represents the label-related weight. The recommended scores of each candidate template can be determined separately, and the above weights can be used to weight the recommended scores, thereby obtaining the final recommended scores of each candidate template. Subsequently, the candidate templates can be sorted according to the recommended scores. In this way, templates more suitable for editing the first video editing result can be recommended to the user in a more accurate and efficient manner.

[0078] Alternatively and / or additionally, the above recommendation process can be implemented based on a machine learning model. The machine learning model here can be a model pre-trained using historical data, and thus the powerful processing ability of the machine learning model can be fully utilized to recommend multiple candidate templates.

[0079] According to an example implementation of the present disclosure, the selection page is as Figure 6 shown, which Figure 6 shows a block diagram 600 of the selection page according to some implementations of the present disclosure. As Figure 6 shown, the first candidate template among multiple candidate templates can be automatically downloaded. Alternatively and / or additionally, the template selected by the user (e.g., the second video editing template) can be downloaded. It should be understood that the first candidate template here can represent any one of the multiple candidate templates. For example, each candidate template can be downloaded one by one in sequence. For example, the candidate template at the top can be downloaded first, and then the subsequent candidate templates can be downloaded, and so on. Specifically, each template can be downloaded one by one in a serial manner. Multiple templates can be downloaded in a parallel manner. For example, multiple templates visible in page 610 can be downloaded simultaneously.

[0080] According to an example implementation of the present disclosure, during the download process, the download progress of the candidate template can be presented in the selection area 260. For example, the download progress can be presented in the form of a progress bar, percentage, etc. In this way, multi-faceted information about the template download process can be provided to the user, facilitating the user to apply the downloaded template after successful download. As Figure 6 shown, after successfully downloading template 232, the template 232 can be applied to the first video editing result. At this time, the first video editing result will be converted into a second video editing result, and the second video editing result can be presented in the preview area 260. In the selection area, a marker 620 can be presented to indicate the currently used template 232. In this way, it is convenient for the user to know the currently selected template.

[0081] According to an example implementation of the present disclosure, the download status of a candidate template can be determined, and then corresponding data can be presented in the preview area. Assuming that the determined download status indicates that the download of the candidate template has not been completed, a prompt message can be presented in the preview area, and this prompt message indicates that the first video editing result is being processed. Refer to Figure 7 for more details, the Figure 7 shows a block diagram 700 of the process of downloading a template according to some implementations of the present disclosure. Assuming that template 234 is in the process of being downloaded, at template 234 on page 710, a marker 730 can be used to indicate the download progress of template 234. Since the download of template 234 has not been completed at this time, a prompt message 720 can be presented in the preview area 260 to inform the user that they need to continue waiting. In this way, it is convenient for the user to understand the download progress, so as to facilitate arranging subsequent video editing operations.

[0082] According to an example implementation of the present disclosure, in the case where the determined download status indicates that the download of the candidate template has failed, a failure message can be presented in the preview area. Figure 8 shows a block diagram 800 of the download failure process according to some implementations of the present disclosure. As shown on page 810, a failure occurs during the process of downloading template 234. At this time, a marker 820 can be presented at template 234 to inform the user that they need to download again. Alternatively and / or additionally, in the preview area 260, a failure message 830 can be presented, and the user can be informed of subsequent operations and / or the reasons for the failure, etc. In this way, it is convenient for the user to understand the download status of each template, so as to perform corresponding subsequent processing.

[0083] According to an example implementation of the present disclosure, in the case where the determined download status indicates that the download of the candidate template has been completed, a second video editing result can be presented in the preview area. Figure 9 shows a block diagram 900 of the download success process according to some implementations of the present disclosure. On page 910, a marker 930 can be presented at template 234 to indicate that target 234 has been successfully downloaded. Alternatively and / or additionally, in the preview area 260, a second video editing result can be presented, and this second video editing result is obtained by applying the downloaded second video editing template to the first video editing result. In this way, the editing effect of the downloaded template can be presented to the user in a timely manner, so that the user can determine whether they need to download other templates.

[0084] According to an example implementation of the present disclosure, during the download of a certain template, a user may be allowed to click on other templates and initiate the process of downloading other templates. Specifically, an interaction (e.g., a third interaction operation) with a third video editing template (e.g., template 236 different from template 234) among multiple candidate templates may be detected. In the case where such an interaction is detected, the download status of the third video editing template may be determined, and then corresponding actions may be performed. Figure 10 FIG. 1000 is a block diagram showing a background download process according to some implementations of the present disclosure.

[0085] As shown on page 1010, during the download of template 234, a user may click on template 236. If the download status of template 236 at this time indicates that the download of template 236 has not been initiated, then template 236 may be downloaded. The download progress of this template may be presented in a selection area. As Figure 10 shown, a marker 1030 may be presented at template 236 to indicate the download progress of template 236. It should be understood that since template 234 has not been completely downloaded, template 234 may be downloaded in the background. At this time, a reduced marker 1040 may be presented at template 234 to indicate the download progress of template 234. Further, a prompt message 1020 may be presented in the preview area 260 to inform the user that the loading is in progress. With the example implementation of the present disclosure, multiple templates may be downloaded in parallel, and the download progress of multiple templates may be presented in real time. In this way, it is convenient for the user to grasp the download status as a whole, thereby facilitating the execution of subsequent processes.

[0086] According to an example implementation of the present disclosure, in the case where it is determined that the download status indicates that the download of a template has been completed, a third video editing result may be presented in the preview area. Here, the third video editing result is obtained by applying the third video editing template. Refer to Figure 11 for more details. The Figure 11 FIG. 1100 is a block diagram showing the selection of candidate templates according to some implementations of the present disclosure. In page 1110, a third video editing result obtained by performing editing using the successfully downloaded template 236 may be presented in the preview area 260. Here, a marker 1120 may indicate the currently used template. In this way, the visual effect of target 236 can be presented to the user immediately after successful download, thereby improving the video editing efficiency.

[0087] It should be understood that each template in the accompanying drawings only schematically shows the cover image of the template. Alternatively and / or additionally, more information about each template may be presented. According to an example implementation of the present disclosure, for a candidate template among a plurality of candidate templates, information of the candidate template may be presented at a position associated with the candidate template in the selection area, and the information of the candidate template includes at least any one of the following: name information of the candidate template, author information, time length information, and download status.

[0088] See Figure 12 Describe more details, the Figure 12 FIG. 1200 is a block diagram showing detailed information of a candidate template according to some implementations of the present disclosure. In page 1210, more details about template 232 may be presented based on the manner shown in block 1230. For example, label 1226 may indicate the download status of template 232 (at this time, the template has been successfully downloaded); label 1220 may indicate the time length of template 232; label 1222 may indicate the author of template 232 (such as the author's avatar, ID, and / or nickname, etc.); label 1224 may indicate the name of template 232, etc.

[0089] It should be understood that Figure 12 is only schematic, and detailed information of other templates may be presented in a similar manner. Alternatively and / or additionally, more or less information about each template may be presented. Using the example implementation of the present disclosure facilitates users to understand the detailed information of each template in a more comprehensive manner.

[0090] According to an example implementation of the present disclosure, switching pages may further include control controls for controlling the playback of the second video editing result. For example, the control controls may include at least any one of the following: a playback control for playing the second video editing result, and a stop control for stopping the playback of the second video editing result. See Figure 13 Describe more details, Figure 13 FIG. 1300 is a block diagram showing the process of starting playback according to some implementations of the present disclosure. In page 1310, the second video editing result may be presented in the preview area 260, and a playback control 1320 for starting to play the second video editing result may be presented.

[0091] According to an example implementation of the present disclosure, an interaction between a user and the control control 1320 (e.g., which may be referred to as a fourth interaction operation) can be detected. Further, in the case where the interaction is detected, the playback of the second video editing result can be controlled. Alternatively and / or additionally, during playback, the user can click on the preview area 260 to stop the playback. With the example implementation of the present disclosure, it can facilitate the user to view the processing result of the downloaded template of the application in a simple and effective manner. In this way, the user can stop or start the playback of the second video editing result at any time, thereby facilitating the confirmation of whether the used template meets the user's expectations.

[0092] Figure 14 A block diagram 1400 of a playback process according to some implementations of the present disclosure is shown. In page 1410, the second video editing result can be presented in the preview area 260, and a playback progress control 1420, a stop control 1430, a slot control 1440, etc. can be presented. When playing a video segment corresponding to a certain slot, a marker 1450 can be presented at that slot to indicate that the currently played content corresponds to that slot. In this way, it can facilitate the user to understand the correspondence between the timeline of the video and the slots, thereby facilitating the user to adjust the video editing operation.

[0093] According to an example implementation of the present disclosure, switching pages can further include a confirmation control for confirming the second video editing result in the preview area. Return Figure 13 , a confirmation control 242 can be presented at the bottom of page 1310. In the case where the user believes that the video effect meets the expectations, the user can press the confirmation control 242 (e.g., which may be referred to as a fifth interaction operation) to confirm the current template. In the case where an interaction with the confirmation control 242 is detected, the editing page can be returned, and the second video editing result can be presented in the editing page.

[0094] According to an example implementation of the present disclosure, switching pages can further include a cancellation control for canceling the second video editing result in the preview area (e.g., Figure 13 the cancellation control 240 in). In the case where the user believes that the video effect does not meet the expectations, the user can press the cancellation control 240 to reject the current template. In the case where an interaction with the cancellation control 240 is detected, the editing page can be returned and the first video editing result can be presented in the editing page. In this way, the user is allowed to perform a cancellation operation in a timely manner when not satisfied with a certain template.

[0095] Figure 15FIG. 1500 is a block diagram of an editing page after confirming a candidate template according to some implementations of the present disclosure. Page 1510 may provide video editing functions, that is, the user can further edit the second video editing result processed using the selected template in page 1510. In page 1510, the attribute information of the second video editing result may be presented. At this time, the attribute information matches the selected template, and the attribute information includes at least any one of the following: music, filter, text, and sticker of the second video editing result. As Figure 15 shown, controls 130 for editing music, controls 140 for editing text, controls 150 for editing stickers, etc. may be presented. It should be understood that at this time, each attribute of the second video editing result may inherit the settings in the selected template. For example, the background music shown at box 1520 is set to "music2" defined in the selected template.

[0096] According to an example implementation of the present disclosure, the user can perform interactions in page 1510 to further edit the video. Specifically, in the case where an interaction for editing the attribute information (for example, which may be referred to as the seventh interaction operation) is detected, the second video editing result may be updated based on the detected interaction. For example, the user can click on music control 130 and set the background music to "music3". At this time, "music3" will be presented at box 1520. When the user believes that the video already meets the expectations, the user can click on the export control to export the generated video. Using the example implementation of the present disclosure, the user can further edit the video based on the candidate template, thereby improving the video editing efficiency.

[0097] According to an example implementation of the present disclosure, the user may be allowed to switch the video currently being processed. Specifically, an interaction for switching the video (for example, which may be referred to as the eighth interaction operation) may be detected, and another video editing result specified by the interaction may be obtained. Refer to Figure 16 for more details, the Figure 16 FIG. 1600 is a block diagram of switching videos according to some implementations of the present disclosure. A page 1610 for selecting the video to be processed may be provided. The user can interact with this page 1610 to select the desired video to be processed. Further, the video can be updated using the current template. In this way, it can facilitate the user to switch the currently processed video in a simpler and more effective manner. At this time, the current template will be directly applied to the switched video.

[0098] According to an example implementation of the present disclosure, after the user selects another video to be processed, a prompt message 1720 may be further provided to ask the user whether to allow recommended templates. Refer to Figure 17 for more details, Figure 17Block diagram 1700 showing hint information according to some implementations of the present disclosure. In page 1710, if the user presses control 1730, corresponding candidate templates will be recommended based on the video selected by the user; if the user presses control 1732, the current template can continue to be used to process the selected video.

[0099] According to an exemplary implementation of the present disclosure, during the process of updating the selected video with a template, it can be determined whether the video segment information of the selected video matches the video segment information of the template. If the judgment result is "not matching", notification information for indicating whether to continue using the first candidate template can be provided. See Figure 18 Describe more details, Figure 18 Block diagram 1800 showing hint information according to some implementations of the present disclosure. As Figure 18 shown, in page 1810, assuming that the number of video segments included in the selected video is less than the number of video segments of the template (i.e., the number of slots), the unfilled material slots can follow the normal processing logic, and the user can be supported to switch the video on the editing page. Alternatively and / or additionally, if the number of video segments included in the selected video is greater than the number of slots, or the time length of the video segments does not meet the requirements of the slots, hint information 1820 can be provided at this time to inform the user of potential risks.

[0100] According to an exemplary implementation of the present disclosure, the user can perform interactions on controls 1830 and / or 1832. In the case where an interaction with control 1830 (for example, which can be referred to as the ninth interaction operation) is detected, the template can continue to be used to edit the selected video. Alternatively and / or additionally, in the case where an interaction with control 1832 is detected, the use of the current template can be abandoned. With the exemplary implementation of the present disclosure, in the case of a mismatch in the number of video segments, warning information can be provided to the user to reduce errors during the video editing process.

[0101] Figure 19 Block diagram 1900 showing the template positions according to some implementations of the present disclosure. As Figure 19 shown, scenario 1910 shows the situation where the user has not switched the video. At this time, for the original material 1915 (i.e., the first video editing result), each template can be arranged in the order of templates 1911, 1912, 1913, and 1914. Specifically, template 1911 represents the original template, template 1912 represents the edited template, template 1913 represents the current template, and template 1914 represents the newly recommended template. Further, in Figure 19The lower part shows the scenario 1920 where the user returns to the original template after switching the video. In this scenario 1920, for the currently applied material 1925, the original template 1921 can be presented, and the edited template 1922 can be presented. For the current material 1926, the current template 1923 can be presented, and the newly recommended template 1924 can be presented.

[0102] It should be understood that the above description and drawings are merely exemplary. Alternatively and / or additionally, each page may include more, less, or different content. Using the exemplary implementation of the present disclosure, the desired template can be selected and subsequent editing operations can be performed without exiting the editing page. In this way, the user operation complexity can be reduced, and thus the video processing performance can be improved.

[0103] Example process

[0104] Figure 20 A flowchart of a video editing method 2000 according to some implementations of the present disclosure is shown. At block 2010, a first video editing template is obtained; wherein, the first video editing template is used to indicate the filling slots of at least one first video segment and the first editing effects applied to at least one first video segment. At block 2020, at least one first video material is obtained; wherein, the at least one first video material corresponds to the filling slots of at least one first video segment and is used to fill the first video editing template to generate at least one first video segment. At block 2030, a first video editing result is generated according to the first video editing template and the at least one first video material. At block 2040, in response to a template switching operation, a second video editing template is obtained; wherein, the second video editing template is used to indicate the filling slots of at least one second video segment and the second editing effects applied to at least one second video segment. At block 2050, at least one second video material is determined according to the at least one first video material; wherein, the at least one second video material corresponds to the filling slots of at least one second video segment and is used to fill the second video editing template to generate at least one second video segment. At block 2060, a second video editing result is generated according to the second video editing template and the at least one second video material.

[0105] According to an example implementation of the present disclosure, determining at least one second video material includes: comparing a first quantity of the filling slots of at least one first video segment with a second quantity of the filling slots of at least one second video segment; and based on the result of the quantity comparison, selecting at least one second video material from the at least one first video material.

[0106] According to an exemplary implementation of the present disclosure, selecting at least one second video material from at least one first video material based on a comparison result of quantities includes at least any one of the following: in response to determining that a first quantity is less than a second quantity, selecting at least one first video material as at least a part of the at least one second video material; and in response to determining that the first quantity is not less than the second quantity, selecting at least one second video material from the at least one first video material, the quantity of the at least one second video material being equal to the second quantity.

[0107] According to an exemplary implementation of the present disclosure, selecting at least one second video material further includes: comparing a first length corresponding to a first target filling slot in the filling slots of at least one first video segment and a second length of a second target filling slot corresponding to the first target slot in the filling slots of at least one second video segment; and based on the comparison result of the lengths, selecting a target video material corresponding to the first target filling slot from the at least one first video material for filling the second target filling slot.

[0108] According to an exemplary implementation of the present disclosure, selecting a target video material corresponding to the first target filling slot from the at least one first video material based on the comparison result of the lengths includes at least any one of the following: in response to determining that the first length is greater than the second length, intercepting a part of the target video material that matches the second length for filling the second target filling slot; and in response to determining that the first length is not greater than the second length, using the target video material to fill at least a part of the second target filling slot.

[0109] According to an exemplary implementation of the present disclosure, it further includes: in response to determining that there is a blank segment in the filling slots of at least one second video segment, filling a predetermined video material segment into the blank segment, where the blank segment includes at least any one of the following: a blank slot not filled with a video segment, and a partially filled slot partially filled with a video segment.

[0110] According to an exemplary implementation of the present disclosure, generating a first video editing result includes at least any one of the following: presenting a preview draft of the first video editing result according to a first video editing template and at least one first video material; and exporting a video file of the first video editing result according to the first video editing template and at least one first video material.

[0111] According to an exemplary implementation of the present disclosure, obtaining the second video editing template includes: in response to a template switching operation, presenting a plurality of candidate templates in a switching page for switching video editing templates, the plurality of candidate templates including the second video editing template; and in response to a first interaction operation on the second video editing template, obtaining the second video editing template.

[0112] According to an exemplary implementation of the present disclosure, it further includes: presenting prompt information indicating whether to allow recommending candidate templates for the first video editing result; and in response to detecting a second interaction operation that allows recommending candidate templates for the first video editing result, presenting a plurality of candidate templates, the plurality of candidate templates being recommended based on the first video editing result.

[0113] According to an exemplary implementation of the present disclosure, it further includes: downloading the second video editing template; and presenting the download progress of the second video editing template.

[0114] According to an exemplary implementation of the present disclosure, the switching page further includes a preview area, and the method further includes: determining the download status of the second video editing template; in response to determining that the download status indicates that the download of the second video editing template has not been completed, presenting prompt information in the preview area, the prompt information indicating that the second video editing result is being generated.

[0115] According to an exemplary implementation of the present disclosure, it further includes: in response to determining that the download status indicates that the download of the second video editing template has been completed, presenting the second video editing result in the preview area.

[0116] According to an exemplary implementation of the present disclosure, it further includes: in response to determining that the download status indicates that the download of the second video editing template has failed, presenting failure information in the preview area.

[0117] According to an exemplary implementation of the present disclosure, it further includes: in response to detecting a third interaction operation on the third video editing template among the plurality of candidate templates, determining the download status of the third video editing template; and in response to determining that the download status indicates that the download of the third video editing template has not been started, downloading the third video editing template; and presenting the download progress of the third video editing template.

[0118] According to an exemplary implementation of the present disclosure, it further includes: in response to determining that the download status indicates that the download of the third video editing template has been completed, presenting the third video editing result in the preview area, the third video editing result being generated according to the third video editing template and at least one third video material.

[0119] According to an exemplary implementation of the present disclosure, the switching page further includes control controls for controlling the playback of the second video editing result, and the control controls include at least any one of the following: a playback control for playing the second video editing result, and a stop control for stopping the playback of the second video editing result. The method further includes: in response to detecting a fourth interaction operation on the control controls, controlling the playback of the second video editing result based on the fourth interaction operation.

[0120] Example devices and equipment

[0121] Figure 21 The block diagram of a video editing device 2100 according to some implementations of the present disclosure is shown. The device 2100 includes: a first template acquisition module 2110 configured to acquire a first video editing template; wherein the first video editing template is used to indicate the filling slots of at least one first video segment and the first editing effects applied to at least one first video segment; a first material acquisition module 2120 configured to acquire at least one first video material; wherein at least one first video material corresponds to the filling slots of at least one first video segment and is used to fill the first video editing template to generate at least one first video segment; a first generation module 2130 configured to generate a first video editing result according to the first video editing template and at least one first video material; a second template acquisition module 2140 configured to, in response to a template switching operation, acquire a second video editing template; wherein the second video editing template is used to indicate the filling slots of at least one second video segment and the second editing effects applied to at least one second video segment; a second material acquisition module 2150 configured to determine at least one second video material according to at least one first video material; wherein at least one second video material corresponds to the filling slots of at least one second video segment and is used to fill the second video editing template to generate at least one second video segment; a second generation module 2160 configured to generate a second video editing result according to the second video editing template and at least one second video material.

[0122] According to an exemplary implementation of the present disclosure, the second material acquisition module is configured to: a quantity comparison module configured to compare a first quantity of the filling slots of at least one first video segment with a second quantity of the filling slots of at least one second video segment; and a selection module configured to select at least one second video material from at least one first video material based on the comparison result of the quantities.

[0123] According to an exemplary implementation of the present disclosure, the selection module includes: a first selection module configured to select at least one first video material as at least a part of at least one second video material in response to determining that a first quantity is less than a second quantity; and a second selection module configured to select at least one second video material from at least one first video material, the quantity of the at least one second video material being equal to the second quantity, in response to determining that the first quantity is not less than the second quantity.

[0124] According to an exemplary implementation of the present disclosure, the selection module further includes: a length comparison module configured to compare a first length corresponding to a first target filling slot in the filling slots of at least one first video segment and a second length of a second target filling slot corresponding to the first target slot in the filling slots of at least one second video segment; and a filling module configured to select, based on the comparison result of the lengths, a target video material corresponding to the first target filling slot from at least one first video material for filling the second target filling slot.

[0125] According to an exemplary implementation of the present disclosure, the filling module includes: a first filling module configured to intercept a part matching the second length from the target video material for filling the second target filling slot in response to determining that the first length is greater than the second length; and a second filling module configured to use the target video material to fill at least a part of the second target filling slot in response to determining that the first length is not greater than the second length.

[0126] According to an exemplary implementation of the present disclosure, the apparatus further includes: a blank filling module configured to fill a blank segment in the filling slots of at least one second video segment with a predetermined video material segment in response to determining that there is a blank segment in the filling slots of at least one second video segment, the blank segment including at least any one of the following: a blank slot not filled with a video segment and a partially filled slot partially filled with a video segment.

[0127] According to an exemplary implementation of the present disclosure, the first generation module further includes: a draft generation module configured to present a preview draft of a first video editing result according to a first video editing template and at least one first video material; and a video generation module configured to export a video file of the first video editing result according to the first video editing template and at least one first video material.

[0128] According to an example implementation of the present disclosure, the second template acquisition module includes: a candidate template presentation module configured to present a plurality of candidate templates in a switching page for switching video editing templates in response to a template switching operation, the plurality of candidate templates including a second video editing template; and a template acquisition module configured to acquire the second video editing template in response to a first interaction operation on the second video editing template.

[0129] According to an example implementation of the present disclosure, the apparatus further includes: a prompt module configured to present prompt information indicating whether to allow recommending candidate templates for a first video editing result; and a recommendation module configured to present a plurality of candidate templates based on the first video editing result in response to detecting a second interaction operation allowing recommending candidate templates for the first video editing result.

[0130] According to an example implementation of the present disclosure, the apparatus further includes: a download module configured to download the second video editing template; and a progress presentation module configured to present the download progress of the second video editing template.

[0131] According to an example implementation of the present disclosure, the switching page further includes a preview area, and the apparatus further includes: a status determination module configured to determine the download status of the second video editing template; and the prompt module is further configured to present prompt information in the preview area indicating that the second video editing result is being generated in response to determining that the download status indicates that the download of the second video editing template has not been completed.

[0132] According to an example implementation of the present disclosure, the apparatus further includes: a result presentation module configured to present the second video editing result in the preview area in response to determining that the download status indicates that the download of the second video editing template has been completed.

[0133] According to an example implementation of the present disclosure, the apparatus further includes: an information presentation module configured to present failure information in the preview area in response to determining that the download status indicates that the download of the second video editing template has failed.

[0134] According to an example implementation of the present disclosure, the status determination module is further configured to determine the download status of a third video editing template in response to detecting a third interaction operation on the third video editing template among the plurality of candidate templates; the download module is further configured to download the third video editing template in response to determining that the download status indicates that the download of the third video editing template has not been started; and the progress presentation module is further configured to present the download progress of the third video editing template.

[0135] According to an exemplary implementation of the present disclosure, the result presentation module is further configured to present a third video editing result in the preview area in response to determining that the download status indicates that the download of the third video editing template has been completed, where the third video editing result is generated according to the third video editing template and at least one third video material.

[0136] According to an exemplary implementation of the present disclosure, the switching page further includes control controls for controlling the playback of the second video editing result, and the control controls include at least any one of the following: a playback control for playing the second video editing result, and a stop control for stopping the playback of the second video editing result. The apparatus further includes: a control module configured to control the playback of the second video editing result based on a fourth interaction operation in response to detecting the fourth interaction operation for the control controls.

[0137] Figure 22 A block diagram of a device 2200 capable of implementing multiple implementations of the present disclosure is shown. It should be understood that Figure 22 The shown computing device 2200 is merely exemplary and should not constitute any limitation on the functions and scope of the implementations described herein. Figure 22 The shown computing device 2200 can be used to implement the methods described above.

[0138] As Figure 22 shown, the computing device 2200 is in the form of a general-purpose computing device. The components of the computing device 2200 may include, but are not limited to, one or more processors or processing units 2210, a memory 2220, a storage device 2230, one or more communication units 2240, one or more input devices 2250, and one or more output devices 2260. The processing unit 2210 may be an actual or virtual processor and is capable of performing various processes according to the programs stored in the memory 2220. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing ability of the computing device 2200.

[0139] Computing device 2200 generally includes a plurality of computer storage media. Such media can be any available media accessible to computing device 2200, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 2220 can be volatile memory (such as registers, caches, random access memory (RAM)), non-volatile memory (such as read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 2230 can be removable or non-removable media and can include machine-readable media, such as a flash drive, a magnetic disk, or any other media that can be capable of storing information and / or data (such as training data for training) and can be accessed within computing device 2200.

[0140] Computing device 2200 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in Figure 22 it, a disk drive for reading from or writing to a removable, non-volatile magnetic disk (such as a "floppy disk") and an optical disk drive for reading from or writing to a removable, non-volatile optical disk can be provided. In these cases, each drive can be connected to a bus (not shown) by one or more data media interfaces. Memory 2220 can include a computer program product 2225 having one or more program modules that are configured to execute the various methods or actions of the various implementations of the present disclosure.

[0141] Communication unit 2240 enables communication with other computing devices via a communication medium. Additionally, the functions of the components of computing device 2200 can be implemented in a single computing cluster or multiple computer machines that are capable of communicating via a communication connection. Thus, computing device 2200 can operate in a networked environment using a logical connection to one or more other servers, network personal computers (PCs), or another network node.

[0142] Input device 2250 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. Output device 2260 can be one or more output devices, such as a display, a speaker, a printer, etc. Computing device 2200 can also communicate with one or more external devices (not shown) as needed via communication unit 2240, such as storage devices, display devices, etc., communicate with one or more devices that enable a user to interact with computing device 2200, or communicate with any device that enables computing device 2200 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be performed via an input / output (I / O) interface (not shown).

[0143] According to an exemplary implementation of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, there is also provided a computer program product, the computer program product being tangibly stored on a non-transitory computer-readable medium and including computer-executable instructions, and the computer-executable instructions being executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, there is provided a computer program product having a computer program stored thereon, and the program, when executed by a processor, implements the method described above.

[0144] Aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0145] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, when executed by the processing unit of the computer or other programmable data processing apparatus, create a means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which instructions cause a computer, a programmable data processing apparatus, and / or other devices to operate in a particular manner, so that the computer-readable medium storing the instructions includes a manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0146] The computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device, such that a series of operation steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0147] 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 implementations of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a special purpose hardware-based system that performs the specified functions or acts, or by a combination of special purpose hardware and computer instructions.

[0148] The implementations of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art in the field without departing from the scope and spirit of the described implementations. The choice of terms used herein is intended to best explain the principles of the implementations, the practical application, or the improvement of the technology in the market, or to enable other ordinary skilled persons in the art in the field to understand the various implementation manners disclosed herein.

Claims

1. A video editing method, comprising: Obtaining a first video editing template; wherein, the first video editing template is used to indicate filling slots of at least one first video segment and a first editing effect applied to the at least one first video segment; Obtaining at least one first video material; wherein, the at least one first video material corresponds to the filling slots of the at least one first video segment and is used to fill the first video editing template to generate the at least one first video segment; Generating a first video editing result according to the first video editing template and the at least one first video material; In response to a template switching operation, obtaining a second video editing template; wherein, the second video editing template is used to indicate filling slots of at least one second video segment and a second editing effect applied to the at least one second video segment; Determining at least one second video material according to the at least one first video material; wherein, the at least one second video material corresponds to the filling slots of the at least one second video segment and is used to fill the second video editing template to generate the at least one second video segment; and Generating a second video editing result according to the second video editing template and the at least one second video material.

2. The method according to claim 1, wherein determining the at least one second video material comprises: Comparing a first number of the filling slots of the at least one first video segment and a second number of the filling slots of the at least one second video segment; And Based on the result of the quantity comparison, selecting at least one second video material from the at least one first video material.

3. The method according to claim 2, wherein selecting at least one second video material from the at least one first video material based on the result of the quantity comparison includes at least any one of the following: In response to determining that the first number is less than the second number, selecting the at least one first video material as at least a part of the at least one second video material; and In response to determining that the first number is not less than the second number, selecting at least one second video material from the at least one first video material, and the number of the at least one second video material is equal to the second number.

4. The method according to claim 2, wherein selecting the at least one second video material further comprises: For a first target filling slot among the filling slots of the at least one first video segment and a second target filling slot corresponding to the first target slot among the filling slots of the at least one second video segment, Comparing a first length corresponding to the first target filling slot and a second length of the second target filling slot; and Based on the result of the length comparison, selecting a target video material corresponding to the first target filling slot from the at least one first video material for filling the second target filling slot.

5. The method according to claim 4, wherein selecting a target video material corresponding to the first target filling slot from the at least one first video material based on the result of the length comparison includes at least any one of the following: In response to determining that the first length is greater than the second length, cutting out a portion matching the second length from the target image material to fill the second target filling slot; and In response to determining that the first length is not greater than the second length, the target image material is used to fill at least a portion of the second target fill slot.

6. The method according to claim 2, further comprising: In response to determining that there is a blank segment in the filling slot of the at least one second video clip, a predetermined image material segment is filled into the blank segment, and the blank segment includes at least any one of the following: a blank slot that is not filled with a video clip, and a partially filled slot that is partially filled with a video clip.

7. The method according to claim 1, wherein generating the first video editing result comprises at least any one of the following: Presenting a preview draft of the first video editing result according to the first video editing template and the at least one first image material; and Export a video file of the first video editing result according to the first video editing template and the at least one first image material.

8. The method according to claim 1, wherein obtaining the second video editing template comprises: In response to the template switching operation, presenting a plurality of candidate templates in a switching page for switching a video editing template, the plurality of candidate templates including the second video editing template; as well as In response to the first interactive operation on the second video editing template, a second video editing template is obtained.

9. The method according to claim 8, further comprising: Presenting prompt information indicating whether to allow recommendation of candidate templates for the first video editing result; as well as In response to detecting a second interaction operation that allows recommendation of candidate templates for the first video editing result, presenting the plurality of candidate templates, the plurality of candidate templates being recommended based on the first video editing result.

10. The method according to claim 8, further comprising: Download the second video editing template; as well as The download progress of the second video editing template is presented.

11. The method according to claim 10, wherein the switching page further comprises a preview area, the method further comprising: Determining a download status of the second video editing template; In response to determining that the download status indicates that the download of the second video editing template has not been completed, prompt information is presented in the preview area, and the prompt information indicates that the second video editing result is being generated.

12. The method according to claim 11, further comprising: In response to determining that the download status indicates that downloading of the second video editing template has been completed, presenting the second video editing result in the preview area.

13. The method according to claim 11, further comprising: In response to determining that the download status indicates that downloading of the second video editing template has failed, failure information is presented in the preview area.

14. The method according to claim 11, further comprising: In response to detecting a third interactive operation on a third video editing template among the plurality of candidate templates, determining a download status of the third video editing template; as well as In response to determining that the download status indicates that the download of the third video editing template has not been started, download the third video editing template; and Present the download progress of the third video editing template.

15. The method according to claim 14, further comprising: In response to determining that the download status indicates that the download of the third video editing template has been completed, present a third video editing result in the preview area, the third video editing result being generated based on the third video editing template and at least one third video material.

16. The method according to claim 8, wherein the switching page further includes control controls for controlling the playback of the second video editing result, and the control controls include at least any one of the following: a playback control for playing the second video editing result, and a stop control for stopping the playback of the second video editing result. The method further includes: In response to detecting a fourth interaction operation on the control control, control the playback of the second video editing result based on the fourth interaction operation.

17. A video editing device, comprising: A first template acquisition module configured to acquire a first video editing template; wherein the first video editing template is used to indicate filling slots of at least one first video segment and a first editing effect applied to the at least one first video segment; A first material acquisition module configured to acquire at least one first video material; wherein the at least one first video material corresponds to the filling slots of the at least one first video segment and is used to fill the first video editing template to generate the at least one first video segment; A first generation module configured to generate a first video editing result according to the first video editing template and the at least one first video material; A second template acquisition module configured to acquire a second video editing template in response to a template switching operation; wherein the second video editing template is used to indicate filling slots of at least one second video segment and a second editing effect applied to the at least one second video segment; A second material acquisition module configured to determine at least one second video material according to the at least one first video material; wherein the at least one second video material corresponds to the filling slots of the at least one second video segment and is used to fill the second video editing template to generate the at least one second video segment; and A second generation module configured to generate a second video editing result according to the second video editing template and the at least one second video material.

18. An electronic device, comprising: At least one processing unit; And At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions when executed by the at least one processing unit causing the electronic device to perform the method according to any one of claims 1 to 16.

19. A computer-readable storage medium, having stored thereon a computer program, the computer program when executed by a processor causing the processor to implement the method according to any one of claims 1 to 16.