Editing method and device of media content, electronic equipment and storage medium

By displaying an adjustment interface corresponding to the material type in the editing interface, users can adjust the duration and aspect ratio of the materials in the media content, which solves the problem of the single editing method in the existing technology and realizes a richer and more efficient editing experience.

CN116668418BActive Publication Date: 2026-06-23BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

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

Smart Images

  • Figure CN116668418B_ABST
    Figure CN116668418B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a media content editing method and device, an electronic device and a storage medium. The method comprises: displaying a preview picture of a first material in a target media content in an editing interface, the target media content comprising at least one material; in response to a first trigger operation acting on the editing page, displaying an adjustment interface corresponding to a material type of the first material, the adjustment interface being used to adjust at least one of a time length and a frame of at least part of the materials in the target media content, the at least part of the materials comprising the first material, and the materials in the target media content comprising at least one of a video and a picture. The above technical solution can enrich the adjustment mode of the materials and the editing mode of the media content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more particularly to a method, apparatus, electronic device, and storage medium for editing media content. Background Technology

[0002] Currently, some platforms allow users to edit the media content they wish to publish, and then publish the edited content. However, the methods for editing media content in these technologies are relatively limited. Summary of the Invention

[0003] This disclosure provides a method, apparatus, electronic device, and storage medium for editing media content, thereby enriching the ways in which media content is edited.

[0004] In a first aspect, embodiments of this disclosure provide a method for editing media content, including:

[0005] The editing interface displays a preview of the first material in the target media content, which contains at least one piece of material;

[0006] In response to a first trigger operation within the editing page, an adjustment interface is displayed. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content. The at least a portion of the material includes the first material. The material in the target media content includes at least one of video and image.

[0007] Secondly, embodiments of this disclosure also provide a media content editing apparatus, comprising:

[0008] The preview module is used to display a preview of the first material in the target media content in the editing interface, wherein the target media content contains at least one piece of material;

[0009] The interface display module is used to display an adjustment interface in response to a first trigger operation performed on the editing page. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least some of the materials in the target media content. The at least some materials include the first material. The materials in the target media content include at least one of video and image.

[0010] Thirdly, embodiments of this disclosure also provide an electronic device, including:

[0011] One or more processors;

[0012] Memory, used to store one or more programs.

[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the media content editing method as described in the embodiments of this disclosure.

[0014] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the media content editing method as described in embodiments of this disclosure.

[0015] The media content editing method, apparatus, electronic device, and storage medium provided in this disclosure display a preview of a first material in target media content on an editing interface. The target media content includes at least one piece of material. In response to a first trigger operation within the editing interface, an adjustment interface is displayed. This adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content, including the first material. The material in the target media content includes at least one of video and images. By utilizing the above technical solution and displaying an adjustment interface corresponding to the material type of the currently previewed material, this disclosure enriches the methods for adjusting materials and editing media content, and simplifies the operations required for users to edit media content. Attached Figure Description

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

[0017] Figure 1 A flowchart illustrating a method for editing media content provided in this embodiment of the disclosure;

[0018] Figure 2 A schematic diagram illustrating the display of an editing interface provided in an embodiment of this disclosure;

[0019] Figure 3 A schematic diagram illustrating a duration adjustment interface provided in an embodiment of this disclosure;

[0020] Figure 4 A schematic diagram of a frame adjustment interface provided in an embodiment of this disclosure;

[0021] Figure 5 A schematic diagram showing another duration adjustment interface provided in an embodiment of this disclosure;

[0022] Figure 6 A schematic diagram showing another aspect ratio adjustment interface provided in an embodiment of this disclosure;

[0023] Figure 7 A flowchart illustrating another method for editing media content provided in this embodiment of the disclosure;

[0024] Figure 8 A structural block diagram of a media content editing device provided in an embodiment of this disclosure;

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

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

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

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

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

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

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

[0032] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0033] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0034] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0035] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0036] Figure 1 This is a flowchart illustrating a media content editing method provided in an embodiment of this disclosure. The method can be executed by a media content editing device, which can be implemented in software and / or hardware and can be configured in an electronic device, typically a mobile phone or tablet. The media content editing method provided in this disclosure is applicable to scenarios involving the editing of media content, and is particularly suitable for scenarios involving the editing of media content containing different types of materials. Figure 1 As shown, the media content editing method provided in this embodiment may include:

[0037] S101. Display a preview of the first material in the target media content in the editing interface, wherein the target media content contains at least one material.

[0038] The editing interface can be a page used to edit media content, which may include one or more pieces of material, such as multiple video and / or image segments. After the media content is published, other users can freely switch between multiple video and / or image segments by swiping while browsing the content. Figure 2As shown, the editing interface may include a preview area 20 for displaying preview images of the materials and an information area 21 for displaying background music information in the target media content. The editing interface may also display material information 22 of at least some of the materials in the target media content, and at least one control for editing the target media content. The material information can be understood as material information, such as a thumbnail of the material. The at least one control for editing the target media content may include, for example, an adjustment control 23 for switching to an adjustment interface to edit the duration and / or aspect ratio of at least some of the materials in the target media content, a text control 24 for adding text to the target media content, a sticker control 25 for adding stickers to the target media content, and a filter control 26 for adding filter effects to the target media content, etc., for the user to edit the target media content. Furthermore, as... Figure 2 As shown, the editing interface can further display a publish control 27 and a next step control 28. Thus, the user can publish the target media content by triggering the publish control 27, and / or switch to the publishing page of the target media content by triggering the next step control 28, so as to edit the relevant information of the target media content and publish the target media content on the publishing page.

[0039] The target media content can be the media content currently displayed in the editing interface. It can be media content to be published by the user or media content that has already been published. For example, the user can edit the media content before and / or after publishing it. The following explanation uses the target media content to be published by the user as an example. The target media content can contain one or more pieces of material used to generate the target media content. This embodiment does not limit the type of material. For example, the material in the target media content can include at least one of video and image. In other words, the target media content can include at least one image type material and / or at least one video type material.

[0040] The first material can be considered as the material that the user is currently viewing in the editing interface. For example, the first material can be the material corresponding to the preview screen displayed in the editing interface when the first trigger operation is received. For instance, if the preview screen of material A is being displayed in the editing interface when the first trigger operation is received, then material A is the first material.

[0041] Specifically, the editing interface of the target media content can be displayed, and a preview of a certain material within the target media content can be shown in the editing interface. For example, when the user triggers the material information 22 of a certain material displayed in the editing interface, the preview of that material is displayed in the preview area 20 of the editing interface; or, based on the arrangement order of the materials in the target media content and / or the user's preview switching operation, the previews of different materials can be switched and displayed in the preview area 20 of the editing interface. This preview switching operation can be understood as an operation used to indicate switching between the currently previewed materials, such as a horizontal swipe operation in the preview area 20.

[0042] S102. In response to a first trigger operation acting on the editing page, an adjustment interface is displayed. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least some of the materials in the target media content. The at least some materials include the first material. The materials in the target media content include at least one of video and image.

[0043] The first trigger operation can be considered as a trigger operation used to instruct the display of the adjustment interface of the target media content, such as triggering the operation of the adjustment controls displayed in the editing interface, or performing a corresponding gesture operation in the editing interface. The adjustment interface can be an interface used to adjust the duration and / or aspect ratio of at least a portion of the material in the target media content. This adjustment interface corresponds to the material type of the first material. Optionally, when the material type of the material previewed in the editing interface is different, the adjustment interface displayed in response to the first trigger operation may not be exactly the same. The at least a portion of the material includes the first material that the user previews in the editing interface when the first trigger operation is received.

[0044] For example, when a first trigger operation is received within the editing interface, such as when it is detected that the user has triggered the adjustment control 23 displayed in the editing interface (e.g., Figure 2 When shown in the image, the current interface can be switched from the editing interface to the adjustment interface corresponding to the material type of the first material, such as... Figure 3 and Figure 4 As shown, this allows users to adjust the duration and / or aspect ratio of at least a portion of the target media content (such as the first clip) in the adjustment interface.

[0045] In addition, such as Figure 3 and Figure 4 As shown, when the adjustment interface is displayed in response to the first trigger operation, a preview of the first material can be further displayed in the adjustment interface to preview the first material currently displayed in the editing interface, and / or to adjust the duration and / or image of the first material.

[0046] Please continue to refer to this. Figure 3 and Figure 4 The adjustment interface may display a cancel control 30 for canceling at least some adjustments already made to at least some of the materials in the adjustment interface, and / or a complete control 31 for indicating that the adjustment is complete and saving the at least some adjustments made to at least some of the materials in the adjustment interface. Furthermore, the adjustment interface may also display at least one of a duration adjustment control 32, a frame adjustment control 33, and a delete control 34. Thus, the user can trigger the duration adjustment control 32 to instruct the current application to display the duration adjustment interface, trigger the frame adjustment control 33 to instruct the current application to display the frame adjustment interface, and / or trigger the delete control 34 to delete the materials currently previewed in the adjustment interface from the target media content.

[0047] In this embodiment, when the first trigger operation is received, an adjustment interface corresponding to the material type currently previewed by the user is displayed, which can enrich the adjustment methods of the material and the editing methods of the media content, and simplify the operations required by the user when editing the media content.

[0048] In some embodiments, the display adjustment interface includes at least one of the following: displaying a duration adjustment interface, and displaying at least a portion of the editing track segments and / or thumbnails of the material in a first area of ​​the duration adjustment interface, wherein the editing track segments are displayed in a collapsed state; displaying a frame adjustment interface, and displaying a preview of the target media content and a progress control in a second area of ​​the frame adjustment interface, wherein the progress control is used to adjust the preview progress of the target media content.

[0049] In this embodiment, the adjustment interface may include a duration adjustment interface and / or a frame adjustment interface. The duration adjustment interface can be used to adjust the duration of at least a portion of the material within the target media content. For example, for video material, the duration adjustment interface can be used to adjust the total playback duration of the material; and / or, for image material, the duration adjustment interface can be used to adjust the total display duration of the material within the target media content. The frame adjustment control can be used to adjust the frame of at least a portion of the material within the target media content, where the frame can be, for example, the aspect ratio, such as the width-to-height ratio of the image.

[0050] In the above embodiments, when a first trigger operation is received within the editing interface, the current interface can be switched from the editing interface to the duration adjustment interface in response to the first trigger operation, and at least a portion of the editing track segment 35 of the target media content (e.g., ...) can be displayed in the first area of ​​the duration adjustment interface. Figure 3 (as shown) and / or thumbnails.

[0051] The first area can be the area in the duration adjustment interface used to display edit track segments and / or thumbnails. An edit track segment can be understood as an edit track corresponding to the material in the target media content; this edit track segment can be used to adjust the duration of the corresponding material. For example, different materials can correspond to different edit track segments. Edit track segments can have a collapsed state and an expanded state; the display length of an edit track segment in the collapsed state can be less than the display length in the expanded state. This embodiment does not limit the display style of the edit track segments. Optionally, when in the collapsed state, the edit track segment can be displayed as a thumbnail of the corresponding material, such as... Figure 3 As shown; when in expanded mode, editable track segments can be displayed as a gallery of thumbnail images of the corresponding materials, such as... Figure 5 As shown.

[0052] In the above embodiments, when a first trigger operation is received within the editing interface, the current interface can be switched from the editing interface to the aspect ratio adjustment interface in response to the first trigger operation. A preview of the target media content and progress controls are then displayed in the second area 40 of the aspect ratio adjustment interface. Figure 4 As shown in the image (the image shows a preview of the third material in the target media content).

[0053] The second area can be the area in the aspect ratio adjustment interface used to display the preview screen and progress control of the target media content. Optionally, the second area includes the screen display area of ​​the target media content. For example, the second area can be the screen display area of ​​the target media content, which can be considered as the area in the aspect ratio adjustment interface used to display the preview screen of the target media content. In this case, such as Figure 2 As shown, the progress control can be displayed in a certain area above the preview screen displayed in the screen display area (such as a certain area at the bottom of the second area).

[0054] In this embodiment, as Figure 3As shown, the duration adjustment interface may also display preset controls 36 and / or material replacement controls 37. Preset controls 36 can be considered controls displayed in the first area, such as controls displayed together with the material's editing track segment 35 and / or thumbnail in the first area. For example, preset controls 36 can add controls to materials, allowing the user to switch to the material page by triggering the preset control 36 and select the new material they wish to add to the target media content. Material replacement controls 37 can be controls used to indicate which material is currently being previewed in the duration adjustment interface to replace. The user can switch to the material page by triggering the material replacement control 37 to select the material they wish to replace. The material page can be a page for displaying candidate materials, such as the user's local photo album.

[0055] In this embodiment, the preset control can remain displayed in the first area of ​​the duration adjustment page when the duration adjustment page is displayed; or it can be canceled when preset conditions are met, so that users can view more editing track segments or increase the display size of the editing track segments in the first area.

[0056] The preset conditions can be set as needed. For example, the preset conditions may include receiving a sequence adjustment operation applied within the duration adjustment interface and the sequence adjustment operation has not yet been completed; or, there is an edit track segment displayed in an expanded state in the duration adjustment interface. Optionally, the first area may also display a preset control. After displaying at least a portion of the edit track segments and / or thumbnails of the material in the first area of ​​the duration adjustment interface, it may further include at least one of the following: adjusting the arrangement order of at least a portion of the material in the target media content in response to a sequence adjustment operation applied within the duration adjustment interface, and de-displaying the preset control during the execution of the sequence adjustment operation; de-displaying the preset control in response to a second trigger operation for the first edit track segment.

[0057] The first trigger operation can be a prompt to adjust the order of one or more materials within the target media content. This could be a long-press and drag operation on an editing track segment or thumbnail displayed in the first area, corresponding to a specific material; or a gesture operation to adjust the order of one or more materials. Optionally, when long-pressing and dragging an editing track segment or thumbnail, the long press and drag can be performed consecutively. The second trigger operation can be a prompt to switch one or more collapsed editing track segments to an expanded state. This could be a click operation on a collapsed editing track segment displayed in the first area, or other gesture operations. The first editing track segment can be considered the editing track segment corresponding to the second trigger operation, such as the editing track segment affected by the second trigger operation.

[0058] For example, when receiving a sequence adjustment operation within the duration adjustment interface, such as when detecting that the user long-presses and drags an edit track segment and / or thumbnail of a certain material displayed in the first area, the system can control the edit track segment and / or thumbnail to move with the user's dragging operation to adjust the arrangement order of the edit track segment and / or thumbnail when displayed in the first area. This, in turn, adjusts the arrangement order of the material corresponding to the edit track segment and / or thumbnail in the target media content. Furthermore, during the execution of the sequence adjustment operation, the preset control can be de-displayed to display a larger number of edit track segments and / or thumbnails in the first area, facilitating the user's sequence adjustment. Additionally, when the sequence adjustment operation is completed, the preset control can be re-displayed in the first area.

[0059] For example, when a second trigger operation is received for the first edit track segment, such as when a user clicks on an edit track segment in the first area that is in a collapsed state, if a preset control is displayed in the first area, the preset control can be de-displayed in response to the second trigger operation to make room for the edit track segment, and the first edit track segment can be further switched from a collapsed state to an expanded state. Furthermore, when no edit track segment in an expanded state is displayed in the first area, the preset control can be re-displayed in the first area.

[0060] In this embodiment, the progress control may include a first progress control and a second progress control. The first progress control can be used to adjust the preview progress of the first material; for example, the first progress control can be displayed in the style of a progress bar. The second progress control can be used to switch the currently previewed material in the aspect ratio adjustment interface. Optionally, the second progress control displays a second thumbnail corresponding to at least some of the material, and the second thumbnail is used to trigger the display of the preview screen of the corresponding material in the second area. The second thumbnail can be considered as a thumbnail displayed in the second progress control, such as a thumbnail of at least some material in the target media content displayed within the second progress control.

[0061] In this embodiment, when the aspect ratio adjustment interface is displayed, the same progress control, such as the first control or the second control, can be displayed in the aspect ratio adjustment interface.

[0062] In this embodiment, when the aspect ratio adjustment interface is displayed, different progress controls can be shown in the interface based on the number of materials contained in the target media content to meet different user adjustment needs. For example, when the target media content contains only one piece of material, such as when the target media content only contains the first material previewed in the editing interface, a preview of the first material and a first progress control 60 are displayed in the second area 40 of the aspect ratio adjustment interface. Figure 6 As shown; when the target media content contains multiple clips, a preview of a clip (such as the third clip) and a second progress control 41 are displayed in the second area 40 of the aspect ratio adjustment interface, as shown. Figure 4 As shown.

[0063] Optionally, a preview of the target media content and a progress control can be displayed in the second area of ​​the aspect ratio adjustment interface, including at least one of the following: if the target media content contains only one piece of material, a preview of the first piece of material and a first progress control can be displayed in the second area of ​​the aspect ratio adjustment interface, wherein the first progress control is used to adjust the preview progress of the first piece of material; if the target media content contains at least two pieces of material, a preview of the third piece of material in the target media content and a second progress control can be displayed in the second area of ​​the aspect ratio adjustment interface, wherein the second progress control is used to switch the currently previewed material in the second area.

[0064] The third material can be understood as the material previewed in the aspect ratio adjustment interface in response to the first trigger operation. It can be any material in the target media content, such as a preset material or the first material. The preset material can be set in advance, such as the nth (n is a positive integer) material in the target media content. The current material can be considered as the material currently previewed in the aspect ratio adjustment interface, such as the material currently displaying its preview screen in the aspect ratio adjustment interface.

[0065] Therefore, the user can adjust the preview progress of the first material by clicking a position in the first progress control 60 or dragging the progress indicator in the first progress control 60; and / or, by triggering a second thumbnail in the second progress control 41, instruct the current application to display a preview of the material corresponding to the second thumbnail in the second area 40. For example, after displaying the preview of the third material in the target media content and the second progress control in the second area of ​​the aspect ratio adjustment interface, the method further includes: in response to a fourth trigger operation targeting the target thumbnail in the second progress control, displaying a preview of the fourth material in the second area of ​​the aspect ratio adjustment interface, where the fourth material is the material corresponding to the target thumbnail. The fourth trigger operation can be understood as triggering an operation on a second thumbnail in the second progress control; the target thumbnail can be considered the second thumbnail corresponding to the fourth trigger operation, such as the second thumbnail to which the fourth trigger operation acts; the fourth material can be considered the material corresponding to the target thumbnail, such as the material to which the target thumbnail belongs.

[0066] In some implementations, users can perform different processing on the image of the media in the aspect ratio adjustment interface to meet different user needs. In this case, after displaying a preview of the target media content and a progress control in the second area of ​​the aspect ratio adjustment interface, at least one of the following is also included: adjusting the aspect ratio of the current media to the target aspect ratio corresponding to the first adjustment operation in response to a first adjustment operation within the aspect ratio adjustment interface; mirroring the image of the current media in response to a second adjustment operation within the aspect ratio adjustment interface; and rotating the image of the current media along a preset direction by a preset angle in response to a third adjustment operation within the aspect ratio adjustment interface.

[0067] The first adjustment operation can be understood as a trigger operation used to instruct the adjustment of the aspect ratio of the current material. For example, such as... Figure 4 and Figure 6As shown, the aspect ratio adjustment interface can display at least one ratio control 42 and / or aspect ratio frame 43, each ratio control 42 corresponding to one or more aspect ratios. Therefore, the first adjustment operation can include triggering an operation to adjust a ratio control 42, and / or triggering an operation to adjust the ratio of the aspect ratio frame 43. The target aspect ratio can be understood as the aspect ratio indicated by the first adjustment operation. The second adjustment operation can be a trigger operation to indicate mirroring of the current material's image, such as triggering the mirror control 44 displayed in the aspect ratio adjustment interface. The third adjustment operation can be understood as a trigger operation to indicate adjusting the display angle of the current material's image, such as triggering the rotation control 45 displayed in the aspect ratio adjustment interface. The preset direction and preset angle can be flexibly set; for example, the preset direction can be clockwise or counterclockwise; the preset angle can be 30°, 45°, 60°, 90°, or 180°, etc., and can be set as needed.

[0068] For example, when a first adjustment operation is received, such as when it is detected that the user triggers a certain ratio control 42 displayed in the aspect ratio adjustment interface, the aspect ratio frame 43 can be adjusted to the ratio (e.g., aspect ratio) corresponding to the ratio control 42; and / or, when it is detected that the user drags a corner or a boundary of the aspect ratio frame 43, the corresponding boundary of the aspect ratio frame 43 can be controlled to move with the user's drag to adjust the aspect ratio of the aspect ratio frame 43. Thus, the aspect ratio of the current material is adjusted to the same aspect ratio as the aspect ratio frame. For example, based on the user's first trigger operation or the user triggering the operation of the completion control 31 in the aspect ratio adjustment interface, the image or video frames in the current material are cropped to adjust the aspect ratio of the current material to the target aspect ratio that is the same as the aspect ratio frame.

[0069] When a second adjustment operation is received, such as when the user triggers the mirror control 44 displayed in the aspect ratio adjustment interface, the image or video frame in the current material can be mirrored, and a preview of the mirrored image can be displayed in the second area 40.

[0070] When a third adjustment operation is received, such as when the user triggers the rotation control 45 displayed in the aspect ratio adjustment interface, the image or video frame in the current material can be rotated by a preset angle along a preset direction, and a preview of the rotated image can be displayed in the second area 40.

[0071] In this embodiment, after adjusting the aspect ratio of a certain material in the aspect ratio adjustment interface, the user can also apply the adjustment operation to one or more other materials in the target media content, such as adjusting the aspect ratio of some or all other materials to the target aspect ratio, so as to avoid the situation where the user needs to adjust the aspect ratio of each material individually, and simplify the operation required by the user when adjusting the aspect ratio of the target media content.

[0072] At this time, after adjusting the aspect ratio of the current material to the target aspect ratio corresponding to the first adjustment operation, the method further includes: in response to a fourth adjustment operation performed within the aspect ratio adjustment interface, adjusting the aspect ratio of at least a portion of the material in the target media content other than the current material to the target aspect ratio.

[0073] The fourth adjustment operation can be understood as a trigger operation that instructs at least some of the materials other than the current material to adjust the aspect ratio to the same target aspect ratio as the current material, such as triggering the operation of the application controls displayed in the aspect ratio adjustment interface.

[0074] For example, when a fourth adjustment operation is received, such as when it is detected that the user has triggered the application control 46 displayed in the aspect ratio adjustment interface (e.g., ... Figure 4 and Figure 6 When shown, the aspect ratio of at least some of the materials in the target media content, excluding the current material, can be adjusted to the target aspect ratio.

[0075] Here, at least some of the materials can be pre-set materials or materials determined based on user selection. This embodiment does not limit the pre-set materials; for example, the pre-set materials may include the previous and / or next materials in the target media content, or materials in the target media content that precede and / or follow the current material, etc. When the at least some materials are adjusted based on user selection, for example, a material panel may be displayed upon receiving a fourth adjustment operation, and material information of one or more materials in the target media content may be displayed in the material panel for the user to select. After the user completes the selection, the aspect ratio of the selected material is adjusted to the target aspect ratio.

[0076] In some implementations, when a first trigger operation is received within the editing interface of the target media content, the adjustment interface to be displayed in response to the first trigger operation can be determined based on the type of the first material currently previewed in the editing interface. For example, if the first material is of a first type, a duration adjustment interface can be displayed in response to the first trigger operation; if the first material is of a second type, a frame adjustment interface can be displayed in response to the first trigger operation. Optionally, the display of the adjustment interface includes: if the material type of the first material is a first type, then a duration adjustment interface is displayed; if the material type of the first material is a second type, then a frame adjustment interface is displayed. The first type and the second type can be set as needed. For example, the first type can be a video type, and the second type can be an image type. Thus, when the first material is a video, a duration adjustment interface can be displayed; when the first material is an image, a frame adjustment interface can be displayed.

[0077] The media content editing method provided in this embodiment displays a preview of a first material in the target media content on the editing interface. The target media content includes at least one piece of material. In response to a first trigger operation within the editing interface, an adjustment interface is displayed. This adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content. The at least a portion of the material includes the first material, and the material in the target media content includes at least one of video and images. This embodiment, by displaying an adjustment interface corresponding to the material type of the material currently previewed by the user, enriches the methods for adjusting materials and editing media content, and simplifies the operations required for users to edit media content.

[0078] Figure 7 This is a flowchart illustrating another method for editing media content provided in this embodiment. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, after displaying at least a portion of the editing track segments and / or thumbnails of the material in the first area of ​​the duration adjustment interface, the method further includes: in response to a second trigger operation on the first editing track segment, switching the first editing track segment from a collapsed state to an expanded state, and displaying the first editing track segment in the expanded state in a preset sub-area of ​​the first area, wherein the editing track segment in the expanded state is used to adjust the duration of the material corresponding to the editing track segment in the expanded state.

[0079] Optionally, after the first edit track segment in an expanded state is displayed in a preset sub-region of the first region, the method further includes: in response to a third trigger operation, switching the edit track segment displayed in the preset sub-region from the first edit track segment to a second edit track segment, wherein the second edit track segment is the edit track segment corresponding to the third trigger operation, and the second edit track segment is displayed in an expanded state in the preset sub-region.

[0080] Correspondingly, such as Figure 7 As shown, the media content editing method provided in this embodiment may include:

[0081] S201. Display a preview of the first material in the target media content in the editing interface. The target media content contains at least one piece of material, and the material in the target media content includes at least one of video and image.

[0082] S202. In response to a first trigger operation acting within the editing page, a duration adjustment interface is displayed, and at least a portion of the editing track segments of the material are displayed in a first area of ​​the duration adjustment interface, wherein the editing track segments are displayed in a collapsed state.

[0083] In this embodiment, when the first trigger operation is received, the current interface can be switched from the editing interface to the duration adjustment interface, and at least a portion of the editing track segments 35 of the material can be displayed in a collapsed state in the first area of ​​the duration adjustment interface, such as displaying the editing track segments 35 of at least a portion of the material as thumbnails of the corresponding material. Figure 3 As shown.

[0084] The thumbnail displayed for an edit track segment in the collapsed state can be a thumbnail associated with the material corresponding to that edit track segment. For example, when the corresponding material is an image, the thumbnail can be a thumbnail of the corresponding material, i.e., a thumbnail of the image; when the corresponding material is a video, the thumbnail can be a thumbnail of the video cover or a thumbnail of a frame in the video.

[0085] S203. In response to a second trigger operation on the first editing track segment, the first editing track segment is switched from a collapsed state to an expanded state, and the first editing track segment in the expanded state is displayed in a preset sub-region of the first region, wherein the editing track segment in the expanded state is used to adjust the duration of the material corresponding to the editing track segment in the expanded state.

[0086] The second trigger operation can be used to instruct a collapsed editing track segment to be switched to an expanded state. For example, if no expanded editing track segments are displayed in the preset sub-area, the second trigger operation can instruct a specific editing track segment to be displayed in the expanded state within the preset sub-area. The execution method of the second trigger operation is not limited. For instance, the second trigger operation can be an operation where all editing track segments displayed in the first area are collapsed, and the user clicks on a specific editing track segment displayed in the first area. The first editing track segment can be considered the editing track segment corresponding to the second trigger operation, such as the editing track segment that the second trigger operation instructs to be switched to an expanded state. The preset sub-area can be understood as a sub-area within the first area used to display expanded editing track segments. It can be set as needed; for example, the preset sub-area can be a sub-area located in the middle of the first area.

[0087] For example, when a clip for the first edit track is received, the clip can be switched from a collapsed state to an expanded state. The expanded clip can be displayed in a preset sub-area of ​​the first region, and a preview of the corresponding material (such as the second material) can be further displayed in the duration adjustment interface. Figure 5 As shown. Thus, the user can adjust the duration of the material corresponding to the first editing track segment by dragging the left boundary area 50 or the right boundary area 51 of the first editing track segment, such as shortening the duration of the material corresponding to the first editing track segment by dragging the left boundary area 50 to the right or dragging the right boundary area 51 to the left; and / or increasing the duration of the material corresponding to the first editing track segment by dragging the left boundary area 50 to the left or dragging the right boundary area 51 to the right.

[0088] In this embodiment, the display style of the expanded edit track segment is not limited. Optionally, the expanded edit track segment can be displayed as a thumbnail gallery to allow users to quickly identify the corresponding footage at each position of the edit track segment. This thumbnail gallery can be a gallery of thumbnails corresponding to the footage of the expanded edit track segment, and can contain at least two thumbnails. For example, when the footage corresponding to the expanded edit track segment is video, the thumbnail gallery can contain thumbnails of at least some video frames in the footage, such as thumbnails of keyframes in the footage; when the footage corresponding to the expanded edit track segment is an image, the thumbnail gallery can contain multiple thumbnails of the footage, and the images displayed by each thumbnail can be the same or different.

[0089] In some implementations, the edit track segment is displayed as a thumbnail when it is in a collapsed state; switching the first edit track segment from a collapsed state to an expanded state includes: expanding the first thumbnail displayed in the collapsed state of the first edit track segment into a first thumbnail atlas, wherein the first thumbnail atlas corresponds to multiple keyframes of the second material, and the second material is the material corresponding to the first edit track segment.

[0090] In the above embodiments, the edit track segment in the collapsed state can be displayed as a thumbnail, and the edit track segment in the expanded state can be displayed as a thumbnail gallery. Therefore, when a second trigger operation is received for the first edit track segment, the first edit track segment can be expanded from a first thumbnail to a first thumbnail gallery, thus switching the first edit track segment from the collapsed state to the expanded state.

[0091] The second material can be the material corresponding to the first edit track segment; in other words, the first edit track segment can be an edit track segment of the second material. The first thumbnail can be considered the thumbnail displayed when the first edit track is in a collapsed state, and this thumbnail can be a thumbnail associated with the second material. The first thumbnail set can be considered the set of thumbnails displayed when the first edit track segment is in an expanded state, and this thumbnail set can be a collection of at least some thumbnails associated with the second material, such as the set of thumbnails corresponding to keyframes in the second material.

[0092] In this embodiment, optionally, the user can switch between the thumbnail atlas displayed when the edit track segment is in the expanded state and the thumbnail displayed when the edit track segment is in the collapsed state by sliding.

[0093] For example, such as Figure 5 As shown, when an expanded editing track segment 35 (such as the first editing track segment) is displayed in the preset sub-area, the user can switch the current material by swiping. For example, by swiping left in the duration editing interface or the first area, the current material can be switched to the next material in the target media content, and / or by swiping right in the duration editing interface or the first area, the current material can be switched to the previous material in the target media content, and so on.

[0094] For example, users can switch between currently displayed, expanded editing track segments in a preset sub-area by swiping. For instance, swiping left in the first area moves the thumbnails (including those in a thumbnail gallery) to the left, switching the currently expanded editing track segment to the next editing track segment of the currently displayed editing track segment 35; similarly, swiping right in the first area moves the thumbnails (including those in a thumbnail gallery) to the right, switching the currently expanded editing track segment to the previous editing track segment of the currently displayed editing track segment 35. Understandably, when switching to the next editing track segment, the next editing track segment remains expanded to facilitate user editing.

[0095] In this embodiment, when the first editing track segment is switched from a collapsed state to an expanded state in response to a second trigger operation, other editing track segments displayed in the first area besides the first editing track segment can be canceled from display. Alternatively, the display positions of other editing track segments displayed in the first area besides the first editing track segment can be adjusted according to the display position of the first editing track segment to avoid overlapping display of the first editing track segment with other editing track segments after it is expanded, thus facilitating user viewing and adjustment of each editing track segment. At this time, the media content editing method provided in this embodiment may further include: in response to a second trigger operation on the first editing track segment, canceling the display of other editing track segments in the duration adjustment interface besides the first editing track segment; or, in response to a second trigger operation on the first editing track segment, adjusting the display positions of other editing track segments in the duration adjustment interface besides the first editing track segment according to the display position of the first editing track segment.

[0096] In this embodiment, the method of adjusting the display position of editing track segments other than the first editing track segment in the first region according to the display position of the first editing track segment can be set as needed. Optionally, adjusting the display position of editing track segments other than the first editing track in the duration adjustment interface according to the display position of the first editing track segment includes: controlling the editing track segment located on the first side of the first editing track segment to move out of the preset sub-region along a first direction, and / or controlling the editing track segment located on the second side of the first editing track segment to move out of the preset region along a second direction.

[0097] The first side and the second side, as well as the first direction and the second direction, can be set as needed. For example, the first side and the second side can be corresponding two sides, and the first direction and the second direction can be two opposite directions. The first direction can be the direction corresponding to the first side, such as the direction from the first edit track segment to the edit track segment located on its first side; the second direction can be the direction corresponding to the second side, such as the direction from the first edit track segment to the edit track segment located on its second side.

[0098] In the above embodiments, when the first editing track segment is switched from a collapsed state to an expanded state, the editing track segment located on the first side of the first editing track segment can be further controlled to move out of a preset sub-region of the first region along a first direction, and / or the editing track segment located on the second side of the first editing track segment can be controlled to move out of a preset sub-region of the first region along a second direction.

[0099] Taking the horizontal arrangement of each editing track segment as an example, where the first editing track segment is in an expanded state, when the first editing track segment is switched from a collapsed state to an expanded state, the editing track segment displayed to the left of the first editing track segment in the first area can be further controlled to move to the left out of a preset sub-area; and / or, the editing track segment displayed to the right of the first editing track segment in the first area can be controlled to move to the right out of a preset sub-area, so as to display the first editing track segment in an expanded state in the preset sub-area.

[0100] S204. In response to the third trigger operation, the editing track segment displayed in the preset sub-area is switched from the first editing track segment to the second editing track segment, wherein the second editing track segment is the editing track segment corresponding to the third trigger operation, and the second editing track segment is displayed in an expanded state in the preset sub-area.

[0101] The third trigger operation can be a trigger operation used to indicate the switching of edit track segments in the expanded state within a preset sub-region. The execution method of the third trigger operation is not limited; optionally, the third trigger operation includes a preset sliding operation acting on the preset sub-region, a trigger operation targeting the second edit track segment, or a trigger operation acting on an associated sub-region corresponding to the second edit track segment, wherein the associated sub-region is a sub-region associated with the preset sub-region.

[0102] The preset sliding operation can be a sliding operation within a preset sub-region, such as sliding along the arrangement direction of each editing track within the preset sub-region. The trigger operation for a specific editing track segment (such as the second editing track segment) can be, for example, triggering an editing track segment other than the first editing track segment, such as triggering an editing track segment displayed outside the preset sub-region. The trigger operation within an associated sub-region can be, for example, triggering an operation in an associated sub-region of the preset sub-region, such as a click operation. This associated sub-region can be a region related to the preset sub-region, and it can be located within or outside the preset sub-region. The following explanation uses the example of an associated sub-region located outside the preset sub-region. In this case, the associated sub-region can be a sub-region within the first region that is located outside the preset sub-region but related to it, such as a sub-region surrounding the preset sub-region.

[0103] The second edit track segment can be understood as the edit track segment to which the third trigger operation indicates switching, such as the edit track segment corresponding to the sliding direction of the third trigger operation, the edit track segment to which the third trigger operation is applied, or the edit track segment corresponding to the associated sub-region to which the third trigger operation is applied.

[0104] In this embodiment, when a third trigger operation is received, the edit track segments displayed in the preset sub-area and in an expanded state can be switched based on the third trigger operation, so that the user can preview the materials corresponding to different edit track segments or adjust the duration of different materials.

[0105] For example, when a user is detected performing a preset swipe operation within a preset sub-area, it can be determined that a third trigger operation has been received, and the expanded editing track segment in the preset sub-area can be switched according to the swipe direction of the third trigger operation. Taking a horizontal swipe operation as an example, when a user is detected swiping left in the preset sub-area, the editing track segment of the next material in the target media content (such as the second material) can be determined as the second editing track segment, and the expanded editing track segment displayed in the preset sub-area can be switched from the editing track segment of the current material (such as the first editing track segment) to the second editing track segment; when a user is detected swiping right in the preset sub-area, the editing track segment of the previous material in the target media content (such as the second material) can be determined as the second editing track segment, and the expanded editing track segment displayed in the preset sub-area can be switched from the editing track segment of the current material (such as the first editing track segment) to the second editing track segment.

[0106] When it is detected that a user has triggered an editing track segment displayed outside the preset sub-area, it can be determined that a third trigger operation has been received. The editing track segment triggered by the third trigger operation is identified as the second editing track segment, and the editing track segment displayed in the preset sub-area and in the expanded state is switched from the editing track segment of the current material (such as the first editing track segment) to the second editing track segment.

[0107] When a user triggers a related sub-region 52 of a preset sub-region, it can be determined that a third trigger operation has been received. The editing track segment corresponding to the related sub-region 52 is identified as the second editing track segment, and the editing track segment displayed in the preset sub-region and in an expanded state is switched from the editing track segment of the current material (such as the first editing track segment) to the second editing track segment. The association between the related sub-region 52 and the editing track segment can be flexibly set. Taking the horizontal arrangement of each editing track segment 35 as an example, for instance... Figure 5 As shown, a preset sub-region can have two associated sub-regions 52 located on its left and right sides. In this case, the edit track segment corresponding to the associated sub-region 52 on the left side of the preset sub-region can be the edit track segment located to the left of the first edit track segment and adjacent to the first edit track segment. Figure 5 (Not shown in the image), the edit track segment corresponding to the associated sub-region 52 to the right of the preset sub-region can be an edit track segment located to the right of the first edit track segment and adjacent to the first edit track segment (not shown in the image). Figure 5 (Not shown in the image).

[0108] In some implementations, when an edit track segment is in an expanded state, it can be displayed as a thumbnail gallery. Therefore, when switching between edit track segments in an expanded state within a preset sub-region, the thumbnail gallery displayed in that sub-region can be switched, such as switching the thumbnail gallery displayed in the preset sub-region from a first thumbnail gallery to a second thumbnail gallery. Optionally, the display of the edit track segment in an expanded state as a thumbnail gallery, and the switching of the edit track segment displayed in the preset sub-region from the first edit track segment to the second edit track segment, includes: switching the first thumbnail gallery displayed in the preset sub-region to the second thumbnail gallery, where the first thumbnail gallery is the thumbnail gallery displayed when the first edit track segment is in an expanded state, and the second thumbnail gallery is the thumbnail gallery displayed when the second edit track is in an expanded state.

[0109] The media content editing method provided in this embodiment allows users to switch editing track segments in a collapsed state to an expanded state or switch editing track segments in an expanded state, and adjust the duration of the corresponding material in an expanded editing track segment through the expanded editing track segment, which can further enrich the display methods of editing track segments and the adjustment methods of material duration.

[0110] Figure 8 This is a structural block diagram of a media content editing device provided in an embodiment of this disclosure. The device can be implemented by software and / or hardware, and can be configured in an electronic device, typically a mobile phone or tablet computer. It can edit media content by executing media content editing methods, such as editing media content containing different types of materials. Figure 8 As shown, the media content editing device provided in this embodiment may include: a screen preview module 801 and an interface display module 802, wherein,

[0111] The preview module 801 is used to display a preview of the first material in the target media content in the editing interface, wherein the target media content contains at least one piece of material;

[0112] The interface display module 802 is used to display an adjustment interface in response to a first trigger operation performed on the editing page. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least some of the materials in the target media content. The at least some materials include the first material. The materials in the target media content include at least one of video and image.

[0113] The media content editing device provided in this embodiment displays a preview of a first material in the target media content on the editing interface through a preview module. The target media content includes at least one piece of material. In response to a first trigger operation within the editing interface, an interface display module displays an adjustment interface. This adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content, including the first material. The material in the target media content includes at least one of video and images. This embodiment, by displaying an adjustment interface corresponding to the material type of the currently previewed material, enriches the methods for adjusting materials and editing media content, and simplifies the operations required for users to edit media content.

[0114] In the above scheme, the interface display module 802 includes at least one of the following: a first interface display unit, used to display a duration adjustment interface, and display at least a portion of the editing track segments and / or thumbnails of the material in a first area of ​​the duration adjustment interface, wherein the editing track segments are displayed in a collapsed state; a second interface display unit, used to display a frame adjustment interface, and display a preview screen of the target media content and a progress control in a second area of ​​the frame adjustment interface, wherein the progress control is used to adjust the preview progress of the target media content.

[0115] Furthermore, the media content editing device provided in this embodiment may also include: a state switching module, used to, in response to a second trigger operation for the first editing track segment, switch the first editing track segment from a collapsed state to an expanded state after displaying at least a portion of the editing track segments and / or thumbnails in the first area of ​​the duration adjustment interface, and display the first editing track segment in the expanded state in a preset sub-area of ​​the first area, wherein the editing track segment in the expanded state is used to adjust the duration of the material corresponding to the editing track segment in the expanded state.

[0116] In the above scheme, when the edit track segment is in a collapsed state, it can be displayed as a thumbnail; the state switching module can be used to: expand the first thumbnail displayed in the collapsed state of the first edit track segment into a first thumbnail image set, wherein the first thumbnail image set corresponds to multiple keyframes of the second material, and the second material is the material corresponding to the first edit track segment.

[0117] In the above scheme, users can switch between the thumbnail atlas displayed when the edit track segment is in the expanded state and the thumbnail displayed when the edit track segment is in the collapsed state by sliding.

[0118] In the above scheme, the state switching module can also be used to: in response to a second trigger operation on the first edit track segment, cancel the display of edit track segments other than the first edit track segment in the duration adjustment interface; or, in response to a second trigger operation on the first edit track segment, adjust the display position of edit track segments other than the first edit track segment in the duration adjustment interface according to the display position of the first edit track segment.

[0119] In the above scheme, the state switching module can be used to: control the editing track segment located on the first side of the first editing track segment to move out of the preset sub-region along the first direction, and / or control the editing track segment located on the second side of the first editing track segment to move out of the preset region along the second direction.

[0120] Furthermore, the media content editing device provided in this embodiment may further include: a track switching module, used to, in response to a third trigger operation, switch the editing track segment displayed in the preset sub-area from the first editing track segment to a second editing track segment after displaying the first editing track segment in an expanded state in a preset sub-area of ​​the first region, wherein the second editing track segment is the editing track segment corresponding to the third trigger operation, and the second editing track segment is displayed in an expanded state in the preset sub-area.

[0121] In the above scheme, when the edit track segment is in an expanded state, it can be displayed as a thumbnail atlas. The track switching module can be used to: switch the first thumbnail atlas displayed in the preset sub-area to a second thumbnail atlas. The first thumbnail atlas is the thumbnail atlas displayed when the first edit track segment is in an expanded state, and the second thumbnail atlas is the thumbnail atlas displayed when the second edit track is in an expanded state.

[0122] In the above scheme, the third triggering operation may include a preset sliding operation acting on the preset sub-region, a triggering operation for the second edit track segment, or a triggering operation acting on the associated sub-region corresponding to the second edit track segment, wherein the associated sub-region is a sub-region associated with the preset sub-region.

[0123] In the above scheme, the first area may also display preset controls. The media content editing device provided in this embodiment may also include at least one of the following: a sequence adjustment module, used to adjust the arrangement order of at least some materials in the target media content in response to a sequence adjustment operation performed in the duration adjustment interface after displaying editing track segments and / or thumbnails of at least some materials in the first area of ​​the duration adjustment interface, and to cancel the display of the preset controls during the execution of the sequence adjustment operation; and a cancellation display module, used to cancel the display of the preset controls in response to a second trigger operation for the first editing track segment.

[0124] In the above scheme, the second interface display unit can be used to perform at least one of the following: if the target media content contains only one piece of material, then a preview of the first material and a first progress control are displayed in the second area of ​​the aspect ratio adjustment interface, and the first progress control is used to adjust the preview progress of the first material; if the target media content contains at least two pieces of material, then a preview of the third material in the target media content and a second progress control are displayed in the second area of ​​the aspect ratio adjustment interface, and the second progress control is used to switch the current material being previewed in the second area.

[0125] In the above scheme, the second area may include the display area of ​​the target media content.

[0126] In the above scheme, the second progress control can display a second thumbnail corresponding to at least some of the materials, and the second thumbnail is used to trigger a preview screen of the corresponding materials to be displayed in the second area.

[0127] Furthermore, the media content editing device provided in this embodiment may also include: a screen display module, which, after displaying a preview screen of a third material in the target media content and a second progress control in the second area of ​​the aspect ratio adjustment interface, responds to a fourth trigger operation on the target thumbnail in the second progress control to display a preview screen of a fourth material in the second area of ​​the aspect ratio adjustment interface, wherein the fourth material is a material corresponding to the target thumbnail.

[0128] Furthermore, the media content editing device provided in this embodiment may further include at least one of the following: a first aspect ratio adjustment module, configured to, after displaying a preview of the target media content and a progress control in the second area of ​​the aspect ratio adjustment interface, adjust the aspect ratio of the current material to the target aspect ratio corresponding to the first adjustment operation in response to a first adjustment operation performed within the aspect ratio adjustment interface; a mirroring module, configured to, after displaying a preview of the target media content and a progress control in the second area of ​​the aspect ratio adjustment interface, perform mirroring processing on the current material in response to a second adjustment operation performed within the aspect ratio adjustment interface; and a rotation module, configured to, after displaying a preview of the target media content and a progress control in the second area of ​​the aspect ratio adjustment interface, control the current material to rotate by a preset angle along a preset direction in response to a third adjustment operation performed within the aspect ratio adjustment interface.

[0129] Furthermore, the media content editing device provided in this embodiment may also include: a second aspect ratio adjustment module, used to adjust the aspect ratio of at least a portion of the target media content other than the current material to the target aspect ratio in response to a fourth adjustment operation performed within the aspect ratio adjustment interface after the aspect ratio of the current material is adjusted to the target aspect ratio.

[0130] In the above scheme, the interface display module 802 can be used to: display the duration adjustment interface if the material type of the first material is a first type; and display the aspect ratio adjustment interface if the material type of the first material is a second type.

[0131] The media content editing apparatus provided in this disclosure can execute the media content editing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the media content editing method. Technical details not described in detail in this embodiment can be found in the media content editing method provided in any embodiment of this disclosure.

[0132] The following is for reference. Figure 9 The diagram illustrates a structural schematic of an electronic device (e.g., a terminal device) 900 suitable for implementing 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, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0133] like Figure 9 As shown, electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 902 or a program loaded from storage device 908 into random access memory (RAM) 903. RAM 903 also stores various programs and data required for the operation of electronic device 900. Processing device 901, ROM 902, and RAM 903 are interconnected via bus 904. Input / output (I / O) interface 905 is also connected to bus 904.

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

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

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

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

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

[0139] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: display a preview of a first material in target media content on an editing interface, the target media content containing at least one piece of material; and, in response to a first trigger operation acting on the editing page, display an adjustment interface corresponding to the material type of the first material, the adjustment interface being used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content, the at least a portion of the material including the first material, and the material in the target media content including at least one of video and image.

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

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

[0142] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of modules do not, in some cases, constitute a limitation on the unit itself.

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

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

[0145] According to one or more embodiments of this disclosure, Example 1 provides a method for editing media content, including:

[0146] The editing interface displays a preview of the first material in the target media content, which contains at least one piece of material;

[0147] In response to a first trigger operation within the editing page, an adjustment interface is displayed. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content. The at least a portion of the material includes the first material. The material in the target media content includes at least one of video and image.

[0148] According to one or more embodiments of this disclosure, Example 2, based on the method described in Example 1, includes at least one of the following:

[0149] Display the duration adjustment interface, and in the first area of ​​the duration adjustment interface, display at least a portion of the material's edit track segments and / or thumbnails, wherein the edit track segments are displayed in a collapsed state;

[0150] The frame adjustment interface is displayed, and a preview of the target media content and a progress control are shown in the second area of ​​the frame adjustment interface. The progress control is used to adjust the preview progress of the target media content.

[0151] According to one or more embodiments of this disclosure, Example 3, based on the method described in Example 2, further includes, after displaying at least a portion of the edit track segments and / or thumbnails of the material in the first area of ​​the duration adjustment interface:

[0152] In response to a second trigger operation on the first edit track segment, the first edit track segment is switched from a collapsed state to an expanded state, and the first edit track segment in the expanded state is displayed in a preset sub-region of the first region. The edit track segment in the expanded state is used to adjust the duration of the material corresponding to the edit track segment in the expanded state.

[0153] According to one or more embodiments of this disclosure, Example 4 describes the method described in Example 3, wherein the edit track segment is displayed as a thumbnail when it is in a collapsed state; the step of switching the first edit track segment from a collapsed state to an expanded state includes:

[0154] Expand the first thumbnail displayed in the collapsed state of the first edit track segment into a first thumbnail image set, wherein the first thumbnail image set corresponds to multiple keyframes of the second material, and the second material is the material corresponding to the first edit track segment.

[0155] According to one or more embodiments of this disclosure, Example 5, based on the method described in Example 4, allows users to switch between a thumbnail atlas displayed as an expanded edit track segment and a thumbnail displayed as a collapsed edit track segment.

[0156] According to one or more embodiments of this disclosure, Example 6, based on the method described in Example 3, further includes:

[0157] In response to a second trigger operation on the first edit track segment, cancel the display of edit track segments other than the first edit track segment in the duration adjustment interface; or

[0158] In response to a second trigger operation on the first edit track segment, the display position of the edit track segments other than the first edit track segment in the duration adjustment interface is adjusted according to the display position of the first edit track segment.

[0159] According to one or more embodiments of this disclosure, Example 7 describes the method described in Example 6, wherein adjusting the display position of editing track segments other than the first editing track in the duration adjustment interface based on the display position of the first editing track segment includes:

[0160] Control the editing track segment located on the first side of the first editing track segment to move out of the preset sub-region along a first direction, and / or control the editing track segment located on the second side of the first editing track segment to move out of the preset region along a second direction.

[0161] According to one or more embodiments of this disclosure, Example 8, following the method described in Example 3, after displaying the first edit track segment in an expanded state in a preset sub-region of the first region, further includes:

[0162] In response to a third trigger operation, the edit track segment displayed in the preset sub-area is switched from the first edit track segment to the second edit track segment, wherein the second edit track segment is the edit track segment corresponding to the third trigger operation, and the second edit track segment is displayed in an expanded state in the preset sub-area.

[0163] According to one or more embodiments of this disclosure, Example 9 describes the method described in Example 8, wherein when the edit track segment is in an expanded state, it is displayed as a thumbnail atlas, and the step of switching the edit track segment displayed in the preset sub-region from the first edit track segment to the second edit track segment includes:

[0164] The first thumbnail atlas displayed in the preset sub-region is switched to the second thumbnail atlas. The first thumbnail atlas is the thumbnail atlas displayed when the first edit track segment is in the expanded state, and the second thumbnail atlas is the thumbnail atlas displayed when the second edit track is in the expanded state.

[0165] According to one or more embodiments of this disclosure, Example 10 describes the method according to Example 8, wherein the third triggering operation includes a preset sliding operation acting on the preset sub-region, a triggering operation for the second edit track segment, or a triggering operation acting on an associated sub-region corresponding to the second edit track segment, wherein the associated sub-region is a sub-region associated with the preset sub-region.

[0166] According to one or more embodiments of this disclosure, Example 11, based on the method described in Example 2, further includes a preset control displayed in the first area, and after displaying at least a portion of the edit track segments and / or thumbnails of the material in the first area of ​​the duration adjustment interface, it further includes at least one of the following:

[0167] In response to the sequence adjustment operation performed on the duration adjustment interface, the arrangement order of at least some of the materials in the target media content is adjusted, and the preset control is de-displayed during the execution of the sequence adjustment operation;

[0168] In response to a second trigger operation on the first edit track segment, the preset controls are de-displayed.

[0169] According to one or more embodiments of this disclosure, Example 12, based on the method described in Example 2, displays a preview of the target media content and a progress control in a second area of ​​the aspect ratio adjustment interface, including at least one of the following:

[0170] If the target media content contains only one piece of material, then a preview of the first material and a first progress control are displayed in the second area of ​​the aspect ratio adjustment interface. The first progress control is used to adjust the preview progress of the first material.

[0171] If the target media content contains at least two clips, a preview of the third clip in the target media content and a second progress control are displayed in the second area of ​​the aspect ratio adjustment interface. The second progress control is used to switch the current clip previewed in the second area.

[0172] According to one or more embodiments of this disclosure, Example 13 describes the method of Example 12, wherein the second region includes the display area of ​​the target media content.

[0173] According to one or more embodiments of this disclosure, Example 14 describes the method described in Example 12, wherein the second progress control displays a second thumbnail corresponding to at least a portion of the material, and the second thumbnail is used to trigger a preview screen of the corresponding material to be displayed in the second area.

[0174] According to one or more embodiments of this disclosure, Example 15, based on the method described in Example 14, further includes, after displaying a preview of the third material in the target media content and a second progress control in the second area of ​​the aspect ratio adjustment interface:

[0175] In response to a fourth trigger operation targeting the target thumbnail in the second progress control, a preview of a fourth material is displayed in the second area of ​​the aspect ratio adjustment interface. The fourth material is the material corresponding to the target thumbnail.

[0176] According to one or more embodiments of this disclosure, Example 16, based on the method described in Example 2, further includes at least one of the following after displaying a preview of the target media content and a progress control in the second area of ​​the aspect ratio adjustment interface:

[0177] In response to a first adjustment operation performed within the aspect ratio adjustment interface, the aspect ratio of the current material is adjusted to the target aspect ratio corresponding to the first adjustment operation.

[0178] In response to a second adjustment operation performed within the aspect ratio adjustment interface, the image of the current material is mirrored.

[0179] In response to a third adjustment operation performed within the frame adjustment interface, the image of the current material is rotated by a preset angle along a preset direction.

[0180] According to one or more embodiments of this disclosure, Example 17, based on the method described in Example 16, further includes, after adjusting the aspect ratio of the current material to the target aspect ratio corresponding to the first adjustment operation:

[0181] In response to a fourth adjustment operation performed within the aspect ratio adjustment interface, the aspect ratio of at least a portion of the target media content, excluding the current material, is adjusted to the target aspect ratio.

[0182] According to one or more embodiments of this disclosure, Example 18, based on the method described in Example 1, includes the following:

[0183] If the material type of the first material is the first type, then the duration adjustment interface will be displayed;

[0184] If the first material is of the second type, the aspect ratio adjustment interface will be displayed.

[0185] According to one or more embodiments of this disclosure, Example 19 provides a media content editing apparatus, including:

[0186] The preview module is used to display a preview of the first material in the target media content in the editing interface, wherein the target media content contains at least one piece of material;

[0187] The interface display module is used to display an adjustment interface in response to a first trigger operation performed on the editing page. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least some of the materials in the target media content. The at least some materials include the first material. The materials in the target media content include at least one of video and image.

[0188] According to one or more embodiments of this disclosure, Example 20 provides an electronic device, including:

[0189] One or more processors;

[0190] Memory, used to store one or more programs.

[0191] When the one or more programs are executed by the one or more processors, the one or more processors implement the method of editing media content as described in any of Examples 1-18.

[0192] According to one or more embodiments of the present disclosure, Example 21 provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements a method for editing media content as described in any of Examples 1-18.

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

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

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

Claims

1. A method for editing media content, characterized in that, include: The editing interface displays a preview of the first material in the target media content, wherein the target media content includes at least video material and image material; In response to a first trigger operation within the editing interface, an adjustment interface is displayed. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content, wherein the at least a portion of the material includes the first material. The adjustment interface includes a frame adjustment interface and / or a duration adjustment interface, and the display adjustment interface includes: In response to the first material being the video type, a duration adjustment interface is displayed; In response to the first material being an image of the specified type, a frame adjustment interface is displayed; The method further includes: A preview of the target media content is displayed in the second area of ​​the aspect ratio adjustment interface; In response to a first adjustment operation performed within the aspect ratio adjustment interface, the aspect ratio of the current material is adjusted to the target aspect ratio corresponding to the first adjustment operation. In response to a fourth adjustment operation performed within the aspect ratio adjustment interface, the aspect ratio of at least a portion of the target media content, excluding the current material, is adjusted to the target aspect ratio.

2. The method according to claim 1, characterized in that, Also includes: The first area of ​​the duration adjustment interface displays at least a portion of the material's edit track segments and / or thumbnails, wherein the edit track segments are displayed in a collapsed state; A progress control is displayed in the second area of ​​the aspect ratio adjustment interface. The progress control is used to adjust the preview progress of the target media content.

3. The method according to claim 2, characterized in that, After displaying edit track clips and / or thumbnails of at least a portion of the footage in the first area of ​​the duration adjustment interface, it also includes: In response to a second trigger operation on the first edit track segment, the first edit track segment is switched from a collapsed state to an expanded state, and the first edit track segment in the expanded state is displayed in a preset sub-region of the first region. The edit track segment in the expanded state is used to adjust the duration of the material corresponding to the edit track segment in the expanded state.

4. The method according to claim 3, characterized in that, The edit track segment is displayed as a thumbnail when it is in a collapsed state; the step of switching the first edit track segment from a collapsed state to an expanded state includes: Expand the first thumbnail displayed in the collapsed state of the first edit track segment into a first thumbnail image set, wherein the first thumbnail image set corresponds to multiple keyframes of the second material, and the second material is the material corresponding to the first edit track segment.

5. The method according to claim 4, characterized in that, Users can swipe to switch between the thumbnail atlas displayed when the edit track segment is in the expanded state and the thumbnail displayed when the edit track segment is in the collapsed state.

6. The method according to claim 3, characterized in that, Also includes: In response to a second trigger operation on the first edit track segment, the display of edit track segments other than the first edit track segment in the duration adjustment interface is cancelled; or In response to a second trigger operation on the first edit track segment, the display position of the edit track segments other than the first edit track segment in the duration adjustment interface is adjusted according to the display position of the first edit track segment.

7. The method according to claim 6, characterized in that, Adjusting the display position of editing track segments other than the first editing track in the duration adjustment interface based on the display position of the first editing track segment includes: Control the editing track segment located on the first side of the first editing track segment to move out of the preset sub-region along a first direction, and / or control the editing track segment located on the second side of the first editing track segment to move out of the preset sub-region along a second direction.

8. The method according to claim 3, characterized in that, After displaying the expanded first edit track segment in a preset sub-region of the first region, the following is also included: In response to a third trigger operation, the edit track segment displayed in the preset sub-area is switched from the first edit track segment to the second edit track segment, wherein the second edit track segment is the edit track segment corresponding to the third trigger operation, and the second edit track segment is displayed in an expanded state in the preset sub-area.

9. The method according to claim 8, characterized in that, When the edit track segment is in an expanded state, it is displayed as a thumbnail atlas. Switching the edit track segment displayed in the preset sub-region from the first edit track segment to the second edit track segment includes: The first thumbnail atlas displayed in the preset sub-region is switched to the second thumbnail atlas. The first thumbnail atlas is the thumbnail atlas displayed when the first edit track segment is in the expanded state, and the second thumbnail atlas is the thumbnail atlas displayed when the second edit track is in the expanded state.

10. The method according to claim 8, characterized in that, The third triggering operation includes a preset sliding operation applied to the preset sub-region, a triggering operation for the second edit track segment, or a triggering operation applied to an associated sub-region corresponding to the second edit track segment, wherein the associated sub-region is a sub-region associated with the preset sub-region.

11. The method according to claim 2, characterized in that, The first area also displays preset controls, and after the first area of ​​the duration adjustment interface displays at least a portion of the edit track clips and / or thumbnails of the footage, it also includes at least one of the following: In response to the sequence adjustment operation performed on the duration adjustment interface, the arrangement order of at least some of the materials in the target media content is adjusted, and the preset control is de-displayed during the execution of the sequence adjustment operation; In response to a second trigger operation on the first edit track segment, the preset controls are de-displayed.

12. The method according to claim 1, characterized in that, The second area of ​​the aspect ratio adjustment interface displays a preview of the target media content, including at least one of the following: If the target media content contains only one piece of material, then a preview of the first material and a first progress control are displayed in the second area of ​​the aspect ratio adjustment interface. The first progress control is used to adjust the preview progress of the first material. If the target media content contains at least two clips, a preview of the third clip in the target media content and a second progress control are displayed in the second area of ​​the aspect ratio adjustment interface. The second progress control is used to switch the current clip previewed in the second area.

13. The method according to claim 12, characterized in that, The second area includes the display area of ​​the target media content.

14. The method according to claim 12, characterized in that, The second progress control displays a second thumbnail corresponding to at least some of the materials, and the second thumbnail is used to trigger a preview screen of the corresponding materials to be displayed in the second area.

15. The method according to claim 14, characterized in that, After displaying a preview of the third material in the target media content and a second progress control in the second area of ​​the aspect ratio adjustment interface, the interface further includes: In response to a fourth trigger operation targeting the target thumbnail in the second progress control, a preview of a fourth material is displayed in the second area of ​​the aspect ratio adjustment interface. The fourth material is the material corresponding to the target thumbnail.

16. The method according to claim 1, characterized in that, After displaying a preview of the target media content in the second area of ​​the aspect ratio adjustment interface, it also includes at least one of the following: In response to a second adjustment operation performed within the aspect ratio adjustment interface, the image of the current material is mirrored. In response to a third adjustment operation performed within the frame adjustment interface, the image of the current material is rotated by a preset angle along a preset direction.

17. A media content editing device, characterized in that, include: The preview module is used to display a preview of the first material in the target media content in the editing interface. The target media content includes at least video material and image material. The interface display module is used to display an adjustment interface in response to a first trigger operation performed within the editing interface. The adjustment interface corresponds to the material type of the first material. The adjustment interface is used to adjust at least one of the duration and aspect ratio of at least a portion of the material in the target media content. The at least a portion of the material includes the first material. The adjustment interface includes a frame adjustment interface and / or a duration adjustment interface, and the interface display module is specifically used for: In response to the first material being the video type, a duration adjustment interface is displayed; In response to the first material being an image of the specified type, a frame adjustment interface is displayed; The device further includes: The second interface display unit is used to display a preview of the target media content in the second area of ​​the aspect ratio adjustment interface; The first aspect ratio adjustment module is used to respond to a first adjustment operation performed within the aspect ratio adjustment interface and adjust the aspect ratio of the current material to the target aspect ratio corresponding to the first adjustment operation. The second aspect ratio adjustment module is used to respond to the fourth adjustment operation performed within the aspect ratio adjustment interface to adjust the aspect ratio of at least a portion of the target media content, excluding the current material, to the target aspect ratio.

18. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method for editing media content according to any one of claims 1-16.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for editing the media content according to any one of claims 1-16.