Video Editing Method, Apparatus, Electronic Device, and Storage Medium

By introducing a material filling interface into the video editing interface, the rapid switching of editing clips and the rapid filling and preview of materials are solved, and the problem of cumbersome material filling operations in the prior art is solved, and the video editing efficiency and video quality are improved.

CN115695907BActive Publication Date: 2025-06-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110873178.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2025-06-17
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

In the existing video editing technology, the material filling operation is cumbersome, resulting in low efficiency and long time.

Method used

Provides a video editing method, which can realize the quick switching of clip clips and the quick filling and preview of materials by displaying the material filling interface of the target clip video. This interface includes a video preview area, a clip switching area and a multimedia material selection area. Users can switch clips and select materials in the same interface, and preview the effects in real time.

Benefits of technology

It simplifies material filling operations, improves video editing efficiency, and has higher quality of generated videos, meeting users' needs for quickly generating high-quality videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695907B_ABST
    Figure CN115695907B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a method, apparatus, electronic device, and storage medium for video editing. The method includes: displaying a material filling interface for a target clipped video; wherein the target clipped video includes multiple clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area; in response to a switching operation in the clipped segment switching area, switching the selected first clipped segment among the multiple clipped segments; in response to a selection operation of a first material in the multimedia material selection area, filling the first material into the first clipped segment; and in response to a play trigger operation of the target clipped video, displaying and playing the target clipped video in the video preview area. By adopting the above technical solutions, embodiments of the present disclosure can simplify the operations required for material replacement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the technical field of video processing, and in particular, to a method, an apparatus, an electronic device, and a storage medium for editing a video. Background Art

[0002] Currently, video generation software can recommend picture materials according to the articles imported by users for the users to make videos using the recommended picture materials.

[0003] After recommending the picture materials, due to reasons such as poor effects of the recommended picture materials or not meeting the user's wishes, there often appears a scenario where the materials filled in the video need to be replaced. In the prior art, when a user wants to replace a certain picture material filled in the video, the user can select the video segment where the picture material is located in the video editing interface, click the replacement control in the video editing interface to enter the material interface, select a material in the material interface and fill it into the video segment, and then return to the video editing interface to view the preview effect of the filled material.

[0004] However, the existing material filling method is relatively cumbersome in operation and the video editing efficiency is low, resulting in a long time-consuming video production process. Summary of the Invention

[0005] Embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for editing a video to achieve fast filling and preview of video materials.

[0006] In a first aspect, embodiments of the present disclosure provide a method for editing a video, including:

[0007] Display a material filling interface for a target clipped video; wherein, the target clipped video includes a plurality of clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area;

[0008] In response to a switching operation in the clipped segment switching area, switch the selected first clipped segment among the plurality of clipped segments;

[0009] In response to a selection operation on a first material in the multimedia material selection area, fill the first material into the first clipped segment so that the first clipped segment in the target clipped video presents the first material;

[0010] In response to a play trigger operation of the target clipped video, display and play the target clipped video in the video preview area.

[0011] In a second aspect, embodiments of the present disclosure further provide a device for editing a video, including:

[0012] A filling interface display module for displaying a material filling interface of a target clipped video; wherein, the target clipped video includes multiple clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area;

[0013] A clipped segment switching module for responding to a switching operation in the clipped segment switching area and switching the selected first clipped segment among the multiple clipped segments;

[0014] A material filling module for responding to a selection operation of a first material in the multimedia material selection area and filling the first material into the first clipped segment, so that the first clipped segment in the target clipped video presents the first material;

[0015] A video playback module for responding to a playback trigger operation of the target clipped video and displaying and playing the target clipped video in the video preview area.

[0016] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:

[0017] One or more processors;

[0018] A memory for storing one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the video editing method as described in the embodiment of the present disclosure.

[0020] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the video editing method as described in the embodiment of the present disclosure.

[0021] The video editing method, device, electronic device, and storage medium provided by the embodiments of the present disclosure display a material filling interface for a target clipped video, where the target clipped video includes multiple clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area; in response to a switching operation in the clipped segment switching area, switch the selected first clipped segment among the multiple clipped segments of the target clipped video; in response to a selection operation on the first material in the multimedia material selection area, fill the first material into the first clipped segment so that the first material is presented in the first clipped segment in the target clipped video; in response to a play trigger operation of the target clipped video, display and play the target clipped video in the video preview area. By adopting the above technical solutions, the embodiments of the present disclosure can achieve quick switching of clipped segments and filling and preview of materials in the clipped segments in the same interface, simplify the operations required for material filling, improve the video editing efficiency and the quality of the generated video, and meet the user's need to quickly generate high-quality videos. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more obvious. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original elements and elements are not necessarily drawn to scale.

[0023] Figure 1 It is a schematic flowchart of a video editing method provided by an embodiment of the present disclosure;

[0024] Figure 2 It is a schematic diagram of a material filling interface provided by an embodiment of the present disclosure;

[0025] Figure 3 It is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure;

[0026] Figure 4 It is a schematic diagram of a list of screen controls provided by an embodiment of the present disclosure;

[0027] Figure 5 It is a schematic diagram of a cropping interface for a picture material provided by an embodiment of the present disclosure;

[0028] Figure 6 It is a schematic diagram of a cropping interface for a video material provided by an embodiment of the present disclosure;

[0029] Figure 7 It is a schematic flowchart of another video editing method provided by an embodiment of the present disclosure;

[0030] Figure 8 It is a schematic diagram of a text editing interface provided by an embodiment of the present disclosure;

[0031] Figure 9 The structural block diagram of a video editing device provided by an embodiment of the present disclosure;

[0032] Figure 10 The structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. Specific embodiments

[0033] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the 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 set forth herein. Instead, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.

[0034] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be executed 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 regard.

[0035] The term "including" and its variants used herein are open-ended, that is, "including but not limited to". The term "based on" is "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". The relevant definitions of other terms will be given in the following description.

[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions executed by these devices, modules or units or their interdependent relationships.

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

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

[0039] Figure 1Schematic flowchart of a video editing method provided by an embodiment of the present disclosure. This method can be executed by a video editing device, where the device can be implemented by software and / or hardware and can be configured in an electronic device. Typically, it can be configured in a mobile phone or a tablet computer. The video editing method provided by the embodiment of the present disclosure is applicable to scenarios where videos are edited. As Figure 1 shown, the video editing method provided in this embodiment may include:

[0040] S101. Display a material filling interface for a target clipped video; wherein, the target clipped video includes multiple clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area.

[0041] Among them, the target clipped video can be the video being clipped currently, which can be composed of multiple clipped segments. Materials may or may not be filled in each clipped segment. The materials can be recommended materials and / or materials selected by the user. The recommended materials can be materials recommended to the user based on preset recommendation rules and filled into the corresponding clipped segments, such as materials recommended to the user based on the article selected by the user, the text input by the user, the music selected by the user, or the video template selected by the user, etc. The materials can be picture materials or animated picture materials, etc. Hereinafter, an example will be given where the video is filled with materials recommended based on the article selected by the user or the text input by the user, that is, an example of the scenario of generating a video from pictures and text will be given.

[0042] The video preview area can be an area for displaying and playing the target clipped video for the user to preview the presentation effects of the filled materials in their corresponding clipped segments.

[0043] The clipped segment area can be an area for the user to select the clipped segments in the target clipped video, that is, the user can select a certain clipped segment in the clipped segment area to edit the clipped segment. Each clipped segment in the target clipped video can be displayed in the clipped segment area. Exemplarily, each clipped segment can be presented in the clipped segment switching area in the form of a picture. For example, the clipped segments with filled materials in the target clipped video can be presented in the clipped segment switching area in the form of thumbnails of the filled materials, and the clipped segments without filled materials in the target clipped video can be presented in the form of placeholder maps of the clipped segments. Each clipped segment can be arranged in the clipped segment area in the order of their appearance in the target clipped video, such as arranged horizontally or vertically, etc.

[0044] In the multimedia material selection area, materials available for display for user selection can be presented. Each material for user selection can be presented in the form of a thumbnail in the multimedia material selection area. The material can include, but is not limited to, the user's local materials, such as the user's local picture materials (such as static picture materials and / or dynamic picture materials) and video materials, as well as static picture materials and / or dynamic picture materials (such as emoticons) in the material library. Here, the picture material can be understood as a material of the picture type, and the video material can be understood as a material of the video type.

[0045] Specifically, the electronic device can display the material filling interface of the target clipped video, and display the preview effect of a certain clipped segment in the video (such as defaultly displaying the first clipped segment in the video or the first frame of the selected clipped segment) in the video preview area 20 of the material filling interface, display each clipped segment in the video in the clipped segment switching area 21 of the material filling interface, and display the materials 220 available for user selection in the multimedia material selection area 22 of the material filling interface, such as Figure 2 shown.

[0046] In an exemplary scenario, the electronic device can, based on the article selected by the user or the text input by the user, determine the recommended materials corresponding to each statement in the article or text according to the preset material recommendation rules, use the determined recommended materials to fill each clipped segment in the video, and after the filling is completed, can display the video editing interface of the video (such as Figure 3 shown), for the user to edit the materials, text, audio, or background music, etc. in the video. Thus, when the user wants to fill materials for the clipped segments in the video that have not been filled with recommended materials (such as when no suitable materials are detected) or wants to fill the materials filled in the clipped segments in the video that have already been filled with materials, the user can trigger the replacement control, such as triggering the screen control 30 displayed in the video editing interface or triggering a video track segment of a certain clipped segment in the video track 31 of the video to instruct the electronic device to display a list of screen controls (such as Figure 4 shown), and further trigger the replacement control 40 in the control list. Correspondingly, when the electronic device detects that the user triggers the replacement control 40 in the list of screen controls, it can switch the current interface from the video editing interface to the material filling interface of the video, such as Figure 2 shown.

[0047] S102. In response to a switching operation in the clipped segment switching area, switch the selected first clipped segment among the multiple clipped segments.

[0048] Among them, the first clip segment can be understood as the selected clip segment, that is, the clip segment in the clip segment switching area that is in the selected state. The switching operation can be understood as an operation to switch the selected clip segment, such as clicking or dragging a certain clip segment in the clip segment switching area or a sliding operation acting on the clip segment switching area, etc.

[0049] In this embodiment, the user can select different clip segments in the clip segment switching area for editing. For example, the user can click on a certain clip segment in the clip segment switching area to switch the clip segment from the selected state to the unselected state or from the unselected state to the selected state; the user can also move a certain clip segment in the clip segment switching area to a preset selection position to switch the clip segment from the unselected state to the selected state, and move the clip segment located at the preset selection position out of the preset selection position to switch the clip segment from the selected state to the unselected state, and so on.

[0050] In one implementation manner, a clip segment can be selected by moving it to a preset selection position. At this time, optionally, the first clip segment is the clip segment located at the preset selection position of the clip segment. Switching the selected first clip segment among the multiple clip segments includes: controlling the clip segments in the clip segment switching area to move synchronously to switch the selected first clip segment.

[0051] Among them, when the clip segment is the segment located at the preset selection position, the selection operation can be a sliding operation whose sliding direction is the same as the arrangement direction of the clip segments in the clip segment switching area. For example, when the clip segments are arranged horizontally, the selection operation can be a horizontal sliding operation.

[0052] In this embodiment, a preset selection position for the user to select a certain clip segment can be set in the clip segment switching area. The preset selection position can be set as needed. For example, when the clip segments are arranged horizontally in the clip segment switching area, the preset selection position can be located on the left side, right side or center of the clip segment switching area; when the clip segments are arranged vertically in the clip segment switching area, the preset selection position can be located on the upper side, lower side or center of the clip segment switching area. The following takes the case where the clip segments are arranged horizontally in the clip segment switching area and the preset selection position is located at the center of the clip segment switching area as an example for illustration.

[0053] Specifically, the electronic device displays a material filling interface, and displays each clip segment of the target clip video in the clip segment switching area 21 of the material filling interface, such as Figure 2As shown in the figure. Thus, when the user wants to select a certain clip segment, they can make a horizontal swipe within the clip segment switching area 21. Correspondingly, when the electronic device detects a horizontal swipe of the user within the clip segment switching area 21, it can control each clip segment within the clip segment switching area 21 to move synchronously along the sliding direction of the horizontal swipe. When the user's swipe ends, the clip segment that has moved to the preset selection position 210 within the clip segment switching area 21 in the clip segment switching area 21 is used as the first clip segment.

[0054] S103. In response to a selection operation on the first material in the multimedia material selection area, fill the first material into the first clip segment so that the first clip segment presents the first material in the target clip video.

[0055] Among them, the selection operation can be an operation of selecting a certain material in the material selection area, such as an operation of triggering the material or triggering the replacement control corresponding to the material. The first material can be the material corresponding to the selection operation, such as the material triggered by the selection operation or the material corresponding to the replacement control triggered by the selection operation. The first clip segment can be the clip segment in the selected state in the clip segment switching area, such as the clip segment located at the preset selection position in the clip segment switching area.

[0056] Specifically, when the user wants to fill a certain material into the selected first clip segment, they can perform a selection operation on the first material, such as triggering the material or triggering the replacement control corresponding to the material. Correspondingly, when the electronic device detects that the user triggers a certain material or the replacement control corresponding to a certain material, it can determine that it has received a selection operation for the first material and fill the first material into the first clip segment in the selected state in the clip segment switching area. For example, when the first clip segment has not been filled with any material, the first material can be directly filled into the first clip segment; when the first clip segment has already been filled with a material, the first material can be used to replace the original material filled in the first clip segment.

[0057] In this embodiment, the material filling interface can be set to include a video preview area, a clip segment switching area, and a multimedia material selection area. Thus, through the material filling interface, the quick switching of clip segments and the filling and preview of materials can be realized. There is no need to select the clip segment to be filled in the video editing interface, enter the material filling interface to select materials for filling, and then return to the video editing interface again to view the preview effect of the clip segment after filling the materials. This can simplify the operations required for material filling, improve the editing efficiency of the video and the quality of the generated video, and meet the user's need to quickly generate high-quality videos. Moreover, it can support the user to replace the original recommended picture materials in the video with video materials, which can make the generated video more in line with the user's wishes and improve the user experience.

[0058] In this embodiment, the material selected by the user can be directly filled into the first clip segment; alternatively, when the duration and / or size of the material selected by the user are inconsistent with the duration and / or size of the first clip segment, the material selected by the user can be cropped, and the cropped material can be filled into the first clip segment. This embodiment does not limit this.

[0059] In one implementation manner, the electronic device can automatically crop the material selected by the user. At this time, optionally, the filling of the first material into the first clip segment so that the first clip segment presents the first material in the target clip video includes: cropping the first material according to a preset cropping rule to obtain a second material, and filling the second material into the first clip segment so that the first clip segment presents the second material in the target clip segment.

[0060] Among them, the second material can be the material obtained by cropping the first material. The preset cropping rule can include preset cropping sizes and / or cropping positions, etc., which can be set by the user or the developer according to needs.

[0061] Specifically, such as Figure 2As shown in the figure, the electronic device displays various materials 220 available for the user to select and corresponding replacement controls 221 for each material within the multimedia material selection area 22. Thus, when the user desires to use a certain material to replace the first clip segment in the clip segment switching area 21 that is in the selected state (such as the clip segment located at the preset selection position 210), the user can trigger the replacement control 221 corresponding to the material. Correspondingly, when the electronic device detects that the user triggers the replacement control 221 corresponding to a certain material displayed within the multimedia material selection area 22, the electronic device can use this material as the first material selected by the user, and crop the first material using a preset cropping rule. For example, when the first material is a video material, crop the size of each video frame in the video material and / or the length of the video material to obtain a second material that matches the preset size and / or display duration of the first clip segment. When the first material is a picture material, crop the size of the picture material to obtain a second material that matches the preset size of the first clip segment; and further fill the obtained second material into the first clip segment to present the second material in the first clip segment.

[0062] In another embodiment, the electronic device can crop the material selected by the user based on the user's cropping operation. At this time, optionally, before filling the first material into the first clip segment, it further includes: displaying a cropping interface for the first material; in response to a cropping operation within the cropping interface, cropping the first material to obtain a second material; the filling the first material into the first clip segment so that the first clip segment presents the first material in the target clip video includes: in response to a filling operation within the cropping interface, filling the second material into the first clip segment so that the first clip segment presents the second material in the target clip segment.

[0063] Among them, the filling operation can be a triggering operation for filling the cropped second material into the first clip segment, such as triggering the replacement control in the cropping page of the first material.

[0064] Specifically, as Figure 2 shown in the figure, the electronic device displays various materials 220 available for the user to select and corresponding replacement controls 221 for each material within the multimedia material selection area 22. When the user desires to crop a certain material, the user can trigger the material 220 displayed within the multimedia material selection area 22. Correspondingly, when the electronic device detects that the user triggers a certain material 220 displayed within the multimedia material selection area 22, the electronic device can use this material as the first material selected by the user, and switch the current interface from the material filling interface to the cropping interface, such as Figure 5 and Figure 6As shown. Thus, when the first material is a picture material, the user can crop the first material to the desired size (such as Figure 5 as shown) in the cropping interface to obtain a second material; when the first material is a video material, the user can intercept the segment to be presented in the first clip segment from the first material as the second material. After the cropping of the first material is completed, the user can further trigger the replacement control 50 in the cropping interface. Correspondingly, when the electronic device detects that the user triggers the replacement control 50 in the cropping interface, it can switch the current interface from the cropping interface to the material filling interface and fill the cropped second material into the first clip segment.

[0065] Optionally, the first material includes a video material. After filling the second material into the first clip segment, it further includes: in response to an extension operation on the first clip segment, extending the second material into a third material based on the first material and filling the third material into the first clip segment to extend the first clip segment; shortening the clip segment adjacent to the first clip segment in the target clip video.

[0066] Among them, the extension operation can be an operation to extend the first clip segment, that is, an operation to extend the duration of the first clip segment. This operation can be an operation to drag the video track segment corresponding to the first clip segment. For example, when each video track segment is a horizontal track segment, this extension operation can be an operation to drag the left boundary of the video track segment to the left and / or an operation to drag the right boundary of the video track segment to the right.

[0067] Taking the video track of the target clip video being within the video editing interface of the target clip video as an example, after the user fills the material, such as after filling the second material into the first clip segment, the user can trigger the confirmation control 23 in the material filling interface; when the electronic device detects that the user triggers the confirmation control 23 in the material filling interface, it can switch the current interface to the material editing interface, such as Figure 4As shown (taking the video track segment of the first clip segment as the second video track segment in the video track in the figure as an example). Thus, when the user wants to extend the first clip segment, the user can drag the left boundary of the video track segment of the first clip segment to the left, or drag the right boundary of the video track of the first clip segment to the right. Correspondingly, when the electronic device detects the user's dragging operation, it can determine that it has received an extension operation for the first clip segment, control the boundary of the video track segment of the first clip segment to move along with the user's dragging operation, and when the user finishes dragging, based on the user's dragging direction and the first material, extend the second material to the duration corresponding to the dragged video track segment to obtain a third material, and fill the third material into the first clip segment to extend the first clip segment to the duration corresponding to the dragged video track segment, and correspondingly shorten the duration of the clip segment adjacent to the first clip segment in the target clip video. For example, when the user drags the video track segment of the first clip segment to the left, use the video frames in the first material before the second material to extend the second material forward, and when the user drags the video track segment of the first clip segment to the right, use the video frames in the first material after the second material to extend the second material backward, replace the second material in the first clip segment with the extended third material, and delete the other materials filled in the overlapping part by the clip segment corresponding to the video track segment of the overlapping part.

[0068] In the above embodiment, the first clip segment can be extended when there is an overlapping part between the video track segment of the extended first clip segment and the video track segment of a certain other clip segment; or the first clip segment can be extended only when the video track segment of a certain other clip segment completely overlaps with the video track segment of the extended first clip segment, that is, only when the video track segment of the other clip segment is completely covered by the video track segment of the extended first clip segment, and then delete the other clip segment. When the video track segment of the extended first clip segment only overlaps with a part of the video track segment corresponding to a certain other clip segment, the first clip segment is not extended to the time node corresponding to the clip segment in the video, and the video track segment of the first clip segment can be further adjusted to not overlap with the video track segment of the other material. This embodiment does not limit this.

[0069] In addition, when controlling the boundary of the video track segment of the first clip segment to move with the user's dragging operation, the length of the first material can be further considered. For example, it can be controlled that the boundary of the video track segment of the first clip segment moves with the user's dragging operation only when the corresponding duration of the video track segment of the first clip segment does not exceed the duration of the first material, and when the corresponding duration of the video track segment of the first clip segment reaches or exceeds the duration of the first material, the boundary of the video track segment of the first clip segment is no longer controlled to move with the user's dragging operation.

[0070] S104. In response to the playback trigger operation of the target clipped video, display and play the target clipped video in the video preview area.

[0071] Among them, the playback trigger operation can be a trigger operation for playing the target clipped video, that is, a trigger operation for instructing the electronic device to play each clip segment in the target clipped video in sequence, such as an operation for triggering the playback control in the material filling interface.

[0072] Specifically, taking the example that the clip segments in the clip segment selection area 21 are arranged horizontally, the electronic device displays the material filling interface, as Figure 2 shown. When the user wants to preview the materials filled in the target clipped video, the user can trigger the playback control 24 in the material filling interface. Correspondingly, when the electronic device detects that the user triggers the playback control 24, it can start playing the target clipped video from the first clip segment or from the currently selected clip segment for the user to view the presentation effect of the materials filled in each clip segment.

[0073] In this embodiment, when playing a certain clip segment in the video preview area, the clip segment displayed in the target clip segment switching area can be switched to the selected state. For example, during the video playback process, control the clip segments in the clip segment switching area to move synchronously (such as synchronously moving to the left) to move the clip segment being played in the video preview area to the preset selection position in the clip segment switching area, so as to facilitate the user to determine the clip segment currently being played in the video preview area. At this time, preferably, after displaying and playing the target clipped video in the video preview area, it further includes: switching the currently played clip segment in the video preview area to the selected state.

[0074] In this embodiment, after the user finishes editing the target clipped video, the user can trigger the export control 32 in the video editing interface (as Figure 3 shown) to instruct the electronic device to synthesize the clip segments in the target clipped video, and the synthesized video can be saved or published.

[0075] The video editing method provided in this embodiment displays a material filling interface for a target clipped video. Among them, the target clipped video includes multiple clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area; in response to a switching operation in the clipped segment switching area, the selected first clipped segment is switched among the multiple clipped segments of the target clipped video; in response to a selection operation on the first material in the multimedia material selection area, the first material is filled into the first clipped segment so that the first clipped segment in the target clipped video presents the first material; in response to a play trigger operation of the target clipped video, the target clipped video is displayed and played in the video preview area. By adopting the above technical solution, this embodiment can achieve quick switching of clipped segments and filling and preview of materials in the clipped segments in the same interface, simplify the operations required for material filling, improve the video editing efficiency and the quality of the generated video, and meet the user's need to quickly generate high-quality videos.

[0076] Figure 7 The following is a schematic flowchart of another video editing method provided by an embodiment of the present disclosure. The solution in this embodiment can be combined with one or more optional solutions in the above embodiment. Optionally, the step of filling the first material into the first clipped segment includes: replacing the original material filled in the first clipped segment with the first material.

[0077] Optionally, after replacing the original material filled in the first clipped segment with the first material, it further includes: in response to a material reset operation on the first clipped segment, resetting the material filled in the first clipped segment to the original material.

[0078] Optionally, after replacing the original material filled in the first clipped segment with the first material, it further includes: displaying the original material at a preset position in the multimedia material selection area for the user to select.

[0079] Correspondingly, as Figure 7 shown, the video editing method provided in this embodiment may include:

[0080] S201. Display a material filling interface for a target clipped video; among them, the target clipped video includes multiple clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area.

[0081] S202. In response to a switching operation in the clipped segment switching area, switch the selected first clipped segment among the multiple clipped segments.

[0082] S203. In response to a selection operation on the first material in the multimedia material selection area, replace the original material filled in the first clip segment with the first material, so that the first clip segment in the target clip video presents the first material.

[0083] Wherein, the original material can be the material filled in the first clip segment before receiving the selection operation.

[0084] Specifically, when the user wants to replace the original material filled in a certain clip segment with the first material in the multimedia material selection area, the user can select the clip segment and perform a selection operation on the first material. Correspondingly, when the electronic device detects that the user selects a certain material, it can delete the original material filled in the clip segment selected by the user and fill the selected first material into the clip segment.

[0085] S204. Display the original material at a preset position in the multimedia material selection area for the user to select.

[0086] In this embodiment, when the user is not satisfied with the original material filled in the target clip video, the user can replace the original material. After the user replaces the original material in the video with other materials (such as the first material), the electronic device can display the replaced original material in the multimedia material selection interface, so that when the user is still not satisfied with the replaced material, the user can replace it back to the original material.

[0087] Exemplarily, the electronic device displays the original material filled in the first clip segment in the multimedia material selection area, such as displaying the original material filled in the first clip segment at the first material display position in the picture material panel (i.e., the panel displayed in the multimedia material selection area after triggering the picture material control) in the multimedia material selection area. Thus, when the user wants to replace the material filled in the first clip segment back to the original material, the user can perform a selection operation on the original material, such as triggering a replacement control corresponding to the original material. Correspondingly, when the electronic device detects the user's selection operation, it can replace the material filled in the first clip segment with the original material and can further stop displaying the original material at the first material display position in the picture material panel in the multimedia material selection area.

[0088] S205. In response to a material reset operation on the first clip segment, reset the material filled in the first clip segment to the original material.

[0089] Wherein, the reset operation can be understood as an operation of resetting the material filled in the first clip segment to the original material, such as an operation of triggering a reset control in the material filling interface.

[0090] Specifically, when the material filled in the currently selected first clip segment is not its original material, the electronic device can display a reset control in the material filling interface. Thus, when the user wants to reset the material filled in the first clip segment, the user can trigger the reset control. Correspondingly, when the electronic device detects that the user triggers the reset control in the material filling interface, it can reset the material filled in the first clip segment to its original material.

[0091] In one embodiment, the user can adjust the subtitle content in each clip segment of the target clip video. At this time, optionally, the video editing method provided in this embodiment may further include: in response to a subtitle modification operation on the second clip segment in the target clip video, modifying the subtitle content of the second clip segment; updating the audio data of the second clip segment based on the modified subtitle content, and adjusting the duration of the second clip segment according to the updated audio data.

[0092] Among them, the subtitle modification operation may be an operation to modify the subtitle content of a certain clip segment, such as an editing operation on the subtitle content corresponding to a certain clip segment. The second clip segment may be the clip segment corresponding to the subtitle modification operation.

[0093] Exemplarily, as Figure 3 shown, the electronic device displays a video editing interface. Thus, when the user wants to change the subtitle content of a certain clip segment in the target clip video, the user can trigger the text control 33 in the video editing interface when the clip segment is displayed in the video editing interface or trigger the subtitle track segment corresponding to the clip segment in the subtitle track 34 of the target clip video to instruct the electronic device to display a text editing interface, as Figure 8 shown, and further trigger the keyboard control 80 in the text editing interface to instruct the electronic device to display a keyboard for the user to edit the subtitle content of the clip segment. Thus, the electronic device can determine the subtitle content of the clip segment based on the user's editing operation, generate new audio data according to the modified subtitle content, use the new audio data to replace the original audio data of the clip segment, and adjust the duration of the clip segment according to the duration of the new audio data.

[0094] In this embodiment, an adjustment method corresponding to the type of the material filled in the clip segment can be adopted to adjust the duration of the corresponding clip segment according to the generated audio data. For example, when the material filled in the clip segment is a picture material, the time length of the material displayed in the clip segment can be directly shortened or extended according to the duration of the generated audio data. When the material filled in the clip segment is a video material, if the duration of the generated audio data is longer than the duration of the original audio data, the material can be extended by adding video frames or blank scenes located in front of / behind the material in the material before its cropping in front of / behind the material, and the extended material is filled into the clip segment; if the duration of the generated audio data is shorter than the duration of the original audio data, the material can be shortened by deleting some video frames at one end or both ends of the material, and the shortened material is filled into the clip segment.

[0095] In one embodiment, the user can adjust the subtitle style of each material in the video. At this time, optionally, the video editing method provided in this embodiment further includes: in response to an operation of adjusting the subtitle style of the third clip segment in the target edited video, adjusting the subtitle style of the third clip segment.

[0096] Among them, the subtitle style adjustment operation can be an operation of adjusting the subtitle style of the subtitle in a certain clip segment in the target edited video. The third clip segment can be the clip segment corresponding to the subtitle style adjustment operation.

[0097] Exemplarily, as Figure 3 shown, the electronic device displays a video editing interface. Thus, when the user wants to change the subtitle style of the subtitle in a certain clip segment in the target edited video, the user can trigger the text control 33 in the video segment interface or trigger the subtitle track segment corresponding to the clip segment in the subtitle track 34 of the target edited video when the clip segment is displayed in the video editing interface to instruct the electronic device to display a text editing interface, as Figure 8 shown, and further trigger the style control 81 or the fancy word control 82 in the text editing interface to instruct the electronic device to display a style list or a fancy word list for the user to select, and select the style template or fancy word that the user wants to select. Thus, when the electronic device detects that the user triggers a certain style template in the style list or triggers a certain fancy word in the fancy word list, it can determine that it has received a subtitle adjustment operation for the clip segment, and in response to the subtitle adjustment operation, display the subtitle of the clip segment using the style template or fancy word selected by the user.

[0098] The video editing method provided in this embodiment can realize the replacement of the materials filled in the video and the reset of the original materials filled in the video, enabling the user to quickly replace or reset the materials filled in the video, and further improving the video editing efficiency.

[0099] Figure 9 The block diagram of a video editing device provided by an embodiment of the present disclosure. This device can be implemented by software and / or hardware, and can be configured in an electronic device. Typically, it can be configured in a mobile phone or a tablet computer, and can edit a video by executing a video editing method. As Figure 9 shown, the video editing device provided in this embodiment may include: a filling interface display module 901, a clip segment switching module 902, a material filling module 903, and a video playback module 904. Among them,

[0100] The filling interface display module 901 is used to display the material filling interface of the target clipped video; wherein, the target clipped video includes multiple clip segments, and the material filling interface includes a video preview area, a clip segment switching area, and a multimedia material selection area;

[0101] The clip segment switching module 902 is used to respond to a switching operation in the clip segment switching area and switch the selected first clip segment among the multiple clip segments;

[0102] The material filling module 903 is used to respond to a selection operation of the first material in the multimedia material selection area and fill the first material into the first clip segment, so that the first clip segment in the target clipped video presents the first material;

[0103] The video playback module 904 is used to respond to a playback trigger operation of the target clipped video and display and play the target clipped video in the video preview area.

[0104] For the video editing device provided in this embodiment, the filling interface display module displays the material filling interface of the target clipped video, where the target clipped video includes multiple clip segments, and the material filling interface includes a video preview area, a clip segment switching area, and a multimedia material selection area; the clip segment switching module responds to a switching operation in the clip segment switching area and switches the selected first clip segment among the multiple clip segments of the target clipped video; the material filling module responds to a selection operation of the first material in the multimedia material selection area and fills the first material into the first clip segment, so that the first clip segment in the target clipped video presents the first material; the video playback module responds to a playback trigger operation of the target clipped video and displays and plays the target clipped video in the video preview area. By adopting the above technical solutions, this embodiment can achieve quick switching of clip segments and filling and preview of materials in clip segments in the same interface, simplify the operations required for material filling, improve the video editing efficiency and the quality of the generated video, and meet the user's need to quickly generate high-quality videos.

[0105] In the above solution, the first clip segment may be a clip segment located at a preset selection position of the clip segment. Specifically, the clip segment switching module 902 may be configured to: control the clip segments within the clip segment switching area to move synchronously to switch the selected first clip segment.

[0106] In the above solution, the material filling module 903 may be configured to: crop the first material according to a preset cropping rule to obtain a second material, and fill the second material into the first clip segment, so that the first clip segment presents the second material in the target clip segment.

[0107] In the above solution, the material filling module 903 may include: a cropping interface display unit for displaying a cropping interface of the first material; a material cropping unit for cropping the first material in response to a cropping operation within the cropping interface to obtain a second material; and a material filling unit for filling the second material into the first clip segment in response to a filling operation within the cropping interface, so that the first clip segment presents the second material in the target clip segment.

[0108] In the above solution, the first material may include video material. The video editing device provided in this embodiment may further include: a video segment extension module for extending the second material to a third material based on the first material in response to an extension operation on the first clip segment, and filling the third material into the first clip segment to extend the first clip segment; and shortening the clip segment adjacent to the first clip segment in the target clip video.

[0109] In the above solution, the video playing module 904 may further be configured to: after displaying and playing the target clip video in the video preview area, switch the currently played clip segment in the video preview area to a selected state.

[0110] In the above solution, the material filling module 903 may be configured to: replace the original material filled in the first clip segment with the first material.

[0111] Further, the video editing device provided in this embodiment may further include: a material reset module for resetting the material filled in the first clip segment to the original material in response to a material reset operation on the first clip segment after replacing the original material filled in the first clip segment with the first material.

[0112] In the above solution, the material filling module 903 can also be used to: after replacing the original material filled in the first clip segment with the first material, display the original material at a preset position within the multimedia material selection area for the user to select.

[0113] Further, the video editing device provided in this embodiment may further include: a subtitle content modification module, configured to modify the subtitle content of the second clip segment in response to a subtitle modification operation on the second clip segment in the target clipped video; and update the audio data of the second clip segment based on the modified subtitle content, and adjust the duration of the second clip segment according to the updated audio data.

[0114] Further, the video editing device provided in this embodiment may further include: a subtitle style adjustment module, configured to adjust the subtitle style of the third clip segment in response to a subtitle style adjustment operation on the third clip segment in the target clipped video.

[0115] 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 corresponding functional modules and beneficial effects for executing the video editing method. Technical details not described in detail in this embodiment can be referred to the video editing method provided in any embodiment of the present disclosure.

[0116] Next, refer to Figure 10 , which shows a schematic structural diagram of an electronic device (such as a terminal device) 1000 suitable for implementing the embodiments of the present disclosure. The terminal device 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 (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 10 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

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

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

[0119] Specifically, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may 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 contains program codes for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 1009, or installed from the storage device 1006, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above functions defined in the method of the embodiment of the present disclosure are executed.

[0120] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The 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 of the above. More specific examples of the computer-readable storage medium can 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, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0121] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0122] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; it can also exist separately without being assembled into the electronic device.

[0123] The above computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: display a material filling interface for a target clipped video; wherein the target clipped video includes a plurality of clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area; in response to a switching operation in the clipped segment switching area, switch the selected first clipped segment among the plurality of clipped segments; in response to a selection operation of a first material in the multimedia material selection area, fill the first material into the first clipped segment so that the first clipped segment in the target clipped video presents the first material; and in response to a play trigger operation of the target clipped video, display and play the target clipped video in the video preview area.

[0124] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of 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).

[0125] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0126] The units involved in the embodiments of the present disclosure can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

[0127] The functions described above herein can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and so on.

[0128] 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 connection 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 include, 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 a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM or Flash Memory), an optical fiber, a portable Compact Disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0129] According to one or more embodiments of the present disclosure, Example 1 provides a method for editing a video, including:

[0130] Displaying a material filling interface for a target clipped video; wherein, the target clipped video includes a plurality of clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area;

[0131] In response to a switching operation in the clipped segment switching area, switching the selected first clipped segment among the plurality of clipped segments;

[0132] In response to a selection operation of a first material in the multimedia material selection area, filling the first material into the first clipped segment so that the first clipped segment in the target clipped video presents the first material;

[0133] In response to a play trigger operation of the target clipped video, displaying and playing the target clipped video in the video preview area.

[0134] According to one or more embodiments of the present disclosure, Example 2 is based on the method described in Example 1. The first clip segment is a clip segment located at a preset selection position of the clip segments. The switching of the selected first clip segment among the multiple clip segments includes:

[0135] Controlling the synchronous movement of each clip segment within the clip segment switching area to switch the selected first clip segment.

[0136] According to one or more embodiments of the present disclosure, Example 3 is based on the method described in Example 1. The filling of the first material into the first clip segment so that the first clip segment presents the first material in the target clip video includes:

[0137] Cropping the first material using a preset cropping rule to obtain a second material, and filling the second material into the first clip segment so that the first clip segment presents the second material in the target clip segment.

[0138] According to one or more embodiments of the present disclosure, Example 4 is based on the method described in Example 1. Before filling the first material into the first clip segment, it further includes:

[0139] Displaying a cropping interface of the first material;

[0140] Responsive to a cropping operation within the cropping interface, cropping the first material to obtain a second material;

[0141] The filling of the first material into the first clip segment so that the first clip segment presents the first material in the target clip video includes:

[0142] Responsive to a filling operation within the cropping interface, filling the second material into the first clip segment so that the first clip segment presents the second material in the target clip segment.

[0143] According to one or more embodiments of the present disclosure, Example 5 is based on the method described in Example 3 or 4. The first material includes video material. After filling the second material into the first clip segment, it further includes:

[0144] Responsive to an extension operation on the first clip segment, extending the second material to a third material based on the first material and filling the third material into the first clip segment to extend the first clip segment;

[0145] Shortening the clip segment adjacent to the first clip segment in the target clip video.

[0146] According to one or more embodiments of the present disclosure, Example 6, based on the method described in Example 1, after displaying and playing the target clipped video in the video preview area, further includes:

[0147] Switching the currently clipped segment being displayed and played in the video preview area to a selected state.

[0148] According to one or more embodiments of the present disclosure, Example 7, based on the method described in Example 1, the filling the first material into the first clipped segment includes:

[0149] Replacing the original material filled in the first clipped segment with the first material.

[0150] According to one or more embodiments of the present disclosure, Example 8, based on the method described in Example 7, after replacing the original material filled in the first clipped segment with the first material, further includes:

[0151] In response to a material reset operation on the first clipped segment, resetting the material filled in the first clipped segment to the original material.

[0152] According to one or more embodiments of the present disclosure, Example 9, based on the method described in Example 7, after replacing the original material filled in the first clipped segment with the first material, further includes:

[0153] Displaying the original material at a preset position within the multimedia material selection area for the user to select.

[0154] According to one or more embodiments of the present disclosure, Example 10, based on any one of the methods described in Examples 1-4 and 6-9, further includes:

[0155] In response to a subtitle modification operation on the second clipped segment in the target clipped video, modifying the subtitle content of the second clipped segment;

[0156] Updating the audio data of the second clipped segment based on the modified subtitle content, and adjusting the duration of the second clipped segment according to the updated audio data.

[0157] According to one or more embodiments of the present disclosure, Example 11, based on any one of the methods described in Examples 1-4 and 6-9, further includes:

[0158] In response to a subtitle style adjustment operation on the third clipped segment in the target clipped video, adjusting the subtitle style of the third clipped segment.

[0159] According to one or more embodiments of the present disclosure, Example 12 provides a video editing device, including:

[0160] A filling interface display module for displaying a material filling interface of a target clipped video; wherein, the target clipped video includes a plurality of clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area;

[0161] A clipped segment switching module for, in response to a switching operation in the clipped segment switching area, switching the selected first clipped segment among the plurality of clipped segments;

[0162] A material filling module for, in response to a selection operation of a first material in the multimedia material selection area, filling the first material into the first clipped segment so that the first clipped segment in the target clipped video presents the first material;

[0163] A video playing module for, in response to a playing trigger operation of the target clipped video, displaying and playing the target clipped video in the video preview area.

[0164] According to one or more embodiments of the present disclosure, Example 13 provides an electronic device, including:

[0165] One or more processors;

[0166] A memory for storing one or more programs,

[0167] When the one or more programs are executed by the one or more processors, the one or more processors implement the video editing method as described in any one of Examples 1-11.

[0168] According to one or more embodiments of the present disclosure, Example 14 provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, it implements the video editing method as described in any one of Examples 1-11.

[0169] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. 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 technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the (but not limited to) technical features having similar functions disclosed in the present disclosure.

[0170] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0171] Although the subject matter has been described in language specific to structural features and / or methodological 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 method for editing a video, characterized in that, Including: A material filling interface for displaying a target clipped video; wherein, the target clipped video includes multiple clipped segments, and the material filling interface includes a video preview area, a clipped segment switching area, and a multimedia material selection area; In response to a switching operation in the clipped segment switching area, switching the selected first clipped segment among the multiple clipped segments; wherein, the switching operation includes an operation of clicking or dragging a clipped segment in the clipped segment switching area, or a sliding operation applied within the clipped segment switching area; In response to a selection operation on a first material in the multimedia material selection area, filling the first material into the first clipped segment so that the first clipped segment in the target clipped video presents the first material; wherein, the selection operation includes an operation of triggering the first material or triggering a replacement control corresponding to the first material; In response to a play trigger operation of the target clipped video, displaying and playing the target clipped video in the video preview area; The filling the first material into the first clipped segment so that the first clipped segment in the target clipped video presents the first material includes: Cropping the first material according to a preset cropping rule to obtain a second material, and filling the second material into the first clipped segment so that the first clipped segment in the target clipped video presents the second material; wherein, the preset cropping rule includes a preset cropping size and / or cropping position.

2. The method according to claim 1, characterized in that, The first clipped segment is a clipped segment at a preset selection position of the clipped segments, and the switching the selected first clipped segment among the multiple clipped segments includes: Controlling the synchronous movement of each clipped segment within the clipped segment switching area to switch the selected first clipped segment.

3. The method according to claim 1, characterized in that, Before filling the first material into the first clipped segment, it further includes: Displaying a cropping interface of the first material; In response to a cropping operation within the cropping interface, cropping the first material to obtain a second material; The filling the first material into the first clipped segment so that the first clipped segment in the target clipped video presents the first material includes: In response to a filling operation within the cropping interface, filling the second material into the first clipped segment so that the first clipped segment in the target clipped video presents the second material.

4. The method according to claim 1 or 3, characterized in that, The first material includes a video material. After filling the second material into the first clipped segment, it further includes: In response to an extension operation on the first clipped segment, extending the second material into a third material based on the first material, and filling the third material into the first clipped segment to extend the first clipped segment; Shortening the clipped segment adjacent to the first clipped segment in the target clipped video.

5. The method according to claim 1, characterized in that, After displaying and playing the target clipped video in the video preview area, it further includes: Switch the currently playing clip segment displayed in the video preview area to the selected state.

6. The method according to claim 1, characterized in that, The filling the first clip segment with the first material includes: Replacing the original material filled in the first clip segment with the first material.

7. The method according to claim 6, characterized in that, After replacing the original material filled in the first clip segment with the first material, it further includes: In response to the material reset operation on the first clip segment, resetting the material filled in the first clip segment to the original material.

8. The method according to claim 6, characterized in that, After replacing the original material filled in the first clip segment with the first material, it further includes: Displaying the original material at a preset position within the multimedia material selection area for the user to select.

9. The method according to any one of claims 1 - 3 and 5 - 8, characterized in that, It further includes: In response to the subtitle modification operation on the second clip segment in the target clip video, modifying the subtitle content of the second clip segment; Updating the audio data of the second clip segment based on the modified subtitle content and adjusting the duration of the second clip segment according to the updated audio data.

10. The method according to any one of claims 1 - 3 and 5 - 8, characterized in that, It further includes: In response to the subtitle style adjustment operation on the third clip segment in the target clip video, adjusting the subtitle style of the third clip segment.

11. An editing device for a video, characterized in that, It includes: A filling interface display module for displaying a material filling interface of a target clip video; wherein, the target clip video includes multiple clip segments, and the material filling interface includes a video preview area, a clip segment switching area, and a multimedia material selection area; A clip segment switching module for switching the selected first clip segment among the multiple clip segments in response to a switching operation in the clip segment switching area; wherein, the switching operation includes an operation of clicking or dragging a clip segment in the clip segment switching area, or a sliding operation within the clip segment switching area; A material filling module for filling the first material into the first clip segment in response to a selection operation of the first material in the multimedia material selection area, so that the first clip segment presents the first material in the target clip video; wherein, the selection operation includes an operation of triggering the first material or triggering the replacement control corresponding to the first material; A video playback module for displaying and playing the target clip video in the video preview area in response to a playback trigger operation of the target clip video; The material filling module is specifically configured to crop the first material according to a preset cropping rule to obtain a second material, and fill the second material into the first clip segment, so that the first clip segment presents the second material in the target clip video; wherein, the preset cropping rule includes a preset cropping size and / or cropping position.

12. An electronic device, characterized in that, It includes: One or more processors; A memory for storing one or more programs, When the one or more programs are executed by the one or more processors, enabling the one or more processors to implement the video editing method as described in any one of claims 1-10.

13. A computer-readable storage medium, on which a computer program is stored, characterized in that, When the program is executed by a processor, it implements the video editing method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Video processing method, system, terminal equipment and system of mobile device

    CN110383820A

  • Media editing application with anchored timeline for captions and subtitles

    US20190104259A1

  • Real-time playback of an edited sequence of remote media and three-dimensional assets

    US9583140B1

  • Cropping image within image preview

    US9917957B1