Transition effect processing method, apparatus, electronic device, and storage medium
By adding new segments to the ends and beginnings of adjacent media segments, the method maintains segment duration, enabling a seamless overlay transition effect without altering the total time length, addressing the duration changes in existing methods.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-09-27
- Publication Date
- 2026-07-08
Smart Images

Figure 2026522670000001_ABST
Abstract
Description
[Technical Field]
[0001] (Cross-reference of related applications) This application claims priority to a Chinese invention patent application filed on 28 September 2023, titled "Transition Effect Processing Method, Apparatus, Electronic Device and Storage Medium," with application number 202311285126.3, all contents of which are incorporated into this application by reference.
[0002] (Field of invention) The embodiments of this disclosure relate to the computer technology field, and more particularly to transition effect processing methods, apparatus, electronic devices, and storage media. [Background technology]
[0003] The short video application offers not only video recording capabilities but also extended features such as adding effects, filters, and tools. For example, in the audio-video clipping process, it allows you to add an overlay transition effect between adjacent audio-video segments.
[0004] In related solutions, it is necessary to analyze adjacent audio-video segments to be processed and generate overlay transition effects between adjacent audio-video segments, which is time-consuming and labor-intensive. Furthermore, when setting up overlay transition effects, it is common to overlay parts of the content of the previous audio-video segment with parts of the content of the next audio-video segment to generate the overlay transition effect, which changes the duration of the audio-video segment after the overlay transition, affecting the audio-video clip and making it impossible to obtain the appropriate audio-video segment. [Overview of the Initiative] [Problems that the invention aims to solve]
[0005] This disclosure provides a transition effect processing method, apparatus, electronic device, and storage medium for ensuring that the total time length of media segments does not change when an overlay transition effect is applied to two adjacent media segments. [Means for solving the problem]
[0006] According to a first aspect, an embodiment of the present disclosure provides a transition effect processing method, the method comprising determining 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 edit track, and determining a third media segment and a fourth media segment to be placed on the target edit track in response to a first operation to trigger an overlay transition effect for the target transition task, wherein the third media segment consists of the first media segment and a first newly added segment that follows the first media segment along the timeline, and the fourth media segment consists of the second media segment and a second newly added segment that follows the second media segment along the timeline, wherein the positions of the first media segment and the second media segment on the target edit track do not change when the first operation is triggered, and forming an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment.
[0007] According to a second aspect, an embodiment of the present disclosure further provides a transition effect processing apparatus, the apparatus comprising: a first determination module for determining 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 edit track; a second determination module for determining a third media segment and a fourth media segment to be placed on the target edit track in response to a first operation for triggering an overlay transition effect for a target transition task, wherein the third media segment comprises the first media segment and a first newly added segment connected after the first media segment, and the fourth media segment comprises the second media segment and a second newly added segment connected before the second media segment, wherein the positions of the first media segment and the second media segment on the target edit track do not change when the first operation is triggered; and a generation module for forming an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment.
[0008] According to a third aspect, embodiments of the present disclosure further provide an electronic device comprising at least one processor and a memory communicated to the at least one processor, the memory storing a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to cause the at least one processor to execute the transition effect processing method described in any one of the embodiments above.
[0009] According to a fourth aspect, embodiments of the present disclosure further provide a computer-readable medium on which computer instructions are stored, and which, when executed by a processor, are used to implement the transition effect processing method described in any one of the above embodiments. [Effects of the Invention]
[0010] Embodiments of this disclosure create a target transition task to perform transition editing on media segments, add a first newly added segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and add a second newly added segment to the beginning of a second media segment to form a corresponding fourth media segment. This enables an overlay of a portion of the screen at the end of the third media segment corresponding to the first media segment and a portion of the screen at the beginning of the fourth media segment corresponding to the second media segment. This achieves an overlay transition effect where the screen of the next media segment gradually appears and becomes clearer as the screen of the previous media segment gradually fades out. Furthermore, because the positions of the first and second media segments in the target editing track do not change, the total time length of the two adjacent media segments after the overlay transition effect is maintained unchanged.
[0011] The content described in this section is not intended to identify any essential or important features of the embodiments of this disclosure, nor to limit the scope of this disclosure. It should be understood that other features of this disclosure are more readily apparent from the following specification. [Brief explanation of the drawing]
[0012] Referring to the following embodiments for implementing the invention while associating with the drawings, the above and other features, advantages, and aspects of each embodiment of the present disclosure will become clearer. Throughout the drawings, the same or similar symbols represent the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale. [Figure 1] It is a flowchart of a transition effect processing method according to an embodiment of the present disclosure. [Figure 2a] It is a schematic diagram of an editing track interface applied to an embodiment of the present disclosure. [Figure 2b] It is a schematic diagram of adding an overlay transition effect between adjacent media segments applied to an embodiment of the present disclosure. [Figure 2c] It is another schematic diagram of an editing track interface applied to an embodiment of the present disclosure. [Figure 2d] It is a schematic diagram of the setting of an overlay transition effect in an editing track interface applied to an embodiment of the present disclosure. [Figure 2e] It is a schematic diagram of the interface effect of an overlay transition effect applied to an embodiment of the present disclosure. [Figure 3] It is a flowchart of another transition effect processing method according to an embodiment of the present disclosure. [Figure 4] It is a schematic diagram of the comparison of media segments in transition effect processing applied to an embodiment of the present disclosure. [Figure 5a] It is a schematic diagram of the setting of curve speed change in transition effect processing applied to an embodiment of the present disclosure. [Figure 5b] It is a schematic diagram of the action of curve speed change in transition effect processing applied to an embodiment of the present disclosure. [Figure 6] It is a schematic diagram of the structure of a transition effect processing device according to an embodiment of the present disclosure. [Figure 7] It is a schematic diagram of the structure of an electronic device for realizing a transition effect processing method according to an embodiment of the present disclosure.
Best Mode for Carrying Out the Invention
[0013] The following describes embodiments of the present disclosure in more detail with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, the present disclosure may be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, it should be understood that these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are used only for exemplary purposes and not for limiting the protection scope of the present disclosure.
[0014] It should be understood that each step described in the method embodiments of the present disclosure may be executed in a different order and / or executed in parallel. Note that the method embodiments may include additional steps and / or omit the execution of the steps shown. The scope of the present disclosure is not limited in this regard.
[0015] The term "comprising" and its variants used in this specification are open-ended inclusion, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" represents "at least one embodiment", the term "another embodiment" represents "at least one another embodiment", and the term "some embodiments" represents "at least some embodiments". Related definitions of other terms are given in the following description.
[0016] It should be noted that the concepts such as "first", "second", etc. referred to in the present disclosure are only used to distinguish different devices, modules or units and are not for limiting the order or interdependence of the functions executed by these devices, modules or units.
[0017] It should be noted that the modifications “one” and “multiple” as used in this disclosure are not restrictive but general, and that those skilled in the art should understand them as “one or more” unless otherwise explicitly stated in the context.
[0018] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and do not limit the scope of such messages or information.
[0019] Before using any of the technical solutions disclosed in each embodiment of this disclosure, it should be understood that the user should be informed in an appropriate manner in accordance with applicable laws and regulations regarding the type of personal information related to this disclosure, the scope of use, and the usage scenarios, and the user's permission should be obtained.
[0020] For example, when responding to a user's voluntary request, prompt information is sent to the user to clearly prompt the user that the operation requested to be performed will require the acquisition and use of the user's personal information. This allows the user to autonomously choose whether or not to provide personal information to software or hardware such as electronic devices, application programs, servers, or storage media that perform the operation of the proposed technical method of this disclosure, in accordance with the prompt information.
[0021] As a selective but not limited implementation, a method for sending prompt information to a user in response to receiving a voluntary request from the user may be, for example, a pop-up window, or the prompt information may be presented in text format within the pop-up window. The pop-up window may also include selection controls for the user to choose whether to "agree" or "disagree" to providing personal information to the electronic device.
[0022] The above notice and user permission process are general in nature and do not constitute a limitation on how this disclosure can be implemented. It should be understood that other methods that comply with applicable laws and regulations may also be used to implement this disclosure.
[0023] It should be understood that the data related to this proposed technology (including, but not limited to, the data itself, or the acquisition or use of the data) must comply with the requirements of applicable laws, regulations, and related provisions.
[0024] Figure 1 is a flowchart of a transition effect processing method according to an embodiment of the present disclosure, which applies when adding an overlay transition effect to two adjacent media segments, and this method may be performed by a transition effect processing device, which may be implemented in software and / or hardware form, and is generally integrated on any electronic device having network communication capabilities, which may be a mobile terminal, PC terminal or server, etc.
[0025] As shown in Figure 1, the transition effect processing method of the embodiment of this disclosure may include the following process.
[0026] S110 determines the first and second media segments specified by the target transition task, with the second media segment being located after and adjacent to the first media segment in the target edit track.
[0027] Referring to Figure 2a, multiple media segments are present on the target editing track of the editing interface. These media segments may be audio or video segments, and each media segment present on the target editing track may be a trimmed or untrimmed media segment. If a transition effect needs to be added between two adjacent media segments, a target transition task can be created. This task determines the first media segment 201 and the second media segment 202, and the target transition task is executed to provide a transition effect when transitioning from the first media segment 201 to the second media segment 202.
[0028] Referring to Figure 2a, the first media segment 201 and the second media segment 202 are selected and trimmed from multiple media segments present on the target editing track, and may be two adjacent media segments on the target editing track, with the second media segment 202 located after the first media segment 201 on the target editing track, and the end of the first media segment 201 connected to the beginning of the second media segment 202.
[0029] S120, in response to a first operation to trigger an overlay transition effect on a target transition task, determines a third media segment and a fourth media segment to be placed on the target edit track, wherein the third media segment consists of the first media segment and a first newly added segment that follows the first media segment along the timeline, and the fourth media segment consists of the second media segment and a second newly added segment that follows the second media segment along the timeline, and the positions of the first and second media segments on the target edit track do not change when the first operation is triggered.
[0030] Referring to Figure 2a, the target transition task triggers an overlay transition effect on the first media segment 201 and the second media segment 202, so that the overlay transition effect is applied when transitioning from the screen corresponding to the first media segment 201 to the screen corresponding to the second media segment 202. When setting up an overlay transition effect, it is generally a process in which the screen of the previous media segment and the screen of the next media segment are overlaid, with the screen of the previous media segment gradually fading away and the screen of the next media segment gradually appearing. As a result, the total duration of the media segments after the overlay transition changes, affecting the clipping of the media segments.
[0031] Therefore, referring to Figure 2b, when the application triggers the addition of an overlay transition effect to the first media segment 201 and the second media segment 202 specified by the target transition task, instead of simply overlaying the segment near the end of the first media segment 201 and the segment near the beginning of the second media segment 202, the application chooses to connect a first newly added segment 205 after the first media segment along the timeline corresponding to the target edit track, and to constitute a third media segment corresponding to the first media segment by the first newly added segment 205 and the original first media segment 201, and to connect a second newly added segment 204 before the second media segment 202 along the timeline corresponding to the target edit track, and to constitute a fourth media segment corresponding to the second media segment by the second newly added segment 204 and the original second media segment 202.
[0032] Selectively, a sequential succession relationship exists between the first newly added segment 205 and the segment at the end position of the first media segment in terms of screen continuity, and a sequential succession relationship exists between the second newly added segment 204 and the segment at the beginning position of the second media segment in terms of screen continuity.
[0033] Simultaneously, 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 and second media segments on the target edit track are kept constant before and after the first operation that triggers an overlay transition effect for the target transition task. Specifically, one first newly added segment 205 is connected after the end position of the first media segment on the target edit track, and one second newly added segment 204 is connected before the start position of the second media segment 202 on the target edit track, ensuring that the total time length of the media segments before and after the overlay transition effect does not change.
[0034] Selectively, the first newly added segment is determined based on the trimmed segment that was trimmed after the first media segment when the first media segment was formed by trimming, and the second newly added segment is determined based on the trimmed segment that was trimmed before the second media segment when the second media segment was formed by trimming.
[0035] As a selective but not limited implementation, a first operation for triggering an overlay transition effect for a target transition task includes a trigger 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 present when the identifier of the target transition task is triggered, and the identifier of the target transition task is configured to be present at the connection point of two adjacent media segments selected in the target edit track.
[0036] Referring to Figure 2d, adjacent identifiers for the target transition tasks corresponding to the first media segment 201 and the second media segment 202 are added to the adjacent positions of the first media segment 201 and the second media segment 202 that are present on the target editing track. In response to a trigger operation on the identifiers for 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 is set to multiple transition effect identifiers, such as a push-in transition effect, a black flash transition effect, and a dissolve transition effect (also called an overlay transition effect). The first operation may be a trigger operation on the identifier of the overlay transition effect selected in the transition effect selection area corresponding to the target transition task.
[0037] Referring to Figure 2d, a first operation for selectively triggering an overlay transition effect for a target transition task further includes an operation to set and trigger on the transition duration in the transition effect selection area corresponding to the target transition task. For example, the transition effect selection area may further include a transition duration adjuster, which, by adjusting the progress of the transition duration adjuster, can adjust the transition duration between the first and second media segments so that the duration of the overlay 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 overlap 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.
[0038] As a selective but non-restrictive implementation, determining the first and second media segments specified by the target transition task is: The process includes the step of determining a first and second media segment specified by a target transition task in response to a second operation which involves having at least two media segments present on a target editing track and triggering a target transition task for two adjacent media segments selected in at least two media segments.
[0039] Referring to Figure 2c, in response to an operation to add media material from the material library, at least two media materials corresponding to the add operation are retrieved, and the editing interface is displayed, on which a target editing track is present, and at least two media segments formed based on the at least two media materials corresponding to the add operation are placed on the target editing track, and the media segments may be audio segments or video segments. Furthermore, adjacent first and second media segments on the target editing track are selected, a second operation of the target transition task is triggered for the two selected media segments, and the first and second media segments specified by the target transition task corresponding to the second operation are determined.
[0040] A second operation, which selectively triggers a target transition task for two adjacent media segments selected in at least two media segments, includes a trigger operation on the target transition task identifier of the two adjacent media segments selected in the target edit track, where the target transition task identifier is configured to be present at the connection point of the two adjacent media segments selected in the target edit track.
[0041] Referring to Figure 2d, adjacent first media segment 201 and second media segment 202 that are present on the target editing track have identifiers for target transition tasks corresponding to the first media segment 201 and second media segment 202 added to their adjacent positions. The second operation is a trigger operation on the target transition task identifiers corresponding to the adjacent first media segment 201 and second media segment 202 selected on the target editing track. When the trigger operation is performed on the target transition task identifiers, the transition effect selection area corresponding to the target transition task is displayed.
[0042] S130 creates an overlay transition effect in the overlapping area between the third media segment and the fourth media segment.
[0043] When selectively positioning and displaying the overlapping portion between the third and fourth media segments on the target editing track, an overlay transition effect is present in the overlapping portion between the third and fourth media segments. For example, when positioning the playhead on the target editing track to the overlapping portion between the third and fourth media segments, an overlay transition effect is present in the overlapping portion between the third and fourth media segments on the target editing track.
[0044] Selectively, when the playhead position on the target editing track is moved to a first preset time range of the third media segment, an overlay transition effect is present at the playhead position on the target editing track, with the first preset time range determined based on the overlap time between the third and fourth media segments. When the playhead position on the target editing track is moved to a second preset time range of the fourth media segment, an overlay transition effect is present at the playhead position on the target editing track, with the second preset time range determined based on the overlap time between the fourth and third media segments.
[0045] Referring to Figures 2b and 2e, in the target editing track, the overlay transition effect of the first part is present in the overlapping area between the second newly added segment 204 and the first media segment 201 in the fourth media segment, and the overlay transition effect of the second part is present in the overlapping area between the first newly added segment 205 and the second media segment 202 in the third media segment. The overlay transition effects of the first part and the overlay transition effects of the second part together form the overlay transition effect of the first media segment 201 and the second media segment 202. For example, if the playhead is moved to a position close to the second media segment on the first media segment in the target editing track, the screen of the second newly added segment 204, which is connected in front of the first media segment, will faintly appear on the screen of the first media segment 201 in Figure 2e.
[0046] Based on the above embodiment, after selectively forming an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment, The process further includes generating a target output result based on a third media segment and a fourth media segment, where the target output result is either a draft preview before exporting the media segments or the target video after exporting the media segments.
[0047] Referring to Figures 2b and 2e, a preview area is displayed on the editing interface, and a draft preview of the third and fourth media segments present on the target editing track can be previewed and played back using the preview player in the preview area before they are exported. When the time range corresponding to the overlap between the third and fourth media segments is previewed and played back using the preview player in the preview area, an overlay transition effect is present. Referring to Figures 2b and 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 and exported as video segments according to the timeline order corresponding to the target editing track, and the target video of the overlay transition effect is present in the overlap between the third and fourth media segments.
[0048] The technical invention of the embodiment of this disclosure creates a target transition task to perform transition editing on media segments, adds a first newly added segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and adds a second newly added segment to the beginning of a second media segment to form a corresponding fourth media segment. This enables an overlay of a portion of the screen at the end of the third media segment corresponding to the first media segment and a portion of the screen at the beginning of the fourth media segment corresponding to the second media segment. This achieves an overlay transition effect where the screen of the next media segment gradually appears and becomes clearer as the screen of the previous media segment gradually fades out and disappears. Furthermore, because the positions of the first and second media segments in the target editing track do not change, the total time length of the two adjacent media segments after the overlay transition effect is maintained unchanged.
[0049] Figure 3 is a flowchart of another transition effect processing method according to an embodiment of the present disclosure, the technical proposal of this embodiment further optimizes the process of determining the third and fourth media segments to be placed on the target editing track in the above embodiment based on the above embodiment, and this embodiment can be combined with each of the selective solutions in the one or more of the above embodiments.
[0050] As shown in Figure 3, the transition effect processing method of the embodiment of this disclosure may include the following process.
[0051] S310 determines 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 in the target edit track.
[0052] S320, in response to a first operation to trigger an overlay transition effect on the target transition task, determines the target transition duration corresponding to the target transition task.
[0053] S330, based on the target transition time length and the time length of the first media segment, the media segment is trimmed from the start to the end of the first media segment in the first media material to obtain a third media segment to be placed on the target editing track. The first media material is the pre-trimmed media segment used when forming the first media segment by trimming, and the third media segment consists of the first media segment and a first newly added segment that follows the first media segment.
[0054] Referring to Figure 4, a first media material 206 corresponding to the first media segment is determined, and the first media material 206 is the media segment before trimming used when forming the first media segment by trimming. By trimming the media segment in the first media material 206 from the starting point to the ending point of the first media segment 201 (for example, from left to right in the first media material 206 in Figure 4), it is possible to replenish the media segment after the first media segment by trimming the media segment in the first media material 206, and in this way the first newly added segment 205 is connected after the first media segment 201, and a third media segment 208 can be obtained which consists of the first media segment 201 and the first newly added segment 205 connected after the first media segment.
[0055] S340, based on the target transition time length and the time length of the second media segment, the second media material is trimmed from the end point toward the start point of the second media segment to obtain a fourth media segment placed on the target editing track. The second media material is the pre-trimmed media segment used when forming the second media segment by trimming. The fourth media segment consists of the second media segment and a second newly added segment that precedes 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 do not change.
[0056] Referring to Figure 4, a second media material 207 corresponding to the second media segment is determined, and the second media material 207 is the media segment before trimming that is used when forming the second media segment by trimming. In the second media material 207, the media segment is trimmed from the end point of the second media segment 202 toward the beginning point (for example, in Figure 4, the second media material 207 is in the direction from right to left), and by trimming the media segment in the second media material 207, it is realized that a media segment is added before the second media segment, and in this way a second newly added segment 204 is connected before the second media segment 202, and a fourth media segment 209 can be obtained which consists of the second media segment 202 and the second newly added segment 204 connected before the second media segment.
[0057] Selectively, 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. Selectively, 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 is equal to the target transition duration. Selectively, 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 is equal to the target transition duration.
[0058] Selectively, a third media segment placed on the target editing track may be represented by the start and end times of the first media segment on the target editing track, and the start and end times of the third media segment relative to the first media material, where the first media material is the untrimmed media segment used when trimming to form the first media segment. A fourth media segment placed on the target editing track may be represented by the start and end times of the second media segment on the target editing track, and the start and end times of the fourth media segment relative to the second media material, where the second media material is the untrimmed media segment used when trimming to form the second media segment.
[0059] As a selective but not limited implementation, the first newly added segment is determined based on the first trimmed segment, the first trimmed segment is a media segment trimmed after the first media segment when the first media material is trimmed to form the first media segment, and the first media material is the untrimmed media segment used when the first media segment is formed by trimming.
[0060] Selectively, the duration of the first newly added segment following the first media segment is the duration of the first preset duration, the duration of the second newly added segment following the second media segment is the duration of the second preset duration, the sum of the durations of the first and second preset durations is equal to the target transition duration, and the durations of the first and second preset durations are either the same or different. Based on this, if the duration of the first trimming segment is greater than or equal to the duration of the first preset duration, the first newly added segment consists of a portion of the media segment in the first trimming segment. In this case, the duration of the media segment trimmed from after the end of the first media segment in the first media material is greater than or equal to the duration of the first preset duration, and the media segment replenishment after the first media segment can be fully performed simply by using the first trimming segment.
[0061] Selectively, the duration of the first newly added segment following the first media segment is the first preset duration, and the duration of the second newly added segment following the second media segment is the second preset duration. The sum of the first and second preset durations is equal to the target transition duration, and the first and second preset durations are either the same or different. Based on this, if the duration of the first trimming segment is less than the first preset duration, the first newly added segment consists of all media segments in the first trimming segment and the end frame in the first trimming segment. In this case, the duration of the media segments trimmed after the end of the first media segment in the first media material is less than the first preset duration, indicating that using only the first trimming segment is insufficient to fully replenish the media segments after the first media segment, and therefore further replenishment by the end frame in the first trimming segment is necessary.
[0062] Referring to Figure 2b, taking the example that the first preset time length is equal to the second preset time length, if the time length of the first trimming segment is less than the first preset time length (half of the target transition time length), the second newly added segment 204 will configure the first trimming segment and the end frame in the first trimming segment as static frames, and the time length of the second newly added segment will be equal to half of the target transition time length, where the time length of the second newly added segment satisfies Tstatic = (Ttransition / 2) - Ttrim, where Tstatic represents the time length for which the end frame in the first trimming segment is a static frame, Ttransition represents half of the time length of the second newly added segment, and Ttrim represents the time length of the first trimming segment. Here, since both the transition time and the time of the trimmed first segment are obtained at the UI layer, when adjusting the transition time, the UI layer only needs to calculate the adjustment screen in real time, and it locks and executes when the user releases their finger.
[0063] As a selective but not limited implementation, a second newly added segment is determined based on a second trimmed segment, the second trimmed segment being a media segment trimmed before the second media segment when forming the second media segment by trimming the second media material, and the second media material being the untrimmed media segment used when forming the second media segment by trimming.
[0064] Selectively, the duration of the first newly added segment following the first media segment is the duration of the first preset duration, the duration of the second newly added segment following the second media segment is the duration of the second preset duration, the sum of the durations of the first and second preset durations is equal to the target transition duration, and the durations of the first and second preset durations are either the same or different. Based on this, if the duration of the second trimming segment is greater than or equal to the duration of the second preset duration, the second newly added segment consists of some media segments from the second trimming segment. In this case, the duration of the media segments trimmed from before the start of the second media segment in the second media material is greater than or equal to the duration of the second preset duration, and the media segment replenishment before the second media segment can be fully performed simply by using the second trimming segment.
[0065] Selectively, the duration of the first newly added segment following the first media segment is the first preset duration, and the duration of the second newly added segment following the second media segment is the second preset duration. The sum of the first and second preset durations is equal to the target transition duration, and the first and second preset durations are either the same or different. Based on this, if the duration of the second trimming segment is less than the second preset duration, the second newly added segment consists of all the media segments in the second trimming segment and the start frame in the second trimming segment. In this case, the duration of the media segments trimmed from before the start of the second media segment in the second media material is less than the second preset duration, indicating that using only the second trimming segment is insufficient to fully replenish the media segments before the second media segment, and therefore further replenishment is required by the start frame in the second trimming segment.
[0066] Selectively, if the time length of the first trimming segment is zero, the first newly added segment consists only of static frames cut from the first media segment, and the first trimming segment is the media segment trimmed after the first media segment when the first media material is trimmed to form the first media segment. If the time length of the second trimming segment is zero, the second newly added segment consists only of static frames cut from the second media material, and the time length of the second trimming segment is the media segment trimmed before the second media segment when the second media material is trimmed to form the second media segment.
[0067] Selectively, the calculation of the start time TrimIn for the first media material in the third media segment and the start time TrimIn for the second media material in the fourth media segment is as follows:
[0068] The start time for the first media material in the third media segment can be calculated directly using TrimIn:source_time_range().start()*speed(). The start time of the fourth media segment relative to the first media material is TrimIn: (1) If the target transition start time of the first and second media segments is less than the start time of the second media material, the time length of the second trimmed segment trimmed from the second media material will be less than half the target transition time length, and static frame replenishment will be required, and the start time of the third media segment relative to the first media material will be D TrimIn =T startTransition -(T startTarget -f(t)T startSource (2) If the target transition start times of the first media segment and the second media segment are equal to or greater than the start time of the second media material, the duration of the second trimmed segment, which is trimmed from the second media material, is greater than half of the target transition duration, and static frame replenishment is unnecessary, and the start time of the third media segment relative to the first media material is D TrimIn =T startTransition -(T startTarget -f(t)T startSource This can be expressed as follows:
[0069] Selectively, the calculation of the TrimOut endpoint for the first media material in the third media segment and the TrimOut endpoint for the second media material in the fourth media segment is as follows:
[0070] The end point time TrimOut for the first media material of the third media segment is as follows.
[0071] D TrimOut =f(t)Ts tartSource +T durationSource +T durationTransiti / 2.
[0072] The end point time TrimOut for the second media material of the fourth media segment is as follows.
[0073] D TrimOut =f(t)T startSource +T durationSource Here, for the variable speed coefficient f(t): in the case of curve speed change, this f(t) value is the reciprocal of the speed change value at the critical point of non-transition; in the case of normal speed change, this f(t) value is the reciprocal of the speed change value.
[0074] S350 forms an overlay transition effect in the overlapping part between the third media segment and the fourth media segment.
[0075] As a selective but non-limiting implementation form, generating a target output result based on the third media segment and the fourth media segment includes the following steps A1 to A3.
[0076] Step A1, in response to a third operation that triggers a speed change setting for the first media segment in the third media segment on the target edit track, add a first curve speed change to the first media segment in the third media segment and add a speed change at the end point corresponding to the first curve speed change to the first newly added segment in the third media segment.
[0077] Selectively, the third operation includes a trigger operation on an identifier for setting the shift, which is present in the third media segment on the target editing track in relation to the first media segment, and the identifier for setting the shift, which is present in relation to the first media segment, is present based on the selection operation of the first media segment in the third media segment on the target editing track.
[0078] Referring to Figure 5a, the identifier for setting the gear shift, which is present in the first media segment, is present based on the selection operation of the first media segment 201 in the third media segment on the target editing track, and is, for example, the identifier for normal gear shift and curved gear shift. Furthermore, a trigger operation is performed on the identifier for setting the gear shift, which is present in the third media segment on the target editing track in the first media segment 201.
[0079] Referring to Figure 5b, the first media segment is presented in the third media segment, and a first curved speed change is added to the first media segment in the third media segment, but the terminal endpoint velocity of the first curved speed change used in the first media segment before transitioning to the first newly added segment that follows the first media segment is added, and the speed change acts on the first newly added segment portion that follows the first media segment. Here, the first curved speed change acts on the first media segment, and after cutting or stretching, the first curved speed change acts on the first media segment in the third media segment. After the transition is added, the stretched portion, trimmed portion and static frame portion are generated, and the speed change rate of the first newly added segment of the extended portion is the terminal endpoint velocity value of the first curved speed change.
[0080] Step A2, in response to the fourth operation which triggers a speed change setting 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 start / end speed change corresponding to the second curve speed change is added to the second newly added segment in the fourth media segment.
[0081] Selectively, the fourth operation includes a trigger operation on an identifier for setting the shift, which is present in the fourth media segment on the target editing track in relation to the second media segment, and the identifier for setting the shift, which is present in relation to the second media segment, is present based on the selection operation of the second media segment on the fourth media segment on the target editing track.
[0082] Referring to Figure 5b, the second media segment is presented in the fourth media segment, and a second curved speed change is added to the second media segment in the fourth media segment, but the start and end points of the second curved speed change used in the second media segment before the transition to the second newly added segment that connects to the second media segment are added, and the speed change acts on the second newly added segment portion that connects to the second media segment. Here, the second curved speed change acts on the second media segment, and after cutting or stretching, the second curved speed change acts on the second media segment in the fourth media segment. After the transition is added, the stretched portion, trimmed portion and static frame portion are generated, and the speed change rate of the second newly added segment of the extended portion is the start and end point velocity value of the second curved speed change.
[0083] Step A3 generates a target output result based on the third media segment, the corresponding speed change for the third media segment, the fourth media segment, and the corresponding speed change for the fourth media segment, and the target output result is either a draft preview before exporting the media segments or the target video after exporting the media segments.
[0084] Selectively, the shift panel extends the newly added segment portion according to the corresponding time length ratio. The start / end point (left endpoint) of the connected and extended second newly added segment or the end point (right endpoint) of the first newly added segment cannot be adjusted. A shift point cannot be added between the start / end point (left endpoint) of the second newly added segment portion and the start point of the second media segment. By adjusting the shift rate of the start point of the second media segment, the shift rate of the left endpoint of the second newly added segment portion can be changed, and the start / end points of the second newly added segment can be recalculated according to the new shift rate. A shift point cannot be added between the end point (right endpoint) of the first newly added segment portion and the end point of the first media segment. By adjusting the shift rate of the end endpoint of the first media segment, the shift rate of the right endpoint of the first newly added segment can be changed, and the end point of the first newly added segment can be recalculated according to the new rate.
[0085] As a selective but non-restrictive implementation, the system further includes performing keying, destrobbing, noise reduction, image stabilization, and motion tracking on the first newly added segment and the second newly added segment 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.
[0086] The technical invention of the embodiment of this disclosure creates a target transition task to perform transition editing on media segments, adds a first newly added segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and adds a second newly added segment to the beginning of a second media segment to form a corresponding fourth media segment. This enables an overlay of a portion of the screen at the end of the third media segment corresponding to the first media segment and a portion of the screen at the beginning of the fourth media segment corresponding to the second media segment. This achieves an overlay transition effect where the screen of the next media segment gradually appears and becomes clearer as the screen of the previous media segment gradually fades out and disappears. Furthermore, because the positions of the first and second media segments in the target editing track do not change, the total time length of the two adjacent media segments after the overlay transition effect is maintained unchanged.
[0087] Figure 6 is a schematic diagram of the structure of a transition effect processing device according to an embodiment of the present disclosure, which applies when adding an overlay transition effect to two adjacent media segments, and this transition effect processing device may be implemented in software and / or hardware form and is generally integrated on any electronic device having network communication capabilities, which may be a mobile terminal, PC terminal or server, etc.
[0088] As shown in Figure 6, the transition effect processing apparatus of the embodiment of the present disclosure may include a first decision module 610, a second decision module 620, and a generation module 630. The first determination module 610 is used to determine a first media segment and a second media segment specified by the target transition task, wherein the second media segment is located after and adjacent to the first media segment in the target editing track. The second decision module 620 is used to determine a third media segment and a fourth media segment to be placed on the target edit track in response to a first operation to trigger an overlay transition effect on a target transition task, wherein the third media segment consists of a first media segment and a first newly added segment that follows the first media segment along the timeline, and the fourth media segment consists of a second media segment and a second newly added segment that follows the second media segment along the timeline, wherein the positions of the first media segment and the second media segment on the target edit track do not change when the first operation is triggered. The generation module 630 is used to form an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment.
[0089] Based on the above embodiment, the method further includes selectively forming an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment, and then generating a target output result based on the third media segment and the fourth media segment, wherein the target output result is either a draft preview before exporting the media segments or a target video after exporting the media segments.
[0090] Based on the above embodiment, selectively determining a first media segment and a second media segment specified by a target transition task includes having at least two media segments present on a target edit track, and determining a first media segment and a second media segment specified by a target transition task in response to a second operation that triggers a target transition task on two adjacent media segments selected in at least two media segments.
[0091] Based on the above embodiment, the second operation optionally includes a trigger operation on the identifier of a target transition task for two adjacent media segments selected in the target editing track, wherein the identifier of the target transition task is configured to be present at the connection point of the two adjacent media segments selected in the target editing track.
[0092] Based on the above embodiment, selectively, the first operation includes a trigger operation on the identifier of the overlay transition effect selected in the transition effect selection area corresponding to the target transition task.
[0093] Based on the above embodiment, selectively, the first operation further includes an operation that is set and triggered on the transition time length in the transition effect selection area corresponding to the target transition task.
[0094] Based on the above embodiment, selectively determining a third media segment and a fourth media segment to be placed on the target editing track includes determining a target transition time length corresponding to a target transition task, and obtaining a third media segment to be placed on the target editing track by trimming the media segment in the first media material from the start point toward the end point of the first media segment, based on the target transition time length and the time length of the first media segment, wherein the first media material is the untrimmed media segment used when forming the first media segment by trimming, and obtaining a fourth media segment to be placed on the target editing track by trimming the media segment in the second media material from the end point toward the start point of the second media segment, based on the target transition time length and the time length of the second media segment, wherein the second media material is the untrimmed media segment used when forming the second media segment by trimming.
[0095] Based on the above embodiment, selectively, the first newly added segment is determined based on the first trimmed segment, the first trimmed segment being a media segment trimmed after the first media segment when the first media material is trimmed to form the first media segment, and the second newly added segment is determined based on the second trimmed segment, the second trimmed segment being a media segment trimmed before the second media segment when the second media material is trimmed to form the second media segment.
[0096] Based on the above embodiment, selectively, if the time length of the first trimming segment is greater than or equal to the first preset time length, the first newly added segment consists of some media segments in the first trimming segment; if the time length of the first trimming segment is less than the first preset time length, the first newly added segment consists of all media segments in the first trimming segment and the end frame in the first trimming segment; if the time length of the second trimming segment is greater than or equal to the second preset time length, the second newly added segment consists of some media segments in the second trimming segment; and if the time length of the second trimming segment is less than the second preset time length, the second newly added segment consists of all media segments in the second trimming segment and the start frame in the second trimming segment, where the sum of the first preset time length and the second preset time length is equal to the target transition time length.
[0097] Based on the above embodiment, selectively generating a target output result based on the third media segment and the fourth media segment includes, in response to a third operation that triggers a speed setting for the first media segment in the third media segment on the target editing track, adding a first curve speed to the first media segment in the third media segment and adding a terminal speed corresponding to the first curve speed to the first newly added segment in the third media segment; in response to a fourth operation that triggers a speed setting for the second media segment in the fourth media segment on the target editing track, adding a second curve speed to the second media segment in the fourth media segment and adding a start / end speed corresponding to the second curve speed to the second newly added segment in the fourth media segment; and generating a target output result based on the third media segment, the speed corresponding to the third media segment, the fourth media segment, and the speed corresponding to the fourth media segment.
[0098] Based on the above embodiment, selectively, the third operation includes a trigger operation on an identifier for setting the shift speed, which is present in the third media segment on the target editing track corresponding to the first media segment, and the identifier for setting the shift speed, which is present in the first media segment, is present based on a selection operation of the first media segment on the third media segment on the target editing track; and the fourth operation includes a trigger operation on an identifier for setting the shift speed, which is present in the fourth media segment on the target editing track corresponding to the second media segment, and the identifier for setting the shift speed, which is present in the second media segment, is present based on a selection operation of the second media segment on the fourth media segment on the target editing track.
[0099] The technical invention according to the embodiment of this disclosure creates a target transition task to perform transition editing on media segments, adds a first newly added segment to the end of an adjacent and connected first media segment to form a corresponding third media segment, and adds a second newly added segment to the beginning of a second media segment to form a corresponding fourth media segment. This enables an overlay of a portion of the screen at the end of the third media segment corresponding to the first media segment and a portion of the screen at the beginning of the fourth media segment corresponding to the second media segment. This achieves an overlay transition effect where the screen of the next media segment gradually appears and becomes clearer as the screen of the previous media segment gradually fades out and disappears. Furthermore, because the positions of the first and second media segments in the target editing track do not change, the total time length of the two adjacent media segments after the overlay transition effect is maintained unchanged.
[0100] A transition effect processing apparatus according to an embodiment of the present disclosure can perform a transition effect processing method according to any embodiment of the present disclosure and has a functional module and beneficial effects corresponding to the execution method.
[0101] The units and modules included in the above-mentioned device are merely separated according to functional logic and are not limited to the above classifications; they only need to be able to realize the corresponding function. Furthermore, the specific names of each functional unit are merely for the purpose of facilitating their distinction from one another and are not intended to limit the scope of protection of the embodiments of this disclosure.
[0102] Figure 7 is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Referring to Figure 7, the following diagram shows a schematic diagram of the structure of an electronic device (e.g., a terminal device or server in Figure 7) 500 suitable for implementing an embodiment of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile devices such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 7 is merely an example, and no arbitrary limitations should be placed on the functions and scope of use of the embodiments of the present disclosure.
[0103] As shown in Figure 7, the electronic device 500 may include a processing unit (e.g., a central processor, graphics processor, etc.) 501, which can perform various appropriate operations and processes based on a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. RAM 503 further stores various programs and data necessary for the operation of the electronic device 500. The processing unit 501, ROM 502, and 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.
[0104] Generally, input devices 506, including, for example, touchscreens, touchboards, keyboards, mice, cameras, microphones, accelerometers, and gyroscopes; output devices 507, including, for example, liquid crystal displays (LCDs), speakers, and vibrators; storage devices 508, including, for example, magnetic tape and hard disks; and communication devices 509 can be connected to the I / O interface 505. The communication devices 509 can allow the electronic device 500 and other devices to exchange data via wireless or wired communication. Figure 7 shows an electronic device 500 with various devices, but it should be understood that it is not required to implement or include all the devices shown. Alternatively, more or fewer devices can be implemented or included.
[0105] In particular, according to embodiments of the present disclosure, the process described with reference to the flowchart above can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product which includes a computer program placed on a non-temporary computer-readable medium, and which includes program code for performing the method shown in the flowchart. In such embodiments, the computer program may 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 unit 501, the above-described functions, limited to the method of embodiments of the present disclosure, are performed.
[0106] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and do not limit the scope of such messages or information.
[0107] The electronic devices according to the embodiments of this disclosure belong to the same inventive concept as the transition effect processing method according to the above embodiments, and technical details not described in detail in these embodiments can be referenced to the above embodiments, and these embodiments have the same beneficial effects as the above embodiments.
[0108] Embodiments of this disclosure provide a computer storage medium on which a computer program is stored, and when this program is executed by a processor, the transition effect processing method according to the above embodiment is realized.
[0109] The computer-readable medium described above in this disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage mediums 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, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device. On the other hand, in this disclosure, a computer-readable signaling medium may include data signals propagated in the baseband or as part of a carrier, on which computer-readable program code is carried. Such propagated data signals may be in various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signaling medium may be any computer-readable medium other than a computer-readable storage medium, and this computer-readable signaling medium may transmit, propagate, or transmit programs for use by or in combination with instruction execution systems, apparatus, or devices. The program code contained on the computer-readable medium may be transmitted by any suitable medium, including but not limited to electric wires, optical cables, RF (radio frequency), or any suitable combination thereof.
[0110] In some embodiments, clients and servers can communicate using any currently known or future-to-be-developed network protocol, such as HTTP (HyperText Transfer Protocol), and can interconnect with digital data communications (e.g., communication networks) in any form or medium. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the World Wide Web (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), and any currently known or future-to-be-developed networks.
[0111] The computer-readable medium described above may be included in the electronic device described above, or it may be a standalone entity not assembled in the electronic device.
[0112] The computer-readable medium contains one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is instructed 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 the target edit track; and to determine a third media segment and a fourth media segment to be placed on the target edit track in response to a first operation to trigger an overlay transition effect for the target transition task, wherein the third media segment consists of the first media segment and a first newly added segment that follows the first media segment along the timeline; and the fourth media segment consists of the second media segment and a second newly added segment that follows the second media segment along the timeline; and to ensure that the positions of the first media segment and the second media segment on the target edit track do not change when the first operation is triggered; and to form an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment.
[0113] Computer program code for performing the operations of the Disclosure can be written in one or more programming languages or a combination thereof, and such programming languages include, but are not limited to, object-oriented programming languages—e.g., Java®, Smalltalk, C++, and more broadly, general procedural programming languages—e.g., the "C" language or similar programming languages. The program code may run entirely on a user computer, partially on a user computer, run as a single, independent software package, run partially on a user computer, partially on a remote computer, or run entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it may be connected to an external computer (e.g., connected via the Internet using an Internet service provider).
[0114] The flowcharts and block diagrams in the drawings illustrate the implementable systematic architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or portion of code, which includes one or more executable instructions for implementing a defined logic function. In some implementations as alternatives, the functions attached to the blocks may occur in a different order than those attached in the drawings. For example, two consecutive blocks may actually be executed essentially in parallel, or in reverse order depending on the functions involved. Each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the defined function or operation, or by a combination of dedicated hardware and computer instructions.
[0115] The units described in relation to the embodiments of this disclosure may be implemented in software or in hardware. Herein, the names of the units are not limited in any case to the unit itself; for example, the first acquisition unit may be further described as "a unit for acquiring at least two Internet Protocol addresses."
[0116] In this specification, the functions described above may be performed by at least partially one or more hardware logic components. For example, without limitation, typical types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), dedicated integrated circuits (ASICs), dedicated standard products (ASSPs), systems on a chip (SOCs), and complex programmable logic devices (CPLDs).
[0117] In the context of this disclosure, a machine-readable medium may be a tangible medium which may contain or store a program for use by or in combination with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the contents described above. More specific examples of machine-readable storage media include one or more line-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the contents described above.
[0118] The above description is merely an explanation of better embodiments of the disclosure and the technical principles to which they are applied. Those skilled in the art will understand that the scope of the disclosure is not limited to any technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalents, without departing from the concept of the disclosure. For example, technical solutions formed by replacing the above features with similar functional technical features disclosed (but not limited to) in this disclosure.
[0119] Although each operation is described using specific procedures, this should not be understood as requiring that these operations be performed by the specific or sequential procedures shown. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although the above discussion includes some specific implementation details, these should not be construed as limiting the scope of this disclosure. Some features described in the context of a single embodiment may be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may be implemented in multiple embodiments individually or in any suitable subcombination.
[0120] Although this topic has already been described using language specific to structural features and / or methodological logic, it should be understood that the topic limited to the attached claims is not necessarily limited to the specific features or operations described above. Conversely, the specific features and operations described above are merely illustrative forms of realizing the claims.
Claims
1. Determining 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 in the target editing track. Determining a third media segment and a fourth media segment to be placed on the target edit track in response to a first operation to trigger an overlay transition effect on a target transition task, wherein the third media segment consists of a first media segment and a first newly added segment that follows the first media segment along the timeline, and the fourth media segment consists of a second media segment and a second newly added segment that follows the second media segment along the timeline, wherein the positions of the first media segment and the second media segment on the target edit track do not change when the first operation is triggered. This includes forming an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment. Transition effect processing method.
2. After forming an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment, The method according to claim 1, further comprising generating a target output result based on the third media segment and the fourth media segment, wherein the target output result is a draft preview before exporting the media segments or a target video after exporting the media segments.
3. Determining the first and second media segments specified by the target transition task is: The requirement is to have at least two media segments present on the target editing track, The method according to claim 1, comprising determining a first media segment and a second media segment specified by a target transition task in response to a second operation that triggers a target transition task for two adjacent media segments selected in at least two media segments.
4. The second operation includes a trigger operation on the identifiers of the target transition tasks for two adjacent media segments selected in the target editing track, The method according to claim 3, wherein the identifier of the target transition task is configured to be present at the connection point of two adjacent media segments selected in the target editing track.
5. The method according to claim 1, wherein the first operation includes a trigger operation on the identifier of an overlay transition effect selected in the transition effect selection area corresponding to the target transition task.
6. The method according to claim 5, wherein the first operation further includes an operation to set and trigger on the transition time length in the transition effect selection area corresponding to the target transition task.
7. Determining the third and fourth media segments to be placed on the target editing track is: Determining the target transition time length corresponding to the target transition task, Based on the target transition time length and the time length of the first media segment, the media segment is trimmed from the first media material toward the end point of the first media segment to obtain a third media segment to be placed on the target editing track, wherein the first media material is the pre-trimmed media segment used when forming the first media segment by trimming. The method according to claim 1, comprising: trimming the second media material from the end point toward the start point of the second media segment based on the target transition time length and the time length of the second media segment to obtain a fourth media segment to be placed on the target editing track, wherein the second media material is the pre-trimmed media segment 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 a first trimming segment, the first trimming segment being a media segment trimmed after the first media segment when forming the first media segment by trimming the first media material, and the second newly added segment is determined based on a second trimming segment, the second trimming segment being a media segment trimmed before the second media segment when forming the second media segment by trimming the second media material.
9. If the time length of the first trimming segment is greater than or equal to the first preset time length, the first newly added segment is composed of a portion of the media segments in the first trimming segment. If the time length of the first trimming segment is less than the first preset time length, the first newly added segment consists of all media segments in the first trimming segment and the end frame in the first trimming segment. If the time length of the second trimming segment is greater than or equal to the second preset time length, the second newly added segment is composed of a portion of the media segments in the second trimming segment. If the time length of the second trimming segment is less than the second preset time length, the second newly added segment consists of all media segments in the second trimming segment and the start frame in the second trimming segment. The method according to claim 8, wherein the sum of the first preset time length and the second preset time length is equal to the target transition time length.
10. The method according to claim 7, wherein if the time length of the first trimming segment is zero, the first newly added segment consists only of static frames cut from the first media segment, and if the time length of the second trimming segment is zero, the second newly added segment consists only of static frames cut from the second media material.
11. Generating the target output result based on the third media segment and the fourth media segment is: In response to a third operation that triggers a speed change setting 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 a speed change at the terminal point 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 a shift setting for a second media segment in a fourth media segment on a target editing track, a second curve shift is added to the second media segment in the fourth media segment, and a shift of start and end points corresponding to the second curve shift is added to a second newly added segment in the fourth media segment, The method according to claim 1, comprising generating a target output result based on the third media segment, the gear change corresponding to the third media segment, the fourth media segment, and the gear change corresponding to the fourth media segment.
12. The third operation includes a trigger operation on an identifier for setting the shift, which is present in the third media segment on the target editing track in relation to the first media segment, and the identifier for setting the shift, which is present in relation to the first media segment, is present based on the selection operation of the first media segment on the third media segment on the target editing track. The method according to claim 11, wherein the fourth operation includes a trigger operation on an identifier for setting a shift, which is present in the fourth media segment on the target editing track in relation to the second media segment, and the identifier for setting a shift, which is present in relation to the second media segment, is present based on a selection operation of the second media segment on the fourth media segment on the target editing track.
13. A first determination module for determining 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 in the target edit track, and the first determination module A second determination module for determining a third media segment and a fourth media segment to be placed on the target edit track in response to a first operation for triggering an overlay transition effect on a target transition task, wherein the third media segment consists of a first media segment and a first newly added segment that follows the first media segment along the timeline, and the fourth media segment consists of a second media segment and a second newly added segment that follows the second media segment along the timeline, and the positions of the first media segment and the second media segment on the target edit track do not change when the first operation is triggered. The system includes a generation module for forming an overlay transition effect in the overlapping portion between the third media segment and the fourth media segment. Transition effect processing unit.
14. One or more processors, An electronic device comprising a memory device for storing one or more programs, The one or more programs are executed by the one or more processors, causing the one or more processors to implement the transition effect processing method described in any one of claims 1 to 12. electronic equipment.
15. When executed by a computer processor, the computer-executable instructions include instructions for performing the transition effect processing method described in any one of claims 1 to 12. storage medium.