Video editing method and apparatus, electronic device and computer-readable storage medium

By displaying preview videos of intermediate stages during video editing, the problem of long loading times is solved, improving user experience and template usage.

WO2026002218A1PCT designated stage Publication Date: 2026-01-02BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/104558
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-28
Filing Date
2025-06-27
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

Existing video editing templates require a long waiting time when loading video works, which affects the user experience.

Method used

By obtaining the target video editing template and the material to be edited, a first video editing draft is generated and a first preview video is displayed, without showing the target editing effect. Then, the editing effect is applied according to the template to generate a second preview video, showing the target editing effect. During the process, video clips of intermediate stages are displayed.

Benefits of technology

This improved user awareness of the loading process, increased user dwell time on the editing page, enhanced user experience, and increased the usage rate of video editing templates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025104558_02012026_PF_FP_ABST
    Figure CN2025104558_02012026_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to a video editing method and apparatus, an electronic device and a computer-readable storage medium. The method comprises: acquiring a target video editing template and a material to be edited, the target video editing template being used for indicating a target editing effect; on the basis of said material, generating a first video editing draft, the first video editing draft comprising at least one video clip generated on the basis of said material; displaying on a first editing page a first preview video of the first video editing draft, the first preview video not presenting the target editing effect; on the basis of the target video editing template, applying the target editing effect to the first video editing draft so as to generate a second video editing draft; and displaying on the first editing page a second preview video of the second video editing draft, the second preview video presenting the target editing effect.
Need to check novelty before this filing date? Find Prior Art

Description

Video editing method and device, electronic equipment and computer readable storage medium

[0001] Cross-reference to Related Applications

[0002] The present application claims priority to the Chinese patent application No. 202410870266.5, filed on June 28, 2024, and entitled "Video editing method and device, electronic equipment and computer readable storage medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present disclosure relates to the technical field of video processing, and in particular to a video editing method, device, electronic equipment and computer readable storage medium. BACKGROUND

[0004] Some material editing software currently has a template generation function. The template generation function provides a function for a user to edit the user's material (image or video clip) based on a target template selected by the user, and generate a video work with the same or similar editing effect as the target template. SUMMARY

[0005] The present disclosure provides a video editing method, device, electronic equipment, storage medium and program product.

[0006] In a first aspect of the embodiments of the present disclosure, a video editing method is provided. The method comprises: obtaining a target video editing template and a material to be edited, the target video editing template being used to indicate a target editing effect; generating a first video editing draft according to the material to be edited, the first video editing draft comprising at least one video clip formed based on the material to be edited; displaying a first preview video of the first video editing draft on a first editing page, the first preview video not presenting the target editing effect; applying the target editing effect to the first video editing draft according to the target video editing template to generate a second video editing draft; and displaying a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect.

[0007] In some embodiments of the present disclosure, the method further comprises:

[0008] In a second aspect, the present disclosure provides a video editing device, comprising: an obtaining module configured to obtain a target video editing template and a material to be edited, the target video editing template being configured to indicate a target editing effect; a generating module configured to generate a first video editing draft according to the material to be edited, the first video editing draft comprising at least one video segment formed based on the material to be edited; and a display module configured to display a first preview video of the first video editing draft on a first editing page, the first preview video not presenting the target editing effect; the generating module is further configured to generate a second video editing draft by applying the target editing effect to the first video editing draft according to the target video editing template; and the display module is further configured to display a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect.

[0009] In a third aspect, the present disclosure provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program is executed by the processor to implement the video editing method according to the first aspect.

[0010] In a fourth aspect, the present disclosure provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the video editing method according to the first aspect.

[0011] In a fifth aspect, the present disclosure provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program product is executed on a processor, the processor executes the computer program to implement the video editing method according to the first aspect.

[0012] In a sixth aspect, the present disclosure provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to execute program instructions to implement the video editing method according to the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0013] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

[0015] FIG. 1 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0016] FIG. 2 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0017] FIG. 3 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0018] FIG. 4 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0019] FIG. 5 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0020] FIG. 6 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0021] FIG. 7 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0022] FIG. 8 is a flow diagram of a method for editing a frame of video according to an embodiment of the present disclosure;

[0023] FIG. 9 is a block diagram of a video editing device according to an embodiment of the present disclosure;

[0024] FIG. 10 is a block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] In order to more clearly understand the above-mentioned objects, features and advantages of the present disclosure, the schemes of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0026] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present disclosure, but the present disclosure can also be implemented in other different manners from those described herein; obviously, the embodiments described in the specification are only a part of the embodiments of the present disclosure, and not all the embodiments.

[0027] The terms "first", "second", and the like in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally means that the objects before and after are in an "or" relationship.

[0028] The electronic device in the embodiments of the present disclosure can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a personal computer (PC), a television (TV), a cashier machine, or a self-service machine, etc. The embodiments of the present disclosure do not make specific limitations.

[0029] The execution subject of the video editing method provided by the embodiments of the present disclosure can be the electronic device (including the mobile electronic device and the non-mobile electronic device) described above, or a functional module and / or functional entity capable of implementing the video editing method in the electronic device. The specific implementation can be determined according to actual use requirements, and the embodiments of the present disclosure do not make specific limitations.

[0030] With the continuous development of video editing technology, it sometimes takes a long loading time to generate a video work using a template generation function. Therefore, the user needs to wait for the video work to be loaded in the loading time on the pop-up page corresponding to the template (the pop-up page displays loading…), and the final generated video work can be displayed, which affects the user experience.

[0031] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with the prior art: obtaining a target video editing template and a material to be edited, the target video editing template being used to indicate a target editing effect; generating a first video editing draft according to the material to be edited, the first video editing draft including at least one video segment formed based on the material to be edited; displaying a first preview video of the first video editing draft on a first editing page, the first preview video not presenting the target editing effect; applying the target editing effect to the first video editing draft according to the target video editing template to generate a second video editing draft; and displaying a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect. In this way, the first preview video corresponding to the first video editing draft and the second preview video corresponding to the second video editing draft can be displayed respectively in the process of processing the material to be edited based on the video editing template. By displaying the video segment obtained in the intermediate stage, compared with only displaying a loading window, the scheme provided by the embodiments of the present disclosure can make the user have a clearer understanding of different stages of the loading process, understand the editing results of different stages, attract the user to stay on the editing page for a longer time, improve the user experience, and thus improve the usage rate of the video editing template.

[0032] The video editing method provided by the embodiments of the present disclosure will be described in detail below in combination with the drawings, specific embodiments and application scenarios thereof.

[0033] As shown in FIG. 1, the embodiments of the present disclosure provide a video editing method, which can include the following steps 101 to 105.

[0034] 101. Obtain a target video editing template and to-be-edited material, the target video editing template being used to indicate a target editing effect.

[0035] In the embodiments of the present disclosure, a plurality of video editing templates can be displayed, and the types of the plurality of video editing templates can be the same or different. A user selects a target video editing template from the plurality of video editing templates.

[0036] The to-be-edited material is the user's imported material, which can include at least one image material and / or at least one video clip material, and can also include other materials such as text material, picture-in-picture material, sticker material, background music material, etc. The specific determination can be made according to the actual situation, which is not limited here.

[0037] For example, in response to the user's trigger operation of selecting the target video editing template, a to-be-edited material selection interface is entered, the user can select at least one image material and / or at least one video material from a local gallery as the to-be-edited material, and then trigger the execution of the following steps 102 to 105 to generate a second video editing draft.

[0038] In the embodiments of the present disclosure, the editing processing corresponding to the target editing effect can include at least one effect editing processing.

[0039] The target editing effect can be a filter effect, a beauty effect, an effect obtained by processing based on artificial intelligence generated content (AIGC) technology, a subtitle effect, a text effect, a voice-over (text reading) effect, a background music effect, etc. The specific determination can be made according to the actual situation, which is not limited here.

[0040] The target video editing template can also include editing processing other than the editing processing corresponding to the target editing effect, such as packaging editing processing, which can include subtitle generation processing, voice-over generation processing, adding picture-in-picture processing, etc. The specific determination can be made according to the actual situation, which is not limited here.

[0041] In the embodiments of the present disclosure, it is not limited which editing processing is the editing processing corresponding to the target editing effect and which editing processing is the packaging editing processing. The specific determination can be made according to the actual situation.

[0042] Exemplarily, the editing processing corresponding to the filter effect, the beautifying effect, the subtitle effect, the text effect, the voice-over (text reading) effect, the background music effect, etc. can be the editing processing corresponding to the target editing effect, or can be the packaging editing processing.

[0043] 102. generating a first video editing draft according to the to-be-edited material, the first video editing draft including at least one video clip formed based on the to-be-edited material.

[0044] 103. displaying a first preview video of the first video editing draft on the first editing page, the first preview video not presenting the target editing effect.

[0045] 104. applying the target editing effect to the first video editing draft according to the target video editing template to generate a second video editing draft.

[0046] 105. displaying a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect.

[0047] In some embodiments of the present disclosure, the target video editing template can be a first type of video editing template or a second type of video editing template, which can be determined according to actual conditions.

[0048] The first type of video editing template can include only the editing processing corresponding to the target editing effect (the editing processing corresponding to the target editing effect can include at least one effect editing processing).

[0049] The first type of video editing template can also include at least one packaging editing processing and at least one effect editing processing (the editing processing corresponding to the target editing effect) located after the at least one packaging editing processing, which can be determined according to actual conditions.

[0050] The at least one packaging editing processing is used to edit the first video editing draft to obtain a first video editing draft with a corresponding packaging effect. The at least one effect editing processing is used to edit the first video editing draft to generate a second video editing draft matching the target video editing template.

[0051] It should be noted that for the first type of video editing template, the total number of image materials, the total number of video clip materials, and the specific duration of each video clip in the to-be-edited material are not limited, and the first type of video editing template also does not limit the types and quantities of other types of materials in the to-be-edited material except for image materials and video clip materials.

[0052] In some embodiments of the present disclosure, for the first type of video editing template, the step 102 can include generating a first video editing draft based on the understanding of the to-be-edited material and / or the script of the to-be-edited material. For example, the first video editing draft is generated by performing analysis, recognition, slicing, splicing, etc. on the to-be-edited material.

[0053] In some embodiments of the present disclosure, for the first type of video editing template, the step 102 can include generating a first video editing draft based on the understanding of the to-be-edited material and / or the script of the to-be-edited material by the first type of video editing template. For example, the first video editing draft is generated by performing analysis, recognition, slicing, splicing, etc. on the to-be-edited material based on the video draft generation method associated with the first type of video editing template.

[0054] Illustratively, a video script corresponding to the to-be-edited material is generated by performing analysis and recognition on the to-be-edited material, and then the to-be-edited material is sliced based on the video script to obtain a plurality of highlight segments matching the video script, and then the plurality of highlight segments are spliced to obtain the first video editing draft.

[0055] In some embodiments of the present disclosure, if the to-be-edited material only includes at least one video segment, the first video editing draft is generated based on the at least one video segment. If the to-be-edited material includes at least one video segment and at least one text material, the first video editing draft is generated based on the at least one video segment and the at least one text material.

[0056] In the embodiments of the present disclosure, for the first type of video editing template, the first video editing draft is generated based on the to-be-edited material, and the content of the first video editing draft can meet the individualization and diversity requirements of the user. Then, at least one effect editing process is performed on the first video editing draft, so that the final video editing result can meet the individualization and diversity requirements of the user.

[0057] The second type of video editing template includes at least one material slot, and each material slot is used to fill a video segment or an image. Therefore, the second type of video editing template limits the specific number of video segments and / or the specific number of images in the to-be-edited material. The second video editing template can also limit the time length of the video segment filled by one material slot to be greater than or equal to the time length requirement corresponding to the one material slot, or limit whether the video segment or the image is filled by one material slot. The specific determination can be made according to the actual situation, which is not limited here.

[0058] It can be understood that, because the second type of video editing template is used to indicate at least one material slot and a target editing effect, the material to be edited includes at least one image material and / or at least one video clip material (referred to as at least one material, the at least one material corresponds to the at least one material slot in one-to-one correspondence), which is used to fill the at least one material slot. At least one material is filled into at least one material slot of the target video editing template, that is, a first video editing draft is generated.

[0059] In the embodiments of the present disclosure, the first video editing draft can be quickly generated through the second type of video editing template, and then the editing processing corresponding to the target editing effect is performed on the first video editing draft, so that the final video editing result meets the personalized and diversified requirements of the user.

[0060] In some embodiments of the present disclosure, if the editing processing corresponding to the target editing effect includes a plurality of effect editing processings, the plurality of effect editing processings are executed in a target order, and in the process of executing the plurality of effect editing processings, the video editing draft generated at an intermediate stage can be displayed before the second video editing draft is generated.

[0061] Exemplarily, in the process of sequentially executing the plurality of effect editing processings on the first video editing draft in the target order, in a case where an i th effect editing processing in the plurality of effect editing processings is in an execution state, a target preview video is displayed on the first editing page. The target preview video is a preview video of a video editing draft at an intermediate stage obtained by executing the first i-1 effect editing processings on the first video editing draft before the second video editing draft is generated. i is a positive integer, and i is less than or equal to the number of the plurality of effect editing processings.

[0062] Among them, each effect editing processing includes the following states: unexecuted state, execution state, and execution completion state. Each effect editing processing includes the following execution results: execution success and execution failure.

[0063] In the embodiments of the present disclosure, in the process of editing the first video editing draft, the plurality of effect editing processings can be sequentially executed in a target order, and the execution of the subsequent effect editing processings can not be affected by the failure of any effect editing processing in the plurality of effect editing processings, or the execution of the subsequent effect editing processings can be affected by the failure of part of the effect editing processings in the plurality of effect editing processings. The execution of the subsequent editing processings is not affected by the failure of part of the effect editing processings, which can be determined according to actual conditions, and is not limited here.

[0064] Among them, at least one of the multiple effect editing processes has a relatively time-consuming editing process (the actual time consumption is greater than or equal to the time consumption threshold), and the specific time consumption is determined according to the type of effect editing process and the size of the material to be edited. Here, no limitation is made.

[0065] It should be noted that the preview video of the video draft generated at the corresponding intermediate stage can be displayed in the case that any one of the multiple effect editing processes is in an executing state, or the preview video of the video draft generated at the corresponding intermediate stage can be displayed in the case that part (at least one) of the multiple effect editing processes is in an executing state. The specific implementation can be determined according to actual conditions, and no limitation is made here.

[0066] Among them, the target preview video includes the editing effects corresponding to the successfully executed effect editing processes in the first i-1 effect editing processes. If i=1 or there is no successfully executed effect editing process in the first i-1 effect editing processes, the target preview video is the first preview video. If there is a failed effect editing process in the first i-1 effect editing processes, the target preview video is a video segment obtained by executing the successfully executed effect editing processes in the first i-1 effect editing processes on the first video editing draft.

[0067] In the embodiments of the present disclosure, during the process of performing multiple effect editing processes on the first video editing draft, when the i-th effect editing process is in an executing state, a video segment obtained by executing the first i-1 effect editing processes on the first video editing draft is displayed. In this way, during the process of processing the first video editing draft, a video segment obtained at an intermediate stage can be displayed. Compared with only displaying a pop-up window with a loading message, the scheme provided in the embodiments of the present disclosure can make the user have a clearer understanding of different stages of the loading process, understand the editing results of different stages, attract the user to stay on the editing page for a longer time, improve the user experience, and thus improve the usage rate of the video editing template.

[0068] In some embodiments of the present disclosure, after step 102, the video editing method provided in the embodiments of the present disclosure can further include the following steps 106 and / or step 107.

[0069] 106、Before generating the second video editing draft, displaying first prompt information on the first editing page.

[0070] Among them, the first prompt information is used to indicate at least one of the following: the execution progress of the target editing task, and the generation stage of the target editing task.

[0071] Among them, the execution progress can include a percentage of execution completion and / or a remaining execution time, and can also be other feasible execution progress. No limitation is made here.

[0072] The target editing task is to apply the target editing effect to the first video editing draft to generate a second video editing draft.

[0073] For example, if the effect editing process corresponding to the target editing effect includes one effect editing process, the first prompt information can include "target editing effect being generated"; if the effect editing process corresponding to the target editing effect includes multiple effect editing processes, the first prompt information can include "target editing effect being generated", or can include "the xxth effect editing process is being generated (i.e., the intermediate stage of the effect editing process can be displayed, and each effect editing process can be displayed, or only some time-consuming effect editing processes can be displayed)". The specific determination can be made according to actual conditions.

[0074] For example, the execution progress of the target editing task can be "target editing task being performed + percentage", or can be "xx time left to complete the target editing task", or can be displayed by a progress bar, or can be displayed by other feasible manners, which are not limited herein. The shape and style of the progress bar are not limited.

[0075] In some embodiments of the present disclosure, the corresponding time prompt information can be displayed according to the specific waiting time. For example, in the case of more than or equal to 1 hour of remaining time, the time prompt information is "xx hours are expected to be needed"; in the case of more than or equal to 1 minute of remaining time, the time prompt information is "xx minutes are expected to be needed"; in the case of more than or equal to 1 second of remaining time, the time prompt information is "xx seconds are expected to be needed".

[0076] The first prompt information can further include some text information such as "target editing effect generation needs some time, please wait patiently" and "suggestion for user to perform xx operation", which are not limited herein.

[0077] In the embodiments of the present disclosure, the first preview video and the first prompt information can be displayed simultaneously on the first editing page; or the first preview video can be displayed on the first editing page first, and then the first prompt information can be displayed on the first page by triggering the user's triggering operation; or the first prompt information can be displayed on the first editing page first, and then the first preview video can be displayed on the first page by triggering the user's triggering operation; the specific determination can be made according to actual conditions, which are not limited herein.

[0078] It can be understood that the effect editing process corresponding to the target editing effect includes multiple effect editing processes, and the first prompt information and the preview video displayed on the first editing page can also change over time.

[0079] In the embodiments of the present disclosure, the first prompt information is displayed in the execution process of the target editing task, which can help the user to have a clearer understanding of the loading process, can attract the user to stay on the editing page for more time, can improve the user experience, and thus can improve the use rate of the video editing template.

[0080] 107. Displaying the first control on the first editing page before generating the second video editing draft.

[0081] The first control is used to trigger switching the target editing task to background execution.

[0082] In the embodiments of the present disclosure, the first preview video and the first control can be displayed on the first editing page at the same time, or the first preview video can be displayed on the first editing page first, and then the first control is displayed on the first page by triggering the user's triggering operation, or the first control can be displayed on the first editing page first, and then the first preview video is displayed on the first page by triggering the user's triggering operation. The specific determination can be made according to the actual situation, which is not limited here.

[0083] In some embodiments of the present disclosure, the first control can not be displayed before generating the first video editing draft, and the first control can be displayed after generating the first video editing draft. The specific determination can be made according to the actual situation.

[0084] In some embodiments of the present disclosure, before generating the first video editing draft and displaying the first preview video, "processing for you is accelerating, don't leave oh ~" can be displayed to prompt the user to exit the editing page now, and the second video editing draft cannot be generated based on the target editing template.

[0085] In the embodiments of the present disclosure, an entrance (first control) is provided for the user to switch the target editing task to background execution, so that the user can switch the target editing task to background execution through the first control, so that the user can perform other operations during the execution process of the target editing task without staying on the first editing page to wait, providing more choices for the user and improving the user experience.

[0086] In the embodiments of the present disclosure, the above steps 106 and 107 can be executed simultaneously or only one of them can be executed. For example, the first prompt information can be displayed on the first editing page without displaying the first control, or the first control can be displayed on the first editing page without displaying the first prompt information, or the first prompt information and the first control can be displayed on the first editing page, or other information can be displayed on the first editing page. The specific determination can be made according to the actual situation, which is not limited here.

[0087] In some embodiments of the present disclosure, after step 107, the video editing method provided by the embodiments of the present disclosure can further include steps 108 and 109 as follows.

[0088] 108. In response to the triggering operation on the first control, the first editing page is canceled from being displayed.

[0089] In the embodiments of the present disclosure, canceling the display of the first editing page means switching the target editing task to background execution.

[0090] 109. The execution progress of the target editing task is displayed in a target area.

[0091] The target area can be a floating window area or an area for displaying a video editing draft (hereinafter referred to as a draft area).

[0092] The floating window area can be a floating window control.

[0093] The area for displaying a video editing draft can include a plurality of sub-areas, and the execution progress of the target editing task is displayed in one sub-area. In this case, the target area can be one sub-area in a draft box area in the home page of the video editing application, and the draft box area is used to display video editing drafts (video clips, video editing project files, including edited and unedited video editing drafts) generated by the user in the video editing application.

[0094] The target area also displays a target identifier of the target editing task, which is used to indicate the target video editing template (which can be the cover of the target video editing template (the first frame of the template material), the name of the target video editing template, etc.) or the target editing task (the cover of the first preview video (the first frame of the first preview video), the number of the target editing task, the name of the target editing task, the icon corresponding to the target editing task, etc.), so that the user can distinguish which editing task according to the target identifier.

[0095] In some embodiments of the present disclosure, the target area is a floating window area, which can be displayed above any page of the video editing application or above some pages of the video editing application. The specific determination can be made according to the actual situation, which is not limited here.

[0096] For example, if the floating window area is displayed above some pages of the video editing application, the floating window area is not displayed on any of the following pages: an editing page corresponding to any video editing template, a "tool" tab page, a "me" tab page, a "message" tab page, and a creator home page corresponding to a video editing template.

[0097] In the embodiments of the present disclosure, no other steps can be included between step 108 and step 109, or other steps can be included, which can be determined according to actual conditions, and is not limited here.

[0098] For example, if the target region is a floating region, no other steps are included between step 108 and step 109; if the target region is a region for displaying a video editing draft, steps of displaying other pages and receiving a user touch operation of displaying step 109 can be included between step 108 and step 109.

[0099] In the embodiments of the present disclosure, after the target editing task is switched to background execution, the execution progress of the target editing task is displayed in the target region, which can facilitate the user to obtain the execution progress of the target editing task without entering the first editing page, and can improve the user experience.

[0100] In some embodiments of the present disclosure, after step 109, the video editing method provided by the embodiments of the present disclosure can further include the following step 110.

[0101] 110. In response to a trigger operation on the target region, the first editing page is displayed.

[0102] In the embodiments of the present disclosure, during the execution of the target editing task, or after the execution of the target editing task is completed, the first editing page can be entered through a trigger operation on the target region to view the execution progress of the target editing task. If the execution is not completed, the first preview video or the target preview video at an intermediate stage can be viewed, and if the execution is completed, the final second preview video can be viewed.

[0103] In some embodiments of the present disclosure, when the target region is a floating window region, the first editing page can be displayed through a trigger operation on the target region only in the case that the execution progress or execution result information of the target editing task is displayed in the floating window region (i.e., the target editing task is displayed, and sometimes the floating window region displays other editing tasks, and the first editing page cannot be entered). When the target region is a region for displaying a video editing draft, the user can display the first editing page through a trigger operation on the target region at any time.

[0104] In some embodiments of the present disclosure, the target area is a floating window area. In addition to triggering the display of the first editing page to be cancelled and the execution progress of the target editing task to be displayed in the floating window area by triggering the first control, the pop-up prompt information can also be triggered by triggering the first editing page to be closed (such as clicking the "close" button on the first editing page, etc.), and the pop-up prompt information is used to prompt whether to switch to background running or whether to save to an area for displaying a video editing draft. If the user selects yes, the display of the first editing page is triggered to be cancelled, and the execution progress of the target editing task is displayed in the floating window area.

[0105] In some embodiments of the present disclosure, as shown in (a) of FIG. 2, the floating window area can also include a "close" button. Clicking the "close" button cancels the display of the floating window area, but the target editing task still remains in the background running before the target editing task is executed to be completed. In some embodiments of the present disclosure, the floating window area can also be reduced to a target control that is attached to the side of the electronic device by triggering the floating window area (such as a drag operation of the floating window area to any side of the electronic device), as shown in (b) of FIG. 2. The user can trigger the display of the floating window area by triggering the target control.

[0106] In some embodiments of the present disclosure, the floating window area can also display text prompt information such as "target editing task execution state", "target editing task execution success", "target editing task execution failure", "target editing task queuing waiting", etc. which can be played in the form of a marquee in the floating window area.

[0107] In some embodiments of the present disclosure, the target area is a floating window area. After the step 109, the video editing method provided by the embodiments of the present disclosure can further include the following step 111.

[0108] 111. In the case where there are a plurality of editing tasks, the floating window area displays the editing state of the latest editing task in the plurality of editing tasks.

[0109] The plurality of editing tasks are respectively any one of the following: an editing task in a background execution state, an editing task in a background execution completion and unviewed state, and an editing task in a background waiting execution state; and the latest editing task is the editing task whose time length from the moment of switching to background execution to the current moment is the smallest.

[0110] It can be understood that in the embodiments of the present disclosure, due to the limited display area of the floating window area, only one editing state of an editing task can be displayed at the same time.

[0111] The editing state of an editing task includes a waiting execution state, an execution state, and an execution completion state.

[0112] The editing state of the editing task displayed in the floating window area includes a background waiting execution state (current editing task is too many, waiting execution in the background), a background execution state, a background execution completion and non-viewing state (i.e., a state of running in the background and not entering the corresponding editing page to view the execution result, the editing task after the background execution is completed and has viewed the execution result in the corresponding editing page is not displayed in the floating window area).

[0113] In some embodiments of the present disclosure, when the floating window area currently displays the editing state of the first editing task, if the user triggers a second editing task of editing the to-be-edited material based on one video editing template by triggering operation on the one video editing template, and switches the second editing task to background execution, the editing state of the first editing task displayed in the floating window area is switched to the editing state of the second editing task. The editing state of the editing task displayed in the floating window area is switched to the editing state of the editing task that is switched to background execution last time in response to the user switching the corresponding editing task to background execution each time in the editing page.

[0114] In some embodiments of the present disclosure, if the background execution completion and non-viewing state of the first editing task is currently displayed in the floating window area, in response to the user triggering operation on the floating window area, the execution result of the first editing task is entered in the corresponding editing page, and the background execution completion and non-viewing state of the first editing task is cancelled in the floating window area, the editing state of the editing task covered by the background execution completion and non-viewing state of the first editing task is displayed in the floating window area.

[0115] In some embodiments of the present disclosure, the target video editing template is also used to indicate at least one packaging editing process, and the first preview video is a preview video after the at least one packaging editing process is executed on the first video editing draft. Before the step 103, the video editing method provided by the present disclosure can further include the following step 112.

[0116] 112、Display the second prompt information and the second control in the second editing page.

[0117] The second prompt information is used to indicate at least one of the following: execution progress of the at least one packaging editing process, and a target packaging editing process currently executed.

[0118] The second editing page can be the first editing page (only the display content is different), or can be an editing page other than the first editing page, which is not limited here.

[0119] If the second editing page is a different page from the first editing page, the second control is used to enter the first editing page; if the second editing page is the same page as the first editing page, the second control is used to trigger the switching of the content displayed in the second editing page (i.e., the first editing page).

[0120] For example, when the second editing page and the first editing page are different pages, and the first editing page includes the aforementioned first prompt information, switching from the second editing page to the first editing page may include collapsing the second prompt information in the second editing page into the first prompt information in the first editing page, that is, the first editing page includes the first preview video and the second prompt information.

[0121] In this embodiment of the disclosure, during the execution of at least one packaging editing process, a third preview video can also be triggered to be displayed on the first video editing page by triggering the second control. The third preview video is a preview video of the execution of the at least one packaging editing process on the first video editing draft.

[0122] In some embodiments of this disclosure, during the execution of at least one packaging editing process, the preview video corresponding to the material to be edited can also be displayed on the first video editing page by triggering the operation of the second control, or the initial preview video corresponding to the first video editing draft (the preview video that has not undergone at least one packaging editing process) can be displayed. That is, the first preview video is not displayed before at least one packaging editing process is completed.

[0123] It is understandable that, without the user triggering the second control, the second editing page can display the corresponding second prompt and second control for each packaging editing process as it is in execution, provided that at least one packaging editing process is in progress. Specifically, when the previous editing process is in execution, the second editing page displays the corresponding second prompt and second control; when the current editing process is in execution, the second editing page displays the corresponding second prompt and second control; and when the next editing process is in execution, the second editing page displays the corresponding second prompt and second control.

[0124] In this embodiment of the disclosure, a second control is displayed on the second editing page. When the user needs to display the staged video editing results, the user can trigger the display of the staged video editing results on the first editing page by triggering the second control.

[0125] In some embodiments of this disclosure, after step 112 described above, the video editing method provided by the embodiments of this disclosure may further include step 113 as described below.

[0126] 113. In response to the triggering operation on the second control, the third preview video is displayed on the first editing page, the third preview video being a preview video in the at least one packaging editing process performed on the first video editing draft.

[0127] In the at least one packaging editing process, when a first packaging editing process is in an execution process, a preview video corresponding to the to-be-edited material is displayed, or a corresponding initial preview video of the first video editing draft is displayed.

[0128] It can be understood that, as long as the second editing page displays the second indication information and the second control corresponding to one packaging editing process in an execution state, in response to the triggering operation on the second control, the first editing page can display the preview videos obtained by all packaging editing processes before the one packaging editing process performed on the first video editing draft.

[0129] In the embodiments of the present disclosure, by switching between displaying the second prompt information and the second control on the second editing page and displaying the third preview video on the first editing page, the user can be facilitated to understand more information of different stages of the loading process, the user's cognition of the process of generating a video clip based on a video editing template can be improved, the user can be given a phased waiting experience, and thus the interest in generating a video clip based on a video editing template can be improved, and the user experience can be improved.

[0130] In some embodiments of the present disclosure, after the above step 113, the second editing page can be switched back by a triggering operation on the first editing page, which can be determined according to actual conditions and is not limited herein.

[0131] In some embodiments of the present disclosure, when part or all of the at least one packaging editing process is in an execution state, the intermediate stage execution information (at least including the second prompt information and the second control) is displayed in the form of the second editing page by default, and then the intermediate stage execution information (at least including the third preview video, and further including the first prompt information and / or the first control) can be displayed in the form of the first editing page by triggering the second control on the second editing page, and the second editing page can be displayed again by triggering the first editing page, which can be determined according to actual conditions and is not limited herein.

[0132] Exemplarily, as shown in FIGS. 3-5, the process of generating the second video editing draft when the target video editing template is the first type of video editing template, wherein (a) of FIG. 3-(a) of FIG. 4 is the process of generating the first video editing draft, (b) of FIG. 4-(c) of FIG. 4 are the second editing pages corresponding to the two packaging editing processes, and (a) of FIG. 5-(c) of FIG. 5 are the first editing pages corresponding to the three effect editing processes.

[0133] In the embodiments of the present disclosure, in the process of generating the first video editing draft, only the indication information of the generation stage of the first video editing draft is displayed.

[0134] In some embodiments of the present disclosure, before the step 102, the video editing method provided by the embodiments of the present disclosure can further include the following step 114.

[0135] 114、Before generating the first video editing draft, displaying the preview image corresponding to the to-be-edited material on the first editing page.

[0136] In the embodiments of the present disclosure, before the first video editing draft is generated, the staged video editing result cannot be displayed, therefore, the to-be-edited material is displayed, which can increase the display diversity of the editing interface, can let the user know that the to-be-edited material is being edited, and can improve the user experience.

[0137] In some embodiments of the present disclosure, before the step 104, the video editing method provided by the embodiments of the present disclosure can further include the following step 115.

[0138] 115、Displaying the fifth prompt information on the first editing page, or displaying the fifth prompt information and the third control on the first editing page.

[0139] The fifth prompt information is used to indicate that the number of the target editing tasks of applying the target editing effect on the video editing draft based on the video editing template is greater than or equal to the number threshold, and the target editing task is in the queuing waiting state.

[0140] The third control is used to trigger switching the target editing task to the background waiting.

[0141] The target editing task is the task of applying the target editing effect on the first video editing draft to generate the second video editing draft.

[0142] The fifth prompt information is used to indicate that the target editing task is in the waiting execution state, and the target editing task can be switched to the background waiting by triggering the third control, so that the editing state of the target editing task becomes the background waiting execution state.

[0143] Exemplarily, the fifth prompt information can be "in the queue, estimated waiting time is xx hours / minutes / seconds".

[0144] The editing task switched to the background waiting can view the corresponding waiting information in the target area (the floating window area or the area for displaying the video editing draft), and the waiting information can include the time still needed to wait, and the number of the current waiting queue.

[0145] Exemplarily, as shown in FIG. 6, the fifth prompt information and the third control can be directly displayed on the first editing page, or can be displayed in a pop-up window on the first editing page, and at the same time, text prompt information such as "due to too many editing tasks to be executed currently, the queue is needed, and you can choose to enter the background queue" can be displayed.

[0146] Exemplarily, in some embodiments of the present disclosure, the video editing method provided by the embodiments of the present disclosure can further include any one of the following steps 116 to 117.

[0147] 116. In a case where the editing processing based on the target video editing template on the to-be-edited material generates a second video editing draft, the first execution result information is displayed on the target editing area.

[0148] The first execution result information is used to indicate the generation of the second video editing draft.

[0149] The target editing area can be the target area or the first editing page. If the first editing page is currently displayed, the first execution result information is displayed on the first editing page. If the floating window area is currently displayed, the first execution result information is displayed on the floating window area. If the draft area is currently displayed, the first execution result information is displayed on the draft area.

[0150] In some embodiments of the present disclosure, the first execution result information can further include text prompt information such as "you have successfully used the editing task experience opportunity once" and "the target editing task has been executed, and has been automatically played for you".

[0151] In the embodiments of the present disclosure, the first execution result information is displayed on the target editing area, which can facilitate the user to determine whether the target editing task is executed successfully as soon as possible.

[0152] Exemplarily, as shown in (a) of FIG. 7 and (b) of FIG. 7, when the target video editing template is a second type of video editing template, the first editing page corresponding to the multiple effect editing processing included in the target editing task, as shown in (c) of FIG. 7, when the target editing task is executed successfully, the second preview video displayed on the first editing page.

[0153] 117. In a case where the editing processing based on the target video editing template on the to-be-edited material fails to generate the second video editing draft, the second execution result information is displayed in the target editing area.

[0154] The second execution result information is used to indicate that the target editing task fails.

[0155] The step 117 includes two cases of failure of the target editing task, one is that the overall process is completed and at least one first editing processing fails, and the other is that the overall process fails due to failure of at least one second editing processing. The specific content of the second execution result information can be determined according to actual conditions, which is not limited here.

[0156] In the embodiments of the present disclosure, the second execution result information is displayed in the target editing area, which can facilitate the user to determine whether the target editing task is successfully executed as soon as possible.

[0157] In some embodiments of the present disclosure, the target editing area is the first editing page, and the step 116 can be implemented by the following step 116a.

[0158] 116a. The first execution result information and the second preview video are displayed on the first editing page.

[0159] In the embodiments of the present disclosure, in a case where the target editing task is successfully executed, the second preview video is automatically played from the beginning on the first editing page.

[0160] In some embodiments of the present disclosure, the target editing area is the first editing page, and the step 117 can be implemented by the following step 117a.

[0161] 117a. The second execution result information, the reason for the failure, and the fourth preview video are displayed on the first editing page.

[0162] The fourth preview video is a preview video of the third video editing draft corresponding to the second execution result information.

[0163] In the embodiments of the present disclosure, displaying the reason for the failure can enable the user to determine the reason for the failure, and displaying the fourth preview video can enable the user to determine the current editing result.

[0164] In some embodiments of the present disclosure, in a case where the reason for the failure is that the first video editing draft fails to be generated, the third video editing result is obtained by performing a preset splicing processing on the to-be-edited material. In this way, in a case where the target video editing template is the first type of video editing template, the reason for the failure can be more accurately determined.

[0165] Exemplarily, for the first type of video editing template, the editing processing corresponding to the highlight recognition and the slice (hereinafter referred to as the first editing processing, that is, the video generation editing processing), the editing processing corresponding to the subtitle and the voiceover (hereinafter referred to as the second editing processing, that is, the effect editing processing), the editing processing corresponding to the short text, the background music, the effect optimization, etc. (hereinafter referred to as the third editing processing, that is, the effect editing processing).

[0166] In a case where the first editing processing is in an executing state or fails to execute, the corresponding fourth preview video is obtained by performing a preset splicing processing on the to-be-edited material; in a case where the first editing processing is successfully executed, the corresponding fourth preview video is obtained by performing the highlight recognition and the slice on the to-be-edited material.

[0167] In a case where the second editing processing is in an executing state or fails to execute, the corresponding fourth preview video is a video segment obtained by the first editing processing, and the subtitle and the voiceover are not displayed; in a case where the second editing processing is successfully executed, the corresponding fourth preview video is a video segment in which the subtitle and the voiceover are added to the video segment obtained by the first editing processing.

[0168] In a case where the third editing processing is in an executing state or fails to execute, the corresponding fourth preview video is a video segment obtained by the second editing processing, and the corresponding template packaging effect is not displayed; in a case where the third editing processing is successfully executed, the corresponding fourth preview video is a video segment in which the short text, the background music, and the effect optimization processing are added to the video segment obtained by the second editing processing.

[0169] In some embodiments of the present disclosure, the target editing region is the first editing page, and the video editing method provided by the embodiments of the present disclosure can further include the following step 118.

[0170] 118. When the second execution result information is displayed in the target editing region, the first retry control is also displayed in the target editing region.

[0171] When the second execution result information is displayed in the target editing region, the step 118 can be implemented simultaneously with the step 117 (that is, the second execution result information, the reason for the execution failure, the fourth preview video, and the first retry control are displayed in the first editing page), or can be implemented separately, and the specific implementation can be determined according to the actual situation, which is not limited herein.

[0172] In the embodiments of the present disclosure, in a case where the target editing task fails to execute, the first retry control is displayed, so as to facilitate the user to quickly trigger the re-execution of the target editing task or the re-execution of the last editing processing that fails to execute.

[0173] In some embodiments of the present disclosure, after step 118, the video editing method provided by the embodiments of the present disclosure can further include step 119 as follows.

[0174] 119. In response to the triggering operation on the first retry control, re-executing the editing process of the material to be edited based on the target video editing template to generate a second video editing draft, or continuing to edit the third video editing draft based on the target video editing template to generate the second video editing draft.

[0175] The third video editing draft is the video editing draft corresponding to the second execution result information.

[0176] The continuing to edit the third video editing draft based on the target video editing template to generate the second video editing draft is to re-execute the editing process that failed in the last execution.

[0177] In the embodiments of the present disclosure, the first retry control can be used to quickly trigger the re-execution of the target editing task or the re-execution of the editing process that failed in the last execution, so as to improve the efficiency of obtaining the second video editing draft.

[0178] In some embodiments of the present disclosure, the user can also choose to abandon the target editing task without retrying.

[0179] In some embodiments of the present disclosure, the target editing area is a target area, and the target area is a floating window area or an area for displaying a video editing draft. The step 117 can be implemented by step 117b as follows. The video editing method provided by the embodiments of the present disclosure can further include steps 120 and 121 as follows.

[0180] 117b. Displaying the second execution result information and the second retry control in the target editing area.

[0181] The second retry control can be the same as or different from the first retry control, and the shape and style of the second retry control are not limited.

[0182] In some embodiments of the present disclosure, the reason for the failure of the execution can be that the overall flow is completed and at least one first editing process fails. At this time, the reason for the failure of the execution displayed on the first editing page can be all reasons for the failure of the at least one first editing process, or can be part of the reasons for the failure of the at least one first editing process. The specific reason can be determined according to actual conditions, which is not limited herein.

[0183] In some embodiments of the present disclosure, in the case that the cause of the execution failure displayed on the first editing page is part of the cause of the failure of the execution of the at least one first editing process, it can be any one of the full causes of the failure of the execution of the at least one first editing process, or one selected by the user from the full causes of the failure of the execution of the at least one first editing process (for example, a list of the full causes is first displayed, and the user selects one from the list, and details of the selected cause are displayed), or the first cause in the full causes of the failure of the execution of the at least one first editing process according to a target order, or the most important one in the full causes of the failure of the execution of the at least one first editing process according to importance (the one with the greatest impact according to the degree of impact on the target editing task), which can be determined according to actual conditions and is not limited here.

[0184] In some embodiments of the present disclosure, the cause of the execution failure can also be the failure of the execution of the at least one second editing process, which leads to the failure of the execution of the whole process. At this time, the cause of the execution failure displayed on the first editing page can be the full causes of the failure of the execution of the at least one second editing process, or part of the causes of the failure of the execution of the at least one second editing process, which can be determined according to actual conditions and is not limited here.

[0185] In some embodiments of the present disclosure, in the case that the cause of the execution failure displayed on the first editing page is part of the cause of the failure of the execution of the at least one second editing process, it can be any one of the full causes of the failure of the execution of the at least one second editing process, or one selected by the user from the full causes of the failure of the execution of the at least one second editing process (for example, a list of the full causes is first displayed, and the user selects one from the list, and details of the selected cause are displayed), or the first cause in the full causes of the failure of the execution of the at least one second editing process according to a target order, or the most important one in the full causes of the failure of the execution of the at least one second editing process according to importance (the one with the greatest impact according to the degree of impact on the target editing task), which can be determined according to actual conditions and is not limited here.

[0186] 120、in response to the triggering operation on the second retry control, displaying the cause of the execution failure and the first retry control on the first editing page.

[0187] 121、in response to the triggering operation on the first retry control, re-executing the editing process of the material to be edited based on the target video editing template to generate a second video editing draft, or continuing to edit the third video editing draft based on the target video editing template to generate the second video editing draft.

[0188] The third video editing draft is the video editing draft corresponding to the second execution result information.

[0189] In the step 121, whether to select to continue editing the third video editing draft based on the target video editing template to generate the second video editing draft (before saving, the execution result of the successful editing process is executed, and when retrying, the execution result is continued based on the saved execution result.) or to select to re-execute the editing process of the to-be-edited material based on the target video editing template to generate the second video editing draft can be determined according to the reason for the execution failure, and can be determined according to actual conditions, which is not limited here.

[0190] It can be understood that the second retry control is displayed while the second execution result information is displayed in the target area (the floating window area or the area for displaying the video editing draft), and the user clicks the second retry control to enter the first editing page, so that the user can view the specific reason for the execution failure through the first editing page, and then the user triggers the first retry control displayed on the first editing page to re-execute the editing process of the to-be-edited material based on the target video editing template to generate the second video editing draft or to continue editing the third video editing draft based on the target video editing template to generate the second video editing draft. In this way, the user can determine the reason for the failure to generate the second video editing draft based on the specific reason for the execution failure displayed on the first editing page, and also has a relatively clear cognition of the subsequent process of re-executing the editing process of the to-be-edited material based on the target video editing template to generate the second video editing draft or continuing to edit the third video editing draft based on the target video editing template to generate the second video editing draft, that is, the subsequent process is different when the reason for the execution failure is different, which avoids the user's suspicion of the change of the retry process and can improve the user experience.

[0191] In the embodiments of the present disclosure, the trigger operation can be a click operation, a sliding operation, or a dragging operation, which can be determined according to actual conditions, and is not limited here.

[0192] In some embodiments of the present disclosure, when the target video editing template is a first type of video editing template, the target editing task execution failure is generally divided into two categories. The first type of failure is a whole task flow execution failure, and the second type of failure is a partial flow execution failure without blocking the whole task flow. For the first type of failure, the reason for the execution failure is generally high-light recognition and slicing failure or network exception. For the second type of failure, the reason for the execution failure is generally subtitle generation failure, voice-over generation failure, short text generation failure, or other effect editing process failure (such as background music generation failure or video effect optimization failure).

[0193] For example, if the failure is caused by network exception, the first editing page displays "Please retry after checking network status". If the failure is caused by subtitle generation, the first editing page displays "Subtitle generation failed, please retry". If the failure is caused by both subtitle generation and short text generation, the first editing page displays "Subtitle generation failed, please retry" first, and after the user clicks retry to re-execute the subtitle generation process, the first editing page displays "Short text generation failed, please retry", or the first editing page displays "Subtitle and short text generation both failed, please retry".

[0194] In the embodiments of the present disclosure, for the first type of failure, in response to the triggering operation on the first retry control, the editing process of the target video editing template on the to-be-edited material is re-executed to generate a second video editing draft; for the second type of failure, in response to the triggering operation on the first retry control, the third video editing draft is continuously edited based on the target video editing template to generate a second video editing draft.

[0195] In some embodiments of the present disclosure, as shown in (a) to (c) in FIG. 8, in the case where the target video editing template is a second type of video editing template, the reason for the failure of the target editing task includes any of the following: material error (corresponding to (a) in FIG. 8), network error (corresponding to (b) in FIG. 8), and flow limiting error (corresponding to (c) in FIG. 8).

[0196] The first type of video editing template includes a plurality of material slots, and the plurality of material slots are respectively used to indicate the arrangement order of a plurality of materials (images and / or video clips) and the material duration of the plurality of materials. The plurality of material editing processes are used for video effect editing processing (which can also be referred to as effect editing processing) on the to-be-edited material.

[0197] The network error is used to indicate that at least one editing process fails due to network exception.

[0198] The material error is used to indicate that the plurality of materials in the to-be-edited material do not match the plurality of material slots. For example, the material duration of at least one material in the to-be-edited material is less than the material duration indicated by the corresponding material slot (does not meet the duration requirement); the number of materials included in the to-be-edited material is less than the number of material slots in the target video editing template.

[0199] The flow limiting error is used to indicate that the target editing task fails due to too many editing tasks currently existing (too many users currently use the video editing template to edit videos, resulting in the failure of the target editing task).

[0200] In some embodiments of the present disclosure, in addition to displaying the video editing result, the video export control, the undo recovery control, the draft unlocking control, the video duration, the material slot (to-be-edited material), and the editing tool area can also be displayed on the first editing interface when the overall flow execution is completed (including the case of successful execution and the case of failed execution).

[0201] In some embodiments of the present disclosure, in the execution process of generating the second video editing draft based on the target video template and the to-be-edited material, the video export control, the undo recovery control, the draft unlocking control, the video duration, the material slot (to-be-edited material), and the editing tool area are hidden on the first editing page, and only the exit of the first editing page and the target preview video play and pause control are supported. When the first control exists, the background execution triggered by the first control can also be supported. The specific implementation can be determined according to actual conditions, and is not limited herein.

[0202] In some embodiments of the present disclosure, in the execution process of generating the second video editing draft based on the target video template and the to-be-edited material, if the first editing page is exited by clicking the “exit” button, the editing process in the execution state is not saved, and only the video editing result corresponding to the editing process that has been executed is saved. If the first editing page is exited by killing the process (the video editing application is exited), the editing process in the execution state is also not saved, and only the video editing result corresponding to the editing process that has been executed is saved. Subsequently, through the trigger operation of the target editing task corresponding to the video editing result in the draft area, only the video editing result is displayed, and the editing process that is not executed in the target editing task is not triggered.

[0203] FIG. 9 is a structural block diagram of a video editing device according to an embodiment of the present disclosure. As shown in FIG. 9, the video editing device includes an acquisition module 901, a generation module 902, and a display module 903. The acquisition module 901 is configured to acquire a target video editing template and to-be-edited material, the target video editing template being used to indicate a target editing effect. The generation module 902 is configured to generate a first video editing draft according to the to-be-edited material, the first video editing draft including at least one video segment formed based on the to-be-edited material. The display module 903 is configured to display a first preview video of the first video editing draft on a first editing page, the first preview video not presenting the target editing effect. The generation module 902 is further configured to apply the target editing effect to the first video editing draft to generate a second video editing draft. The display module 903 is configured to display a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect.

[0204] In some embodiments of the present disclosure, the display module 903 is further configured to display, on the first editing page, first prompt information before generating the second video editing draft, and / or display the first control on the first editing page; wherein the first prompt information is used to indicate at least one of the following: the execution progress of the target editing task, the generation stage of the target editing task; the first control is used to trigger switching the target editing task to background execution; wherein the target editing task is a task of applying the target editing effect to the first video editing draft to generate the second video editing draft.

[0205] In some embodiments of the present disclosure, the display module 903 is further configured to, after displaying the first control on the first editing page, cancel displaying the first editing page in response to a triggering operation on the first control; and display the execution progress of the target editing task in a target area, wherein the target area is a floating window area or an area for displaying a video editing draft.

[0206] In some embodiments of the present disclosure, the display module 903 is further configured to, after displaying the execution progress of the target editing task in the target area, display the first editing page in response to a triggering operation on the target area.

[0207] In some embodiments of the present disclosure, the target area is a floating window area, and the display module 903 is further configured to, in a case where there are multiple editing tasks, display, in the floating window area, an editing state of a latest editing task in the multiple editing tasks, wherein the multiple editing tasks are any one of the following: an editing task in a background execution state, an editing task in a background execution completion and unviewed state, and an editing task in a background waiting execution state; and the latest editing task is an editing task whose time length from a time point when the latest editing task is switched to background execution to a current time point is the smallest.

[0208] In some embodiments of the present disclosure, the target video editing template is further used to indicate at least one packaging editing process, and the first preview video is a preview video after the first video editing draft is executed with the at least one packaging editing process; and the display module 903 is further configured to, before displaying the first preview video of the first video editing draft on the first editing page, display second prompt information and a second control on a second editing page, wherein the second prompt information is used to indicate at least one of the following: the execution progress of the at least one packaging editing process, and a target packaging editing process currently executed; and in response to a triggering operation on the second control, display a third preview video on the first editing page, wherein the third preview video is a preview video during execution of the first video editing draft with the at least one packaging editing process.

[0209] In some embodiments of the present disclosure, the display module 903 is further configured to display, on the first editing page, a preview image corresponding to the to-be-edited material before generating the first video editing draft.

[0210] In some embodiments of the present disclosure, the display module 903 is further configured to, before generating the second video editing draft by applying the target editing effect on the first video editing draft according to the target video editing template, display fifth prompt information on the first editing page, or display the fifth prompt information and a third control on the first editing page; the fifth prompt information is used to indicate that the number of editing tasks currently based on the video editing template to apply the target editing effect on the video editing draft is greater than or equal to a number threshold, and the target editing task is in a queuing waiting state; the third control is used to trigger switching the target editing task to a background waiting state; the target editing task is the task of generating the second video editing draft by applying the target editing effect on the first video editing draft.

[0211] In some embodiments of the present disclosure, the display module 903 is further configured to, in a case that the second video editing draft is generated by the editing process on the to-be-edited material based on the target video editing template, display first execution result information in the target editing area, the first execution result information being used to indicate that the second video editing draft is generated; in a case that the second video editing draft is not generated by the editing process on the to-be-edited material based on the target video editing template, display second execution result information in the target editing area, the second execution result information being used to indicate that the target editing task fails.

[0212] In some embodiments of the present disclosure, the target editing area is the first editing page; the display module 903 is specifically configured to display the first execution result information and the second preview video on the first editing page, or display the second execution result information, a reason for the failure, and a fourth preview video on the first editing page, the fourth preview video being a preview video of a third video editing draft corresponding to the second execution result information.

[0213] In some embodiments of the present disclosure, the display module 903 is further configured to, when the second execution result information is displayed in the target editing area, the target editing area further displays a first retry control.

[0214] The apparatus further includes an execution module configured to, in response to a triggering operation on the first retry control, re-execute the editing process on the to-be-edited material based on the target video editing template to generate the second video editing draft, or continue to edit the third video editing draft based on the target video editing template to generate the second video editing draft.

[0215] In some embodiments of the present disclosure, the target editing region is a target region, the target region is a floating window region, or a region for displaying a video editing draft; the display module 903 is specifically configured to display the second execution result information and the second retry control in the target editing region; the display module 903 is further configured to, in response to a triggering operation on the second retry control, display the reason for the execution failure and the first retry control on the first editing page; the apparatus further includes an execution module configured to, in response to a triggering operation on the first retry control, re-execute the editing process on the to-be-edited material based on the target video editing template to generate a second video editing draft, or continue editing based on the target video editing template to generate the second video editing draft from a third video editing draft; the third video editing draft is a video editing draft corresponding to the second execution result information.

[0216] FIG. 10 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure, which is used to exemplarily illustrate an electronic device implementing any video editing method in the embodiments of the present disclosure, and should not be understood as a specific limitation on the embodiments of the present disclosure.

[0217] As shown in FIG. 10, the electronic device 1000 can include a processor (such as a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or loaded from a storage device 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0218] Generally, the following devices can be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 1000 with various devices is shown, it should be understood that all the shown devices are not required to be implemented or possessed. More or fewer devices can be alternatively implemented or possessed.

[0219] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication apparatus 1009, or installed from the storage apparatus 1008, or installed from the ROM 1002. When the computer program is executed by the processor 1001, the functions defined in any of the video editing methods provided by embodiments of the present disclosure can be performed.

[0220] It should be noted that the computer-readable medium described above in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device. In the present disclosure, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take on many forms, including but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium that is not a computer-readable storage medium, which can be used to carry or transmit a program for use by or in connection with an instruction execution system, apparatus or device. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to, a wire, an optical fiber, an RF (radio frequency) or the like, or any suitable combination thereof.

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

[0222] The computer readable medium described above can be included in the electronic device described above; or can exist independently of the electronic device.

[0223] The computer readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, cause the electronic device to: acquire a target video editing template and a material to be edited, the target video editing template being used to indicate a target editing effect; generate a first video editing draft according to the material to be edited, the first video editing draft including at least one video segment formed based on the material to be edited; display a first preview video of the first video editing draft on a first editing page, the first preview video not presenting the target editing effect; apply the target editing effect to the first video editing draft according to the target video editing template, to generate a second video editing draft; display a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect.

[0224] In the embodiments of the present disclosure, the computer program code for performing the operations of the present disclosure can be written in one or more programming languages or combinations of languages including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" programming language or similar programming languages. The program code can be executed entirely on the computer, partially on the computer, as an independent software package, partially on the computer and partially on a remote computer, or entirely on a remote computer or server. In the case involving a remote computer, the remote computer can be connected to the computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, connected through the Internet by using an Internet service provider).

[0225] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or computer readable storage device from a computer readable storage medium or computer readable storage device to implement processes described herein. As used herein, the term "computer readable storage medium" or "computer readable storage device" is intended to encompass a non-transitory computer readable medium or device that is accessible by a computer, other programmable data processing apparatus, or computer readable storage device. Computer readable storage media and computer readable storage devices can include, but are not limited to, volatile memory, non-volatile memory, and / or storage devices such as a magnetic disks, optical disks, and / or tape. A data storage medium can be embodied as a set of computer readable instructions encoded on the medium. A computer readable storage medium can also be any medium that is accessible by a computer or a computer readable storage device to retrieve and execute the computer readable instructions. A computer readable storage medium can be a tangible device that can retain, store, or maintain the computer readable instructions for use by a computer or a computer readable storage device. A computer readable storage medium can also be a computer readable signal medium that stores the computer readable instructions in a transitory or non-transitory fashion.

[0226] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.

[0227] The functions described above in the detailed description can be performed in at least part by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip systems (SOCs), complex programmable logic devices (CPLDs), etc.

[0228] In the context of the present disclosure, a computer readable medium can be a tangible medium that can contain or store the program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the computer readable storage medium can include one or more lines of electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0229] The above description merely illustrates the preferred embodiments of the disclosure and a principle for applying the technologies. It is understood by those skilled in the art that the disclosed scope of the disclosure is not limited to the technical solutions formed by the specific combinations of the technical features described above, and should also cover other technical solutions formed by the combinations of the technical features described above or their equivalent features without departing from the disclosed concept. For example, the technical solutions formed by the mutual replacement of the above-described features and the technical features with similar functions disclosed in the disclosure (but not limited to) can be used.

[0230] Further, although operations are depicted in a particular, sequential order, this should not be understood as requiring or implying that the operations are performed in the order illustrated or sequentially. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, although specific implementation details are included for the purpose of providing a thorough disclosure, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.

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

Claims

1. A video editing method, comprising: obtaining a target video editing template and a material to be edited, the target video editing template being used to indicate a target editing effect; generating a first video editing draft according to the material to be edited, the first video editing draft comprising at least one video clip formed based on the material to be edited; displaying a first preview video of the first video editing draft on a first editing page, the first preview video not presenting the target editing effect; applying the target editing effect to the first video editing draft according to the target video editing template to generate a second video editing draft; displaying a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect.

2. The method of claim 1, further comprising: before generating the second video editing draft, displaying first prompt information on the first editing page, and / or displaying a first control on the first editing page; wherein the first prompt information is used to indicate at least one of the following: an execution progress of a target editing task, a generation stage of the target editing task; the first control is used to trigger switching the target editing task to background execution; wherein the target editing task is a task of applying the target editing effect to the first video editing draft to generate the second video editing draft.

3. The method of claim 2, wherein after displaying the first control on the first editing page, the method further comprises: in response to a triggering operation on the first control, canceling display of the first editing page; displaying the execution progress of the target editing task in a target area, the target area being a floating window area or an area for displaying a video editing draft.

4. The method of claim 3, wherein after displaying the execution progress of the target editing task in the target area, the method further comprises: in response to a triggering operation on the target area, displaying the first editing page.

5. The method of claim 3, wherein the target area is a floating window area, and the method further comprises: in a case where there are multiple editing tasks, the floating window area displays an editing state of a latest editing task in the multiple editing tasks, the multiple editing tasks respectively being any one of the following: an editing task in a background execution state, an editing task in a background execution completion and unviewed state, and an editing task in a background waiting execution state; the latest editing task being an editing task whose time length from a time when the latest editing task is switched to background execution to a current time is the smallest.

6. The method of claim 1, wherein the target video editing template is further to indicate at least one wrapping editing process, the first preview video being a preview video after the at least one wrapping editing process is performed on the first video editing draft. before displaying the first preview video of the first video editing draft on the first editing page, the method further comprises: displaying second prompt information and a second control on a second editing page, the second prompt information being used to indicate at least one of the following: an execution progress of the at least one packaging editing process, a target packaging editing process currently executed; In response to a triggering operation on the second control, a third preview video is displayed on the first editing page, the third preview video being a preview video in the process of performing the at least one packaging editing process on the first video editing draft.

7. The method of claim 1, further comprising: before generating the first video editing draft, displaying a preview image corresponding to the to-be-edited material on the first editing page.

8. The method of claim 1, wherein before generating the second video editing draft by applying the target editing effect to the first video editing draft according to the target video editing template, the method further comprises: displaying fifth prompt information on the first editing page, or displaying the fifth prompt information and a third control on the first editing page; wherein the fifth prompt information is used to indicate that the number of editing tasks currently in a queue waiting state for applying the target editing effect to the video editing draft based on the video editing template is greater than or equal to a number threshold; the third control is used to trigger switching of the target editing task to the background waiting state; the target editing task is a task of applying the target editing effect to the first video editing draft to generate the second video editing draft.

9. The method of any one of claims 1-8, further comprising: in a case where the second video editing draft is generated based on the editing process of the to-be-edited material according to the target video editing template, displaying first execution result information in a target editing area, the first execution result information being used to indicate that the second video editing draft is generated; in a case where the second video editing draft is not generated based on the editing process of the to-be-edited material according to the target video editing template, displaying second execution result information in the target editing area, the second execution result information being used to indicate that the target editing task fails.

10. The method of claim 9, wherein the target editing area is the first editing page; the displaying of the first execution result information in the target editing area comprises: displaying the first execution result information and the second preview video on the first editing page; the displaying of the second execution result information in the target editing area comprises: displaying the second execution result information, a reason for the failure, and a fourth preview video on the first editing page, the fourth preview video being a preview video of a third video editing draft corresponding to the second execution result information.

11. The method of claim 10, further comprising: when the second execution result information is displayed in the target editing area, the target editing area also displays a first retry control; the method further comprises: in response to a triggering operation on the first retry control, re-executing the editing process of the to-be-edited material based on the target video editing template to generate the second video editing draft, or continuing to edit the third video editing draft based on the target video editing template to generate the second video editing draft.

12. The method of claim 9, wherein the target editing region is a target region, the target region is a floating window region, or a region for showing a video editing draft. the displaying of the second execution result information in the target editing area comprises: The second execution result information and a second retry control are displayed in the target editing area; The method further includes: In response to a triggering operation on the second retry control, a reason for the execution failure and a first retry control are displayed on the first editing page; In response to a triggering operation on the first retry control, the editing process based on the target video editing template on the to-be-edited material is re-executed to generate the second video editing draft, or the third video editing draft is continuously edited based on the target video editing template to generate the second video editing draft; The third video editing draft is a video editing draft corresponding to the second execution result information.

13. A video editing apparatus, comprising: an acquisition module configured to acquire a target video editing template and to-be-edited material, the target video editing template being used to indicate a target editing effect; a generation module configured to generate a first video editing draft according to the to-be-edited material, the first video editing draft including at least one video segment formed based on the to-be-edited material; a display module configured to display a first preview video of the first video editing draft on a first editing page, the first preview video not presenting the target editing effect; the generation module is further configured to apply the target editing effect to the first video editing draft according to the target video editing template to generate a second video editing draft; the display module is configured to display a second preview video of the second video editing draft on the first editing page, the second preview video presenting the target editing effect.

14. An electronic device comprising: a memory and a processor, the memory being used to store a computer program; the processor is used to execute the video editing method in any one of claims 1 to 12 when the computer program is invoked.

15. A computer readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the video editing method in any one of claims 1 to 12.

16. A computer program product, the computer program product comprising a computer program, the computer program being executed by a processor to implement the video editing method in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Video processing method and device, electronic equipment and computer readable storage medium

    CN111629252A

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

    CN113364999A

  • Video editing processing method and device, electronic equipment and storage medium

    CN117880581A

  • Video editing method and device, equipment and medium

    CN118018812A

  • Video editor and method of editing videos

    US20080247726A1