Transition effect processing method and device, electronic equipment, and storage medium

By adding new segments to the target editing track to form the third and fourth media segments, the problem of media segment duration changes caused by overlay transition effects was solved, and time consistency was achieved when overlaying transition effects.

CN119729111BActive Publication Date: 2026-07-21BEIJING 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-09-28
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing technologies, when applying overlay transition effects to adjacent audio and video clips, cause changes in the total duration of the media clips, affecting the audio and video editing effect.

Method used

By adding new segments to adjacent media segments on the target editing track, third and fourth media segments are formed, and an overlay transition effect is generated at their overlap, while keeping the positions of the first and second media segments on the track unchanged.

Benefits of technology

This ensures that the total duration of adjacent media segments remains unchanged after overlaying transition effects, thus guaranteeing the time consistency of audio and video editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729111B_ABST
    Figure CN119729111B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a transition effect processing method and device, electronic equipment and a storage medium. The method comprises determining a first media clip and a second media clip specified by a target transition task; in response to a first operation for triggering an overlay transition effect on the target transition task, determining a third media clip and a fourth media clip placed in a target edit track, the third media clip being composed of the first media clip and a first new clip spliced after the first media clip, and the fourth media clip being composed of the second media clip and a second new clip spliced before the second media clip; and forming an overlay transition effect in an overlapping part between the third media clip and the fourth media clip. The present scheme can keep the total duration of the adjacent two media clips after the overlay transition effect unchanged.
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 in particular to a method, apparatus, electronic device, and storage medium for processing transition effects. Background Technology

[0002] Short video apps not only offer video shooting functionality, but also provide extended features such as adding special effects, filters, and props. For example, during audio and video editing, you can add overlay transition effects between adjacent audio and video clips.

[0003] The relevant solutions require analyzing adjacent audio and video segments to be processed and generating overlay transition effects between them, which is time-consuming and labor-intensive. Furthermore, since the overlay transition effects are usually generated by overlaying a portion of the content of the previous audio and video segment with a portion of the content of the next audio and video segment, the duration of the audio and video segment after the overlay transition will change, which will affect the audio and video editing and result in the inability to obtain suitable audio and video segments. Summary of the Invention

[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for processing transition effects, so as to ensure that the total duration of the media segments does not change when overlaying transition effects on two adjacent media segments.

[0005] In a first aspect, embodiments of this disclosure provide a method for processing transition effects, the method comprising:

[0006] Determine the first media segment and the second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment on the target editing track;

[0007] In response to a first operation for triggering overlay transition effects on a target transition task, a third media segment and a fourth media segment are determined to be placed on the target editing track. The third media segment consists of a first media segment and a first newly added segment connected along the timeline after the first media segment. The fourth media segment consists of a second media segment and a second newly added segment connected along the timeline before the second media segment. When the first operation is triggered, the positions of the first media segment and the second media segment on the target editing track remain unchanged.

[0008] An overlay transition effect is created at the overlap between the third and fourth media segments.

[0009] Secondly, this disclosure also provides a transition effects processing device, the device comprising:

[0010] The first determining module is used to determine the first media segment and the second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment on the target editing track;

[0011] The second determining module is used to respond to a first operation for triggering overlay transition effects on a target transition task, and to determine a third media segment and a fourth media segment placed on the target editing track. The third media segment consists of a first media segment and a first newly added segment connected after the first media segment. The fourth media segment consists of a second media segment and a second newly added segment connected before the second media segment. When the first operation is triggered, the positions of the first media segment and the second media segment on the target editing track remain unchanged.

[0012] The generation module is used to create an overlay transition effect in the overlapping portion between the third and fourth media segments.

[0013] Thirdly, this disclosure also provides an electronic device, the electronic device comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the transition effects processing method described in any of the above embodiments.

[0017] Fourthly, this disclosure also provides a computer-readable medium storing computer instructions for causing a processor to execute the transition effects processing method described in any of the above embodiments.

[0018] In this embodiment, a target transition task is created to edit media segments. By adding a first new segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and adding a second new segment to the beginning of a second media segment to form a corresponding fourth media segment, the end portion of the third media segment corresponding to the first media segment and the beginning portion of the fourth media segment corresponding to the second media segment can be superimposed. This achieves a clear superimposed transition effect where the image of the next media segment gradually appears as the image of the previous media segment gradually fades away. Since the positions of the first and second media segments on the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect remains unchanged.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

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

[0021] Figure 1 This is a schematic flowchart of a transition effects processing method provided in an embodiment of this disclosure;

[0022] Figure 2a This is a schematic diagram of an editing track interface applicable to the embodiments of this disclosure;

[0023] Figure 2b This is a schematic diagram illustrating the application of overlay transition effects between adjacent media segments in an embodiment of this disclosure;

[0024] Figure 2c This is a schematic diagram of another editing track interface applicable to the embodiments of this disclosure;

[0025] Figure 2d This is a schematic diagram illustrating the configuration of overlaying transition effects in an editing track interface applicable to the embodiments of this disclosure;

[0026] Figure 2e This is a schematic diagram of the interface effect of an overlay transition effect applicable to an embodiment of this disclosure;

[0027] Figure 3 This is a schematic diagram of another transition effect processing method provided in this embodiment of the disclosure;

[0028] Figure 4 This is a comparative schematic diagram of media segments in a transition effect processing method applicable to an embodiment of this disclosure;

[0029] Figure 5a This is a schematic diagram of a curve speed change configuration in a transition effect processing method applicable to an embodiment of this disclosure;

[0030] Figure 5b This is a schematic diagram illustrating the role of curve speed change in a transition effect processing method applicable to an embodiment of this disclosure;

[0031] Figure 6 This is a schematic diagram of the structure of a transition effects processing device provided in an embodiment of this disclosure;

[0032] Figure 7 This is a schematic diagram of the structure of an electronic device that implements a transition effects processing method according to an embodiment of this disclosure. Detailed Implementation

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

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

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

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

[0037] 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".

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

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

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

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

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

[0043] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0044] Figure 1 This is a flowchart illustrating a transition effect processing method provided in an embodiment of the present disclosure. This embodiment is applicable to the situation where overlapping transition effects are added between two adjacent media segments. The method can be executed by a transition effect processing device, which can be implemented in the form of software and / or hardware, and is generally integrated on any electronic device with network communication function, such as a mobile terminal, PC, or server.

[0045] like Figure 1 As shown, the transition effects processing method of this disclosure embodiment may include the following process:

[0046] S110. Determine the first media segment and the second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment on the target editing track.

[0047] See Figure 2aThe target editing track in the editing interface displays multiple media clips, which can be audio or video clips. Each media clip on the target editing track can be a cropped or uncropped clip. When a transition effect needs to be added between two adjacent media clips, a target transition task can be created, specifying a first media clip 201 and a second media clip 202. By executing the target transition task, a transition effect can be achieved when transitioning from the first media clip 201 to the second media clip 202.

[0048] See Figure 2a The first media segment 201 and the second media segment 202 can be two media segments selected and trimmed from multiple media segments presented on the target editing track, and adjacent to each other on the target editing track. The second media segment 202 is located after the first media segment 201 on the target editing track, and the end of the first media segment 201 is connected to the beginning of the second media segment 202.

[0049] S120, in response to a first operation for triggering an overlay transition effect on a target transition task, a third media segment and a fourth media segment placed on a target editing track are determined. The third media segment consists of a first media segment and a first newly added segment connected along the timeline after the first media segment. The fourth media segment consists of a second media segment and a second newly added segment connected along the timeline before the second media segment. When the first operation is triggered, the positions of the first media segment and the second media segment on the target editing track remain unchanged.

[0050] See Figure 2a For the first media clip 201 and the second media clip 202 specified in the target transition task, a superimposed transition effect is triggered to provide a superimposed transition effect when transitioning from the scene corresponding to the first media clip 201 to the scene corresponding to the second media clip 202. Since configuring the superimposed transition effect typically involves overlaying the scene of the preceding media clip with the scene of the following media clip, with the scene of the preceding media clip gradually fading out and the scene of the following media clip gradually appearing, the total duration of the media clip after the superimposed transition will change, affecting the editing of the media clip.

[0051] For this reason, see Figure 2bWhen this application triggers the addition of overlay transition effects to the first media segment 201 and the second media segment 202 specified for the target transition task, it no longer simply overlays the part of the first media segment 201 near the end with the part of the second media segment 202 near the beginning. Instead, it selects to connect a first newly added segment 205 after the first media segment along the timeline corresponding to the target editing track. The first newly added segment 205 and the original first media segment 201 form a third media segment corresponding to the first media segment. At the same time, a second newly added segment 204 is connected before the second media segment 202 along the timeline corresponding to the target editing track. The second newly added segment 204 and the original second media segment 202 form a fourth media segment corresponding to the second media segment.

[0052] Optionally, the first newly added segment 205 and the segment at the end of the first media segment have a sequential relationship in terms of image continuity, and the second newly added segment 204 and the segment at the beginning of the second media segment have a sequential relationship in terms of image continuity.

[0053] Also see Figure 2a and Figure 2c For the first media segment in the third media segment and the second media segment in the fourth media segment, before and after the first operation of triggering the overlay transition effect for the target transition task, the positions of the first media segment and the second media segment on the target editing track remain unchanged. That is, after the end position of the first media segment placed on the target editing track, a first newly added segment 205 is connected, and before the beginning position of the second media segment 202 placed on the target editing track, a second newly added segment 204 is connected, ensuring that the total duration of the media segments remains unchanged before and after the overlay transition effect is performed.

[0054] Optionally, the second newly added segment is determined based on the cropped segment that was cropped after the first media segment when the first media segment is formed by cropping, and the second newly added segment is determined based on the cropped segment that was cropped before the second media segment when the second media segment is formed by cropping.

[0055] As an optional but non-limiting implementation, the first operation for triggering overlay transition effects on a target transition task includes triggering an operation on the identifier of the overlay transition effect selected in the transition effect selection area corresponding to the target transition task; the transition effect selection area corresponding to the target transition task is presented when the identifier of the target transition task is triggered, and the identifier of the target transition task is configured to be presented at the connection position of two adjacent media segments selected on the target editing track.

[0056] See Figure 2dOn the target editing track, adjacent positions of the first media segment 201 and the second media segment 202 are marked with identifiers for the target transition tasks corresponding to the first media segment 201 and the second media segment 202. In response to a trigger operation on the identifiers of the target transition tasks corresponding to the first media segment 201 and the second media segment 202, the transition effect selection area corresponding to the target transition task is displayed. The transition effect selection area contains multiple transition effect identifiers, such as push transition effects, flash-to-black transition effects, and dissolve transition effects (also known as overlay transition effects). Specifically, the first operation can be the trigger operation of the identifier of the overlay transition effect selected in the transition effect selection area corresponding to the target transition task.

[0057] See Figure 2d Optionally, the first operation for triggering the overlay transition effect on the target transition task also includes configuring and triggering the transition duration in the transition effect selection area corresponding to the target transition task. For example, the transition effect selection area is also configured with a transition duration adjuster. Adjusting the progress in the transition duration adjuster can adjust the transition duration between the first media segment and the second media segment, so that the duration of the overlay transition effect between the third media segment corresponding to the first media segment and the fourth media segment corresponding to the second media segment is equal to the target transition duration, or so that the duration of the overlapping portion between the third media segment corresponding to the first media segment and the fourth media segment corresponding to the second media segment is equal to the target transition duration.

[0058] As an optional but non-limiting implementation, determining the first and second media segments specified by the target transition task includes the following steps:

[0059] Presenting at least two media segments on the target editing track, and in response to a second operation that triggers a target transition task on two adjacent selected media segments in the at least two media segments, determining the first media segment and the second media segment specified by the target transition task.

[0060] See Figure 2c In response to adding media materials from the media library, the system retrieves at least two media materials corresponding to the addition operation and displays an editing interface. The editing interface presents a target editing track, and at least two media segments formed based on the two media materials corresponding to the addition operation are placed on the target editing track. These media segments can be audio or video segments. Furthermore, the system selects a first and a second adjacent media segment on the target editing track and triggers a second operation of the target transition task on the selected two media segments. The system then determines the first and second media segments specified by the target transition task corresponding to the second operation.

[0061] Optionally, the second operation of triggering a target transition task for two selected adjacent media segments in at least two media segments includes triggering an operation for an identifier of the target transition task for the two selected adjacent media segments on the target editing track; the identifier of the target transition task is configured to be displayed at the connection position of the two selected adjacent media segments on the target editing track.

[0062] See Figure 2d On the target editing track, the adjacent positions of the first media segment 201 and the second media segment 202 are marked with the identifiers of the target transition tasks corresponding to the first media segment 201 and the second media segment 202. The second operation is a trigger operation on the identifiers of the target transition tasks corresponding to the selected adjacent first media segment 201 and the second media segment 202 on the target editing track. When the trigger operation is performed on the identifiers of the target transition tasks, the selection area of ​​the transition effects corresponding to the target transition tasks is displayed.

[0063] S130, A superimposed transition effect is formed in the overlapping part between the third media segment and the fourth media segment.

[0064] Optionally, when the overlapping portion between the third and fourth media segments is positioned on the target editing track for display, a transition overlay effect is presented on the overlapping portion. For example, when the playhead is positioned on the overlapping portion between the third and fourth media segments on the target editing track, a transition overlay effect is presented on the overlapping portion of the third and fourth media segments on the target editing track.

[0065] Optionally, when the playhead position is positioned within a first preset time range of the third media segment on the target editing track, an overlay transition effect is presented at the playhead position on the target editing track. The first preset time range is determined based on the time of the overlap between the third and fourth media segments. When the playhead position is positioned within a second preset time range of the fourth media segment on the target editing track, an overlay transition effect is presented at the playhead position on the target editing track. The second preset time range is determined based on the time of the overlap between the fourth and third media segments.

[0066] See Figure 2b and Figure 2eOn the target editing track, the overlapping portion of the second newly added segment 204 in the fourth media segment and the first media segment 201 exhibits a first-part overlay transition effect, and the overlapping portion of the first newly added segment 205 in the third media segment and the second media segment 202 exhibits a second-part overlay transition effect. The first and second part overlay transition effects together form the overlay transition effect between the first media segment 201 and the second media segment 202. For example, when the playhead is moved to a position on the first media segment close to the second media segment on the target editing track... Figure 2e The second newly added segment 204, which appears faintly in the frame of the first media segment 201 and is connected to the first media segment, is shown in the frame.

[0067] Based on the above embodiments, optionally, after the overlay transition effect is formed at the overlapping portion between the third media segment and the fourth media segment, the method further includes:

[0068] The target output is generated based on the third and fourth media segments. The target output is either a draft preview before the media segments are exported or the target video after the media segments are exported.

[0069] See Figure 2b and Figure 2e The editing interface displays a preview area. The preview player in the preview area can be used to preview the draft previews of the third and fourth media clips on the target editing track before export. When the preview player is used to preview the overlapping portion of the third and fourth media clips, a superimposed transition effect is displayed. See also... Figure 2b and Figure 2e In response to the video export operation of the third and fourth media segments, the third and fourth media segments on the target editing track can be combined into video segments according to the timeline order corresponding to the target editing track and exported as a target video with overlay transition effects in the overlapping part between the third and fourth media segments.

[0070] The technical solution of this disclosure creates a target transition task for editing media segments. By adding a first new segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and adding a second new segment to the beginning of a second media segment to form a corresponding fourth media segment, the end portion of the third media segment corresponding to the first media segment and the beginning portion of the fourth media segment corresponding to the second media segment can be superimposed. This achieves a clear superimposed transition effect where the image of the next media segment gradually appears as the image of the previous media segment gradually fades away. Since the positions of the first and second media segments on the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect remains unchanged.

[0071] Figure 3 This is a flowchart illustrating another transition effect processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment further optimizes the process of determining the third media segment and the fourth media segment placed on the target editing track in the foregoing embodiments based on the above embodiments. This embodiment can be combined with various optional solutions in one or more of the above embodiments.

[0072] like Figure 3 As shown, the transition effects processing method of this disclosure embodiment may include the following process:

[0073] S310. Determine the first media segment and the second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment on the target editing track.

[0074] S320, in response to a first operation for triggering overlay transition effects on a target transition task, determine the target transition duration corresponding to the target transition task.

[0075] S330. Based on the target transition duration and the duration of the first media segment, the media segment is extracted from the first media material from the starting point to the ending point to obtain the third media segment placed on the target editing track. The first media material is the media segment before trimming used when the first media segment is formed by trimming. The third media segment consists of the first media segment and the first newly added segment connected after the first media segment.

[0076] See Figure 4 The first media material 206 corresponding to the first media segment is determined. The first media material 206 is the media segment before trimming used when forming the first media segment through cropping. In the first media material 206, starting from the starting point of the first media segment 201 and moving towards the ending point (e.g., ...), ... Figure 4Media segments are extracted from the first media material 206 (from left to right). By extracting media segments from the first media material 206, media segments can be added after the first media segment. In this way, the first newly added segment 205 can be connected after the first media segment 201 to obtain the third media segment 208, which is composed of the first media segment 201 and the first newly added segment 205 connected after the first media segment.

[0077] S340. Based on the target transition duration and the duration of the second media segment, a media segment is extracted from the second media material from the end point of the second media segment toward the start point to obtain a fourth media segment placed on the target editing track. The second media material is the media segment before trimming used when the second media segment is formed by trimming. The fourth media segment consists of the second media segment and a second newly added segment connected before the second media segment. When the first operation is triggered, the positions of the first media segment and the second media segment on the target editing track remain unchanged.

[0078] See Figure 4 The second media material 207 corresponding to the second media segment is determined. The second media material 207 is the media segment before trimming used when forming the second media segment through cropping. In the second media material 207, the direction starts from the end point of the second media segment 202 and moves towards the starting point (e.g., ...). Figure 4 The media clip is extracted from the second media material 207 (from right to left). By extracting the media clip from the second media material 207, a supplementary media clip is added before the second media clip. In this way, the second newly added clip 204 can be connected before the second media clip 202, resulting in the fourth media clip 209 composed of the second media clip 202 and the second newly added clip 204 connected before the second media clip.

[0079] Optionally, the duration of the first newly added segment in the third media segment is equal to half the target transition duration, and the duration of the second newly added segment in the fourth media segment is equal to half the target transition duration. Optionally, the duration of the first newly added segment in the third media segment is less than half the target transition duration, the duration of the second newly added segment in the fourth media segment is greater than half the target transition duration, and the sum of the durations of the first and second newly added segments equals the target transition duration. Optionally, the duration of the first newly added segment in the third media segment is greater than half the target transition duration, the duration of the second newly added segment in the fourth media segment is less than half the target transition duration, and the sum of the durations of the first and second newly added segments equals the target transition duration.

[0080] Optionally, the third media segment placed on the target editing track can be represented by the start and end times of the first media segment on the target editing track, as well as the start and end times of the third media segment relative to the first media material. The first media material is the media segment before trimming used when forming the first media segment through cropping. The fourth media segment placed on the target editing track can be represented by the start and end times of the second media segment on the target editing track, as well as the start and end times of the fourth media segment relative to the second media material. The second media material is the media segment before trimming used when forming the second media segment through cropping.

[0081] As an optional but non-limiting implementation, the first newly added segment is determined based on the first cropped segment. The first cropped segment is the media segment that is cropped after the first media segment when the first media material is cropped to form the first media segment. The first media material is the media segment before cropping used when the first media segment is formed by cropping.

[0082] Optionally, the duration of the first newly added segment following the first media segment is a first preset duration, and the duration of the second newly added segment preceding the second media segment is a second preset duration. The sum of the first and second preset durations equals the target transition duration. The first and second preset durations may be the same or different. Based on this, when the duration of the first cropped segment is greater than or equal to the first preset duration, the first newly added segment consists of a portion of the media segments from the first cropped segment. In this case, the duration of the media segment cropped from the end of the first media segment in the first media material is greater than or equal to the first preset duration, and the first cropped segment is sufficient to supplement the media segment after the first media segment.

[0083] Optionally, the duration of the first newly added segment following the first media segment is a first preset duration, and the duration of the second newly added segment preceding the second media segment is a second preset duration. The sum of the first preset duration and the second preset duration equals the target transition duration. The first preset duration and the second preset duration may be the same or different. Based on this, when the duration of the first cropped segment is less than the first preset duration, the first newly added segment consists of all media segments in the first cropped segment and the ending frame in the first cropped segment. In this case, the duration of the media segment cropped from the end of the first media segment in the first media material is less than the first preset duration, indicating that if only the first cropped segment is used, it is insufficient to complete the media segment after the first media segment; therefore, further supplementation is needed using the ending frame in the first cropped segment.

[0084] See Figure 2bTaking a first preset duration equal to a second preset duration as an example, when the duration of the first cropped segment is less than the first preset duration (half of the target transition duration), the second newly added segment 204 includes the first cropped segment and the ending frame of the first cropped segment as still frames. The duration of the second newly added segment is equal to half of the target transition duration. The duration of the second newly added segment satisfies the following: Tstatic = (Ttransition / 2) - Ttrim, where Tstatic represents the duration of the ending frame of the first cropped segment as a still frame, Ttransition represents half the duration of the second newly added segment, and Ttrim represents the duration of the first cropped segment. Both the transition duration and the duration of the cropped first segment can be obtained in the UI layer. Therefore, when adjusting the transition duration, the UI layer can calculate and adjust the screen in real time, and then lock it in place when the user releases the button.

[0085] As an optional but non-limiting implementation, the second newly added segment is determined based on the second cropped segment, which is the media segment that was cropped before the second media segment when the second media material is cropped to form the second media segment, and the second media material is the media segment before cropping used when the second media segment is formed by cropping.

[0086] Optionally, the duration of the first newly added segment following the first media segment is a first preset duration, and the duration of the second newly added segment preceding the second media segment is a second preset duration. The sum of the first and second preset durations equals the target transition duration. The first and second preset durations may be the same or different. Based on this, when the duration of the second cropped segment is greater than or equal to the second preset duration, the second newly added segment is composed of a portion of the media segments from the second cropped segment. In this case, the duration of the media segments cropped from the beginning of the second media segment in the second media material is greater than or equal to the second preset duration, and the media segments can be supplemented before the second media segment simply by using the second cropped segment.

[0087] Optionally, the duration of the first newly added segment following the first media segment is a first preset duration, and the duration of the second newly added segment preceding the second media segment is a second preset duration. The sum of the first preset duration and the second preset duration equals the target transition duration. The first preset duration and the second preset duration may be the same as or different from each other. Based on this, when the duration of the second cropped segment is less than the second preset duration, the second newly added segment consists of all media segments in the second cropped segment and the starting frame in the second cropped segment. In this case, the duration of the media segments cropped from the beginning of the second media segment in the second media material is less than the second preset duration, indicating that if only the second cropped segment is used, it is insufficient to complete the media segments before the second media segment; therefore, further supplementation is required using the starting frame in the second cropped segment.

[0088] Optionally, when the duration of the first cropped segment is zero, the first newly added segment consists only of still frames extracted from the first media segment, and the first cropped segment is the media segment that was cropped after the first media segment when the first media segment was formed by cropping the first media material. When the duration of the second cropped segment is zero, the second newly added segment consists only of still frames extracted from the second media material, and the duration of the second cropped segment is the media segment that was cropped before the second media segment when the second media segment was formed by cropping the second media material.

[0089] Optionally, the start point time TrimIn of the third media clip relative to the first media clip and the start point time TrimIn of the fourth media clip relative to the second media clip are calculated as follows:

[0090] The time TrimIn relative to the start point of the third media segment and the first media material can be calculated directly using source_time_range().start()*speed().

[0091] The start time of the fourth media segment relative to the first media material is TrimIn: (1) When the target transition start time of the first media segment and the second media segment is less than the start time of the second media material, the duration of the second clipped segment cut from the second media material is less than half of the target transition duration, and still frames are needed to supplement it. The start time of the third media segment relative to the first media material is expressed as follows: D TrimIn =T startTransition -(T) startTarget -f(t)T startSource (2) When the target transition start time of the first media segment and the second media segment is greater than or equal to the start time of the second media material, the duration of the second cropped segment cut from the second media material is greater than or equal to half of the target transition duration, and no still frame supplementation is required. The third media segment is represented by the following relationship relative to the start time of the first media material: D TrimIn =T startTransition -(T) startTarget -f(t)T startSource ).

[0092] Optionally, the calculation of the termination point time TrimOut of the third media clip relative to the first media clip and the termination point time TrimOut of the fourth media clip relative to the second media clip is as follows:

[0093] The TrimOut time of the third media clip relative to the first media clip is as follows:

[0094] D TrimOut=f(t)Ts tartSource +T durationSource + T durationTransiti / 2.

[0095] The TrimOut time of the fourth media clip relative to the second media clip is as follows:

[0096] D TrimOut = f(t)T startSource + T durationSource

[0097] Among them, the speed change coefficient f(t): when changing speed on a curve, the value of f(t) is the reciprocal of the speed change value at the critical point of non-transfer; when changing speed on a regular basis, the value of f(t) is the reciprocal of the speed change value.

[0098] S350, A superimposed transition effect is formed in the overlapping part between the third media segment and the fourth media segment.

[0099] As an optional but non-limiting implementation, generating the target output based on the third and fourth media segments includes the following steps A1-A3:

[0100] Step A1: In response to the third operation of triggering speed configuration for the first media segment in the third media segment on the target editing track, add a first curve speed change to the first media segment in the third media segment and add the end point speed change corresponding to the first curve speed change to the first newly added segment in the third media segment.

[0101] Optionally, the third operation includes triggering an operation on a flag for speed configuration that is displayed for the first media segment in the third media segment on the target editing track. The flag for speed configuration that is displayed for the first media segment is displayed based on the selection operation of the first media segment in the third media segment on the target editing track.

[0102] See Figure 5a The identifier for speed configuration corresponding to the first media segment is displayed based on the selection operation of the first media segment 201 in the third media segment on the target editing track, such as the identifier for regular speed change and curve speed change. This then triggers the operation of the identifier for speed configuration corresponding to the first media segment 201 in the third media segment on the target editing track.

[0103] See Figure 5bThe process involves displaying the first media segment within the third media segment and applying a first speed curve to it. For a newly added segment following the first media segment, the speed curve applied to the first media segment before the transition is applied to the newly added segment following the first media segment. Specifically, the first speed curve applies to the first media segment, and after cropping or extending it, it applies to the first media segment within the third media segment. After adding a transition, an extended portion, a cropped portion, and a still frame portion are generated. The speed change rate of the extended portion of the newly added segment is the speed value at the end of the first speed curve.

[0104] Step A2: In response to the fourth operation of triggering speed configuration for the second media segment in the fourth media segment on the target editing track, add a second curve speed change to the second media segment in the fourth media segment and add the start and end point speed changes corresponding to the second curve speed change to the second newly added segment in the fourth media segment.

[0105] Optionally, the fourth operation includes triggering an operation on the identifier for speed configuration that is displayed for the second media segment in the fourth media segment on the target editing track. The identifier for speed configuration that is displayed for the second media segment is displayed based on the selection operation of the second media segment in the fourth media segment on the target editing track.

[0106] See Figure 5b The process involves displaying the second media segment within the fourth media segment and adding a second speed curve to it. For the newly added second segment preceding the second media segment, the speed curve's initial and final speed values ​​(the same as those used in the second media segment before the transition) are applied. This speed change is then applied to the newly added second segment preceding the second media segment. Specifically, the second speed curve, after being cropped or extended, is applied to the second media segment within the fourth media segment. After adding a transition, an extended portion, a cropped portion, and a still frame portion are generated. The speed change rate of the extended portion of the newly added second segment is the initial and final speed values ​​of the second speed curve.

[0107] Step A3: Generate the target output result based on the third media clip, the speed change corresponding to the third media clip, the fourth media clip, and the speed change corresponding to the fourth media clip. The target output result is either a draft preview before the media clip is exported or the target video after the media clip is exported.

[0108] Optionally, the speed control panel will extend the newly added segment proportionally to the corresponding duration. The beginning (left) end point of the extended second newly added segment or the end (right) end point of the first newly added segment cannot be adjusted. No speed change point can be added between the beginning (left) end point of the second newly added segment and the beginning end point of the second media segment. Adjusting the speed change rate of the beginning end point of the second media segment will change the speed change rate of the left end point of the second newly added segment, and the beginning end point of the second newly added segment will be recalculated according to the new speed change rate. Similarly, no speed change point can be added between the end (right) end point of the first newly added segment and the end point of the first media segment. Adjusting the speed change rate of the end point of the first media segment will change the speed change rate of the right end point of the first newly added segment, and the end end point of the first newly added segment will be recalculated according to the new speed change rate.

[0109] As an optional but non-limiting implementation, before generating the target output result based on the third media segment, the speed change corresponding to the third media segment, the fourth media segment, and the speed change corresponding to the fourth media segment, it also includes: performing keying, flicker removal, noise reduction, image stabilization, and motion tracking on the first and second newly added segments.

[0110] The technical solution of this disclosure creates a target transition task for editing media segments. By adding a first new segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and adding a second new segment to the beginning of a second media segment to form a corresponding fourth media segment, the end portion of the third media segment corresponding to the first media segment and the beginning portion of the fourth media segment corresponding to the second media segment can be superimposed. This achieves a clear superimposed transition effect where the image of the next media segment gradually appears as the image of the previous media segment gradually fades away. Since the positions of the first and second media segments on the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect remains unchanged.

[0111] Figure 6 This is a schematic diagram of a transition effects processing device provided in an embodiment of the present disclosure. The embodiments of the present disclosure are applicable to the situation of adding superimposed transition effects to two adjacent media segments. The transition effects processing device can be implemented in the form of software and / or hardware, and is generally integrated on any electronic device with network communication function, such as a mobile terminal, PC, or server.

[0112] like Figure 6 As shown, the transition effects processing apparatus of this embodiment may include the following: a first determining module 610, a second determining module 620, and a generating module 630. Wherein:

[0113] The first determining module 610 is used to determine the first media segment and the second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment on the target editing track;

[0114] The second determining module 620 is configured to, in response to a first operation for triggering overlay transition effects on a target transition task, determine a third media segment and a fourth media segment placed on the target editing track. The third media segment consists of a first media segment and a first newly added segment connected along the timeline after the first media segment. The fourth media segment consists of a second media segment and a second newly added segment connected along the timeline before the second media segment. When the first operation is triggered, the positions of the first media segment and the second media segment on the target editing track remain unchanged.

[0115] The generation module 630 is used to create an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment.

[0116] Optionally, based on the above embodiments, after the overlapping portion between the third media segment and the fourth media segment forms a superimposed transition effect, the method further includes:

[0117] A target output result is generated based on the third media segment and the fourth media segment. The target output result is either a draft preview before the media segment is exported or a target video after the media segment is exported.

[0118] Based on the above embodiments, optionally, determining the first media segment and the second media segment specified by the target transition task includes:

[0119] Present at least two media clips on the target editing track;

[0120] In response to a second operation that triggers a target transition task on two adjacent selected media segments in at least two media segments, the first media segment and the second media segment specified by the target transition task are determined.

[0121] Based on the above embodiments, optionally, the second operation includes a triggering operation for the identifier of a target transition task for two adjacent media segments selected on the target editing track;

[0122] The identifier for the target transition task is configured to appear at the connection point between two adjacent media segments selected on the target editing track.

[0123] Based on the above embodiments, optionally, the first operation includes a triggering operation on the identifier of the overlay transition effect selected in the transition effect selection area corresponding to the target transition task.

[0124] Optionally, based on the above embodiments, the first operation may further include configuring and triggering the transition duration in the transition effect selection area corresponding to the target transition task.

[0125] Based on the above embodiments, optionally, the third and fourth media segments placed on the target editing track are determined, including:

[0126] Determine the target transition duration corresponding to the target transition task;

[0127] Based on the target transition duration and the duration of the first media segment, the media segment is extracted from the first media material from the starting point to the ending point to obtain the third media segment placed on the target editing track. The first media material is the media segment before trimming used when the first media segment is formed by trimming.

[0128] Based on the target transition duration and the duration of the second media segment, media segments are extracted from the second media material from the end point of the second media segment toward the start point to obtain a fourth media segment placed on the target editing track. The second media material is the media segment before trimming used when the second media segment is formed by trimming.

[0129] Based on the above embodiments, optionally, the first newly added segment is determined based on a first cropped segment, the first cropped segment being a media segment cropped after the first media segment when the first media material is cropped to form the first media segment; the second newly added segment is determined based on a second cropped segment, the second cropped segment being a media segment cropped before the second media segment when the second media material is cropped to form the second media segment.

[0130] Based on the above embodiments, optionally, when the duration of the first cropped segment is greater than or equal to the first preset duration, the first newly added segment is composed of a portion of the media segments in the first cropped segment;

[0131] When the duration of the first cropped segment is less than the first preset duration, the first newly added segment consists of all media segments in the first cropped segment and the last frame in the first cropped segment;

[0132] When the duration of the second cropped segment is greater than or equal to the second preset duration, the second newly added segment is composed of a portion of the media segments in the second cropped segment;

[0133] When the duration of the second cropped segment is less than the second preset duration, the second newly added segment consists of all media segments in the second cropped segment and the starting frame in the second cropped segment;

[0134] Wherein, the sum of the first preset duration and the second preset duration is equal to the target transition duration.

[0135] Based on the above embodiments, optionally, generating a target output result based on the third media segment and the fourth media segment includes:

[0136] In response to a third operation that triggers a speed configuration for a first media segment in a third media segment on a target editing track, a first curve speed change is added to the first media segment in the third media segment and an end-point speed change corresponding to the first curve speed change is added to the first newly added segment in the third media segment;

[0137] In response to a fourth operation that triggers speed configuration for the second media segment in the fourth media segment on the target editing track, a second curve speed change is added to the second media segment in the fourth media segment and a first-end speed change corresponding to the second curve speed change is added to the second newly added segment in the fourth media segment;

[0138] The target output result is generated based on the third media segment, the speed change corresponding to the third media segment, the fourth media segment, and the speed change corresponding to the fourth media segment.

[0139] Based on the above embodiments, optionally, the third operation includes a triggering operation for a speed configuration identifier corresponding to the first media segment in the third media segment on the target editing track, wherein the speed configuration identifier corresponding to the first media segment is presented based on the selection operation of the first media segment in the third media segment on the target editing track.

[0140] The fourth operation includes triggering an operation on the identifier for speed configuration that is displayed for the second media segment in the fourth media segment on the target editing track. The identifier for speed configuration that is displayed for the second media segment is displayed based on the selection operation of the second media segment in the fourth media segment on the target editing track.

[0141] The technical solution provided in this disclosure creates a target transition task for editing media segments. By adding a first new segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and adding a second new segment to the beginning of a second media segment to form a corresponding fourth media segment, the end portion of the third media segment corresponding to the first media segment and the beginning portion of the fourth media segment corresponding to the second media segment can be superimposed. This achieves a clear superimposed transition effect where the image of the next media segment gradually appears as the image of the previous media segment gradually fades away. Since the positions of the first and second media segments on the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect remains unchanged.

[0142] The transition effects processing apparatus provided in this disclosure can execute the transition effects processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0143] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0144] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 7 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 7 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment 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), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0145] like Figure 7As shown, electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.

[0146] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 500 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.

[0147] 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 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.

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

[0149] The electronic device provided in this embodiment and the transition effect processing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0150] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the transition effects processing method provided in the above embodiments.

[0151] 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 conjunction 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.

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

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

[0154] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: determine a first media segment and a second media segment specified by a target transition task, the second media segment being located after and adjacent to the first media segment on a target editing track; in response to a first operation for triggering an overlay transition effect on the target transition task, determine a third media segment and a fourth media segment placed on the target editing track, the third media segment consisting of the first media segment and a first newly added segment connected along the timeline after the first media segment, the fourth media segment consisting of the second media segment and a second newly added segment connected along the timeline before the second media segment, the positions of the first media segment and the second media segment on the target editing track remaining unchanged when the first operation is triggered; and form an overlay transition effect at the overlapping portion between the third media segment and the fourth media segment.

[0155] 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).

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

[0157] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0158] 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-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

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

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

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

[0162] 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 processing transition effects, characterized in that, include: Determine the first media segment and the second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment on the target editing track; In response to a first operation for triggering an overlay transition effect on a target transition task, a third media segment and a fourth media segment are determined to be placed on the target editing track. The third media segment consists of a first media segment and a first newly added segment connected along the timeline after the first media segment. The fourth media segment consists of a second media segment and a second newly added segment connected along the timeline before the second media segment. The positions of the first media segment and the second media segment on the target editing track remain unchanged when the first operation is triggered. The first newly added segment is determined by cropping a segment that was cropped after the first media segment when it was formed. The second newly added segment is determined by cropping a segment that was cropped before the second media segment when it was formed. An overlay transition effect is created at the overlap between the third and fourth media segments.

2. The method according to claim 1, characterized in that, After the overlapping transition effect is formed at the intersection of the third and fourth media segments, the following is also included: A target output result is generated based on the third media segment and the fourth media segment. The target output result is either a draft preview before the media segment is exported or a target video after the media segment is exported.

3. The method according to claim 1, characterized in that, Identify the first and second media segments specified for the target transition task, including: Present at least two media clips on the target editing track; In response to a second operation that triggers a target transition task on two adjacent selected media segments in at least two media segments, the first media segment and the second media segment specified by the target transition task are determined.

4. The method according to claim 3, characterized in that, The second operation includes triggering an action on the identifier of a target transition task for two adjacent media segments selected on the target editing track; The identifier for the target transition task is configured to appear at the connection point between two adjacent media segments selected on the target editing track.

5. The method according to claim 1, characterized in that, The first operation includes triggering an operation on the identifier of the overlay transition effect selected in the transition effect selection area corresponding to the target transition task.

6. The method according to claim 5, characterized in that, The first operation also includes configuring and triggering the transition duration in the transition effect selection area corresponding to the target transition task.

7. The method according to claim 1, characterized in that, Identifying the third and fourth media segments placed on the target editing track includes: Determine the target transition duration corresponding to the target transition task; Based on the target transition duration and the duration of the first media segment, media segments are extracted from the first media material from the starting point to the ending point to obtain a third media segment placed on the target editing track. The first media material is the media segment before trimming used when the first media segment is formed by trimming. Based on the target transition duration and the duration of the second media segment, media segments are extracted from the second media material from the end point of the second media segment toward the start point to obtain a fourth media segment placed on the target editing track. The second media material is the media segment before trimming used when the second media segment is formed by trimming.

8. The method according to claim 7, characterized in that, The first newly added segment is determined based on the first cropped segment, which is the media segment cropped after the first media segment when the first media material is cropped to form the first media segment; the second newly added segment is determined based on the second cropped segment, which is the media segment cropped before the second media segment when the second media material is cropped to form the second media segment.

9. The method according to claim 8, characterized in that, When the duration of the first cropped segment is greater than or equal to the first preset duration, the first newly added segment is composed of a portion of the media segments in the first cropped segment; When the duration of the first cropped segment is less than the first preset duration, the first newly added segment consists of all media segments in the first cropped segment and the last frame in the first cropped segment; When the duration of the second cropped segment is greater than or equal to the second preset duration, the second newly added segment is composed of a portion of the media segments in the second cropped segment; When the duration of the second cropped segment is less than the second preset duration, the second newly added segment consists of all media segments in the second cropped segment and the starting frame in the second cropped segment; Wherein, the sum of the first preset duration and the second preset duration is equal to the target transition duration.

10. The method according to claim 7, characterized in that, When the duration of the first cropped segment is zero, the first newly added segment consists only of still frames extracted from the first media segment; when the duration of the second cropped segment is zero, the second newly added segment consists only of still frames extracted from the second media material.

11. The method according to claim 1, characterized in that, The target output result is generated based on the third media segment and the fourth media segment, including: In response to a third operation that triggers a speed configuration for a first media segment in a third media segment on a target editing track, a first curve speed change is added to the first media segment in the third media segment and an end-point speed change corresponding to the first curve speed change is added to the first newly added segment in the third media segment; In response to a fourth operation that triggers speed configuration for the second media segment in the fourth media segment on the target editing track, a second curve speed change is added to the second media segment in the fourth media segment and a first-end speed change corresponding to the second curve speed change is added to the second newly added segment in the fourth media segment; The target output result is generated based on the third media segment, the speed change corresponding to the third media segment, the fourth media segment, and the speed change corresponding to the fourth media segment.

12. The method according to claim 11, characterized in that, The third operation includes triggering an operation on the identifier for speed configuration that is displayed corresponding to the first media segment in the third media segment on the target editing track. The identifier for speed configuration that is displayed corresponding to the first media segment is displayed based on the selection operation of the first media segment in the third media segment on the target editing track. The fourth operation includes triggering an operation on the identifier for speed configuration that is displayed for the second media segment in the fourth media segment on the target editing track. The identifier for speed configuration that is displayed for the second media segment is displayed based on the selection operation of the second media segment in the fourth media segment on the target editing track.

13. A transition effects processing device, characterized in that, include: The first determining module is used to determine the first media segment and the second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment on the target editing track; The second determining module is configured to, in response to a first operation for triggering an overlay transition effect on a target transition task, determine a third media segment and a fourth media segment placed on the target editing track. The third media segment consists of a first media segment and a first newly added segment connected along the timeline after the first media segment. The fourth media segment consists of a second media segment and a second newly added segment connected along the timeline before the second media segment. When the first operation is triggered, the positions of the first media segment and the second media segment on the target editing track remain unchanged. The first newly added segment is determined by cropping a segment that was cropped after the first media segment when the first media segment was formed. The second newly added segment is determined by cropping a segment that was cropped before the second media segment when the second media segment was formed. The generation module is used to create an overlay transition effect in the overlapping portion between the third and fourth media segments.

14. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the transition effects processing method as described in any one of claims 1-12.

15. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the transition effects processing method as described in any one of claims 1-12.