Video editing method and apparatus, and device and medium

By obtaining video editing templates and replacing materials based on the timeline, the problem of low video editing efficiency is solved, the efficiency and flexibility of video editing are improved, and the diversified editing needs are met.

WO2024198395A1PCT designated stage expired Publication Date: 2024-10-03BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
PCT/CN2023/132713
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2023-11-20
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

With the diversification of video promotion scenarios and the diversification of video editing needs, it is difficult for existing technologies to effectively improve video editing efficiency, resulting in longer editing times.

Method used

Provides a video editing method that improves the efficiency and flexibility of video editing by obtaining a video editing template and replacing materials based on the video editing track of the timeline.

Benefits of technology

Through reuse of video editing templates and timeline-based material replacement, the efficiency and flexibility of video editing are significantly improved, the video editing process is simplified, and the video editing process is satisfied to meet diverse editing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023132713_03102024_PF_FP_ABST
    Figure CN2023132713_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure relate to a video editing method and apparatus, and a device and a medium. The method comprises: acquiring a video editing template, wherein the video editing template is generated on the basis of first multimedia data; displaying a video editing interface on the basis of the video editing template, wherein a timeline-based video editing track is presented on the video editing interface, a first video track clip is presented on the video editing track, and the first video track clip corresponds to a second video track clip in the first multimedia data, which second video track clip is formed by a first multimedia material; and in response to a material import operation for the first video track clip, replacing the first video track clip with a third video track clip, so as to obtain second multimedia data, wherein the first multimedia material in the first multimedia data is replaced with a second multimedia material in the second multimedia data. In this way, in the embodiments of the present disclosure, the video editing efficiency and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Video editing method, device, equipment and medium

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

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

[0003] With the development of computer technology, sharing and disseminating information using video as a medium has become mainstream, for example, promoting food in the form of video.

[0004] However, with the diversification of video promotion scenarios, the demand for video editing has become increasingly diversified. In order to meet the diverse video editing needs, multiple editing operations need to be performed on the video, which results in a longer video editing time. Therefore, there is an urgent need for a method that can improve the efficiency of video editing.

[0005] Summary of the Invention

[0006] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a video editing method, apparatus, device and medium, which improve the efficiency and flexibility of video editing.

[0007] An embodiment of the present 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 an editing operation on 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 in the at least one multimedia material is marked as a replaceable material; displaying a video editing interface based on the video editing template; the video editing interface presenting a timeline-based video editing track, wherein 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; in response to a material import operation on 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 by the second multimedia material in the second multimedia data.

[0008] The embodiment of the present disclosure also provides a video editing device, which includes: 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, and the editing information is used to indicate an editing operation for the at least one multimedia material; the video editing template includes marking information, and the marking information is used to indicate that a first multimedia material in the at least one multimedia material is marked as a replaceable material; a 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, and the first video track The segment corresponds to the 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 the third video track segment in response to the material import operation for the first 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; wherein, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced by the second multimedia material in the second multimedia data.

[0009] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing instructions executable by the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the video editing method provided by the embodiment of the present disclosure.

[0010] An embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the video editing method provided by the embodiment of the present disclosure.

[0011] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art:

[0012] The video editing solution provided by the present disclosure obtains 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 an editing operation on 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 in the at least one multimedia material is marked as a replaceable material; and a video editing interface is displayed based on the video editing template; the video editing interface presents a timeline-based video editing track, wherein 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; in response to a material import operation on 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, 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 by the second multimedia material in the second multimedia data. Thus, video editing based on the video editing template is implemented, and the efficiency and flexibility of video editing are improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0015] FIG2 is a schematic diagram of a video editing scenario provided by an embodiment of the present disclosure;

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

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

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

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

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

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

[0022] FIG8 is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0023] FIG9 is a schematic diagram of another video editing scenario provided by an embodiment of the present disclosure;

[0024] FIG10 is a schematic structural diagram of a video editing device provided by an embodiment of the present disclosure;

[0025] FIG11 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

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

[0028] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

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

[0030] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] In order to solve the above problems, an embodiment of the present disclosure provides a video editing method, in which video editing templates can be reused for video editing, thereby improving the efficiency and flexibility of video editing.

[0033] The method is described below with reference to specific embodiments.

[0034] FIG1 is a flow chart of a video editing method provided by an embodiment of the present disclosure. The method can be executed by a video editing device, wherein the device can be implemented using software and / or hardware and can generally be integrated into an electronic device. As shown in FIG1 , the method includes:

[0035] 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, and the editing information is used to indicate an editing operation for at least one multimedia material; the video editing template includes marking information, and the marking information is used to indicate that a first multimedia material in at least one multimedia material is marked as a replaceable material.

[0036] In one embodiment of the present disclosure, a video editing template is obtained, which is generated based on first multimedia data. The first multimedia data includes at least one multimedia material such as pictures, text, audio, etc. The first multimedia data may also include editing information, and the editing information is used to indicate an editing operation for at least one multimedia material. For example, each multimedia material includes multiple editing tracks, and each editing track includes a type of editable information in 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 of the editable information of any track in the multimedia material. For example, the editing operation is the image special effects processing in the image editing track, etc.

[0037] It is not difficult to understand that the video editing template itself is the first multimedia data in the form of video. In order to facilitate the processing of the corresponding first multimedia data into a video editing template, in one embodiment of the present disclosure, marking information is used to indicate that the first multimedia material in at least one multimedia material is marked as a replaceable material. In order to facilitate the application of the video editing template, the marking information can be displayed in a visual manner on the corresponding multimedia material, and the display style of the marking information can be set according to the needs of the scene. For example, as shown in Figure 2, the marking information can be a text style of "replaceable".

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

[0039] In one embodiment of the present disclosure, a video editing interface is displayed based on a video editing template to facilitate reuse of the video editing template on the video editing interface, wherein, as shown in FIG3 , a timeline-based video editing track is presented on the video editing interface, and a first video track segment is presented on the video editing track, wherein the first video track segment corresponds to a second video track segment formed by a first multimedia material in the first multimedia data, wherein the first video track segment may be a second video track segment, and the first video track segment may be a video track segment generated by freezing a target picture frame, wherein the target picture frame is a picture frame in the first multimedia material.

[0040] In other words, the first video track segment displayed on the video editing interface can be directly the second video track segment formed by the first multimedia material, or it can be a picture frame in the first multimedia material. For example, as shown in Figure 4, when the first multimedia data includes a video segment containing picture frames B1-B4, the first video track segment can be the second video track segment composed of B1-B4, or it can be the video track segment generated by freezing B1.

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

[0042] Compared with the first multimedia data, the second multimedia data is such that the first multimedia material in the first multimedia data is replaced by the second multimedia material in the second multimedia data.

[0043] In one embodiment of the present disclosure, a material import operation may be directly performed on the first video track segment to replace the first video track with the third video track segment to obtain second multimedia data, thereby realizing the reuse of related video editing templates.

[0044] The third video track segment corresponds to a fourth video track segment formed by the second multimedia material indicated by the material import operation. In one embodiment of the present disclosure, after acquiring the second multimedia data, the second multimedia data can be exported to obtain a video export operation. The video export operation can be implemented by triggering a preset export control or executing other binding 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.

[0045] In one embodiment of the present disclosure, in response to a video export operation, a detection is made as to 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 prompt is provided for the first video track segment, such as displaying a text prompt to prompt the user whether to use the first video track to generate the target video if the replacement of the current first track segment has not been completed. In this embodiment, the replacement can be determined to be complete after detecting that all first video track segments have been replaced with the third video track segment, or after some first video track segments have been replaced with the third video track segment. When some first video track segments have been replaced with the third video track segment, the first video track segments that have not been replaced with the third video track segment can be highlighted when the replacement prompt is provided, such as by framing the corresponding first video track segments that have not been replaced with the third video track segment with a rectangular frame. 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 the replacement prompt, all current video track segments are exported as the target video.

[0046] It should be emphasized that the first video track segment and the third video track segment in this embodiment 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.

[0047] In one embodiment of the present disclosure, in order to ensure that the first video track segment and the corresponding third video track segment are aligned on the timeline, the first duration corresponding to the second multimedia material and the second duration of the first video track segment are compared. If the first duration is less than the second duration, the playback speed of the second multimedia material is slowed down so that the adjusted video segment playback duration is the second duration. For example, based on the duration difference between the second duration and the first duration, the playback duration of each image frame of the second multimedia material is determined, and the second multimedia material is played according to the duration to adjust the playback duration of the video segment corresponding to the second multimedia material.

[0048] If the first duration is greater than the second duration, the material is intercepted starting from the first frame of the second multimedia material so that the playback duration of the video segment generated by the intercepted second multimedia material is the second duration, that is, a video segment with the same playback duration as the second duration is intercepted 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 second multimedia material is played according to the duration to adjust the playback duration of the video segment corresponding to the second multimedia material, so that the adjusted playback duration of the second multimedia material is the same as the second duration, and there is no need to intercept the second multimedia material.

[0049] In addition, in an embodiment of the present disclosure, compared with the first multimedia data, the first multimedia material in the first multimedia data is replaced by the second multimedia material in the second multimedia data, wherein the editing operation of the first multimedia material is retained, thereby realizing the reuse of the video editing template.

[0050] Of course, in one embodiment of the present disclosure, in order to further meet the demand for video editing, the second multimedia material can also be edited, that is, in one embodiment of the present disclosure, after replacing the first video track segment with the third video track segment to obtain the second multimedia data, it can also respond to the editing operation of the second multimedia material, for example, respond to the preset trigger operation of the second multimedia material, for example, respond to the trigger operation of the preset editing control, etc., then display the material editing area, wherein the material editing area contains a variety of editing menus for the second multimedia material, including the color editing menu of the second multimedia material, etc., and the second multimedia material can be edited in the material editing area. Therefore, there is no need to jump to other video editing interfaces, and the editing of the second multimedia data can be realized on the video template editing interface of the current second multimedia data, further improving the video editing efficiency.

[0051] For example, as shown in FIG5 , after the first video track segment is replaced with the third video track segment to obtain the second multimedia data, a material editing area for the corresponding second multimedia material under the current timeline may be displayed. The material editing area may include a size adjustment editing menu, a color adjustment editing menu, a brightness adjustment editing menu, etc. for the second multimedia material. The second multimedia material can be edited in the material editing area.

[0052] Of course, in one embodiment of the present disclosure, the relevant editing operations in the first multimedia data can also be edited a second time so that the results of the secondary editing can be reused in the subsequent second multimedia data. For example, at least one replaceable text segment in the first multimedia data is displayed in the text area on the video editing interface.

[0053] Furthermore, in response to the selection operation of the target text segment selected in the text area, the target text segment can be an editable text segment in the multimedia material in the first multimedia data, and 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 segment played 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, and whether it matches the target text segment is determined according to the video frame content information, and the video frame corresponding to the target text segment is determined according to the matching result. It is also possible to optionally set the correspondence between each replaceable text segment and the corresponding video frame, and after selecting the target text segment, query the preset correspondence to determine the corresponding video frame, and in response to the editing operation of the target text segment, the edited text segment is synchronously displayed on the video player, wherein the edited text segment can be reflected in the second multimedia data.

[0054] For example, as shown in Figure 6, in the text area on the video editing interface, the replaceable text segments in the first multimedia data are displayed as "2222222", "333333" and "44444444", respectively. In response to the editing operation of the replaceable text segment "2222222" selected in the text area, the video frame (the video frame in the rectangular box in the figure) is marked based on the timeline on the video editing track. In response to the editing operation of the target text segment, the edited text segment corresponding to the editing operation is "wwwww", and the corresponding text segment wwwww is synchronously displayed on the player.

[0055] Of course, in the actual execution process, other editing tracks for editing the first video track segment may also be presented on the video editing interface. Other editing tracks include editing tracks such as cropping and speed change for the first track video segment. Alternatively, other editing tracks for editing the third video track segment may also be presented on the video editing interface. Similarly, other editing tracks may include editing tracks such as cropping and speed change for the third track video segment. Thus, other editing requirements for video editing are met. There is no need to jump to other pages. Other editing operations can be performed on the video editing interface, further improving the efficiency of video editing.

[0056] In summary, the video editing method of the embodiment of the present disclosure obtains 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 an editing operation on 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 in the at least one multimedia material is marked as a 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, wherein 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; in response to a material import operation on 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 by the second multimedia material in the second multimedia data, thereby implementing video editing based on the video editing template and improving the efficiency and flexibility of video editing.

[0057] Based on the above embodiments, it can be seen that in the video editing method proposed in the embodiments of the present 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 the video editing template.

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

[0059] In one embodiment of the present disclosure, at least one multimedia material corresponding to the first multimedia data further includes a third multimedia material, i.e., the first video track segment is a composite video segment, the first video track segment corresponds to a combination of the second video track segment and the fifth video track segment, 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 portions on the timeline. The composite video segment can be visually displayed on the video editing track, for example, displaying that the corresponding first video track segment includes "3 video segments, etc." When the composite video segment is selected, the corresponding multiple video segments are displayed in a list or other form, allowing the user to replace the video segments. As shown in FIG7A , when the first video track segment is a composite video segment, in addition to the second video track segment, it can also include at least one fifth video track segment (two fifth video track segments are shown in the figure) formed by the third multimedia material. The multiple video segments have overlapping portions on the timeline. This overlap can be of any form, for example, the multiple video segments can have the same start time but different end times, or the multiple video segments can have different start times and end times.

[0060] In this embodiment, in response to the material import operation for the first video track segment, the first sub-segment and the second sub-segment of the second video track segment can be displayed in timeline order in response to the triggering operation on the first video track segment, wherein the first sub-segment here 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, and then, in response to the first import operation for the first sub-segment, the first sub-segment is replaced with the third sub-segment, wherein the third sub-segment corresponds to the fourth video track segment; in this embodiment, in response to the material import operation for the second sub-segment, the second sub-segment can be replaced with the fourth sub-segment, wherein the fourth sub-segment corresponds to the sixth video track segment formed by the fourth multimedia material, wherein the material import operation includes a first import operation and a second import operation, the first import operation is used to indicate the import of the second sub-segment into the first sub-segment, and the second import operation is used to indicate the import of the fourth multimedia material into the second sub-segment.

[0061] For example, as shown in Figure 7B, when the first video track segment is a composite track segment, the composite track segment includes a first sub-segment W1 and a second sub-segment W2. In response to a trigger operation on the first video track segment, W1 and W2 are displayed in timeline order. In response to a material import operation on W1, in response to the 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 W2 is replaced with a fourth sub-segment W4; the fourth sub-segment W4 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 the 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 the combined segment of the fourth and sixth track segments. Thus, the multiple sub-segments corresponding to the composite video track segment are replaced.

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

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

[0064] That is, in this embodiment, as shown in Figure 8, an "Import" control of the local material library can be provided on the video editing interface as a material upload entry. After the "Import" control is triggered, the candidate second multimedia material corresponding to the corresponding local material library is displayed. In response to the triggering operation of multiple candidate second multimedia materials, the upload operation of the selected second multimedia material is implemented.

[0065] In one embodiment of the present 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 second multimedia material selected 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, a plurality of candidate second multimedia materials are displayed on the material panel, and a selection operation may 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.

[0066] In this embodiment, as shown in Figure 9, an import control can be displayed on each second multimedia material, for example, a "+" control is displayed. When the import control is triggered, a material panel is displayed, and multiple candidate second multimedia materials are displayed on the material panel. 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.

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

[0068] In addition, in an embodiment of the present disclosure, after the first video track segment is replaced with the third video track segment, the replaced third video track segment can be replaced again, and if the client currently performing editing is editing for the first time, editing prompt guidance information can be displayed at each step.

[0069] In summary, the video editing method of the embodiment of the present 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.

[0070] In order to implement the above-mentioned embodiment, the present disclosure also proposes a video editing device. Figure 10 is a structural diagram of a video editing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware, and can generally be integrated into an electronic device for video editing. As shown in Figure 10, the video editing device includes: an acquisition module 1010, a display module 1020, and a replacement module 1030, wherein the acquisition module 1010 is used to 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, and the editing information is used to indicate an editing operation for at least one multimedia material; the video editing template includes marking information, and the marking information is used to indicate that the first multimedia material in at least one multimedia material is marked as a replaceable material;

[0071] Display module 1020, configured to display a video editing interface based on the video editing template; the video editing interface presenting a timeline-based video editing track, wherein the video editing track presents 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;

[0072] a replacement module 1030 configured to, in response to a material import operation on 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;

[0073] Compared with the first multimedia data, the second multimedia data is such that the first multimedia material in the first multimedia data is replaced by the second multimedia material in the second multimedia data.

[0074] The video editing device provided in the embodiments of the present disclosure can execute the video editing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method, which will not be repeated here.

[0075] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program / instruction, which implements the video editing method in the above embodiments when executed by a processor.

[0076] FIG11 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.

[0077] 11, which illustrates a schematic diagram of the structure of an electronic device 1100 suitable for implementing embodiments of the present disclosure. The electronic device 1100 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, 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. The electronic device shown in FIG11 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.

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

[0079] Typically, the following devices may be connected to the I / O interface 1105: an input device 1106 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a memory 1108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1109. The communication device 1109 may allow the electronic device 1100 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 11 illustrates the electronic device 1100 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0080] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1109, or installed from the memory 1108, or installed from the ROM 1102. When the computer program is executed by the processor 1101, the above-mentioned functions defined in the aaaa method of the embodiment of the present disclosure are performed.

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

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

[0083] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0084] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0085] 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 an editing operation on 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 in the at least one multimedia material is marked as a replaceable material; and displaying a video editing interface based on the video editing template; the video editing interface presents a timeline-based video editing track, wherein 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; in response to a material import operation on 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 by the second multimedia material in the second multimedia data, thereby implementing video editing based on the video editing template and improving the efficiency and flexibility of video editing.

[0086] The electronic device may write computer program code for performing the operations of the present disclosure in one or more programming languages, or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0087] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0088] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0089] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

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

[0091] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present disclosure.

[0092] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

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

Claims

1. A video editing method, characterized in that: include: 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 is used to indicate an editing operation for the at least one multimedia material; the video editing template includes marking information, the marking information is used to indicate that a first multimedia material in the at least one multimedia material is marked as a replaceable material; Based on the video editing template, displaying a video editing interface; the video editing interface presents a video editing track based on a timeline, and the video editing track presents 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 on 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, and the first video track segment and the third video track segment occupy the same timeline position on the video editing track; Compared with the first multimedia data, the first multimedia material in the second multimedia data is replaced by the second multimedia material in the second multimedia data.

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 picture frame, wherein the target picture frame is a picture frame in the first multimedia material.

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

4. The method according to claim 3, characterized in that In response to the material import operation on the first video track segment, replacing the first video track segment with a third video track segment includes: In response to a triggering operation on the first video track segment, displaying a first sub-segment and a second sub-segment of the second video track segment in a timeline 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 on 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 a material import operation for the second sub-segment, the second sub-segment is replaced with a fourth sub-segment; the fourth sub-segment corresponds to a sixth video track segment formed by a fourth multimedia material; Replace the first video track fragment with the third video track fragment; the third video track fragment corresponds to a combined fragment of the fourth video track fragment and the sixth video track fragment; The material import operation includes a first import operation and a second import operation, wherein the first import operation is used to instruct to import the second multimedia material into the first sub-segment, and the second import operation is used to instruct to import the fourth multimedia material into the second sub-segment.

5. The method according to claim 1, characterized in that In response to the 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 includes: In response to the material import operation on the first video track segment, displaying a material upload entrance; In response to an upload operation of a second multimedia material selected based on the material upload entry, the first video track segment is replaced with a third video track segment to obtain a second Multimedia data.

6. The method according to claim 1, characterized in that In response to the 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 includes: In response to an adding operation on the second multimedia material selected on the material panel, replacing the first video track segment with a third video track segment to obtain second multimedia data; or, In response to a dragging operation of the second multimedia material selected on the material panel toward the first video track segment, the first video track segment is replaced with a third video track segment to obtain second multimedia data.

7. The method according to claim 1, characterized in that The replacing the first video track segment with the third video track segment to obtain the second multimedia data includes: Comparing a first duration corresponding to the second multimedia material with a second duration of the first video track segment; If the first duration is less than the second duration, slowing down the playback speed of the second multimedia material so that the adjusted playback duration of the video clip is the second duration; If the first duration is greater than the second duration, material interception is performed starting from the first frame of the second multimedia material, so that the playback duration of the video segment generated by the intercepted 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 the editing operation on the second multimedia material, displaying a material editing area; The second multimedia material is edited in the material editing area.

9. The method according to claim 1, characterized in that: Also includes: Displaying at least one replaceable text segment in the first multimedia data in a text area on the video editing interface; In response to a selection operation of selecting a target text segment in the text area, marking at least one video frame on the video editing track based on the timeline, wherein the video frame corresponds to a position where the target text segment is played in the first multimedia data; In response to the editing operation on the target text segment, the edited text segment is synchronously displayed on the video player.

10. The method according to claim 1, characterized in that The video editing interface also presents other editing tracks for editing the first video track segment, or, The video editing interface also presents other editing tracks for editing the third video track segment.

11. The method according to claim 1, characterized in that: Also includes: In response to a video export operation, checking whether the first video track segment is replaced by the third video track segment; If the replacement is completed, generating a target video based on the second multimedia data; If the replacement is not completed, a replacement guidance prompt is provided for the first video track segment.

12. A video editing device, characterized in that: include: an acquisition module, configured 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, wherein the editing information is used to indicate an editing operation for the at least one multimedia material; the video editing template includes marking information, wherein the marking information is used to indicate that a first multimedia material in the at least one multimedia material is marked as a replaceable material; A 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, and the first video track segment corresponds to a second video track segment formed by the first multimedia material in the first multimedia data; A 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 a 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; Compared with the first multimedia data, the first multimedia material in the second multimedia data is replaced by the second multimedia material in the second multimedia data.

13. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the video editing method described in any one of claims 1-11 above.

14. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the video editing method described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Video editing method and device, equipment and medium

    CN118741242A

  • Video clipping control method, terminal device, system

    CN111357277A

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

    CN112291484A

  • Multimedia universal template generation method, electronic equipment and storage medium

    CN112584061A

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

    CN113411517A

Cited By

  • Video generation method, readable storage medium, program product and electronic equipment

    CN121531177A