Video editing method and apparatus, device, and medium

By directly switching templates within the video editing page and automatically importing materials, the complex template switching operation in the existing technology is solved, and the efficiency and convenience of video editing are improved.

WO2025139735A1PCT designated stage expired Publication Date: 2025-07-03BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/137887
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-28
Filing Date
2024-12-09
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

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

Method used

Provide a video editing method and device, allowing templates to be switched directly within the editing page, and automatically import video materials of old templates into new templates, reducing user operation steps.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024137887_03072025_PF_FP_ABST
    Figure CN2024137887_03072025_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a video editing method and apparatus, a device, and a medium. The method comprises: acquiring a first video editing template, wherein the first video editing template is used for indicating a filling slot of at least one first video clip and a first editing effect applied to the at least one first video clip; acquiring at least one first image material, wherein 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 at least one first video clip; generating a first video editing result on the basis of the first video editing template and the at least one first image material; in response to a template switching operation, acquiring a second video editing template; determining at least one second image material on the basis of the at least one first image material; and generating a second video editing result on the basis of the second video editing template and the at least one second image material. In this way, a previously imported image material may be directly applied to a subsequent template.
Need to check novelty before this filing date? Find Prior Art

Description

Video editing method, device, equipment and medium

[0001] This application claims priority to the Chinese invention patent application entitled “Video Editing Method, Apparatus, Equipment and Medium” filed on December 28, 2023, with application number 202311841175.0, the entire contents of which are incorporated by reference into this application. Technical Field

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

[0003] Currently, a variety of video processing solutions have been proposed, and users can obtain videos and edit them according to their own expectations. For example, users can set background music, add text, and / or stickers and other special effects to the video. To facilitate user operation, users can use templates to process videos. Templates can define various special effects. When the template is applied to the video to be processed, the video will have the various special effects defined by the template. However, the existing solutions for template operation are not satisfactory. Users have to perform complex manual operations to switch templates. For example, when switching templates, users have to reselect the various image materials to be used, etc. At this time, it is expected that the template of the video can be switched in a simpler and more effective way. Summary of the Invention

[0004] In a first aspect of the present disclosure, a video editing method is provided. The method includes: obtaining a first video editing template; wherein the first video editing template is used to indicate a fill slot of 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; wherein the at least one first image material corresponds to the fill slot of the at least one first video clip and is used to fill the first video editing template to generate the at least one first video clip; generating a first video editing result based on the first video editing template and the at least one first image material; in response to a template switching operation, obtaining a second video editing template; wherein the second video editing template is used to indicate a fill slot of at least one second video clip and a second editing effect applied to the at least one second video clip; determining at least one second image material based on the at least one first image material; wherein the at least one second image material corresponds to the fill slot of the at least one second video clip and is used to fill the second video editing template to generate the at least one second video clip; generating a second video editing result based on the second video editing template and the at least one second image material.

[0005] 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 clip and the first editing effect applied to the at least one first video clip; a first material acquisition module, configured to acquire at least one first image material; wherein the at least one first image material corresponds to the filling slots of the at least one first video clip and is used to fill the first video editing template to generate the at least one first video clip; a first generation module, configured to generate a first video editing result based on the first video editing template and the at least one first image 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 the at least one second video clip and the second editing effect applied to the at least one second video clip; a second material acquisition module, configured to determine at least one second image material based on the at least one first image material; wherein the at least one second image material corresponds to the filling slots of the at least one second video clip and is used to fill the second video editing template to generate the at least one second video clip; and a second generation module, configured to generate a second video editing result based on the second video editing template and the at least one second image material.

[0006] 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, 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 the first aspect of the present disclosure.

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

[0008] It should be understood that the content described in this summary section is not intended to limit the key features or important features of the implementation of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other features, advantages and aspects of various implementations of the present disclosure will become more apparent hereinafter with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0010] FIG1 shows a block diagram of an application environment according to an exemplary implementation of the present disclosure;

[0011] FIG2 shows a video editing block diagram according to some implementations of the present disclosure;

[0012] FIG3 illustrates a block diagram of an edit page according to some implementations of the present disclosure;

[0013] 4A to 4D illustrate block diagrams of a video editing process according to some implementations of the present disclosure;

[0014] FIG5 shows a block diagram of prompt information according to some implementations of the present disclosure;

[0015] FIG6 shows a block diagram of a selection page according to some implementations of the present disclosure;

[0016] FIG7 shows a block diagram of a process for downloading a template according to some implementations of the present disclosure;

[0017] FIG8 illustrates a block diagram of a download failure process according to some implementations of the present disclosure;

[0018] FIG9 illustrates a block diagram of a successful download process according to some implementations of the present disclosure;

[0019] FIG10 illustrates a block diagram of a background download process according to some implementations of the present disclosure;

[0020] FIG11 illustrates a block diagram of selecting a candidate template according to some implementations of the present disclosure;

[0021] FIG12 is a block diagram illustrating detailed information of candidate templates according to some implementations of the present disclosure;

[0022] FIG13 shows a block diagram of a process for starting playback according to some implementations of the present disclosure;

[0023] FIG14 shows a block diagram of a playback process according to some implementations of the present disclosure;

[0024] FIG15 shows a block diagram of an editing page after confirming a candidate template according to some implementations of the present disclosure;

[0025] FIG16 shows a block diagram of switching a first video editing result according to some implementations of the present disclosure;

[0026] FIG17 shows a block diagram of prompt information according to some implementations of the present disclosure;

[0027] FIG18 shows a block diagram of prompt information according to some implementations of the present disclosure;

[0028] FIG19 illustrates a block diagram of template locations according to some implementations of the present disclosure;

[0029] FIG20 shows a flowchart of a video editing method according to some implementations of the present disclosure;

[0030] FIG21 shows a block diagram of a video editing apparatus according to some implementations of the present disclosure; and

[0031] FIG22 illustrates a block diagram of a device capable of implementing various implementations of the present disclosure. DETAILED DESCRIPTION

[0032] The following describes implementations of the present disclosure in more detail with reference to the accompanying drawings. Although certain implementations of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the implementations described herein. Rather, these implementations are provided to provide a more thorough and complete understanding of 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.

[0033] In the description of the implementation of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "an implementation" or "the implementation" should be understood as "at least one implementation". The term "some implementations" should be understood as "at least some implementations". The following may also include other explicit and implicit definitions. As used herein, the term "model" can represent the association relationship between various data. For example, the above-mentioned association relationship can be obtained based on a variety of technical solutions currently known and / or to be developed in the future.

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

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

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

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

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

[0039] As used herein, the term "in response to" refers to a state in which a corresponding event occurs or a condition is satisfied. It will be understood that the timing of executing a subsequent action executed in response to the event or condition is not necessarily strongly correlated with the time when the event occurs or the condition is satisfied. For example, in some cases, a subsequent action may be executed immediately upon the occurrence of the event or the satisfaction of the condition; in other cases, the subsequent action may be executed some time after the occurrence of the event or the satisfaction of the condition.

[0040] Sample Environment

[0041] A variety of video processing solutions have been proposed. See Figure 1 for a description of an application environment according to an example implementation of the present disclosure. A user can select a template they wish to use to process a video. For example, a page 110 as shown in Figure 1 may be presented in a video editing application, which shows a block diagram 100 of an application environment according to an example implementation of the present disclosure. As shown in Figure 1 , a page 110 for editing a video may be provided. In page 110, a plurality of controls may be provided, for example, a control 120 for importing a video to be processed (also referred to as the first video editing result), a control 130 for adding background music to a video, a control 140 for adding text to a video, and a control 150 for adding stickers to a video, and so on. It should be understood that the various controls in Figure 1 are merely schematic, and alternatively and / or additionally, page 110 may include more, fewer, or different controls. For example, a user may perform a sliding operation at the bottom of the page to present more controls.

[0042] In page 110, the user can use the selected template to process the video, and when a satisfactory effect is obtained, the generated video can be exported through control 160. Here, the video editing target may include a fill slot for indicating at least one video clip and an editing effect to be applied to at least one video clip. However, in the process of using a template to edit a video, 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 results in page 110 will be discarded, and the user needs to reselect a new template and perform the subsequent editing process. The user may continue to try multiple templates until a satisfactory effect is obtained and then export the video.

[0043] In the above process, the user needs to repeatedly select a template, apply the template to the video, reselect the image materials to be used, edit, and view the results. At this time, it is hoped that a simpler and more effective way can be used to switch the template of the video, thereby improving the efficiency of video processing.

[0044] Video Editing Overview

[0045] To at least partially address the shortcomings of the prior art, a video editing method is proposed according to an exemplary implementation of the present disclosure. In summary, a switching control can be provided on the editing page to allow users to directly switch templates while editing the current video. This eliminates the need for users to switch back and forth between the editing page and the template selection page, thereby improving video processing efficiency.

[0046] 2 , which illustrates a video editing block diagram 200 according to some implementations of the present disclosure, is provided. As shown in FIG2 , a page 210 (e.g., an editing page) for editing a first video editing result may include a switch control 220 for switching templates of the first video editing result. As shown in FIG2 , the switch control 220 is aligned with and positioned first among other controls for video editing (e.g., video, music, text, stickers, etc.), and separators may be used to separate the various controls.

[0047] The switch control 220 may allow the user to switch the video template without exiting the page 210. For example, the user may interact with the switch control 220. Upon detecting the interaction with the switch control 220 (e.g., a first interaction operation), a page 230 for switching templates may be presented (e.g., the page may be switched).

[0048] As shown on the right side of Figure 2, page 230 may include a selection area 250, which may include multiple candidate templates for editing the first video editing result, such as templates 232, 234, 236, and 238, etc. The user can operate in page 230, for example, to select a desired template. Alternatively and / or additionally, page 230 may further include a preview area 260, which may 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 control 242 to confirm the selection of a candidate template, or press control 240 to exit the template switching process.

[0049] According to an example implementation of the present disclosure, a first video editing template may be obtained; the first video editing template is used to indicate fill slots of at least one first video clip and a first editing effect applied to the at least one first video clip. At least one first image material is obtained; the at least one first image material corresponds to the fill slots of the at least one first video clip and is used to fill the first video editing template to generate the at least one first video clip. A first video editing result may be generated based on the first video editing template and the at least one first image material.

[0050] Specifically, the user can switch to the second video editing template while processing a video using the first video editing template. During the switching process, the user does not have to re-import the image material into each fill slot of the second video editing template, but can use the image material that has been filled in each slot of the old template in the new template. The user can perform a template switching operation, and in response to the template switching operation, a second video editing template can be obtained; wherein the second video editing template is used to indicate the fill slots of at least one second video clip and the second editing effect applied to the at least one second video clip. In this way, a new video editing template can be directly selected.

[0051] Furthermore, at least one second image material may be determined based on the at least one first image material; wherein the at least one second image material corresponds to a fill slot of the at least one second video clip and is used to fill a second video editing template to generate the at least one second video clip. A second video editing result is generated based on the second video editing template and the at least one second image material.

[0052] Using the exemplary implementations of this disclosure, you can select a desired template and perform subsequent editing operations without exiting the editing page. In this way, when switching templates, materials imported based on the previous old template can be directly imported into the new template, generating a draft preview without having to exit the editing process and re-import the materials. This reduces user operation complexity and improves video processing performance.

[0053] Detailed process of video editing

[0054] Having described an overview of the template switching process, further details will be described below according to an example implementation of the present disclosure. According to an example implementation of the present disclosure, during the video editing process, a first video editing template may be obtained; wherein the first video editing template is used to indicate a fill slot for at least one first video clip and a first editing effect applied to the at least one first video clip. Specifically, the first video editing template may include one or more fill slots, and each slot may be filled with desired image material.

[0055] Furthermore, at least one first video material may be obtained; wherein the at least one first video material corresponds to a fill slot of the at least one first video clip and is used to fill the first video editing template to generate the at least one first video clip. It should be understood that the video material here may include video data. For example, a video data may be imported into a slot.

[0056] It should be understood that the slots can have a specified length. For example, the first video editing template may include N1 slots, and each slot may have the same length. Alternatively and / or additionally, each slot may have a different length. 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. The slots can be filled with image material, and the length of the filled image material is the same as the length of the slot. If the length of the image material is the same as the length of the slot, it can be filled directly. If the length of the image material is different from the length of the slot, scaling, cropping, or supplementing operations can be performed on the image material to achieve the filling process.

[0057] Furthermore, a first video editing result may be generated based on the first video editing template and the at least one first image material. In this case, the first video editing result includes N1 image materials, and each image material is merged into one video according to the first editing effect.

[0058] According to an example implementation of the present disclosure, the generated first video editing result may include at least one of a preview draft and a final exported video file. For example, a preview draft of the first video editing result may be presented based on the first video editing template and at least one first image source. At this point, the video editing process is still ongoing, and the user can adjust the preview draft as desired, for example, by modifying the background music, adding text, and so on.

[0059] For another example, a video file of the first video editing result can be exported based on a first video editing template and at least one first image source. If the user determines that the preview draft meets their expectations, the final video file can be exported. Using the example implementations of this disclosure, user operations can be facilitated during the video editing process, thereby generating the desired video in a more convenient and efficient manner.

[0060] According to an example implementation of the present disclosure, the user can switch templates in order to try other video editing effects. It should be understood that Figure 2 above only shows an example position for presenting the switch control 220. Alternatively and / or additionally, the switch control 220 can be presented at other locations in the page 210. Figure 3 shows a block diagram 300 of an editing page according to some implementations of the present disclosure. As shown in Figure 3, the switch control is aligned with other controls (e.g., video, music, text, stickers, etc.) for editing videos and is located at the end. Alternatively and / or additionally, the switch control can be presented at other locations 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 (e.g., as shown in the box 330 on the right). Alternatively and / or additionally, the switch control can be presented at other locations of the control bar, such as the middle position.

[0061] In the following, referring to FIG. 4A to FIG. 4D , a specific process for determining the image materials for each fill slot indicated by the second video editing template is described. According to an example implementation of the present disclosure, the number of fill slots indicated by each video editing template may be different. FIG. 4A shows a block diagram 400A of a video editing process according to some implementations of the present disclosure. As shown in FIG. 4A , the first video editing template 410 may indicate slots 412, ..., 414, ..., and 416, in which case the number of slots of the first video editing template 410 may be represented as N1. The second video editing template 420 may indicate slots 422, ..., 424, ..., and 426, in which case the number of slots of the second video editing template 420 may be represented as N2.

[0062] According to an exemplary implementation of the present disclosure, during the process of determining at least one second video material, the first quantity of the filled slots of at least one first video segment may be compared with the second quantity of the filled slots of at least one second video segment, and 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 the respective slots 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 may be determined in a simpler and more effective manner.

[0063] According to an exemplary 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 the video materials involved in the old template is less than the quantity of the slots involved in the new template, so only a part of the slots in the new template can be filled. Refer to FIG. 4B for more information, which shows a block diagram 400B of a video editing process according to some implementations of the present disclosure.

[0064] As shown in FIG. 4B, 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 respectively fill the first to third slots in the second video editing template, and the fourth slot is empty at this time.

[0065] According to an exemplary implementation of the present disclosure, it may be determined whether there is a blank segment in the filled slots of at least one second video segment. If there is a blank segment, a predetermined video material segment may be filled into the blank segment. Here, the blank segment may, for example, include an empty slot that has not been filled with a video material (e.g., slot 426 in FIG. 4B). A predetermined video material segment may be filled into this blank segment.

[0066] According to an exemplary implementation of the present disclosure, the predetermined video material segment may, for example, include: a pre-specified video material, a material with a predetermined color (e.g., a black screen, a white screen, or other predetermined videos), a result obtained by copying the video material in one or more slots before the empty slot, and so on. In this way, it is possible to avoid the occurrence of empty slots during the video editing process, thereby preventing potential errors that may occur in subsequent processes.

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

[0068] For further details, see Figure 4C , which illustrates a block diagram 400C of a video editing process according to some implementations of the present disclosure. As shown in Figure 4C , N1 > N2. In this case, the image materials associated with slots 412, ..., 414 are mapped to slots 422, ..., 426, respectively, and the image material associated with slot 416 is not mapped to the second video editing template. This ensures that each slot in the second video editing template corresponds to a specific image material, allowing subsequent generation processes to proceed.

[0069] According to an example implementation of the present disclosure, during the process of selecting image material 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 clip, and a second target filling slot corresponding to the first target slot in the filling slots of at least one second video clip, a first length corresponding to the first target filling slot and a 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 it can represent the length of the image material filled into the first target slot.

[0070] Furthermore, based on the length comparison result, a target image material corresponding to the first target filling slot can be selected from the at least one first image material to fill the second target filling slot. In this way, the filled image material can be matched to the slot length, thereby enabling more accurate video editing.

[0071] According to an example implementation of the present disclosure, more details about filling are described with reference to FIG4D , which shows a block diagram 400D of a video editing process according to some implementations of the present disclosure. As shown in FIG4D , the time length T1 of the first target filling slot 430 and the time length T2 of the first target filling slot 430 can be compared. 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 image material to fill the second target filling slot. In other words, at this time, T1>T2, and the first target filling slot 430 corresponds to a longer image material, a portion with a length of T2 can be intercepted from the target image material, and the intercepted portion can be filled into the second target filling slot 432.

[0072] 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 image 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 is not filled. At this point, it can be considered that the second target filling slot involves a blank segment, and a predetermined image material segment can be filled into the blank segment. For example, it can be filled with pre-specified image material, material with a predetermined color (e.g., a black screen, a white screen, or other predetermined image), data obtained by copying the last frame image of the target image material, and so on. By utilizing the example implementation of the present disclosure, it is possible to avoid the problem of incomplete content being included in the slot, thereby causing blank segments to appear in the generated video.

[0073] 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, when image material can be obtained to fill the first target filling slot 430, T1 can represent the length of the image material.

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

[0075] Specifically, when it is detected that the user clicks on the switch control, prompt information indicating whether to allow the recommendation of candidate templates for the first video editing result can be further presented. See Figure 5 for more information, which shows a block diagram 500 of prompt information according to some implementations of the present disclosure. As shown in Figure 5, prompt information 510 can be presented to ask the user whether to enable the function of automatically recommending templates. The user can interact with the prompt information 510. For example, the user can press the control 520 to allow multiple candidate templates to be automatically provided; for example, the user can press the control 522 to refuse to automatically provide candidate templates.

[0076] According to an example implementation of the present disclosure, user interactions with controls 520 and / or 522 can be detected. In the case of detecting an interaction that allows candidate templates to be recommended for the first video editing result (for example, referred to as a second interactive operation), 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. Utilizing the example implementation of the present disclosure, suitable candidate templates can be recommended to the user based on the first video editing result with the user's permission. In this way, the complexity of the user's search for templates from a massive template library can be reduced, thereby improving video processing performance. Alternatively and / or additionally, in the case of detecting an interaction that does not allow candidate templates to be recommended for the first video editing result (for example, the user clicks on control 522), candidate templates can be provided in other ways. For example, candidate templates can be provided according to the popularity of the template and / or in other ways.

[0077] According to an example implementation of the present disclosure, candidate templates can be provided based on a variety of methods. For example, the candidate template 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, natural scenery-related templates 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", in which case 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 can be recommended preferentially. Here, the video can include multiple slots, and each slot can include a video clip. In this way, templates that include the same number of slots as the first video editing result can be recommended preferentially, thereby facilitating the matching between the video and the template.

[0078] Alternatively and / or additionally, the candidate templates may be determined in the various ways described above. Further, the determined candidate templates may be weighted based on different weight coefficients. For example, each weight may satisfy the following formula: content >W label >W slot In this formula, W content Represents the content-related weight, W label represents the weight associated with the label, and W slot Represents the weight associated with the tag. A recommendation score can be determined for each candidate template, and the weights are used to weight the recommendation scores to obtain a final recommendation score for each candidate template. Subsequently, the candidate templates can be sorted according to the recommendation score. In this way, templates that are more suitable for editing the first video editing result can be recommended to the user in a more accurate and effective manner.

[0079] 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, thereby fully utilizing the powerful processing capabilities of the machine learning model to recommend multiple candidate templates.

[0080] According to an example implementation of the present disclosure, a selection page is shown in FIG6 , which shows a block diagram 600 of a selection page according to some implementations of the present disclosure. As shown in FIG6 , a first candidate template among multiple candidate templates can be automatically downloaded. Alternatively and / or additionally, a template selected by a user (e.g., a second video editing template) can be downloaded. It should be understood that the first candidate template here can represent any one of a plurality of candidate templates, for example, each candidate template can be downloaded one by one in sequence. For example, the candidate template in the first position can be downloaded first, followed by each subsequent candidate template, 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.

[0081] 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, the user can be provided with various information about the template download process, thereby facilitating the user to apply the downloaded template after successful download. As shown in Figure 6, after the template 232 is successfully downloaded, 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 mark 620 can be presented to indicate the template 232 currently being used. In this way, it is convenient for the user to understand the currently selected template.

[0082] According to an example implementation of the present disclosure, the download status of the candidate template can be determined, and the corresponding data can be presented in the preview area. Assuming that it is determined that the download status indicates that the download of the candidate template has not been completed, a prompt message can be presented in the preview area, which indicates that the first video editing result is being processed. See Figure 7 for more details, which shows a block diagram 700 of the process of downloading templates according to some implementations of the present disclosure. Assuming that template 234 is in the process of downloading, at template 234 in page 710, a mark 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, thereby facilitating the arrangement of subsequent video editing operations.

[0083] According to an example implementation of the present disclosure, when it is determined that the download status indicates that the download of the candidate template has failed, failure information can be presented in the preview area. Figure 8 shows a block diagram 800 of a download failure process according to some implementations of the present disclosure. As shown in page 810, a failure occurs during the download of template 234. At this time, a mark 820 can be presented at the template 234 to inform the user that re-downloading is required. Alternatively and / or additionally, failure information 830 can be presented in the preview area 260, and the user can be informed of subsequent operations and / or reasons for 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.

[0084] According to an example implementation of the present disclosure, when it is determined that the download status indicates that the download of the candidate template has been completed, the 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. In page 910, a mark 930 can be presented at the template 234 to indicate that the target 234 has been successfully downloaded. Alternatively and / or additionally, in the preview area 260, a second video editing result can be presented, which 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 other templates need to be downloaded.

[0085] According to an example implementation of the present disclosure, while a template is being downloaded, a user may be allowed to click on another template and initiate the process of downloading the other template. Specifically, an interaction (e.g., which may be a third interaction operation) with a third video editing template (e.g., template 236 that is different from template 234) among multiple candidate templates may be detected. When this interaction is detected, the download status of the third video editing template may be determined, and a corresponding action may be performed. FIG10 shows a block diagram 1000 of a background download process according to some implementations of the present disclosure.

[0086] As shown in page 1010, while downloading template 234, the user can click on template 236. If the download status of template 236 indicates that the download of template 236 has not yet been started, template 236 can be downloaded. The download progress of the template can be presented in the selection area. As shown in Figure 10, a mark 1030 can be presented at template 236 to indicate the download progress of template 236. It should be understood that since template 234 has not yet completed downloading, template 234 can be downloaded in the background. At this time, a reduced mark 1040 can be presented at template 234 to indicate the download progress of template 234. Further, a prompt message 1020 can be presented in preview area 260 to inform the user that the loading process is in progress. Using the example implementation of the present disclosure, multiple templates can be downloaded in parallel, and the download progress of multiple templates can 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.

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

[0088] It should be understood that the templates in the accompanying drawings merely schematically illustrate the cover images of the templates. Alternatively and / or additionally, more information about each template may be presented. According to an exemplary implementation of the present disclosure, for a candidate template among multiple candidate templates, information about the candidate template may be presented at a location associated with the candidate template in the selection area, the information about the candidate template including at least one of the following: name information, author information, duration information, and download status of the candidate template.

[0089] For more details, see FIG12 , which shows a block diagram 1200 of detailed information about candidate templates 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, tag 1226 may indicate the download status of template 232 (at this point, the template has been successfully downloaded); tag 1220 may indicate the length of template 232; tag 1222 may indicate the author of template 232 (e.g., the author's avatar, ID, and / or nickname, etc.); tag 1224 may indicate the name of template 232, etc.

[0090] It should be understood that FIG12 is merely illustrative, 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. Utilizing the example implementations of the present disclosure allows users to understand the detailed information of each template in a more comprehensive manner.

[0091] According to an example implementation of the present disclosure, the switching page may further include a control for controlling the playback of the second video editing result. For example, the control may include at least any one of the following: a play control for playing the second video editing result, and a stop control for stopping the playback of the second video editing result. See FIG13 for more details, which shows a block diagram 1300 of a playback start-up process 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 play control 1320 for starting playback of the second video editing result may be presented.

[0092] According to an example implementation of the present disclosure, the interaction between the user and the control control 1320 (for example, which can be referred to as a fourth interactive operation) can be detected. Further, when 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 playback. Utilizing the example implementation of the present disclosure, it is convenient for users to view the processing results of the template downloaded by the application in a simple and effective manner. In this way, the user can stop or start playing the second video editing result at any time, thereby facilitating confirmation of whether the template used meets their expectations.

[0093] FIG14 shows a block diagram 1400 of a playback process according to some implementations of the present disclosure. On page 1410, the second video editing result may be presented in preview area 260, along with a playback progress control 1420, a stop control 1430, a slot control 1440, and so on. When playing a video clip corresponding to a slot, a marker 1450 may be displayed at that slot to indicate that the currently playing content corresponds to that slot. This facilitates user understanding of the correspondence between the video's timeline and slots, making it easier for users to adjust video editing operations.

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

[0095] According to an example implementation of the present disclosure, the switching page may further include a cancel control (e.g., cancel control 240 in FIG. 13 ) for canceling the second video editing result in the preview area. If the user believes that the video effect does not meet expectations, the user can press cancel control 240 to reject the current template. If an interaction with cancel control 240 is detected, the editing page may be returned to and the first video editing result may be presented on the editing page. In this way, the user is allowed to cancel the template in a timely manner if he or she is not satisfied with the template.

[0096] Figure 15 shows a block diagram 1500 of an editing page after confirming a candidate template according to some implementations of the present disclosure. Page 1510 may provide a video editing function, that is, the user may 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, filters, text, and stickers of the second video editing result. As shown in Figure 15, controls 130 for editing music, controls 140 for editing text, controls 150 for editing stickers, and the like may be presented. It should be understood that at this time, the various attributes of the second video editing result may inherit the settings in the selected template. For example, the background music shown in box 1520 is set to "music2" defined in the selected template.

[0097] According to an example implementation of the present disclosure, the user can perform an interaction in page 1510 to edit the video. Specifically, when an interaction for editing attribute information (for example, which can be called the seventh interactive operation) is detected, the second video editing result can be updated based on the detected interaction. For example, the user can click on the 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 has met expectations, he 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 efficiency of video editing.

[0098] According to an example implementation of the present disclosure, a user may be allowed to switch the video currently being processed. Specifically, an interaction for switching videos (e.g., which may be referred to as an eighth interactive operation) may be detected to obtain another video editing result specified by the interaction. See FIG16 for more details, which shows a block diagram 1600 of switching videos according to some implementations of the present disclosure. A page 1610 may be provided for selecting a video to be processed. The user may interact with the page 1610 to select the video to be processed, and further, the current template may be utilized to update the video. In this way, it is convenient for the user to switch the currently processed video in a simpler and more effective manner. At this point, the current template will be directly applied to the switched video.

[0099] According to an exemplary implementation of the present disclosure, after the user selects another video to be processed, prompt information 1720 may be further provided to inquire whether the user allows template recommendation. See FIG17 for further details, which shows a block diagram 1700 of prompt information according to some implementations of the present disclosure. On page 1710, if the user presses control 1730, corresponding candidate templates will be recommended based on the user-selected video; if the user presses control 1732, the selected video can continue to be processed using the current template.

[0100] According to an example implementation of the present disclosure, in the process of updating the selected video using a template, it can be determined whether the video clip information of the selected video matches the video clip information of the template. If the judgment result is "no match", a notification message can be provided to indicate whether to continue using the first candidate template. See Figure 18 for more details, which shows a block diagram 1800 of prompt information according to some implementations of the present disclosure. As shown in Figure 18, in page 1810, assuming that the number of video clips included in the selected video is less than the number of video clips in the template (i.e., the number of slots), the unfilled material slots can follow the normal processing logic and can support the user to switch videos on the editing page. Alternatively and / or additionally, if the number of video clips included in the selected video is greater than the number of slots, or the time length of the video clip does not meet the requirements of the slot, a prompt message 1820 can be provided at this time to inform the user of potential risks.

[0101] According to an example implementation of the present disclosure, a user can interact with controls 1830 and / or 1832. When an interaction with control 1830 is detected (e.g., which can be referred to as a ninth interaction operation), the selected video can continue to be edited using the template. Alternatively and / or additionally, when an interaction with control 1832 is detected, the current template can be abandoned. Using an example implementation of the present disclosure, if the number of video clips does not match, a warning message can be provided to the user to reduce errors in the video editing process.

[0102] FIG19 shows a block diagram 1900 of template positions according to some implementations of the present disclosure. As shown in FIG19 , scene 1910 illustrates a scenario where the user has not switched videos. At this point, for the original material 1915 (i.e., the first video editing result), the templates may 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. Furthermore, the lower portion of FIG19 shows a scene 1920 where the user returns to the original template after switching videos. In this scene 1920, for the currently applied material 1925, the original template 1921 may be presented, and the edited template 1922 may be presented. For the current material 1926, the current template 1923 may be presented, and the newly recommended template 1924 may be presented.

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

[0104] Example Process

[0105] FIG20 illustrates a flowchart of a video editing method 2000 according to some implementations of the present disclosure. At block 2010, a first video editing template is obtained; the first video editing template indicates fill slots for at least one first video clip and a first editing effect to be applied to the at least one first video clip. At block 2020, at least one first video source is obtained; the at least one first video source corresponds to the fill slots of the at least one first video clip and is used to fill the first video editing template to generate the at least one first video clip. At block 2030, a first video editing result is generated based on the first video editing template and the at least one first video source. At block 2040, in response to a template switching operation, a second video editing template is obtained; the second video editing template indicates fill slots for at least one second video clip and a second editing effect to be applied to the at least one second video clip. At block 2050, at least one second video source is determined based on the at least one first video source; the at least one second video source corresponds to the fill slots of the at least one second video clip and is used to fill the second video editing template to generate the at least one second video clip. At block 2060 , a second video editing result is generated according to the second video editing template and at least one second image material.

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

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

[0108] According to an example implementation of the present disclosure, selecting at least one second image material further includes: comparing a first target filling slot in the filling slots of at least one first video clip and a second target filling slot corresponding to the first target slot in the filling slots of at least one second video clip, a first length corresponding to the first target filling slot and a second length of the second target filling slot; and based on the length comparison result, selecting a target image material corresponding to the first target filling slot from at least one first image material to fill the second target filling slot.

[0109] According to an example implementation of the present disclosure, selecting a target image material corresponding to a first target filling slot from at least one first image material based on a length comparison result 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, using the target image material to fill at least a portion of the second target filling slot.

[0110] According to an example implementation of the present disclosure, it further includes: in response to determining that there is a blank segment in the filling slot of at least one second video clip, filling the blank segment with a predetermined image material 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.

[0111] According to an example 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 based on a first video editing template and at least one first image material; and exporting a video file of the first video editing result based on the first video editing template and at least one first image material.

[0112] According to an example implementation of the present disclosure, obtaining a second video editing template includes: in response to a template switching operation, presenting multiple candidate templates in a switching page for switching video editing templates, the multiple candidate templates including the second video editing template; and in response to a first interactive operation for the second video editing template, obtaining the second video editing template.

[0113] According to an example implementation of the present disclosure, it further includes: presenting prompt information indicating whether it is allowed to recommend candidate templates for the first video editing result; and in response to detecting a second interactive operation that allows recommending candidate templates for the first video editing result, presenting multiple candidate templates, and the multiple candidate templates are recommended based on the first video editing result.

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

[0115] According to an example 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.

[0116] According to an example implementation of the present disclosure, the method 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.

[0117] According to an example implementation of the present disclosure, the method 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.

[0118] According to an example implementation of the present disclosure, it further includes: in response to detecting a third interactive operation for a third video editing template among multiple 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 yet been started, downloading the third video editing template; and presenting the download progress of the third video editing template.

[0119] According to an example 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 is generated based on the third video editing template and at least one third image material.

[0120] According to an example implementation of the present disclosure, the switching page further includes a control control for controlling the playback of the second video editing result, the control control including at least any one of the following: a play 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 for the control control, controlling the playback of the second video editing result based on the fourth interaction operation.

[0121] Example devices and equipment

[0122] FIG21 shows a block diagram of a video editing device 2100 according to some implementations of the present disclosure. 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 a filling slot of at least one first video clip and a first editing effect applied to at least one first video clip; a first material acquisition module 2120, configured to acquire at least one first image material; wherein the at least one first image material corresponds to a filling slot of at least one first video clip and is used to fill the first video editing template to generate at least one first video clip; a first generation module 2130, configured to generate a first video editing result based on the first video editing template and the at least one first image material; and a second template acquisition module 2140, configured to acquire a first video editing template; wherein the first video editing template is used to indicate a filling slot of at least one first video clip and a first editing effect applied to the at least one first video clip; and Module 2140 is configured to obtain a second video editing template in response to a template switching operation; wherein the second video editing template is used to indicate a filling slot of at least one second video clip and a second editing effect applied to at least one second video clip; the second material acquisition module 2150 is configured to determine at least one second image material based on at least one first image material; wherein the at least one second image material corresponds to the filling slot of at least one second video clip, and is used to fill the second video editing template to generate at least one second video clip; the second generation module 2160 is configured to generate a second video editing result based on the second video editing template and at least one second image material.

[0123] According to an example implementation of the present disclosure, the second material acquisition module is configured to: a quantity comparison module is configured to compare a first quantity of filled slots of at least one first video clip and a second quantity of filled slots of at least one second video clip; and a selection module is configured to select at least one second image material from at least one first image material based on the quantity comparison result.

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

[0125] According to an example 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 and a second length of a second target filling slot corresponding to the first target slot in the filling slot of at least one first video clip, and a second target filling slot corresponding to the first target slot in the filling slot of at least one second video clip; and a filling module, configured to select a target image material corresponding to the first target filling slot from at least one first image material based on the length comparison result, for filling the second target filling slot.

[0126] According to an example implementation of the present disclosure, the filling module includes: a first filling module, configured to, in response to determining that the first length is greater than the second length, cut out a portion matching the second length from the target image material for filling the second target filling slot; and a second filling module, configured to, in response to determining that the first length is not greater than the second length, use the target image material to fill at least a portion of the second target filling slot.

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

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

[0129] According to an example implementation of the present disclosure, the second template acquisition module includes: a candidate template presentation module, configured to present multiple candidate templates in a switching page for switching video editing templates in response to a template switching operation, the multiple 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 interactive operation for the second video editing template.

[0130] According to an example implementation of the present disclosure, the device further includes: a prompt module configured to present prompt information indicating whether it is allowed to recommend candidate templates for the first video editing result; and a recommendation module configured to present multiple candidate templates in response to detecting a second interactive operation that allows recommending candidate templates for the first video editing result, and the multiple candidate templates are recommended based on the first video editing result.

[0131] According to an exemplary 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.

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

[0133] 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.

[0134] According to an exemplary 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.

[0135] According to an example implementation of the present disclosure, the status determination module is further configured to determine the download status of the third video editing template in response to detecting a third interactive operation for a third video editing template among multiple candidate templates; and 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 yet been started; and the progress presentation module is further configured to present the download progress of the third video editing template.

[0136] According to an example implementation of the present disclosure, the result presentation module is further configured to present a third video editing result in a 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 based on the third video editing template and at least one third image material.

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

[0138] FIG22 shows a block diagram of a device 2200 capable of implementing various implementations of the present disclosure. It should be understood that the computing device 2200 shown in FIG22 is merely exemplary and should not be construed as limiting the functionality and scope of the implementations described herein. The computing device 2200 shown in FIG22 can be used to implement the methods described above.

[0139] As shown in FIG22 , computing device 2200 is in the form of a general-purpose computing device. Components of computing device 2200 may include, but are not limited to, one or more processors or processing units 2210, memory 2220, storage device 2230, one or more communication units 2240, one or more input devices 2250, and one or more output devices 2260. Processing unit 2210 may be a real or virtual processor and is capable of performing various processes according to a program stored in memory 2220. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to increase the parallel processing capabilities of computing device 2200.

[0140] The computing device 2200 typically includes a plurality of computer storage media. Such media can be any available media accessible to the computing device 2200, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 2220 can be a volatile memory (e.g., registers, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 2230 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data (e.g., training data for training) and can be accessed within the computing device 2200.

[0141] The computing device 2200 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 22 , a disk drive for reading from or writing to a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading from or writing to a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 2220 may include a computer program product 2225 having one or more program modules configured to perform various methods or actions of various implementations of the present disclosure.

[0142] The communication unit 2240 enables communication with other computing devices via a communication medium. Additionally, the functionality of the components of the computing device 2200 can be implemented as a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the computing device 2200 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or other network nodes.

[0143] Input device 2250 may be one or more input devices, such as a mouse, keyboard, or trackball. Output device 2260 may be one or more output devices, such as a display, a speaker, or a printer. Computing device 2200 may also communicate with one or more external devices (not shown) via communication unit 2240, as needed. External devices such as storage devices, display devices, and the like may also be used to communicate with one or more devices that allow a user to interact with computing device 2200, or with any device that allows computing device 2200 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0144] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, 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, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is provided, on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.

[0145] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented 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.

[0146] 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 device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

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

[0148] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0149] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations 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 quantity of the filling slots of the at least one first video segment and a second quantity of the filling slots of the at least one second video segment; And Selecting at least one second video material from the at least one first video material based on the comparison result of the quantities.

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 comparison result of the quantities comprises at least any one of the following: In response to determining that the first quantity is less than the second quantity, 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 quantity is not less than the second quantity, selecting at least one second video material from the at least one first video material, and the quantity of the at least one second video material is equal to the second quantity.

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 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 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 comparison result of the lengths comprises 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 initiated, 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 the filling slots of at least one first video segment and the first editing effects 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 based on the first video editing template and the at least one first video material; A second template acquisition module 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 the at least one second video segment; A second material acquisition module configured to determine at least one second video material based on 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 based on 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, which when executed by a processor causes the processor to implement the method according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Video material processing method and device and storage medium

    CN110139159A

  • Video generation method and device, electronic equipment and storage medium

    CN110825912A

  • Multimedia answer generation method and device, terminal equipment and storage medium

    CN111125384A

  • Video generation method and device, electronic equipment and storage medium

    CN116266856A

  • Page editing device, page editing method and computer program

    JP2006285578A