Video editing method and device

By displaying clip identification in the video clip template and adding preset materials to clips with no imported materials, the problem of previewing in the prior art depends on all materials, and flexible video clip preview and improved user experience are achieved.

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

Patent Information

Application Number
PCT/CN2023/132373
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-17
Filing Date
2023-11-17
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

Existing video editing applications can only preview the editing effect after importing video materials, which is less flexible, resulting in poor user editing experience.

Method used

By displaying the clip identifier corresponding to the video clip in the video clip template, users allow them to preview the clip results without fully importing the video footage, and add preset video footage to clips with unimported footage, achieving flexible clip preview.

Benefits of technology

Improves the flexibility and user experience of video editing, allowing users to preview editing results when the material is not fully imported, simplifies operational steps, and enhances fun and visual effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023132373_03072025_PF_FP_ABST
    Figure CN2023132373_03072025_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure provides a video editing method and device. In the scenario of using a video editing template to perform video editing, clip identifiers having one-to-one correspondence to video clips indicated by the video editing template are displayed on the basis of the video editing template to prompt a user to import video materials into the specified video clips corresponding to the clip identifiers; in response to a trigger operation of presenting an editing result, an editing result obtained by applying, on target video materials, a specified editing operation indicated by the video editing template is presented, wherein the target video materials have one-to-one correspondence to the specified video clips, and the target video materials are imported into the corresponding specified video clips to form the editing result; and if the specified video clips comprise a first video clip into which a video material has not been imported by the user, a preset video material is added to the first video clip. According to the method, a user can conveniently and flexibly preview an editing result when video materials have not been fully imported into video clips indicated by a video editing template, and thus the video editing experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Video editing method and device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on November 17, 2022, with application number 202211440612.3 and invention name “Video Editing Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present disclosure relates to the field of video processing technology, and in particular to a video editing method and device. Background Art

[0003] With the rapid development of Internet technology, more and more users like to record their lives in the form of videos, and users often like to edit multiple video materials into a video with rich visual effects. In order to facilitate user editing and reduce the requirements for users' video editing skills, some video editing applications provide users with video editing templates. Users only need to import the video materials they want to edit, and then use the editing operations indicated by the video editing template to edit and integrate the video materials into a complete video. However, when using video editing applications for editing, it is usually necessary to import all the video materials required for the video editing template and then enter the template editing page to preview the editing effect. The preview flexibility is low, which is extremely inconvenient for users and provides a poor editing experience.

[0004] Summary of the Invention

[0005] In order to solve the above technical problems, the present disclosure provides a video editing method and device.

[0006] In a first aspect, the present disclosure provides a video editing method, comprising:

[0007] Obtaining a video editing template and displaying a segment identifier based on the video editing template; wherein the video editing template is used to indicate that a specified editing operation is to be performed on at least one specified video segment, the segment identifier corresponds to the specified video segment on a one-to-one basis, and the segment identifier is used to prompt a user to import video material for the specified video segment corresponding to the segment identifier;

[0008] In response to a trigger operation for presenting an editing result, an editing result obtained by applying the specified editing operation to the target video material is presented based on the target video material and the specified editing operation; wherein, the target video material corresponds one-to-one to the specified video clip; the target video material is used to import the specified video clip corresponding to the target video material to form the editing result; if the specified video clip includes a first video clip, the target video material corresponding to the first video clip is a preset video material, and the first video clip is a specified video clip into which the user has not imported the video material in response to the trigger operation.

[0009] In some embodiments, it also includes: if the designated video clip includes a second video clip, the target video material corresponding to the second video clip is the video material imported by the user for the second video clip, and the second video clip is the designated video clip into which the user has imported the video material in response to the trigger operation.

[0010] In some embodiments, further comprising:

[0011] Displaying a preview control, wherein when the user has not imported video material into any of the designated video clips corresponding to the clip identifiers, the preview control is in an inoperable state;

[0012] When it is detected that a designated video segment corresponding to at least one of the segment identifiers is successfully imported into the video material, the preview control is switched from an inoperable state to an operable state; wherein the preview control in the operable state is used to trigger the presentation of the editing result.

[0013] In some embodiments, displaying the segment identifier based on the video editing template includes: displaying a material aggregation display page based on the video editing template, and displaying the preview control on the material aggregation display page; or, displaying a shooting page based on the video editing template, and displaying the preview control on the shooting page.

[0014] In some embodiments, it also includes: in the process of presenting the editing result obtained by applying the specified editing operation on the target video material, responding to the trigger operation of the clip identifier corresponding to the specified video clip, importing video material into the selected specified video track or replacing the imported video material in the selected specified video clip.

[0015] In some embodiments, if there are multiple fragment identifiers, displaying the fragment identifiers based on the video clip template includes: displaying the multiple fragment identifiers in a tiled manner based on the video clip template; the method also includes: displaying the multiple fragment identifiers in a layered manner when it is detected that the switching condition is met.

[0016] In some embodiments, it also includes: when the designated video segment includes one of the first video segments and the user has imported video materials into all designated video segments except the first video segment, obtaining the captured video material, responding to a confirmation use instruction for the captured video material, triggering the presentation of the editing result, and the confirmation use instruction is used to confirm that the captured video material is the target video material on the first video segment.

[0017] In some embodiments, it also includes: when the designated video clip includes one of the first video clips, and the user has imported video materials into all designated video clips except the first video clip, obtaining video materials from the photo album, responding to a confirmation upload instruction for the video materials obtained from the photo album, triggering the presentation of the editing result, and the confirmation upload instruction is used to confirm that the video material obtained by shooting is the target video material on the first video clip.

[0018] In a second aspect, the present disclosure provides a video editing device, comprising:

[0019] An acquisition module is used to obtain a video clip template;

[0020] A processing module, configured to generate a segment identifier based on the video clip template;

[0021] The video editing template is used to indicate that a specified editing operation is applied to at least one specified video segment, the segment identifier corresponds to the specified video segment on a one-to-one basis, and the segment identifier is used to prompt the user to import video material for the specified video segment corresponding to the segment identifier;

[0022] A display module, configured to display the fragment identifier;

[0023] The processing module is further configured to, in response to a trigger operation for presenting an editing result, apply the editing result obtained by the specified editing operation to the target video material based on the target video material and the specified editing operation; wherein the target video material corresponds to the specified video segment on a one-to-one basis; the target video material is used to import the specified video segment corresponding to the target video material to form the editing result; if the specified video segment includes a first video segment, the target video material corresponding to the first video segment is a preset video material, and the first video segment is a specified video segment that has not been imported by the user in response to the trigger operation;

[0024] The display module is also used to present the editing results.

[0025] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor;

[0026] The memory is configured to store computer program instructions;

[0027] The processor is configured to execute the computer program instructions so that the electronic device implements the video editing method described in the first aspect and any one of the first aspects.

[0028] In a fourth aspect, the present disclosure provides a readable storage medium, comprising: computer program instructions; an electronic device executes the computer program instructions, so that the electronic device implements the video editing method described in the first aspect and any one of the first aspects.

[0029] In a fifth aspect, the present disclosure provides a computer program product, and an electronic device runs the computer program product, so that the electronic device implements the video editing method described in the first aspect and any one of the first aspects.

[0030] The disclosed embodiments provide a video editing method and device, wherein, in a scenario where a video editing template is used for video editing, a segment identifier corresponding one-to-one to the video segment indicated by the video editing template is displayed based on the video editing template to prompt the user to import video material for the designated video segment corresponding to the segment identifier; in response to a trigger operation for presenting the editing result, an editing result obtained by applying the designated editing operation indicated by the video editing template to the target video material is presented; wherein the target video material corresponds one-to-one to the designated video segment; the target video material is used to import the corresponding designated video segment to form the editing result; if the designated video segment includes a first video segment for which the user has not imported the video material, a preset video material is added to the first video segment. This method can facilitate users to flexibly preview the editing result when the video segment indicated by the video editing template has not been fully imported into the video material, thereby improving the video editing experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0033] FIG1 is a flow chart of a video editing method provided by an embodiment of the present disclosure;

[0034] FIG2 is a flow chart of a video editing method provided by another embodiment of the present disclosure;

[0035] 3A to 3I are schematic diagrams of human-computer interaction interfaces provided by the present disclosure;

[0036] FIG4 is a structural diagram of a video editing device provided by an embodiment of the present disclosure;

[0037] FIG5 is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

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

[0039] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0040] For example, the video editing method provided by the present disclosure can be implemented by a video editing device, which can be implemented by software and / or hardware and can generally be integrated into an electronic device. The electronic device may include, but is not limited to, tablet computers, mobile phones (such as foldable screen phones and large screen phones), wearable devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and other electronic devices. The present disclosure does not impose any restrictions on the specific type of electronic device.

[0041] In the following embodiments, the video editing method provided by the present disclosure is described in detail by taking an electronic device as an example in combination with the accompanying drawings and application scenarios.

[0042] FIG1 is a flow chart of a video editing method provided by an embodiment of the present disclosure. Referring to FIG1 , the method of this embodiment includes:

[0043] S101. Obtain a video editing template and display a segment identifier based on the video editing template; wherein the video editing template is used to indicate that a specified editing operation is applied to at least one specified video segment, the segment identifier corresponds one-to-one to the specified video segment, and the segment identifier is used to prompt the user to import video material for the specified video segment corresponding to the segment identifier.

[0044] Among them, a video editing application (hereinafter referred to as the application) can be installed in the electronic device. After the application is started, the user can browse the template videos edited using different video editing templates. The template videos mentioned here are videos created by the creator using the video editing template and published in the application. The playback page of the template video may include a usage entry for the video editing template. The user inputs a trigger operation for the usage entry to trigger the use of the video editing template for video editing. Among them, the trigger operation for the usage entry can be but is not limited to single-click, double-click, long press, slide, and other types of operations.

[0045] The application responds to a trigger operation for a use entry of a video editing template and obtains the video editing template. The video editing template may include information such as the number, sequence, and duration of specified video segments, information specifying editing operations, and information specifying the video material on which the editing operations are to be applied. The specified video segments may be understood as being video track segments indicated by the video editing template without added video material. The number of specified video segments may be one or more, and this disclosure does not limit this. The specified editing operations may include, but are not limited to, one or more operations such as special effects operations, filter operations, music operations, text operations, and music editing operations.

[0046] The application can display the segment identifiers corresponding to each specified video segment based on the specified video segment indicated by the video editing template, where the segment identifiers can be implemented by any method, for example, a combination of one or more methods such as text, icons, and pictures, and this disclosure does not limit this.

[0047] In some embodiments, the application can respond to a trigger operation for the use entrance of the video editing template, and jump from the playback page of the template video to the material aggregation display page. The material aggregation display page is used to aggregate and display image materials in the album. These image materials may include photos and videos taken in advance by the user, images and videos downloaded from the Internet, screenshots obtained through screen capture operations, etc.; the segment identifiers corresponding to the video segments indicated by the video editing template are displayed on the material aggregation display page. The user can select image materials from the material aggregation display page to generate target video materials and import them into the specified video segment. The thumbnail of the imported video material can be displayed in the segment identifier corresponding to the specified video segment into which the video material has been imported, and the preset image and the duration of the video segment can be displayed in the segment identifier corresponding to the video segment into which the video material has not been imported.

[0048] In some embodiments, the application can respond to a trigger operation for the use entry of the video clip template, jump from the template video playback page to the shooting page, and display the segment identifier corresponding to the video segment indicated by the video clip template on the shooting page. The user can shoot the video material through the camera, and when the user confirms the use of the video material, the video material is added to the specified video segment as the target video material. The user can add the target video material to the specified video segment corresponding to different segment identifiers by repeatedly performing the operation of shooting and confirming the use of the shot video material. In order to facilitate the user to add video materials flexibly, an entry to the material aggregation display page can also be set on the shooting page. Through this entry, the user can select the image material in the album to generate the target video material and add it to the specified video segment. When using this method, the target video material added to the specified video segment can be obtained in whole or in part by shooting with the camera, or can be imported in whole or in part through the material aggregation display page, or can also include both the video material obtained by shooting and the material in the album imported through the material aggregation page.

[0049] In this step, by showing the user the segment identifier corresponding to the video segment, the user can clearly understand how many video materials need to be imported, to which specified video segment the imported video materials are added, and clearly understand which specified video segments have imported video materials and which specified video segments have not imported video materials.

[0050] In addition, when entering the material aggregation display page or shooting page from the template video playback page, it can default to a pre-set segment identifier, for example, the first segment identifier. Users can switch the selected segment identifier through operations (such as clicking, sliding, etc.) and import video materials into the specified video segment corresponding to the selected segment identifier. This method allows users to flexibly select the order of importing video materials according to their own needs.

[0051] In addition, in order to meet the user's video editing needs, after the user imports video materials into a specified video segment, the user can also delete or replace the video materials on the specified video segment.

[0052] S102. In response to a trigger operation for presenting an editing result, based on the target video material and the specified editing operation, present an editing result obtained by applying the specified editing operation to the target video material; wherein, the target video material corresponds one-to-one to the specified video clip; the target video material is used to import the specified video clip corresponding to the target video material to form the editing result; if the specified video clip includes a first video clip, the target video material corresponding to the first video clip is a preset video material, and the first video clip is a specified video clip into which the user has not imported the video material in response to the trigger operation.

[0053] In this solution, the specified video clip can be divided into two types: the first video clip and the second video clip according to whether the user imports video materials into the specified video clip. The first video clip is the specified video clip into which the user has not imported video materials when responding to the trigger operation, and the second video clip is the specified video clip into which the user has imported video materials when responding to the trigger operation.

[0054] Based on the user's imported video materials, the designated video clips indicated by the video editing template can be divided into several situations: Situation 1, only the first video clip (that is, the user has not imported video materials into any designated video clip); Situation 2, only the second video clip (that is, the user has imported video materials into all designated video clips); Situation 3, both the first video clip and the second video clip (that is, the user has imported video materials into some designated video clips, and some designated video clips have not imported video materials).

[0055] For situations 1 and 3, since there is a first video clip without imported video material, in order to achieve preview, a preset video material can be added to the first video clip, and the preset video material is used as the target video material on the first video clip to form the editing result and present it to the user. For situation 2, since the user-imported video material exists on all designated video clips, the user-imported video material is used as the target video material to form the editing result and present it to the user. In this way, it can be ensured that regardless of whether the user imports a sufficient number of video materials, each designated video clip indicated by the video editing template has video materials, meeting the requirements of the video editing template.

[0056] Among them, the preset video material can be but is not limited to being generated based on a preset image, and can also be a video material segment that is captured from a pre-specified video material and has the same duration as the first video segment; the present disclosure does not limit the image content, size, resolution and other parameters of the preset image, for example, it can be a solid color background image, such as gray, black, white, etc.; the present disclosure does not limit the video content, duration, resolution and other parameters of the pre-specified video material, for example, it can be a blank content video with a solid color background, such as gray, black, white, etc.

[0057] The application responds to the trigger operation and applies the specified editing operation to the target video material on the corresponding specified video clip to obtain the editing result. The editing result can be an editing draft formed by importing the target video material into the specified video clip indicated by the video editing template, and the editing draft can also include information about the specified editing operation, etc.; or, the editing result can also be the target video exported after the user imports the target video material into the specified video clip indicated by the video editing template, and applies the specified editing operation indicated by the video editing template to the target video material corresponding to the corresponding specified video clip. It should be noted that the way to present the editing draft is to render based on the target video material and the specified editing operation, and play the video frame by frame in chronological order; the way to present the target video is to play the frames of the target video in chronological order.

[0058] For example, a video editing template corresponds to 4 specified video clips, so there are 4 clip identifiers. The user imports 2 video materials obtained by shooting into the specified video clip 1 and the specified video clip 2 respectively, and no video materials are imported into the specified video clip 3 and the specified video clip 4. Assuming that the specified editing operations indicated by the video editing template are text operations and music operations, and are applied globally, when the editing results are triggered to be presented, the video materials with added text and music are played in the time period corresponding to the specified video clip 1 and the specified video clip 2, and the gray background video with added text and music is played in the time period corresponding to the specified video clip 3 and the specified video clip 4.

[0059] For another example, a video editing template corresponds to 4 specified video clips, and there are 4 clip identifiers. The user imports 2 video materials obtained by shooting into specified video clip 1 to specified video clip 2 respectively, and imports two videos from the album into specified video clip 3 and specified video clip 4 respectively. Assuming that the specified editing operations indicated by the video editing template are text operations and music operations, and are applied globally, since there is no first video clip into which the user has not imported video materials, there is no need to add preset video materials. When the presentation of the editing results is triggered, the video materials imported by the user with text and music added are played in the time period corresponding to specified video clip 1 and specified video clip 4.

[0060] When the editing result is presented as a draft, the application provides a preview page that displays the rendered video frame image. In addition, when entering the preview page, the default position can be set to the start position of the timeline and playback can start from the start position. The preview page can automatically loop playback or automatically pause after one playback is completed. Based on the user's triggering operation, playback will start again from the beginning position of the timeline. This disclosure does not limit this.

[0061] The method provided in this embodiment, in a scenario where a video clip template is used for video clipping, displays a segment identifier corresponding one-to-one to the video segment indicated by the video clip template based on the video clip template, prompting the user to import video material for the designated video segment corresponding to the segment identifier; in response to a trigger operation for presenting the clipping result, presents the clipping result obtained by applying the designated clipping operation indicated by the video clip template to the target video material; wherein the target video material corresponds one-to-one to the designated video segment; the target video material is used to import the corresponding designated video segment to form the clipping result; if the designated video segment includes a first video segment for which the user has not imported video material, a preset video material is added to the first video segment. This method can facilitate users to flexibly preview the clipping result even if the video segment indicated by the video clip template has not been fully imported into the video material, thereby improving the video clipping experience.

[0062] Based on the embodiment shown in FIG. 1 , the user may trigger the presentation of the editing result through an operable control (hereinafter referred to as a preview control) in the user interface provided by the application.

[0063] In some embodiments, the preview control may always be in an operable state, and the editing result may be previewed regardless of whether the user has imported video materials into the specified video clip.

[0064] In other embodiments, when no video material to be edited has been added to any of the designated video clips, the preview controls are in an inoperable state. Upon detecting that a user has added video material to at least one of the designated video clips, the preview controls are switched from an inoperable state to an operable state. The application can use different display styles to clearly distinguish whether a preview control is operable. For example, the application can use one or more methods, such as different display colors, different brightness, different fonts, and different icons, to distinguish whether a preview control is operable.

[0065] This embodiment presents a visual operation entrance to the user, making it convenient for the user to trigger the preview, thereby effectively improving the user's editing experience.

[0066] Furthermore, based on the embodiment shown in FIG1 , if the video editing template indicates multiple specified video segments, the number of segment identifiers corresponding to the specified video segments will also be multiple, consistent with the number of specified video segments. When jumping from the template video playback page to the material aggregation display page / shooting page, multiple segment identifiers will be displayed on the material aggregation display page / shooting page. The application supports displaying multiple segment identifiers in both tiled and stacked modes, and switches back and forth between the two display modes when a switching condition is detected.

[0067] In some embodiments, when entering the material aggregation display page / shooting page, multiple segment identifiers can be displayed in a tiled manner by default. When it is detected that the first switching condition is met, the tiled manner is switched to the stacked manner. The first switching condition can be that no click operation is detected within a preset time. Next, if it is detected that the second switching condition is met, the stacked manner is switched to the tiled manner. The second switching condition can be that a click operation is detected. By switching the display style of the segment identifiers, the visual experience is enhanced, and the user's interest in editing using the application can also be increased.

[0068] FIG2 is a flow chart of a video editing method provided by another embodiment of the present disclosure. Referring to FIG2 , the method of this embodiment is based on the embodiment shown in FIG1 , and after step S102 , further includes:

[0069] S103. In the process of presenting the editing result obtained by applying the specified editing operation to the target video material, in response to the triggering operation of the segment identifier corresponding to the specified video segment, the video material is imported into the selected specified video track or the imported video material in the selected specified video segment is replaced.

[0070] In the process of the application presenting the editing draft through the preview page and playing the rendered video frame image, in order to meet the user's editing needs, the clip identifier corresponding to the specified video clip indicated by the video editing template can be displayed in the preview page, and the clip identifier is in an operable state. The user imports video material into the first video clip by operating the clip identifier to replace the currently used preset video material. The user can also replace the user-imported video material that already exists in the second video clip by operating the clip identifier.

[0071] In some embodiments, the application responds to the user's triggering operation on any segment identifier in the preview page, such as single-clicking, double-clicking, long pressing, etc., to enter the material editing page. The shooting entrance and upload entrance can be displayed to the user on the material editing page. The user can import video materials into the first video segment and replace the user-imported video materials that already exist in the second video segment by shooting or uploading.

[0072] Among them, when entering the material editing page, the default location is the specified video segment corresponding to the segment identifier operated by the user. The user can also switch the selected specified video segment in the material editing page.

[0073] The method of this embodiment allows users to add or update video materials on a specified video segment corresponding to a segment identifier by operating the segment identifier in the preview page, without the user having to return to the previous level page to add or update. The operation is simple and can effectively improve the user editing experience.

[0074] Based on the embodiment shown in FIG2 , optionally, the method further includes:

[0075] S104: Update the editing result based on the video material imported into the designated video track selected by the user or based on the replacement video material imported into the designated video segment selected by the user, and present the updated editing result.

[0076] The video material imported by the user into the selected designated video track should be understood as the designated video clip being the first video clip, and its corresponding target video material being the preset video material. By using the video material imported by the user as the target video material to replace the preset video material, the first video clip can be updated to the second video clip.

[0077] The replacement video material imported by the user into the selected designated video track should be understood as the designated video clip being the second video clip, and the replacement video material imported by the user is used as the target video material to replace the video material originally imported into the second video clip.

[0078] The application can regenerate the editing result based on the newly imported target video material or the replaced target video material, the target video material on other undone specified video clips and the specified editing operation, and present it to the user through the preview page when the user returns to the preview page, or, based on the export instruction input by the user, obtain the edited target video and play it to present the editing result to the user.

[0079] Based on the embodiments shown in Figures 1 and 2, in the traditional method, after the user has imported video materials into all designated video clips, the user must perform multiple steps to preview the editing results, which is extremely inconvenient for the user. To solve this problem, make previewing more convenient for users and reduce the number of user steps, the method provided in the present disclosure also supports automatically entering the preview page to present the editing results when importing video materials into the last first video clip.

[0080] The last first video segment may be understood as follows: the designated video segments indicated by the video editing template include a first video segment, and the user has imported video materials into all designated video segments except the first video segment.

[0081] If the video is imported into the last first video clip by shooting, the user can start the camera to shoot, obtain the video material shot, and display a video confirmation page to the user. The user can enter a confirmation use instruction on the video confirmation page, respond to the confirmation use instruction for the video material shot, import the video material shot into the first video clip and trigger the presentation of the editing result, and the confirmation use instruction is used to confirm that the video material shot is the target video material on the first video clip. The video confirmation page may include a retake control and a confirmation use control. The user can enter the confirmation use instruction by operating the confirmation use control; in addition, the user can also shoot again by operating the retake control, and after shooting is completed, operate the confirmation use control on the video confirmation page again to enter the confirmation use instruction.

[0082] Traditionally, after the user confirms the use of a control, they are first returned to the shooting page, where they must operate the preview control to trigger the presentation of the edited result. With this solution, when the user confirms the use of the captured video material, they are automatically redirected to the preview page to preview the edited result, eliminating the need to return to the shooting page for further operation, effectively reducing the number of user steps.

[0083] If the video is imported into the last first video clip by uploading, the material aggregation display page can be entered through the upload entrance in the shooting page, the image material to be uploaded can be selected, and the video material can be obtained based on the selected image material. The confirmation upload control can be displayed in the material aggregation display page, and the user can enter the confirmation upload instruction by operating the confirmation upload control. In response to the confirmation upload instruction, the video material generated based on the image material selected by the user is imported into the first video clip and triggers the presentation of the editing result.

[0084] In traditional methods, after the user confirms the upload control, they will first return to the shooting page or other pages. The user must operate the preview control on the shooting page to trigger the display of the editing results. With this solution, when the user confirms to use the captured video material, they can automatically enter the preview page to preview the editing results, without having to return to the shooting page to operate, effectively reducing the user's operation steps.

[0085] Next, based on the above description, combined with Figures 3A-3I, taking the electronic device as a mobile phone, and the client installed in the mobile phone including a video editing application (referred to as Application 1), the template video currently browsed by the user is the template video corresponding to the video editing template 1 (referred to as Template 1), and Template 1 indicates that 4 corresponding video clips, that is, 4 video materials need to be used for editing. For example, the specific implementation process of the video editing method provided by the present disclosure is introduced in detail.

[0086] Please refer to Figures 3A-3I, which are schematic diagrams of human-computer interaction interfaces provided by embodiments of the present disclosure.

[0087] Taking the mobile phone in portrait mode as an example, application 1 can display the user interface 11 shown in Figure 3A on the mobile phone. The user interface 11 is used to display a playback page in application 1, which can play multimedia content, such as the template video corresponding to template 1.

[0088] The user interface 11 is also used to display relevant information of template 1, such as the nickname of the publisher of template 1 (such as using "@+publisher's nickname" to display the publisher of the template video), the theme of template 1, the topics in which template 1 participates, the number of video materials required for template 1, and other information.

[0089] The user interface 11 may further include a control 101. The control 101 is used to trigger the use of the template 1. The control 101 may be displayed in text form, for example, using "go to use" or "go to shoot". Different text displays may lead to different pages.

[0090] For example, if control 101 uses the "Go to Use" display, the user can jump from the template video playback page to the material aggregation display page. The user can select an image material through the material aggregation display page. The image material selected by the user can be a photo, an image, or a video. If the image material selected by the user is a photo or an image, application 1 can automatically generate a video material based on the selected photo or image. The generated video material is the video material that the user wants to import into the video clip of template 1. The duration of the generated video material matches the duration indicated by the corresponding video clip.

[0091] For example, if the control 101 is displayed as "Go to Shoot", the video can be redirected from the template video playback page to the shooting page. In the shooting page, the video material to be edited can be obtained by real-time acquisition, from application 1, or from a storage module other than application 1.

[0092] For example, upon receiving a user trigger operation on the control 101, the application 1 may display a user interface 12 as shown in FIG3B on the mobile phone, wherein the user interface 12 is mainly used to display a shooting page. The present disclosure does not limit the specific implementation of the user interface 12.

[0093] Referring to FIG3B , shooting tool icons may be displayed on the shooting page, for example, one or more of a shooting button, a lens exposure button, a timer, a flash, props, a template video display switch, a speed increase, a video shooting mode button, a photo mode button, a lens ratio adjustment, and the like. For example, the shooting button may be positioned near the bottom of the entire shooting page, and other shooting tool icons may be concentrated near the edge of the entire shooting page to avoid blocking the shooting screen as much as possible.

[0094] Among them, the shooting page supports users to switch between video shooting mode and photo mode by operating the video shooting mode button and the photo mode button; in some embodiments, when entering the shooting page, the video shooting mode can be set by default, and the front camera can be selected by default for shooting; in some embodiments, if the material to be added to the video clip corresponding to the currently selected clip identifier is a photo, the photo mode can be positioned. If the user switches to the video shooting mode, a prompt message can be displayed at the top of the shooting page to remind the user that the effect corresponding to the video clip only supports photos.

[0095] The shooting page allows users to adjust the lens ratio, thereby enlarging or reducing the image captured by the phone's camera. When users use the front camera to shoot, reducing the lens ratio can ensure that the image within a larger angle of view is captured in the front selfie scene.

[0096] In addition, the shooting page can also display the template video in a small window style, and the position of the small window is movable. Referring to FIG3B , area 102 is a small window area for playing the template video. Area 102 can decide whether to use a horizontal screen style or a vertical screen style according to the aspect ratio of the template video. If area 102 cannot be filled, it can be filled with a black border. The video material on the currently shot video clip is displayed in area 102. As shown in FIG3B , the currently shot video material is the first video material to be edited, and "1" or "Clip 1" can be displayed. Area 102 can also include a zoom out button. The user can click the zoom out button to zoom out area 102 to a preset ratio. In addition, the user can switch the template video screen and the shooting screen in area 102 by clicking anywhere on the template video screen in area 102.

[0097] User interface 12 also includes areas 103 through 106. Area 103 is used to display segment identifier 1 corresponding to video segment 1, area 104 is used to display segment identifier 2 corresponding to video segment 2, area 105 is used to display segment identifier 3 corresponding to video segment 3, and area 106 is used to display segment identifier 4 corresponding to video segment 4. Areas 103 through 106 can be arranged from left to right to correspond to the order of video segments 1 through 4. The user can click any of areas 103 through 106 to select one of the four video segments, or switch between selected segments by clicking different areas. The segment identifiers corresponding to selected and unselected video segments are displayed in different styles to facilitate clear distinction. For example, as shown in FIG3B , area 103 displays a capture icon for currently selected video segment 1, while areas 104 through 106, corresponding to unselected video segments 2 through 4, display the duration information of the video segments.

[0098] In addition, in order to facilitate the user to distinguish the second video segment from the first video segment, a video thumbnail is displayed in the area corresponding to the second video segment, and the duration information of the corresponding video segment is displayed in the area corresponding to the first video segment.

[0099] In some cases, when entering the shooting page, all segment identifiers may be displayed in a tiled display style by default. If it is detected that the switching condition is met, it may be switched to a display style that displays the segments in a stacked order. The switching condition may be, for example, that no click operation is detected within a preset time period. The preset time period may be, but is not limited to, 2 seconds, 3 seconds, etc., and may be set as required. For example, assuming that when the application 1 displays the shooting page, a plurality of segment identifiers are displayed in a tiled display style by default as shown in FIG3B , and if no click operation is detected for more than 2 seconds, the user interface 13 as shown in FIG3C may be displayed, and the plurality of segment identifiers may be displayed in a stacked manner.

[0100] In this solution, the template video displayed in area 102 corresponds to video clips 1 to 4. When the area corresponding to a clip identifier is clicked, the video clip corresponding to the clip identifier will be selected. If area 102 is in an open state at this time, the original video clip corresponding to the selected video clip in the template video will be played in area 102.

[0101] After entering the shooting page, you can import video materials into the video clip by shooting or uploading. Among them, if you click the shooting button, the video material shot is the video material on the video clip corresponding to the selected clip identifier; if you click upload, you can enter the material aggregation display page to select image materials, and obtain video materials based on the selected image materials and import the video clip corresponding to the selected clip identifier. When the shooting or uploading is completed, return to the shooting page, and you can display the relevant animation effects filled in the video clip corresponding to the clip identifier to increase the fun. Next, the clip identifier and area 102 must be positioned to the clip identifier corresponding to the current first video clip, so that users can continue shooting or uploading directly without manually switching to the first video clip.

[0102] The video clip of the imported video material supports deleting the imported video material. A delete button can be displayed in the area where the clip identifier corresponding to the video clip is displayed. The user deletes the imported video material in the video clip by clicking the corresponding delete button in the area.

[0103] The video clips of the imported video materials support editing of the imported video materials. Among them, the edit button can be displayed in the area where the clip logo corresponding to the video clip is displayed, and the user enters the editing page by clicking the corresponding edit button in the area. If the duration of the imported video material is greater than the duration of the video clip, the clip can be selected by dragging on the editing page. If the duration of the imported video material is less than or equal to the duration of the video clip, the screen can be zoomed in or out and the position can be adjusted on the editing page; if the imported video material is generated based on a photo / image, the screen can be zoomed in or out and the position can be adjusted on the editing page.

[0104] The user interface 12 also includes a control 107, which is used to enter the preview page. The control 107 has two states: an operable state and an inoperable state. The states of the control 107 can be distinguished by different colors. Of course, they can also be distinguished by other methods, which are not limited by the present disclosure. For example, when the control 107 is in an inoperable state, it can be displayed using a "gray background + dark gray font". When the control 107 is in an operable state, it can be displayed using other colors, such as "white background + black font". As shown in Figure 3B, none of the four video clips currently have video materials imported. Therefore, the control 107 is displayed using a "gray background + dark gray font" and is in an inoperable state.

[0105] In conjunction with the above description and referring to FIG3B , the current user interface 12 shows a situation where none of the four video clips have been imported into the video material. Assume that the user selects clip identifier 1, that is, selects video clip 1, and clicks the capture button to capture. During the capture, a countdown can be performed based on the timer setting, and the capture starts when the countdown ends. After the capture starts, the capture tool icons on the side can be hidden to minimize the obstruction of the capture image by these capture tool icons. Usually, users rarely click on the capture tool icons during the capture process, so hiding the display does not cause a poor user experience. During the capture process, the progress bar displays the video capture progress according to the length of the video material required for the current slot; the capture time can be displayed in real time based on the time the capture has started; and multiple captures are supported. During the capture, the capture button can be clicked to pause the capture, and the capture can be continued by clicking the capture button again. This solution also supports text editing in the capture preview and deleting the last captured clip.

[0106] When the shooting is finished, you can jump from the shooting page to the video confirmation page. The video confirmation page can provide "Confirm Use Controls" and "Reshoot Controls". In the video confirmation page, you can play the complete video synthesized by the shot video and text through an area. If the user operates to confirm the use of controls, you can jump back to the page described in Figure 3D, locate the segment identifier 2, select video segment 2, continue shooting video segment 2, and when returning from the video confirmation page to the page shown in Figure 3D, you can display the relevant animations added to video segment 1 by the video material. If the user operates the reshoot control, it will return to the shooting page of the previous video material and clear the content of the last shot. In addition, the video confirmation page also supports saving the current synthesized complete video to the local album, and the user can save it by checking the relevant option. It should be understood that if the user does not edit the text during the shooting process, the shot video can be played on the video confirmation page.

[0107] After shooting a video and confirming its use, one of the four video segments will have video material imported into it. For example, video material 1 will be imported into video segment 1. When application 1 detects that video material has been imported into at least one video segment, it can display user interface 14 as shown in FIG3D . Referring to user interface 14 , a video thumbnail of video material 1 is displayed in area 103 corresponding to segment identifier 1, and control 107 is in an operable state. When application 1 detects a user triggering operation on control 107, application 1 can display user interface 15 as shown in FIG3E on the mobile phone. User interface 15 is used to display a preview page.

[0108] The user interface 15 includes an area 108 and an area 109 to an area 112 .

[0109] Area 108 is used to play the resulting clip. During playback, video segments 2 through 4 are filled with a black screen, while the original effects and sounds of template 1 are displayed. Area 108 also displays a progress bar, which the user can drag to adjust the playback progress of the resulting clip.

[0110] Among them, when entering the preview page, the display area for displaying the template video can be closed by default. The corresponding template video display switch can be set in the preview page. When the user clicks the template video display switch, the area for displaying the template video can be opened to play against the editing results.

[0111] Areas 109 through 112 are areas for displaying the segment identifiers corresponding to video segments, similar to areas 103 through 106, and can be referred to in the previous description. When playing a video clip on the preview page, the area displaying the segment identifier corresponding to the video segment can display a playback animation, allowing the user to determine which video segment is currently being played by observing the playback animation.

[0112] The user interface 15 may further include a control 113 and a control 114 .

[0113] Among them, the control 113 is used to enter the template editing page, in which the target video materials imported into the 4 video clips can be edited, and text, music, etc. can be edited.

[0114] Control 114 is used to export the target video obtained by editing each video material according to the editing operation indicated by the video editing template. Setting the control 114 for exporting in the preview page facilitates the user to export with one click and is easy to operate.

[0115] In this solution, the states of controls 113 and 114 include: an operable state and an inoperable state, and the two states can be distinguished by different display styles, for example, different colors. In some embodiments, controls 113 and 114 can be set to an operable state when video materials are imported into all video clips; and to an inoperable state when one or more first video clips are present. For example, as shown in FIG3E , since video clips 2 to 4 are first video clips, controls 113 and 114 are both displayed with a "gray background + gray text" and are both in an inoperable state.

[0116] Based on the embodiment shown in FIG3E , the area displaying the segment identifiers is operable. Clicking the area corresponding to any segment identifier will enter the material editing page. If a video material has been imported into the video segment corresponding to the segment identifier selected by the user, the video material can be played in the playback area of ​​the material editing page, and the playback can be looped. If a video material has not been imported into the video segment corresponding to the segment identifier clicked by the user, a preset video material, such as a video with a black screen, can be played in the playback area of ​​the material editing page.

[0117] For example, assuming that based on the embodiment shown in Figure 3E, application 1 receives a trigger operation from the user for area 109 corresponding to segment identifier 1, application 1 exemplarily displays the user interface 16 shown in Figure 3F on the mobile phone, and the user interface 16 is used to display the material editing page.

[0118] User interface 16 includes: area 115, area 116, entry 117, and entry 118. Area 115 is used to play the video material screen; area 116 is used to display the extended tracks of the video material corresponding to each video clip. The different tracks are arranged in sequence. For example, four tracks are arranged horizontally from left to right, consistent with the order of video clips 1 to 4. The user can switch to the tracks of the video material corresponding to other video clips by swiping horizontally. Progress indicators on the tracks can indicate the playback progress. For example, as shown in Figure 3F, the current position is on the extended track of the video material corresponding to video clip 1.

[0119] In addition, entry 117 is a shooting entry for entering the shooting page; entry 118 is an upload entry for entering the material aggregation display page. It should be understood that when a user selects the elongated track of a certain video material in the user interface 16, it is equivalent to selecting the corresponding video clip. For the currently selected video clip, the user can enter the shooting page through entry 117 to add video materials to the video clip or replace the video materials previously imported into the video clip. If the video materials already in the video clip are replaced, the application 1 can display a pop-up window to the user, and the pop-up window can display the text content "Confirm whether to reshoot" and confirm the deletion and reshoot based on the confirmation reshoot operation input by the user. Alternatively, the user can enter the material aggregation display page through entry 118 to add video materials to the video clip or replace the video materials previously imported into the video clip. When uploading, the application 1 supports the user to crop the video materials selected for upload, and after obtaining the instruction to confirm the upload of the cropped video materials, the cropped video materials are added to the corresponding video clip.

[0120] After the user confirms to use the captured video material or confirms to use the uploaded video material, the user can jump back to the shooting page, such as the user interface 16 shown in Figure 3D, and display the relevant animation effects of importing the video material into the video clip.

[0121] In the user interface 16 shown in FIG3F , a template video playback switch may be provided. When the user clicks the template video display switch, the area displaying the template video may be opened for comparison playback.

[0122] In addition, when video materials are imported into the last first video clip by shooting or uploading, Application 1 can automatically jump to the preview page to play the edited results. Among them, users can import video materials into the last first video clip through the entrance of any page, and this disclosure does not limit this. For example, they can import video materials by shooting / uploading in sequence through the interface shown in Figure 3B, or they can import video materials by shooting / uploading through the material editing page.

[0123] Specifically, if the video material in the last first video clip was imported by shooting, on the video confirmation page for shooting the video material, application 1 automatically jumps to a preview page, such as user interface 15 shown in FIG3E , except that the video material has been imported into all video clips. If the video material in the last first video clip was imported by uploading, application 1 automatically jumps to a preview page, such as user interface 15 shown in FIG3E , except that the video material has been imported into all video clips, after receiving the instruction to confirm the upload.

[0124] The above-mentioned Figures 3A to 3F mainly show the detailed introduction of jumping from the playback page of the template video to the shooting page to import video materials into the video clip indicated by the video editing template, and then entering the preview page and the material editing page.

[0125] The method provided by the present disclosure also supports jumping from the template video playback page shown in Figure 3A to the material aggregation display page to import video materials into the video clip indicated by the video editing template, and then entering the preview page and material editing page.

[0126] For example, assuming that the control 101 in the user interface 11 shown in Figure 3A is implemented using the text "go to use", when application 1 receives a trigger operation for the control 101, it can exemplarily display the user interface 17 shown in Figure 3G on the mobile phone, and the user interface 17 is used to display the material aggregation display page.

[0127] Among them, the user interface 17 may include area 119, which is a material aggregation display area. Area 119 may include multiple display areas, each display area is used to display a thumbnail of an image material, and can identify the selected state of the image material. The selected image material can be added to multiple slots in the order of selection. In area 119, if video material is displayed, the duration of the video material can also be displayed so that the user can select a video material with appropriate duration to import. The duration information can be displayed at the edge of the display area corresponding to the video material without blocking the thumbnail of the video material, such as the lower right corner. The duration information of the video material is not shown in Figures 3G to 3I. Of course, more information related to the image material can also be displayed in the display area of ​​the image material, such as the name added by the user to the image material, etc.

[0128] User interface 17 may also include area 120, which is used to display a segment identifier corresponding to the video segment indicated by template 1. If no video material has been imported into the video segment, the segment identifier corresponding to the video segment may display the duration of the video segment. Area 120 is similar to areas 103 through 106 described above and is not further described here.

[0129] The user interface 17 also includes a control 121, which is used to enter a preview page. The preview page can be described in detail with reference to the user interface 16 shown in FIG3E, which will not be described again here.

[0130] 3G , since no image material is selected, the control 121 is in an inoperable state and the preview page cannot be entered at this time.

[0131] Application 1 responds to the user's selection operation on one of the video materials in the material aggregation display area 119, and adds the selected video material 1 as the video material to be edited to the video clip 1. Since the video material has been imported into at least one video clip, the control 121 is switched from an inoperable state to an operable state. For example, as shown in the user interface 18 shown in Figure 3H, the display style of the control 121 is different from the display style in Figure 3G, and the user can clearly distinguish whether the control 121 can be operated.

[0132] Next, the user can enter the preview page through the operation control 121, and enter the material editing page through the preview page. The implementation method is similar to the embodiment shown in Figures 3D to 3F, and will not be repeated here.

[0133] In some cases, if the user enters the preview page through the method shown in Figures 3G to 3H, if the user returns through the preview page, he or she can return to the material aggregation display page shown in Figure 3H, and each selected image material remains selected.

[0134] Furthermore, when displaying the segment identifiers of multiple video segments on the material aggregation display page, the multiple segment identifiers can also be repeatedly switched between tiled display and stacked display. The switching conditions are similar to those described above and are not further described here. For example, referring to user interface 19 shown in FIG3I , assuming that no click operation is detected for a preset duration based on user interface 17 shown in FIG3G , user interface 19 is displayed, with the multiple segment identifiers displayed stacked.

[0135] Through the embodiments shown in Figures 3A to 3I above, in a scenario where a video clip template is used for video editing, a segment identifier corresponding one-to-one to the video segment indicated by the video clip template is displayed based on the video clip template to prompt the user to import video material for the designated video segment corresponding to the segment identifier; in response to a trigger operation for presenting the editing result, the editing result obtained by applying the designated editing operation indicated by the video clip template to the target video material is presented; wherein the target video material corresponds one-to-one to the designated video segment; the target video material is used to import the corresponding designated video segment to form the editing result; if the designated video segment includes a first video segment for which the user has not imported the video material, a preset video material is added to the first video segment. This method can facilitate users to flexibly preview the editing results when the video segment indicated by the video clip template has not been fully imported into the video material, thereby improving the video editing experience. In addition, when it is detected that the switching condition is met, the display style of the segment identifier can be switched, which increases the fun and helps to improve the visual effect.

[0136] Exemplarily, the present disclosure also provides a video editing device.

[0137] FIG4 is a structural diagram of a video editing device provided in an embodiment of the present disclosure. Referring to FIG4 , the video editing device 400 provided in this embodiment includes:

[0138] Acquisition module 401, used to acquire a video clip template;

[0139] A processing module 402 is configured to generate a segment identifier based on the video clip template;

[0140] The video editing template is used to indicate that a specified editing operation is applied to at least one specified video segment, the segment identifier corresponds to the specified video segment on a one-to-one basis, and the segment identifier is used to prompt the user to import video material for the specified video segment corresponding to the segment identifier;

[0141] A display module 403 is used to display the segment identifier;

[0142] The processing module 402 is further configured to, in response to a trigger operation for presenting an editing result, apply the specified editing operation to the target video material based on the target video material and the specified editing operation to obtain the editing result; wherein the target video material corresponds to the specified video segment on a one-to-one basis; the target video material is used to import the specified video segment corresponding to the target video material to form the editing result; if the specified video segment includes a first video segment, the target video material corresponding to the first video segment is a preset video material, and the first video segment is a specified video segment that has not been imported by the user in response to the trigger operation;

[0143] The display module 403 is also used to present the editing results.

[0144] In some embodiments, if the designated video clip includes a second video clip, the target video material corresponding to the second video clip is the video material imported by the user for the second video clip, and the second video clip is the designated video clip into which the user has imported the video material in response to the trigger operation.

[0145] In some embodiments, the display module 403 is further configured to display a preview control. When the user does not import video material into any of the designated video segments corresponding to the segment identifiers, the preview control is in an inoperable state.

[0146] The processing module 402 is further configured to detect whether a video material has been successfully imported into at least one designated video segment corresponding to the segment identifier, and when detecting that a video material has been successfully imported into at least one designated video segment corresponding to the segment identifier, the display module 403 switches the preview control from an inoperable state to an operable state; wherein the preview control in the operable state is used to trigger the presentation of the editing result.

[0147] In some embodiments, the display module 403 is specifically used to display a material aggregation display page based on the video editing template, and display the preview control in the material aggregation display page; or, to display a shooting page based on the video editing template, and display the preview control in the shooting page.

[0148] In some embodiments, the processing module 402 is also used to respond to a trigger operation of a clip identifier corresponding to the specified video clip during the process of presenting the editing result obtained by applying the specified editing operation to the target video material, and to import video material into the selected specified video track or replace the imported video material in the selected specified video clip.

[0149] In some embodiments, if there are multiple segment identifiers, the display module 403 is specifically configured to display the multiple segment identifiers in a tiled manner based on the video clip template.

[0150] The processing module 402 is further configured to detect whether a switching condition is satisfied, and when it is detected that the switching condition is satisfied, the display module 403 displays the multiple segment identifiers in a stacked manner.

[0151] The processing module 402 is further configured to obtain the captured video material when the designated video segment includes the first video segment and the user has imported video materials into all designated video segments except the first video segment, and trigger the presentation of the editing result in response to a confirmation and use instruction for the captured video material, wherein the confirmation and use instruction is configured to confirm that the captured video material is the target video material on the first video segment.

[0152] The processing module 402 is further configured to obtain video material from an album when the designated video clip includes the first video clip and the user has imported video material into all designated video clips except the first video clip, and to trigger presentation of the editing result in response to a confirmation upload instruction for the video material obtained from the album, wherein the confirmation upload instruction is configured to confirm that the video material obtained by shooting is the target video material on the first video clip.

[0153] The video editing device provided in this embodiment can be used to execute the technical solution of any of the aforementioned method embodiments. Its implementation principles and technical effects are similar. Please refer to the detailed description of the aforementioned method embodiments. For the sake of brevity, they will not be repeated here.

[0154] FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG5 , the electronic device 500 provided by this embodiment includes: a memory 501 and a processor 502 .

[0155] The memory 501 may be an independent physical unit, and may be connected to the processor 502 via a bus 503. The memory 501 and the processor 502 may also be integrated together and implemented through hardware.

[0156] The memory 501 is used to store program instructions, and the processor 502 calls the program instructions to execute the operations of any of the above method embodiments.

[0157] Optionally, when part or all of the methods of the above embodiments are implemented by software, the electronic device 500 may also include only the processor 502. The memory 501 for storing programs is located outside the electronic device 500, and the processor 502 is connected to the memory via circuits / wires to read and execute the programs stored in the memory.

[0158] The processor 502 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.

[0159] The processor 502 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0160] The memory 501 may include a volatile memory, such as a random-access memory (RAM); the memory may also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above types of memory.

[0161] An embodiment of the present disclosure further provides a readable storage medium, comprising: computer program instructions; when the computer program instructions are executed by at least one processor of an electronic device, the video editing method shown in any of the above method embodiments is implemented.

[0162] An embodiment of the present disclosure also provides a computer program product, which includes computer program instructions, and the computer program instructions are stored in a readable storage medium. At least one processor of the electronic device can read the computer program instructions from the readable storage medium, and the at least one processor executes the computer program instructions so that the electronic device implements the video editing method shown in any of the above method embodiments.

[0163] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0164] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. A video editing method, characterized in that, Including: Obtain a video clip template and display clip identifiers based on the video clip template; wherein, the video clip template is used to indicate applying a specified clip operation to at least one specified video segment, the clip identifiers correspond one-to-one with the specified video segments, and the clip identifiers are used to prompt the user to import video materials for the specified video segments corresponding to the clip identifiers; In response to a trigger operation for presenting a clip result, based on the target video material and the specified clip operation, present a clip result obtained by applying the specified clip operation to the target video material; wherein, the target video material corresponds one-to-one with the specified video segment; the target video material is used to import the specified video segment corresponding to the target video material to form the clip result; if the specified video segment includes a first video segment, the target video material corresponding to the first video segment is a preset video material, and the first video segment is a specified video segment for which the user has not imported video materials in response to the trigger operation.

2. The method according to claim 1, wherein Further including: If the specified video segment includes a second video segment, the target video material corresponding to the second video segment is the video material imported by the user for the second video segment, and the second video segment is a specified video segment for which the user has imported video materials in response to the trigger operation.

3. The method according to claim 1, wherein Further including: Display a preview control. When the user has not imported video materials for any of the specified video segments corresponding to the clip identifiers, the preview control is in an inoperable state; When it is detected that video materials have been successfully imported for at least one of the specified video segments corresponding to the clip identifiers, switch the preview control from the inoperable state to an operable state; wherein, the preview control in the operable state is used to trigger the presentation of the clip result.

4. The method according to claim 3, wherein The displaying the clip identifiers based on the video clip template includes: Display a material aggregation display page based on the video clip template and display the preview control in the material aggregation display page; or, Display a shooting page based on the video clip template and display the preview control in the shooting page. Further including:

5. The method according to claim 1, characterized in that, During the process of presenting the clip result obtained by applying the specified clip operation to the target video material, in response to a trigger operation for the clip identifier corresponding to the specified video segment, import video materials into the selected specified video track or replace the imported video materials in the selected specified video segment. If there are multiple clip identifiers, the displaying the clip identifiers based on the video clip template includes: tiled display of the multiple clip identifiers based on the video clip template; 6. The method according to claim 1, wherein The method further includes: when it is detected that a switching condition is met, display the multiple clip identifiers in a stacked manner. Further including:

7. The method according to claim 1, wherein ​ When the specified video clip includes the first video clip, and the user has imported video materials into all the specified video clips except the first video clip, obtain the video materials obtained by shooting, and in response to the confirmation use instruction for the video materials obtained by shooting, trigger the presentation of the editing result, where the confirmation use instruction is used to confirm that the video materials obtained by shooting are the target video materials on the first video clip.

8. The method according to claim 1, wherein It further includes: When the specified video clip includes the first video clip, and the user has imported video materials into all the specified video clips except the first video clip, obtain the video materials from the album, and in response to the confirmation upload instruction for the video materials obtained from the album, trigger the presentation of the editing result, where the confirmation upload instruction is used to confirm that the video materials obtained by shooting are the target video materials on the first video clip.

9. A video editing device, characterized in that, It includes: An obtaining module, configured to obtain a video editing template; A processing module, configured to generate a segment identifier based on the video editing template; Wherein, the video editing template is used to indicate that a specified editing operation is applied to at least one specified video clip, the segment identifier corresponds to the specified video clip one by one, and the segment identifier is used to prompt the user to import video materials for the specified video clip corresponding to the segment identifier; A display module, configured to display the segment identifier; The processing module is further configured to, in response to the trigger operation for presenting the editing result, obtain the editing result obtained by applying the specified editing operation to the target video material based on the target video material and the specified editing operation; wherein, the target video material corresponds to the specified video clip one by one; the target video material is used to import the target video material corresponding to the specified video clip to form the editing result; if the specified video clip includes a first video clip, the target video material corresponding to the first video clip is a preset video material, and the first video clip is the specified video clip for which the user has not imported video materials in response to the trigger operation; The display module is further configured to present the editing result.

10. An electronic device, characterized in that, It includes: A memory and a processor; The memory is configured to store computer program instructions; The processor is configured to execute the computer program instructions, so that the electronic device implements the video editing method according to any one of claims 1 to 8.

11. A readable storage medium, characterized in that, It includes: Computer program instructions; At least one processor of the electronic device executes the computer program instructions, so that the electronic device implements the video editing method according to any one of claims 1 to 8.

12. A computer program product, characterized in that, The electronic device runs the computer program product, so that the electronic device implements the video editing method according to any one of claims 1 to 8.