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

During the audio and video editing process, new clips are added at the end and end of adjacent media clips to form the third and fourth media clips, which solves the problem of the superimposed transition special effects causing the duration of audio and video clips to change, and achieves the superimposed transition effect with the duration unchanged.

WO2025067525A1PCT designated stage expired Publication Date: 2025-04-03BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/122066
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-28
Filing Date
2024-09-27
Publication Date
2025-04-03

AI Technical Summary

Technical Problem

During audio and video editing, when superimposed transition effects are used, it is easy to cause the total duration of adjacent audio and video clips to change, affecting the editing effect.

Method used

By determining adjacent first and second media clips on the target editing track and adding a first new clip at the end of the first media clip, a second new clip is added at the head end of the second media clip to form the third and fourth media clips, ensuring that the positions of the first and second media clips remain unchanged when the superimposed transition effect is triggered, and the superimposed transition effect is achieved.

Benefits of technology

After the superimposed transition effect is performed, the total duration of the two adjacent media clips remains unchanged, avoiding the influence of the editing effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024122066_03042025_PF_FP_ABST
    Figure CN2024122066_03042025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a transition effect processing method and apparatus, an electronic device, and a storage medium. The method comprises: determining a first media segment and a second media segment specified in a target transition task; in response to a first operation used to trigger an overlay transition effect for the target transition task, determining a third media segment and a fourth media segment placed on a target editing track, wherein the third media segment is composed of the first media segment and a first newly added segment spliced after the first media segment, and the fourth media segment is composed of the second media segment and a second newly added segment spliced before the second media segment; and forming an overlay transition effect in an overlapping portion between the third media segment and the fourth media segment. In the present solution, the total duration of two adjacent media segments after the overlay transition effect can remain unchanged.
Need to check novelty before this filing date? Find Prior Art

Description

Transition special effects processing method, device, electronic device and storage medium

[0001] This application claims priority to the Chinese invention patent application entitled “Transition special effects processing method, device, electronic device and storage medium” filed on September 28, 2023, with application number 202311285126.3. The entire contents of that application are incorporated herein by reference. Technical Field

[0002] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, electronic device, and storage medium for processing transition special effects. Background Art

[0003] Short video applications not only have video shooting functions, but also provide extended functions such as adding special effects, filters, props, etc. For example, during the audio and video editing process, superimposed transition effects can be added between adjacent audio and video clips.

[0004] In the related scheme, it is necessary to analyze the adjacent audio and video clips to be processed and generate superimposed transition effects between the adjacent audio and video clips, which is time-consuming and labor-intensive. Moreover, when configuring the superimposed transition effect, part of the content of the previous audio and video clip is usually superimposed with part of the content of the next audio and video clip to generate the superimposed transition effect. As a result, the length of the audio and video clip after the superimposed transition will change, which affects the audio and video editing and makes it impossible to obtain suitable audio and video clips.

[0005] Summary of the Invention

[0006] The present disclosure provides a method, device, electronic device and storage medium for processing transition special effects, so as to ensure that the total duration of the media segments does not change when a transition special effect is superimposed on two adjacent media segments.

[0007] In a first aspect, an embodiment of the present disclosure provides a method for processing transition special effects, the method comprising: determining 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 a superimposed transition special effect for the target transition task, determining a third media segment and a fourth media segment placed on the target editing track, the third media segment consisting of a first media segment and a first newly added segment connected after the first media segment along the timeline, the fourth media segment consisting of a second media segment and a second newly added segment connected before the second media segment along the timeline, and 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; and forming a superimposed transition effect on the overlapping part between the third media segment and the fourth media segment.

[0008] In the second aspect, an embodiment of the present disclosure also provides a transition special effect processing device, which includes: a first determination module, used to determine the first media segment and the second media segment specified by the target transition task, the second media segment being located after and adjacent to the first media segment on the target editing track; a second determination module, used to determine the third media segment and the fourth media segment placed on the target editing track in response to a first operation for triggering a superimposed transition special effect for the target transition task, the third media segment consisting of the first media segment and a first newly added segment connected after the first media segment, and the fourth media segment consisting of the second media segment and a second newly added segment connected before the second media segment, and 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; a generation module, used to form a superimposed transition effect in the overlapping part between the third media segment and the fourth media segment.

[0009] In a third aspect, an electronic device is also provided in an embodiment of the present disclosure, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the transition special effects processing method described in any one of the above embodiments.

[0010] In a fourth aspect, a computer-readable medium is further provided in an embodiment of the present disclosure, wherein the computer-readable medium stores computer instructions, and the computer instructions are used to enable a processor to implement the transition special effect processing method described in any one of the above embodiments when executed.

[0011] In an embodiment of the present disclosure, a target transition task for transition editing of media segments is created, and a first newly added segment is added at the end of a first adjacent and end-connected media segment to form a corresponding third media segment, and a second newly added segment is added at the beginning of a second media segment to form a corresponding fourth media segment, so that part of the picture at the end of the third media segment corresponding to the first media segment and part of the picture at the beginning of the fourth media segment corresponding to the second media segment can be superimposed together, so that when the picture of the previous media segment gradually fades away, the picture of the next media segment gradually appears and is clearly superimposed on the transition effect. At the same time, since the positions of the first media segment and the second media segment in the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect can be maintained unchanged.

[0012] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0014] FIG1 is a schematic flow chart of a method for processing transition effects provided by an embodiment of the present disclosure;

[0015] FIG2a is a schematic diagram of an editing track interface applicable to an embodiment of the present disclosure;

[0016] FIG2 b is a schematic diagram of adding a superimposed transition effect between adjacent media segments applicable to an embodiment of the present disclosure;

[0017] FIG2c is a schematic diagram of another track editing interface applicable to an embodiment of the present disclosure;

[0018] FIG2 d is a schematic diagram of a configuration of a superimposed transition effect in an editing track interface applicable to an embodiment of the present disclosure;

[0019] FIG2e is a schematic diagram of an interface effect of a superimposed transition effect applicable to an embodiment of the present disclosure;

[0020] FIG3 is a flow chart of another method for processing transition effects provided by an embodiment of the present disclosure;

[0021] FIG4 is a comparative schematic diagram of media segments in a transition special effect processing applicable to an embodiment of the present disclosure;

[0022] FIG5a is a schematic diagram of a curve speed change configuration in a transition special effect processing applicable to an embodiment of the present disclosure;

[0023] FIG5 b is a schematic diagram of a curve speed change in a transition special effect processing applicable to an embodiment of the present disclosure;

[0024] FIG6 is a structural diagram of a transition special effect processing device provided by an embodiment of the present disclosure;

[0025] FIG7 is a schematic structural diagram of an electronic device for implementing a method for processing transition special effects provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

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

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

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

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

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

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

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

[0033] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested 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 electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0034] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0035] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

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

[0037] Figure 1 is a flow chart of a transition special effect processing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where an overlaid transition special effect is added to two adjacent media segments. The method can be executed by a transition special effect processing device. The transition special effect 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, which can be a mobile terminal, PC or server, etc.

[0038] As shown in FIG1 , the method for processing transition effects according to an embodiment of the present disclosure may include the following steps:

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

[0040] Referring to Figure 2a, a target editing track in the editing interface displays multiple media clips. The media clips can be audio clips or video clips, and each media clip displayed on the target editing track can be a cropped or uncropped media clip. When a transition effect is required between two adjacent media clips, a target transition task can be created, and the first media clip 201 and the second media clip 202 specified by the target transition task can be determined. By executing the target transition task, the transition effect is achieved when switching from the first media clip 201 to the second media clip 202.

[0041] Referring to Figure 2a, the first media segment 201 and the second media segment 202 can be selected and trimmed from multiple media segments presented on the target editing track, and are two adjacent media segments 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.

[0042] S120. In response to a first operation for triggering a superimposed transition effect for a target transition task, determine a third media segment and a fourth media segment placed on a target editing track, wherein the third media segment is composed of a first media segment and a first newly added segment connected after the first media segment along the timeline, and the fourth media segment is composed of a second media segment and a second newly added segment connected before the second media segment along the timeline. 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.

[0043] Referring to Figure 2a , an overlay transition effect is triggered for the first media segment 201 and the second media segment 202 specified in the target transition task, thereby providing an overlay transition effect when transitioning from the frame corresponding to the first media segment 201 to the frame corresponding to the second media segment 202. Because the overlay transition effect typically overlays the frame of the preceding media segment with the frame of the following media segment, gradually fading away and revealing the frame of the following media segment, the total duration of the media segment after the overlay transition changes, impacting the editing of the media segments.

[0044] To this end, referring to Figure 2b, when the present application triggers the addition of an overlay transition effect to the first media segment 201 and the second media segment 202 specified for the target transition task, it no longer simply overlays the partial segment of the first media segment 201 near the end position with the partial segment of the second media segment 202 near the beginning position, but instead selects to connect a first newly added segment 205 after the first media segment along the timeline corresponding to the target editing track, and forms a third media segment corresponding to the first media segment through the first newly added segment 205 and the original first media segment 201, and at the same time connects a second newly added segment 204 before the second media segment 202 along the timeline corresponding to the target editing track, and forms a fourth media segment corresponding to the second media segment through the second newly added segment 204 and the original second media segment 202.

[0045] Optionally, the first newly added segment 205 and the segment at the end position of the first media segment have a front-to-back relationship in terms of picture continuity, and the second newly added segment 204 and the segment at the beginning position of the second media segment have a front-to-back relationship in terms of picture continuity.

[0046] At the same time, referring to Figures 2a and 2c, for the first media segment in the third media segment and the second media segment in the fourth media segment, the positions of the first media segment and the second media segment on the target editing track are kept unchanged before and after the first operation of triggering the superimposed transition effect on the target transition task, that is, a first newly added segment 205 is connected after the end position of the first media segment placed on the target editing track, and a second newly added segment 204 is connected before the beginning position of the second media segment 202 placed on the target editing track, to ensure that the total length of the media segments remains unchanged before and after the superimposed transition effect is performed.

[0047] Optionally, the second newly added segment is determined based on a cropped segment that is 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 a cropped segment that is cropped before the second media segment when the second media segment is formed by cropping.

[0048] As an optional but non-limiting implementation method, the first operation for triggering the superimposed transition effect for the target transition task includes a triggering operation for the identifier of the superimposed 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 the two adjacent media clips selected on the target editing track.

[0049] Referring to Figure 2d, the adjacent positions of the first media segment 201 and the second media segment 202 presented on the target editing track are marked with the identifiers of the target transition tasks corresponding to the first media segment 201 and the second media segment 202. In response to a triggering operation on the identifiers of the target transition tasks corresponding to the first media segment 201 and the second media segment 202, a transition effect selection area corresponding to the target transition task is displayed. The transition effect selection area includes multiple transition effect identifiers, such as a push transition effect, a flash-to-black transition effect, and a dissolve transition effect (also known as an overlay transition effect). The first operation can specifically be a triggering operation of selecting the identifier of the overlay transition effect in the transition effect selection area corresponding to the target transition task.

[0050] Referring to FIG2d , optionally, the first operation for triggering the superimposed transition effect for the target transition task also includes an operation for configuring and triggering the transition duration in the transition effect selection area corresponding to the target transition task. For example, a transition duration adjuster is further configured in the transition effect selection area, and progress adjustment 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 superimposed transition effect formed 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 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.

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

[0052] At least two media segments are presented on a target editing track, and in response to a second operation of triggering a target transition task on two adjacent media segments selected from the at least two media segments, a first media segment and a second media segment specified by the target transition task are determined.

[0053] Referring to Figure 2c, in response to an operation to add a media material from the material library, at least two media materials corresponding to the addition operation are retrieved and an editing interface is displayed. A target editing track is presented in the editing interface, and at least two media segments formed from the at least two media materials corresponding to the addition operation are placed on the target editing track. The media segments can be audio or video segments. Furthermore, a first media segment and a second media segment adjacent to each other on the target editing track are selected, and a second operation of a target transition task is triggered for the two selected media segments. The first and second media segments designated by the target transition task corresponding to the second operation are determined.

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

[0055] Referring to Figure 2d , the identifiers of the target transition tasks corresponding to the first and second media segments 201 and 202 are added to the adjacent positions of the adjacent first and second media segments 201 and 202 presented on the target editing track. The second operation is a triggering operation on the identifier of the target transition task corresponding to the adjacent first and second media segments 201 and 202 selected on the target editing track. When the triggering operation is performed on the identifier of the target transition task, a transition effect selection area corresponding to the target transition task is displayed.

[0056] S130: Form a superimposed transition effect at the overlapping portion between the third media segment and the fourth media segment.

[0057] Optionally, when the playhead is positioned on the target editing track to display the overlapping portion between the third media segment and the fourth media segment, an overlay transition effect is presented on the overlapping portion between the third media segment and the fourth media segment. For example, when the playhead is positioned on the target editing track to display the overlapping portion between the third media segment and the fourth media segment, an overlay transition effect is presented on the overlapping portion between the third media segment and the fourth media segment on the target editing track.

[0058] Optionally, when the playback head position is positioned within the first preset time range of the third media segment on the target editing track, an overlay transition effect is presented at the playback head position on the target editing track, and the first preset time range is determined based on the time of the overlapping part of the third media segment and the fourth media segment; when the playback head position is positioned within the second preset time range of the fourth media segment on the target editing track, an overlay transition effect is presented at the playback head position on the target editing track, and the second preset time range is determined based on the time of the overlapping part of the fourth media segment and the third media segment.

[0059] 2b and 2e , on the target editing track, the overlapping portion of the second newly added segment 204 and the first media segment 201 in the fourth media segment presents a first portion of an overlay transition effect, and the overlapping portion of the first newly added segment 205 and the second media segment 202 in the third media segment presents a second portion of an overlay transition effect. Together, the first and second portions of the overlay transition effect 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 near the second media segment on the target editing track, the second newly added segment 204, which is connected to the first media segment, appears faintly on the screen of the first media segment 201 in FIG. 2e .

[0060] Based on the above embodiment, optionally, after forming a superimposed transition effect on the overlapping portion between the third media segment and the fourth media segment, the method further includes:

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

[0062] Referring to Figures 2b and 2e, a preview area is displayed on the editing interface. A preview player in the preview area can be used to preview and play the corresponding pre-export draft previews of the third and fourth media segments presented on the target editing track. During the time range corresponding to the overlapping portion between the third and fourth media segments, a superimposed transition effect is presented when previewed and played using the preview player in the preview area. Referring to Figures 2b and 2e, in response to a video export operation for the third and fourth media segments, the third and fourth media segments on the target editing track can be synthesized into video segments according to the timeline sequence corresponding to the target editing track, and a target video with a superimposed transition effect presented in the overlapping portion between the third and fourth media segments is exported.

[0063] The technical solution of the embodiment of the present disclosure creates a target transition task for transition editing of media segments, and forms a corresponding third media segment by adding a first newly added segment at the end of the adjacent and end-connected first media segment and forms a corresponding fourth media segment by adding a second newly added segment at the beginning of the second media segment, so that part of the picture at the end of the third media segment corresponding to the first media segment and part of the picture at the beginning of the fourth media segment corresponding to the second media segment can be superimposed together, so that when the picture of the previous media segment gradually fades away, the picture of the next media segment gradually appears and is clearly superimposed on the transition effect. At the same time, since the positions of the first media segment and the second media segment in the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect can be maintained unchanged.

[0064] Figure 3 is a flow chart of another method for processing transition special effects 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 to be placed on the target editing track in the aforementioned embodiment on the basis of the aforementioned embodiment. This embodiment can be combined with various optional solutions in one or more of the aforementioned embodiments.

[0065] As shown in FIG3 , the method for processing transition effects according to an embodiment of the present disclosure may include the following steps:

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

[0067] S320: In response to a first operation for triggering a superimposed transition effect on a target transition task, determining a target transition duration corresponding to the target transition task.

[0068] S330. Based on the target transition duration and the duration of the first media segment, media segments are cut from the starting point of the first media segment toward the ending point in the first media material to obtain a third media segment placed in 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 a first newly added segment connected after the first media segment.

[0069] 4 , a second media material 206 corresponding to the first media segment is determined. The first media material 206 is the pre-cropped media segment used when cropping to form the first media segment. Media segments are cut from the first media segment 201's starting point toward the end point (e.g., from left to right in the first media material 206 of FIG. 4 ). By cutting media segments from the first media material 206, media segments are added after the first media segment. This allows the first added segment 205 to be connected after the first media segment 201, resulting in a third media segment 208 consisting of the first media segment 201 and the first added segment 205 connected after the first media segment.

[0070] S340. Based on the target transition duration and the duration of the second media segment, the media segment is cut from the end point of the second media segment toward the starting point in the second media material to obtain a fourth media segment placed in the target editing track. The second media material is the media segment before cropping used when forming the second media segment by cropping. 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 in the target editing track remain unchanged.

[0071] 4 , the second media material 207 corresponding to the second media segment is determined. The second media material 207 is the pre-cropped media segment used when cropping to form the second media segment. Media segments are cut from the second media material 207 starting from the end point of the second media segment 202 toward the start point (e.g., from right to left in the sixth media segment 207 in FIG4 ). By cutting media segments from the second media material 207, media segments are added before the second media segment. This allows the second added segment 204 to be connected before the second media segment 202, resulting in a fourth media segment 209 consisting of the second media segment 202 and the second added segment 204 connected before the second media segment.

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

[0073] 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 the first media segment is formed by trimming. 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 the second media segment is formed by trimming.

[0074] As an optional but non-limiting implementation method, the first newly added segment is determined based on the first cropped segment, where the first cropped segment is a media segment cropped after the first media segment when the first media segment is formed by cropping the first media material, and the first media material is the media segment before cropping used when the first media segment is formed by cropping.

[0075] Optionally, the duration of the first newly added segment connected after the first media segment is the first preset duration, the duration of the second newly added segment connected before the second media segment is the second preset duration, the sum of the first preset duration and the second preset duration is equal to the target transition duration, and the first preset duration is the same as or different from the second preset duration. On this basis, 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 part of the media segments in the first cropped segment. At this time, 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 media segment can be supplemented after the first media segment by using only the first cropped segment.

[0076] Optionally, the duration of the first newly added segment connected after the first media segment is the first preset duration, the duration of the second newly added segment connected before the second media segment is the second preset duration, the sum of the first preset duration and the second preset duration is equal to the target transition duration, and the first preset duration is the same as or different from the second preset duration. On this basis, when the duration of the first cropped segment is less than the first preset duration, the first newly added segment is composed of all media segments in the first cropped segment and the end frame in the first cropped segment. At this time, 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 it is impossible to complete the media segment after the first media segment using only the first cropped segment, and therefore it is necessary to further supplement it with the help of the end frame in the first cropped segment.

[0077] Referring to FIG2b, taking the first preset duration equal to the 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 end frame in the first cropped segment as a static frame, and the duration of the second newly added segment is equal to half of the target transition duration, wherein the duration of the second newly added segment satisfies the following: Tstatic=(Ttransition / 2)-Ttrim, Tstatic represents the duration of the end frame in the first cropped segment as a static frame, Ttransition represents half of the duration of the second newly added segment, and Ttrim represents the duration of the first cropped segment. Among them, the transition duration and the duration of the cropped first cropped segment can be obtained in the UI layer, so when adjusting the transition duration, the UI layer calculates the adjustment screen in real time and locks it when releasing the hand.

[0078] As an optional but non-limiting implementation method, the second newly added segment is determined based on the second cropped segment, where the second cropped segment is a media segment that is cropped before the second media segment when the second media segment is formed by cropping the second media material, and the second media material is the media segment before cropping used when the second media segment is formed by cropping.

[0079] Optionally, the duration of the first newly added segment connected after the first media segment is the first preset duration, the duration of the second newly added segment connected before the second media segment is the second preset duration, the sum of the first preset duration and the second preset duration is equal to the target transition duration, and the first preset duration is the same as or different from the second preset duration. On this basis, 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 part of the media segments in the second cropped segment. At this time, the duration of the media segment cropped from the second media material before the beginning of the second media segment is greater than or equal to the second preset duration, and the media segment can be supplemented before the second media segment by only using the second cropped segment.

[0080] Optionally, the duration of the first newly added segment connected after the first media segment is the first preset duration, the duration of the second newly added segment connected before the second media segment is the second preset duration, the sum of the first preset duration and the second preset duration is equal to the target transition duration, and the first preset duration is the same as or different from the second preset duration. On this basis, when the duration of the second cropped segment is less than the second preset duration, the second newly added segment is composed of all media segments in the second cropped segment and the starting frame in the second cropped segment. At this time, the duration of the media segment cropped from the second media material before the beginning of the second media segment is less than the second preset duration, indicating that it is impossible to complete the media segment before the second media segment using only the second cropped segment, and therefore it is necessary to further supplement it with the help of the starting frame in the second cropped segment.

[0081] 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. The first cropped segment is the media segment cropped after the first media segment when the first media material is cropped to form 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. The duration of the second cropped segment is the media segment cropped before the second media segment when the second media material is cropped to form the second media segment.

[0082] Optionally, the start time TrimIn of the third media segment relative to the first media material and the start time TrimIn of the fourth media segment relative to the second media material are calculated as follows:

[0083] The starting time of the third media segment relative to the first media material, TrimIn: can be calculated directly using source_time_range().start()*speed();

[0084] The fourth media segment is relative to the start point time of the first media material. TrimIn: (1) When the target transition start time between the first media segment and the second media segment is less than the start point time of the second media material, the duration of the second cropped segment cut from the second media material is less than half of the target transition duration, and a still frame is required to supplement it. The third media segment is relative to the start point time of the first media material in the following relationship: D TrimIn =T startTransition -(T startTarget -f(t)T startSource(2) When the target transition start time between 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 cropped from the second media material is greater than or equal to half of the target transition duration, and no still frame supplement is required. The third media segment is expressed in the following relationship relative to the start time of the first media material: D TrimIn =T startTransition -(T startTarget -f(t)T startS . urce ).

[0085] Optionally, the end point time TrimOut of the third media segment relative to the first media material and the end point time TrimOut of the fourth media segment relative to the second media material are calculated as follows:

[0086] The end point time TrimOut of the third media segment relative to the first media material is as follows: TrimOut =f(t)TstartSource+T durationSource +T durationTransiti / 2.

[0087] The end point time TrimOut of the fourth media segment relative to the second media material is as follows: TrimOut =f(t)T startSource +T durationSource

[0088] Among them, the speed change coefficient f(t): when the speed changes in the curve, the f(t) value is the inverse of the speed change value at the critical point with no transition; when the speed changes in the normal way, the f(t) value is the inverse of the speed change value.

[0089] S350: forming a superimposed transition effect at the overlapping portion between the third media segment and the fourth media segment.

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

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

[0092] Optionally, the third operation includes a triggering operation of an identifier for performing speed change configuration corresponding to the first media segment in the third media segment on the target editing track, and the identifier for performing speed change configuration 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.

[0093] Referring to FIG. 5 a , the indicator for configuring speed change displayed corresponding to the first media segment is displayed based on the selection of the first media segment 201 in the third media segment on the target editing track, such as the indicator for normal speed change and curved speed change. This triggers the display of the indicator for configuring speed change displayed corresponding to the first media segment 201 in the third media segment on the target editing track.

[0094] Referring to Figure 5b, the first media segment within the third media segment is displayed and a first curve speed change is applied to the first media segment within the third media segment. The first additional segment following the first media segment is then subjected to the same endpoint speed of the first curve speed change used in the first media segment before the transition. The speed change is then applied to the portion of the first additional segment following the first media segment. The first curve speed change is applied to the first media segment, and after trimming or extending it, the first curve speed change is then applied to the first media segment within the third media segment. After the transition is added, an extended portion, a trimmed portion, and a still frame portion are generated. The speed change rate of the first additional segment in the extended portion is the endpoint speed value of the first curve speed change.

[0095] Step A2: In response to the fourth operation of triggering speed change 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 head-end point speed change corresponding to the second curve speed change is added to the second newly added segment in the fourth media segment.

[0096] Optionally, the fourth operation includes a triggering operation of an identifier for performing speed change configuration corresponding to the second media segment in the fourth media segment on the target editing track, and the identifier for performing speed change configuration corresponding to the second media segment is presented based on the selection operation of the second media segment in the fourth media segment on the target editing track.

[0097] Referring to Figure 5b, the second media segment in the fourth media segment is displayed and a second curved speed change is applied to the second media segment. The second curved speed change, which applies to the second media segment before the transition, is applied to the portion of the second media segment before the transition. The second curved speed change is applied to the second media segment, which is then trimmed or extended. The second curved speed change is then applied to the second media segment in the fourth media segment. After the transition is added, the extended portion, trimmed portion, and still frame portion are generated. The speed change rate of the second media segment in the extended portion is the same as the first-end speed of the second curved speed change.

[0098] Step A3: Generate a 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. The target output result is a draft preview before the media segment is exported or a target video after the media segment is exported.

[0099] Optionally, the speed change panel will extend the newly added segment portion in proportion to the corresponding duration. The starting endpoint (left endpoint) of the second newly added segment or the ending endpoint (right endpoint) of the first newly added segment that is connected and extended cannot be adjusted. A speed change point cannot be added between the starting endpoint (left endpoint) of the second newly added segment and the starting endpoint of the second media segment. Adjusting the speed change rate of the starting endpoint of the second media segment can change the speed change rate of the left endpoint of the second newly added segment, and the starting endpoint of the second newly added segment is recalculated according to the new speed change rate; a speed change point cannot be added between the ending endpoint (right endpoint) of the first newly added segment and the ending point of the first media segment. Adjusting the speed change of the ending endpoint of the first media segment can change the speed change rate of the right endpoint of the first newly added segment, and the ending endpoint of the first newly added segment is recalculated according to the new rate.

[0100] As an optional but non-limiting implementation method, 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 chroma keying, destrobing, noise reduction, anti-shake processing, and motion tracking on the first newly added segment and the second newly added segment.

[0101] The technical solution of the embodiment of the present disclosure creates a target transition task for transition editing of media segments, and forms a corresponding third media segment by adding a first newly added segment at the end of the adjacent and end-connected first media segment and forms a corresponding fourth media segment by adding a second newly added segment at the beginning of the second media segment, so that part of the picture at the end of the third media segment corresponding to the first media segment and part of the picture at the beginning of the fourth media segment corresponding to the second media segment can be superimposed together, so that when the picture of the previous media segment gradually fades away, the picture of the next media segment gradually appears and is clearly superimposed on the transition effect. At the same time, since the positions of the first media segment and the second media segment in the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect can be maintained unchanged.

[0102] Figure 6 is a structural schematic diagram of a transition special effect processing device provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where an overlaid transition special effect is added to two adjacent media segments. The transition special effect 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, which can be a mobile terminal, PC or server, etc.

[0103] As shown in FIG6 , the transition special effect processing device of the embodiment of the present disclosure may include the following: a first determination module 610, a second determination module 620, and a generation module 630. Among them:

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

[0105] A second determining module 620 is configured to, in response to a first operation for triggering a superimposed transition effect on a target transition task, determine a third media segment and a fourth media segment to be placed on the target editing track, wherein the third media segment is composed of a first media segment and a first newly added segment connected to after the first media segment along the timeline, and the fourth media segment is composed of a second media segment and a second newly added segment connected to before the second media segment along the timeline, and 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;

[0106] The generating module 630 is configured to form a superimposed transition effect at the overlapping portion between the third media segment and the fourth media segment.

[0107] Based on the above embodiment, optionally, after the overlapping part between the third media segment and the fourth media segment forms an overlay transition effect, it also includes: generating a target output result based on the third media segment and the fourth media segment, and the target output result is a draft preview before the media segment is exported or a target video after the media segment is exported.

[0108] Based on the above embodiment, optionally, determining the first media segment and the second media segment specified by the target transition task includes: presenting at least two media segments on the target editing track; and determining the first media segment and the second media segment specified by the target transition task in response to a second operation of triggering the target transition task on two adjacent media segments selected from the at least two media segments.

[0109] Based on the above embodiment, optionally, the second operation includes a triggering operation for the identification of the target transition task for two adjacent media segments selected on the target editing track; the identification of the target transition task is configured to be presented at the connection position of the two adjacent media segments selected on the target editing track.

[0110] Based on the above embodiment, optionally, the first operation includes a triggering operation for an identifier of a superimposed transition effect selected in a transition effect selection area corresponding to the target transition task.

[0111] Based on the above embodiment, optionally, the first operation further includes an operation of configuring and triggering a transition duration in a transition special effect selection area corresponding to the target transition task.

[0112] On the basis of the above embodiment, optionally, determining the third media segment and the fourth media segment placed in the target editing track includes: determining the target transition duration corresponding to the target transition task; based on the target transition duration and the duration of the first media segment, cutting the media segment from the starting point of the first media segment toward the ending point in the first media material to obtain the third media segment placed in the target editing track, the first media material being the media segment before cropping used when forming the first media segment by cropping; based on the target transition duration and the duration of the second media segment, cutting the media segment from the ending point of the second media segment toward the starting point in the second media material to obtain the fourth media segment placed in the target editing track, the second media material being the media segment before cropping used when forming the second media segment by cropping.

[0113] Based on the above embodiment, optionally, the first newly added segment is determined based on the first cropped segment, which is a media segment cropped after the first media segment when the first media segment is formed by cropping the first media material; the second newly added segment is determined based on the second cropped segment, which is a media segment cropped before the second media segment when the second media segment is formed by cropping the second media material.

[0114] Based on the above embodiment, 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 part 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 is composed of all the media segments in the first cropped segment and the end 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 part 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 is composed of all the media segments in the second cropped segment and the start 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.

[0115] On the basis of the above embodiment, optionally, a target output result is generated based on the third media segment and the fourth media segment, including: in response to a third operation of triggering a speed change configuration for the first media segment in the third media segment on the target editing track, adding a first curve speed change to the first media segment in the third media segment and adding an end endpoint speed change corresponding to the first curve speed change to the first newly added segment in the third media segment; in response to a fourth operation of triggering a speed change configuration for the second media segment in the fourth media segment on the target editing track, adding a second curve speed change to the second media segment in the fourth media segment and adding a head endpoint speed change corresponding to the second curve speed change to the second newly added segment in the fourth media segment; generating a 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.

[0116] Based on the above embodiment, optionally, the third operation includes a triggering operation of an identifier for performing speed change configuration corresponding to the first media segment in the third media segment on the target editing track, and the identifier for performing speed change configuration 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; the fourth operation includes a triggering operation of an identifier for performing speed change configuration corresponding to the second media segment in the fourth media segment on the target editing track, and the identifier for performing speed change configuration corresponding to the second media segment is presented based on the selection operation of the second media segment in the fourth media segment on the target editing track.

[0117] The technical solution provided by the embodiment of the present disclosure creates a target transition task for transition editing of media segments, and forms a corresponding third media segment by adding a first newly added segment at the end of the adjacent and end-connected first media segment and forms a corresponding fourth media segment by adding a second newly added segment at the beginning of the second media segment, so that part of the picture at the end of the third media segment corresponding to the first media segment and part of the picture at the beginning of the fourth media segment corresponding to the second media segment can be superimposed together, so that when the picture of the previous media segment gradually fades away, the picture of the next media segment gradually appears and is clearly superimposed on the transition effect. At the same time, since the positions of the first media segment and the second media segment in the target editing track remain unchanged, the total duration of the two adjacent media segments after the superimposed transition effect can be maintained unchanged.

[0118] The transition special effects processing device provided in the embodiments of the present disclosure can execute the transition special effects processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0119] 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-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0120] FIG7 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG7 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG7 ) 500 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG7 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0121] As shown in FIG7 , the electronic device 500 may include a processing device (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 a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

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

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

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

[0125] The electronic device provided by the embodiment of the present disclosure and the transition special effects processing method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0126] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the method for processing transition special effects provided in the above embodiment is implemented.

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

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

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

[0130] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines the first media segment and the second media segment specified by the target transition task, and the second media segment is located after and adjacent to the first media segment on the target editing track; in response to the first operation for triggering the superimposed transition special effect for the target transition task, determines the third media segment and the fourth media segment placed on the target editing track, and the third media segment is composed of the first media segment and the first newly added segment connected after the first media segment along the timeline, and the fourth media segment is composed of the second media segment and the second newly added segment connected before the second media segment along the timeline, and 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; and forms a superimposed transition effect in the overlapping part between the third media segment and the fourth media segment.

[0131] Computer program code for performing the operations of the present disclosure may 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, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

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

[0133] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

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

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

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

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

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

Claims

1. A method for processing transition special effects, comprising: Determine a first media segment and a second media segment specified by a target transition task, wherein the second media segment is located after and adjacent to the first media segment on a target editing track; In response to a first operation for triggering a superimposed transition effect on a target transition task, determining a third media segment and a fourth media segment placed on the target editing track, wherein the third media segment is composed of a first media segment and a first newly added segment connected to the first media segment along a timeline, and the fourth media segment is composed of a second media segment and a second newly added segment connected to the second media segment along a timeline, and 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; A superimposed transition effect is formed at the overlapping portion between the third media segment and the fourth media segment.

2. The method according to claim 1, wherein: After the overlapping portion between the third media segment and the fourth media segment forms a superimposed transition effect, the method further includes: A target output result is generated based on the third media segment and the fourth media segment, where the target output result is 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, wherein: Determining a first media segment and a second media segment specified by a target transition task includes: Present at least two media clips on the target editing track; In response to a second operation of triggering a target transition task on two adjacent media segments selected from the at least two media segments, a first media segment and a second media segment specified by the target transition task are determined.

4. The method according to claim 3, wherein: The second operation includes a triggering operation for marking a target transition task of two adjacent media segments selected on a target editing track; 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.

5. The method according to claim 1, wherein: The first operation includes a triggering operation for an identifier of a superimposed transition effect selected in a transition effect selection area corresponding to a target transition task.

6. The method according to claim 5, wherein: The first operation also includes an operation of configuring and triggering a transition duration in a transition special effect selection area corresponding to the target transition task.

7. The method according to claim 1, wherein: Determining the third media segment and the fourth media segment to be placed in 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, a media segment is cut from the start point of the first media segment to the end point in the first media material to obtain a third media segment placed in the target editing track, wherein the first media material is the media before cutting used when cutting to form the first media segment. Fragment; Based on the target transition duration and the duration of the second media segment, media segments are cut from the end point of the second media segment toward the starting point in the second media material to obtain a fourth media segment placed in the target editing track. The second media material is the media segment before trimming used when forming the second media segment by trimming.

8. The method according to claim 7, wherein: The first newly added segment is determined based on the first cropped segment, which is a media segment cropped after the first media segment when the first media segment is formed by cropping the first media material; the second newly added segment is determined based on the second cropped segment, which is a media segment cropped before the second media segment when the second media segment is formed by cropping the second media material.

9. The method according to claim 8, wherein: 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 some 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 is composed of all media segments in the first cropped segment and the end 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 some 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 is composed of all media segments in the second cropped segment and a start frame in the second cropped segment; 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, wherein: When the duration of the first cropped segment is zero, the first newly added segment is composed only of still frames captured from the first media segment; when the duration of the second cropped segment is zero, the second newly added segment is composed only of still frames captured from the second media material.

11. The method according to claim 1, wherein: Generating a target output result based on the third media segment and the fourth media segment includes: In response to a third operation of triggering speed change configuration for a first media segment in a third media segment on a target editing track, adding a first curve speed change to the first media segment in the third media segment and adding an end endpoint speed change corresponding to the first curve speed change to a first newly added segment in the third media segment; In response to a fourth operation of triggering speed change configuration for a second media segment in a fourth media segment on a target editing track, adding a second curve speed change to the second media segment in the fourth media segment and adding a head end speed change corresponding to the second curve speed change to a second newly added segment in the fourth media segment; A 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, wherein: The third operation includes a triggering operation for a flag for performing speed change configuration corresponding to a first media segment in the third media segment on the target editing track, wherein the flag for performing speed change configuration corresponding to the first media segment is presented based on a selection operation of the first media segment in the third media segment on the target editing track; The fourth operation includes a triggering operation of an identifier for performing speed change configuration corresponding to the second media segment in the fourth media segment on the target editing track, and the identifier for performing speed change configuration corresponding to the second media segment is presented based on a selection operation of the second media segment in the fourth media segment on the target editing track.

13. A transition special effect processing device, comprising: A first determining module, configured to determine a first media segment and a second media segment specified by a target transition task, wherein the second media segment is located after and adjacent to the first media segment on a target editing track; A second determination module is used to determine, in response to a first operation for triggering a superimposed transition effect on a target transition task, a third media segment and a fourth media segment placed in the target editing track, wherein the third media segment is composed of a first media segment and a first newly added segment connected to the first media segment along a timeline, and the fourth media segment is composed of a second media segment and a second newly added segment connected to the second media segment along a timeline, and the positions of the first media segment and the second media segment in the target editing track remain unchanged when the first operation is triggered; A generating module is used to form a superimposed transition effect at an overlapping portion between the third media segment and the fourth media segment.

14. An electronic device, comprising: one or more processors; a 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 special effect processing method as described in any one of claims 1-12.

15. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the transition special effect processing method as claimed in any one of claims 1 to 12 when executed by a computer processor.

Citation Information

Patent Citations

  • Multimedia editing method and intelligent terminal

    CN110494833A

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

    CN113556486A

  • Media content editing method and device, electronic equipment and storage medium

    CN116668418A

  • Media track organizing system and method therefore

    US20160259788A1