Video editing method, apparatus, device, and medium

By acquiring and tagging video editing templates, displaying the video editing interface, and replacing video track segments, the problem of time-consuming video editing is solved, achieving a more efficient and flexible video editing process.

CN118741242BActive Publication Date: 2026-06-16BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2023-03-28
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Current video editing technologies are time-consuming and cannot meet diverse editing needs, necessitating improvements in editing efficiency and flexibility.

Method used

By acquiring video editing templates, generating and marking replaceable materials based on multimedia data, displaying the video editing interface, responding to material import operations, and replacing video track clips with new materials, the reuse of video editing templates is achieved.

🎯Benefits of technology

It improves the efficiency and flexibility of video editing, reduces repetitive operations during the editing process, and enhances the overall efficiency of video editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741242B_ABST
    Figure CN118741242B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a video editing method, device, equipment and medium, wherein the method comprises: obtaining a video editing template; wherein the video editing template is generated based on first multimedia data; displaying a video editing interface based on the video editing template; the video editing interface presents a timeline-based video editing track, and the video editing track presents a first video track segment, and the first video track segment corresponds to a second video track segment formed by a first multimedia material in the first multimedia data; in response to a material import operation for the first video track segment, the first video track segment is replaced by a third video track segment to obtain second multimedia data; wherein the first multimedia material in the first multimedia data is replaced by a second multimedia material in the second multimedia data. Thus, in embodiments of the present disclosure, the efficiency and flexibility of video editing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer application technology, and in particular to a video editing method, apparatus, device and medium. Background Technology

[0002] With the development of computer technology, sharing and disseminating information through video has become mainstream, such as promoting food through videos.

[0003] However, with the diversification of video promotion scenarios, the demand for video editing is becoming increasingly diverse. In order to meet these diverse needs, multiple editing operations are required, resulting in longer editing times. Therefore, there is an urgent need for a way to improve the efficiency of video editing. Summary of the Invention

[0004] To address, or at least partially address, the aforementioned technical problems, this disclosure provides a video editing method, apparatus, device, and medium that improves the efficiency and flexibility of video editing.

[0005] This disclosure provides a video editing method, the method comprising: obtaining a video editing template; wherein the video editing template is generated based on first multimedia data; the first multimedia data includes at least one multimedia material and editing information, the editing information being used to indicate editing operations for the at least one multimedia material; the video editing template includes marking information, the marking information being used to indicate that a first multimedia material among the at least one multimedia material is marked as replaceable material; displaying a video editing interface based on the video editing template; the video editing interface presenting a timeline-based video editing track, the video editing track presenting a first video track segment, the first video track segment corresponding to a second video track segment formed by the first multimedia material in the first multimedia data; in response to a material import operation for the first video track segment, replacing the first video track segment with a third video track segment to obtain second multimedia data; the third video track segment corresponding to a fourth video track segment formed by the second multimedia material indicated by the material import operation, the first video track segment and the third video track segment occupying the same timeline position on the video editing track; wherein, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data.

[0006] This disclosure also provides a video editing apparatus, comprising: an acquisition module for acquiring a video editing template; wherein the video editing template is generated based on first multimedia data; the first multimedia data includes at least one multimedia material and editing information, the editing information being used to indicate editing operations for the at least one multimedia material; the video editing template includes marking information, the marking information being used to indicate that a first multimedia material among the at least one multimedia material is marked as replaceable material; and a display module for displaying a video editing interface based on the video editing template; the video editing interface presents a timeline-based video editing track, on which a first video track segment is presented. The segment corresponds to a second video track segment formed by the first multimedia material in the first multimedia data; the replacement module is used to replace the first video track segment with a third video track segment in response to a material import operation for the first video track segment to obtain the second multimedia data; the third video track segment corresponds to a fourth video track segment formed by the second multimedia material indicated by the material import operation, and the first video track segment and the third video track segment occupy the same timeline position on the video editing track; wherein, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data.

[0007] This disclosure also provides an electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the video editing method provided in this disclosure.

[0008] This disclosure also provides a computer-readable storage medium storing a computer program for performing the video editing method provided in this disclosure.

[0009] The technical solution provided in this disclosure has the following advantages compared with the prior art:

[0010] The video editing scheme provided in this embodiment obtains a video editing template. The video editing template is generated based on first multimedia data. The first multimedia data includes at least one multimedia material and editing information, whereby the editing information indicates editing operations for the at least one multimedia material. The video editing template includes marking information indicating that the first multimedia material in the at least one multimedia material is marked as replaceable. Based on the video editing template, a video editing interface is displayed. The video editing interface presents a timeline-based video editing track, on which a first video track segment is presented. The first video track segment corresponds to a second video track segment formed by the first multimedia material in the first multimedia data. In response to a material import operation for the first video track segment, the first video track segment is replaced with a third video track segment to obtain second multimedia data. The third video track segment corresponds to a fourth video track segment formed by the second multimedia material indicated by the material import operation. The first video track segment and the third video track segment occupy the same timeline position on the video editing track. Compared to the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data. Thus, video editing based on the video editing template is realized, improving the efficiency and flexibility of video editing. Attached Figure Description

[0011] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0012] Figure 1 A flowchart illustrating a video editing method provided in an embodiment of this disclosure;

[0013] Figure 2 This is a schematic diagram of a video editing scenario provided by an embodiment of the present disclosure;

[0014] Figure 3 This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0015] Figure 4 This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0016] Figure 5 This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0017] Figure 6 This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0018] Figure 7A This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0019] Figure 7B This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0020] Figure 8 This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0021] Figure 9 This is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0022] Figure 10 This is a schematic diagram of the structure of a video editing device provided in an embodiment of the present disclosure;

[0023] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0024] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0025] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0026] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0027] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0028] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0029] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0030] To address the aforementioned issues, this disclosure provides a video editing method in which video editing templates can be reused, thereby improving video editing efficiency and flexibility.

[0031] The method will be described below with reference to specific embodiments.

[0032] Figure 1 This is a flowchart illustrating a video editing method provided in an embodiment of the present disclosure. The method can be executed by a video editing device, which can be implemented using software and / or hardware, and is generally integrated into an electronic device. Figure 1 As shown, the method includes:

[0033] Step 101: Obtain a video editing template; wherein the video editing template is generated based on first multimedia data; the first multimedia data includes at least one multimedia material and editing information, the editing information being used to indicate editing operations for at least one multimedia material; the video editing template includes tagging information, the tagging information being used to indicate that the first multimedia material in at least one multimedia material is marked as a replaceable material.

[0034] In one embodiment of this disclosure, a video editing template is obtained. This video editing template is generated based on first multimedia data, which includes at least one multimedia material such as images, text, and audio. The first multimedia data may also include editing information, which is used to indicate editing operations for at least one multimedia material. For example, each multimedia material includes multiple editing tracks, and each editing track includes one type of editable information from the corresponding multimedia material. For example, multimedia material A includes a text editing track, an audio editing track, an image editing track, etc. The editing operation in this embodiment can be an editing operation on the editable information of any track in the multimedia material. For example, the editing operation is image effects processing in the image editing track.

[0035] It is easy to understand that the video editing template itself is the first multimedia data in video form. To facilitate the processing of the corresponding first multimedia data into a video editing template, in one embodiment of this disclosure, marking information is used to indicate that at least one multimedia material is marked as a replaceable material. To facilitate the application of the video editing template, this marking information can be displayed visually on the corresponding multimedia material. The display style of the marking information can be set according to the needs of the scenario; for example, it can be as follows: Figure 2 As shown, the tag information can be a "replaceable" text style.

[0036] Step 102: Based on the video editing template, display the video editing interface; the video editing interface presents a timeline-based video editing track, on which a first video track segment is presented, and the first video track segment corresponds to a second video track segment formed by the first multimedia material in the first multimedia data.

[0037] In one embodiment of this disclosure, a video editing interface is displayed based on a video editing template, so that the video editing template can be reused on the video editing interface, wherein, as... Figure 3 As shown, the video editing interface displays a timeline-based video editing track. The video editing track displays a first video track segment, which corresponds to a second video track segment formed from the first multimedia material in the first multimedia data. The first video track segment can be the second video track segment, and the first video track segment can be a video track segment generated by freezing a target image frame, where the target image frame is an image frame in the first multimedia material.

[0038] In other words, the first video track segment displayed on the video editing interface can be either a second video track segment formed from the first multimedia material, or a single image frame from the first multimedia material. For example, ... Figure 4 As shown, when the first multimedia data contains a video segment containing image frames B1-B4, the first video track segment can be a second video track segment composed of B1-B4, or it can be a video track segment generated by freezing B1.

[0039] Step 103: In response to the material import operation for the first video track segment, the first video track segment is replaced with the third video track segment to obtain the second multimedia data; the third video track segment corresponds to the fourth video track segment formed by the second multimedia material indicated by the material import operation, and the first video track segment and the third video track segment occupy the same timeline position on the video editing track.

[0040] In this second multimedia data, compared to the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data.

[0041] In one embodiment of this disclosure, a material import operation can be performed directly on the first video track segment to replace the first video track with a third video track segment to obtain the second multimedia data, thereby enabling the reuse of relevant video editing templates.

[0042] The third video track segment corresponds to the fourth video track segment formed by the second multimedia material indicated by the material import operation. In one embodiment of this disclosure, after obtaining the second multimedia data, the second multimedia data can be exported to obtain a video export operation. This video export operation can be implemented by triggering a preset export control, or by executing other bound events corresponding to the export operation. For example, in some optional implementations, the export operation can be implemented by double-clicking the current video editing page.

[0043] In one embodiment of this disclosure, in response to a video export operation, it is detected whether a first video track segment has been replaced with a third video track segment. If the replacement is complete, a target video is directly generated based on the second multimedia data, and the user can further perform operations such as saving or sharing the target video. If the replacement is not complete, a replacement guidance prompt is given to the first video track segment, such as displaying text prompts to indicate whether the target video should be generated using the first video track segment since the current first track segment has not been completely replaced. In this embodiment, the replacement can be determined to be complete after all first video track segments have been completely replaced with third video track segments, or it can be determined to be complete after some first video track segments have been replaced with third video track segments. When some first video track segments have been replaced with third video track segments, the first video track segments that have not been replaced with third video track segments can be highlighted when the replacement guidance prompt is given, for example, by outlining the corresponding first video track segments that have not been replaced with third video track segments with a rectangle. In some possible embodiments, the target video segment can also reuse the first video track segment. For example, when a video export confirmation operation is obtained after receiving a replacement guidance prompt, all current video track segments are exported as the target video.

[0044] It should be emphasized that in this embodiment, the first video track segment and the third video track segment occupy the same timeline position on the video editing track, thereby realizing the operation of replacing the first video track segment with the third video track segment at the same timeline position.

[0045] In one embodiment of this disclosure, in order to ensure that the first video track segment and the corresponding third video track segment are aligned on the time axis, the first duration corresponding to the second multimedia material is compared with the second duration of the first video track segment. If the first duration is less than the second duration, the playback speed of the second multimedia material is slowed down so that the playback duration of the adjusted video segment is the second duration. For example, the playback duration of each frame of the second multimedia material is determined based on the duration difference between the second duration and the first duration, and the playback duration of the video segment corresponding to the second multimedia material is adjusted by playing the second multimedia material with this duration.

[0046] If the first duration is greater than the second duration, then the material is extracted starting from the first frame of the second multimedia material so that the playback duration of the video segment generated from the extracted second multimedia material is the second duration. That is, a video segment with the same playback duration as the second duration is extracted from the second multimedia material as the third video track segment. Of course, in some possible embodiments, the difference between the first duration and the second duration can also be calculated, and the playback duration of each image frame of the second multimedia material can be determined based on the difference. The playback duration of the video segment corresponding to the second multimedia material is adjusted by playing the second multimedia material with this duration, so that the playback duration of the adjusted second multimedia material is the same as the second duration, without the need to extract the second multimedia material.

[0047] In addition, in the embodiments of this disclosure, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data, wherein the editing operations of the first multimedia material are retained, thereby realizing the reuse of video editing templates.

[0048] Of course, in one embodiment of this disclosure, to further meet the needs of video editing, the second multimedia material can also be edited. That is, in one embodiment of this disclosure, after replacing the first video track segment with the third video track segment to obtain the second multimedia data, an editing area can be displayed in response to editing operations on the second multimedia material, such as in response to a preset trigger operation on the second multimedia material, or in response to a trigger operation on a preset editing control. The editing area contains various editing menus for the second multimedia material, including a color editing menu for the second multimedia material, etc. The second multimedia material can be edited in the editing area. Thus, without jumping to other video editing interfaces, the editing of the second multimedia data can be achieved on the video template editing interface of the current second multimedia data, further improving video editing efficiency.

[0049] For example, such as Figure 5As shown, after replacing the first video track segment with the third video track segment to obtain the second multimedia data, the corresponding editing area for the second multimedia material under the current timeline can be displayed. This editing area can include menus for adjusting the size, color, and brightness of the second multimedia material. Editing of the second multimedia material can be performed within this editing area.

[0050] Of course, in one embodiment of this disclosure, the editing operations in the first multimedia data can also be edited a second time so that the result of the second editing can be reused in the subsequent second multimedia data. For example, at least one replaceable text fragment in the first multimedia data can be displayed in the text area of ​​the video editing interface.

[0051] Furthermore, in response to the selection operation of the target text fragment in the text area, the target text fragment can be an editable text fragment in the multimedia material of the first multimedia data. At least one video frame is marked on the video editing track based on the timeline, wherein the video frame corresponds to the position of the target text fragment in the first multimedia data. The video frame corresponding to the timeline can be actively selected by the user, or the video frame content information of each video frame in the first multimedia data can be identified. It is determined whether it matches the target text fragment based on the video frame content information. The video frame corresponding to the target text fragment is determined based on the matching result. It is also possible to optionally set the correspondence between each replaceable text fragment and the corresponding video frame. After selecting the target text fragment, the preset correspondence is queried to determine the corresponding video frame. In response to the editing operation of the target text fragment, the edited text fragment is synchronously displayed in the video player, wherein the edited text fragment can be reflected in the second multimedia data.

[0052] For example, such as Figure 6 As shown, in the text area of ​​the video editing interface, the replaceable text fragments in the first multimedia data are "2222222", "333333", and "44444444". In response to the editing operation of the selected replaceable text fragment "2222222" in the text area, video frames (video frames in the rectangle in the figure) are marked on the video editing track based on the timeline. In response to the editing operation of the target text fragment, the edited text fragment corresponding to this editing operation is "wwwww", and the corresponding text fragment "wwwwww" is displayed synchronously in the player.

[0053] Of course, in actual execution, the video editing interface can also display other editing tracks for editing the first video track segment. These other editing tracks include tracks for trimming, speed adjustment, and other editing of the first video track segment. Alternatively, the video editing interface can also display other editing tracks for editing the third video track segment. Similarly, these other editing tracks can include tracks for trimming, speed adjustment, and other editing of the third video track segment. This satisfies other editing needs for video editing, allowing other editing operations to be performed directly on the video editing interface without having to switch to other pages, further improving the efficiency of video editing.

[0054] In summary, the video editing method of this disclosure obtains a video editing template. The video editing template is generated based on first multimedia data. The first multimedia data includes at least one multimedia material and editing information, the editing information indicating editing operations for the at least one multimedia material. The video editing template includes marking information indicating that the first multimedia material in the at least one multimedia material is marked as replaceable material. Based on the video editing template, a video editing interface is displayed. The video editing interface presents a timeline-based video editing track, on which a first video track segment is presented. The first video track segment corresponds to a second video track segment formed by the first multimedia material in the first multimedia data. In response to a material import operation for the first video track segment, the first video track segment is replaced with a third video track segment to obtain second multimedia data. The third video track segment corresponds to a fourth video track segment formed by the second multimedia material indicated by the material import operation. The first video track segment and the third video track segment occupy the same timeline position on the video editing track. Compared to the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data. Thus, video editing based on the video editing template is realized, improving the efficiency and flexibility of video editing.

[0055] As can be seen from the above embodiments, in the video editing method proposed in this disclosure, the first video track segment is replaced with the third video track segment to generate the second multimedia data. The first video track segment and the third video track segment occupy the same timeline position on the video editing track. The second multimedia data and the first multimedia data contain multiple video track segments on the same timeline. The editing operation of each video track segment can reuse the editing operation corresponding to the first multimedia material in the first multimedia data, thereby realizing the reuse of video editing templates.

[0056] The following describes, with reference to a specific embodiment, how to replace the first video track segment with the third video track segment.

[0057] In one embodiment of this disclosure, at least one multimedia material corresponding to the first multimedia data further includes a third multimedia material. That is, the first video track segment is a composite video segment, corresponding to a combination of the second and fifth video track segments. The fifth video track segment is a video track segment formed from the third multimedia material within the first multimedia data. The second and fifth video track segments overlap on the timeline. The composite video segment can be displayed visually on the video editing track, for example, displaying that the corresponding first video track segment contains "3 video segments, etc." When the composite video segment is selected, multiple corresponding video segments are displayed in a list or other format, allowing the user to replace the video segments. For example, ... Figure 7A As shown, when the first video track segment is a composite video segment, in addition to the second video track segment, it may also include at least one fifth video track segment composed of third multimedia material (two fifth video track segments are shown in the figure). There are overlapping parts between the multiple video segments on the timeline. This overlap can be any form of overlap. For example, the multiple video segments may have the same start time but not the same end time, or the multiple video segments may have different start and end times, etc.

[0058] In this embodiment, in response to a material import operation for a first video track segment, the first and second sub-segments of a second video track segment can be displayed in chronological order in response to a trigger operation for the first video track segment. Here, the first sub-segment can be understood as corresponding to the second video track segment, and the second sub-segment can be understood as corresponding to the fifth video track segment. Furthermore, in response to a first import operation for the first sub-segment, the first sub-segment is replaced with a third sub-segment, where the third sub-segment corresponds to the fourth video track segment. In this embodiment, in response to a material import operation for the second sub-segment, the second sub-segment is replaced with a fourth sub-segment, where the fourth sub-segment corresponds to the sixth video track segment formed by the fourth multimedia material. The material import operation includes a first import operation and a second import operation. The first import operation instructs the import of the second multimedia material into the first sub-segment, and the second import operation instructs the import of the fourth multimedia material into the second sub-segment.

[0059] For example, such as Figure 7BAs shown, when the first video track segment is a composite track segment, including a first sub-segment W1 and a second sub-segment W2, W1 and W2 are displayed in chronological order in response to a trigger operation on the first video track segment. In response to a material import operation on W1, and in response to a first import operation on the first sub-segment, the first sub-segment W1 is replaced with a third sub-segment W3, which corresponds to the fourth video track segment. In response to a material import operation on the second sub-segment W2, the second sub-segment is replaced with a fourth sub-segment W4, which corresponds to the sixth video track segment formed by the fourth multimedia material. Thus, the first video track segment is replaced with the third video track segment, which corresponds to a combined segment of the fourth and sixth video track segments. After the aforementioned material import operation, the first video track segment is replaced with the third video track segment, which corresponds to a combined segment of the fourth and sixth track segments. This achieves the replacement of multiple sub-segments ultimately corresponding to the composite video track segment.

[0060] In one embodiment of this disclosure, in response to a material import operation for a first video track segment, replacing the first video track segment with a third video track segment to obtain second multimedia data may include:

[0061] In response to the material import operation for the first video track segment, the material upload entry is displayed. The style of the material upload entry can be set according to the needs of the scene. In response to the upload operation for the second multimedia material selected by the material upload entry, the first video track segment is replaced with the third video track segment to obtain the second multimedia data.

[0062] That is, in this embodiment, such as Figure 8 As shown, an "Import" control from the local media library can be provided on the video editing interface as an entry point for uploading media. After the "Import" control is triggered, the corresponding candidate second multimedia media from the local media library is displayed. In response to the triggering operation of multiple candidate second multimedia media, the selected second multimedia media can be uploaded.

[0063] In one embodiment of this disclosure, in response to a material import operation for a first video track segment, replacing the first video track segment with a third video track segment to obtain second multimedia data may include: in response to an add operation for a selected second multimedia material on the material panel, replacing the first video track segment with a third video track segment to obtain second multimedia data. That is, in this embodiment, multiple candidate second multimedia materials are displayed on the material panel, and a selection operation can be performed on the candidate second multimedia materials to replace the first video track segment with the corresponding third video track segment to obtain second multimedia data.

[0064] In this embodiment, as Figure 9 As shown, an import control can be displayed on each second multimedia material, such as a "+" control. When the import control is triggered, a material display panel is displayed, showing multiple candidate second multimedia materials. A selection operation can be performed on the candidate second multimedia materials to replace the currently selected first video track segment with the corresponding third video track segment to obtain the second multimedia data.

[0065] In this embodiment, other operation methods can also be used to replace the second multimedia material. For example, in response to the drag operation of the second multimedia material selected on the material panel to the first video track segment, the first video track segment can be replaced with the third video track segment to obtain the second multimedia data.

[0066] In addition, in the embodiments of this disclosure, after replacing the first video track segment with the third video track segment, the replaced third video track segment can be replaced again, and if the client currently performing the editing is editing for the first time, editing prompts and guidance information can be displayed at each step.

[0067] In summary, the video editing method of this disclosure can replace the first video track segment with the third video track segment in different ways according to different application scenarios, thereby further improving the flexibility of video editing.

[0068] To implement the above embodiments, this disclosure also proposes a video editing apparatus. Figure 10 This is a schematic diagram of a video editing device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware and is generally integrated into an electronic device for video editing. Figure 10As shown, the video editing device includes: an acquisition module 1010, a display module 1020, and a replacement module 1030. The acquisition module 1010 is used to acquire a video editing template. The video editing template is generated based on first multimedia data. The first multimedia data includes at least one multimedia material and editing information, the editing information indicating editing operations for at least one multimedia material. The video editing template includes marking information indicating that the first multimedia material in the at least one multimedia material is marked as a replaceable material.

[0069] The display module 1020 is used to display a video editing interface based on a video editing template. The video editing interface presents a timeline-based video editing track, on which a first video track segment is presented. The first video track segment corresponds to a second video track segment formed by the first multimedia material in the first multimedia data.

[0070] Replacement module 1030 is used to replace the first video track segment with a third video track segment in response to a material import operation for the first video track segment to obtain second multimedia data; the third video track segment corresponds to a fourth video track segment formed by the second multimedia material indicated by the material import operation, and the first video track segment and the third video track segment occupy the same timeline position on the video editing track;

[0071] In this second multimedia data, compared to the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data.

[0072] The video editing apparatus provided in this disclosure can execute the video editing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the method execution, which will not be described in detail here.

[0073] To implement the above embodiments, this disclosure also proposes a computer program product, including a computer program / instructions, which, when executed by a processor, implement the video editing method described above.

[0074] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.

[0075] The following is a detailed reference. Figure 11The diagram illustrates a structural schematic suitable for implementing the electronic device 1100 in the embodiments of this disclosure. The electronic device 1100 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 11 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0076] like Figure 11 As shown, electronic device 1100 may include a processor (e.g., central processing unit, graphics processor, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1102 or a program loaded from memory 1108 into random access memory (RAM) 1103. The RAM 1103 also stores various programs and data required for the operation of electronic device 1100. The processor 1101, ROM 1102, and RAM 1103 are interconnected via bus 1104. Input / output (I / O) interface 1105 is also connected to bus 1104.

[0077] Typically, the following devices can be connected to I / O interface 1105: input devices 1106 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 1108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1109. Communication device 1109 allows electronic device 1100 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 11 An electronic device 1100 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0078] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1109, or installed from memory 1108, or installed from ROM 1102. When the computer program is executed by processor 1101, it performs the functions defined in the aaaa method of embodiments of this disclosure.

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

[0080] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

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

[0082] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:

[0083] A video editing template is obtained; wherein the video editing template is generated based on first multimedia data; the first multimedia data includes at least one multimedia material and editing information, the editing information being used to indicate editing operations for at least one multimedia material; the video editing template includes marking information, the marking information being used to indicate that the first multimedia material in the at least one multimedia material is marked as replaceable material; based on the video editing template, a video editing interface is displayed; the video editing interface presents a timeline-based video editing track, on which a first video track segment is presented, the first video track segment corresponding to a second video track segment formed by the first multimedia material in the first multimedia data; in response to a material import operation for the first video track segment, the first video track segment is replaced with a third video track segment to obtain second multimedia data; the third video track segment corresponds to a fourth video track segment formed by the second multimedia material indicated by the material import operation, the first video track segment and the third video track segment occupy the same timeline position on the video editing track; wherein, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data, thereby realizing video editing based on the video editing template, improving the efficiency and flexibility of video editing.

[0084] Electronic devices can be programmed with computer program code in one or more programming languages ​​or combinations thereof to perform the operations of this disclosure. These programming languages ​​include, but are not limited to, object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

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

[0086] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.

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

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

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

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

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

Claims

1. A video editing method, characterized in that, include: Obtain a video editing template; wherein the video editing template is generated based on first multimedia data; the first multimedia data includes at least one multimedia material and editing information, the editing information being used to indicate editing operations for the at least one multimedia material; each replaceable first video segment in the video editing template includes tagging information, the tagging information being used to indicate that the corresponding first multimedia material in the at least one multimedia material is marked as replaceable material; Based on the video editing template, a video editing interface is displayed; the video editing interface presents a timeline-based video editing track, on which a first video track segment is presented, and the first video track segment corresponds to a second video track segment formed by the first multimedia material in the first multimedia data; In response to the material import operation for the first video track segment, the first video track segment is replaced with a third video track segment to obtain the second multimedia data; The third video track segment corresponds to the fourth video track segment formed by the second multimedia material indicated by the material import operation, and the first video track segment and the third video track segment occupy the same timeline position on the video editing track; In this second multimedia data, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data. The video editing interface also presents other editing tracks for editing the first video track segment or the third video track segment, including trimming and speed adjustment tracks. The first multimedia data is displayed in the text area of ​​the video editing interface. The first multimedia data includes at least one replaceable text fragment, wherein the text area is a different display area from the display area of ​​the video player. In response to a selection operation of a target text segment in the text region, at least one video frame is marked on the video editing track based on the timeline, wherein the video frame corresponds to the position in the first multimedia data where the target text segment is played; In response to the editing operation on the target text fragment, the edited text fragment is displayed synchronously in the video player.

2. The method according to claim 1, characterized in that, The first video track segment is the second video track segment; or, The first video track segment is a video track segment generated by freezing a target image frame, wherein the target image frame is an image frame in the first multimedia material.

3. The method according to claim 1, characterized in that, The at least one multimedia material also includes a third multimedia material; The first video track segment corresponds to a combination of the second video track segment and the fifth video track segment, wherein the fifth video track segment is a video track segment formed by the third multimedia material in the first multimedia data, and the second video track segment and the fifth video track segment have overlapping parts on the timeline.

4. The method according to claim 3, characterized in that, The step of replacing the first video track segment with a third video track segment in response to a media import operation for the first video track segment includes: In response to a trigger operation on the first video track segment, the first sub-segment and the second sub-segment of the second video track segment are displayed in chronological order, wherein the first sub-segment corresponds to the second video track segment and the second sub-segment corresponds to the fifth video track segment; In response to a first import operation for the first sub-segment, the first sub-segment is replaced with a third sub-segment; the third sub-segment corresponds to the fourth video track segment; In response to the material import operation for the second sub-segment, the second sub-segment is replaced with the fourth sub-segment; the fourth sub-segment corresponds to the sixth video track segment formed by the fourth multimedia material; The first video track segment is replaced with the third video track segment; the third video track segment corresponds to a combined segment of the fourth and sixth video track segments. The material import operation includes a first import operation and a second import operation. The first import operation is used to instruct the second multimedia material to be imported into the first sub-segment, and the second import operation is used to instruct the fourth multimedia material to be imported into the second sub-segment.

5. The method according to claim 1, characterized in that, The step of replacing the first video track segment with a third video track segment in response to the material import operation for the first video track segment to obtain the second multimedia data includes: In response to the material import operation of the first video track segment, the material upload entry is displayed; In response to the upload operation of the second multimedia material selected based on the material upload entry, the first video track segment is replaced with the third video track segment to obtain the second multimedia data.

6. The method according to claim 1, characterized in that, The step of replacing the first video track segment with a third video track segment in response to the material import operation for the first video track segment to obtain the second multimedia data includes: In response to the addition operation of the second multimedia material selected on the media panel, the first video track segment is replaced with the third video track segment to obtain the second multimedia data; or, In response to a drag operation that moves the second multimedia material selected on the media panel to the first video track segment, the first video track segment is replaced with a third video track segment to obtain the second multimedia data.

7. The method according to claim 1, characterized in that, The step of replacing the first video track segment with the third video track segment to obtain the second multimedia data includes: Compare the first duration of the second multimedia material with the second duration of the first video track segment; If the first duration is less than the second duration, the playback speed of the second multimedia material will be slowed down so that the playback duration of the adjusted video clip is the second duration. If the first duration is greater than the second duration, then the material is extracted starting from the first frame of the second multimedia material so that the playback duration of the video clip generated from the extracted second multimedia material is the second duration.

8. The method according to claim 1, characterized in that, After replacing the first video track segment with the third video track segment to obtain the second multimedia data, the method further includes: In response to editing operations on the second multimedia material, the material editing area is displayed; The second multimedia material is edited in the material editing area.

9. The method according to claim 1, characterized in that, Also includes: In response to the video export operation, verify whether the first video track segment has been replaced with the third video track segment; If the replacement is complete, the target video is generated based on the second multimedia data; If the replacement is not completed, a replacement guidance prompt will be given for the first video track segment.

10. A video editing device, characterized in that, include: An acquisition module is used to acquire a video editing template; wherein the video editing template is generated based on first multimedia data; the first multimedia data includes at least one multimedia material and editing information, the editing information being used to indicate editing operations for the at least one multimedia material; each replaceable first video segment in the video editing template includes tagging information, the tagging information being used to indicate that the corresponding first multimedia material in the at least one multimedia material is marked as replaceable material; The display module is used to display a video editing interface based on the video editing template; the video editing interface presents a video editing track based on a timeline, and a first video track segment is presented on the video editing track, the first video track segment corresponding to a second video track segment formed by the first multimedia material in the first multimedia data; A replacement module is configured to, in response to a material import operation for the first video track segment, replace the first video track segment with a third video track segment to obtain second multimedia data; the third video track segment corresponds to a fourth video track segment formed by the second multimedia material indicated by the material import operation, and the first video track segment and the third video track segment occupy the same timeline position on the video editing track; In this second multimedia data, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced with the second multimedia material in the second multimedia data. The video editing interface also presents other editing tracks for editing the first video track segment or the third video track segment, including trimming and speed adjustment tracks. The display module is also used to display the first multimedia data in the text area of ​​the video editing interface. The first multimedia data includes at least one replaceable text fragment, wherein the text area is a different display area from the display area of ​​the video player. A marking module is configured to, in response to a selection operation of a target text segment selected in the text region, mark at least one video frame on the video editing track based on a timeline, wherein the video frame corresponds to the position in the first multimedia data where the target text segment is played; The display module is also used to respond to the editing operation of the target text fragment by synchronously displaying the edited text fragment in the video player.

11. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the video editing method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, is used to implement the video editing method according to any one of claims 1-9.