Transition special effect processing method and device, electronic equipment and storage medium
By adding new clips to audio and video clips to form superimposed transition effects, the problem of changing the duration of adjacent audio and video clips is solved, and clear transition effect and time length maintenance is achieved.
Patent Information
- Application Number
- CN202311285126.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2043-09-28
AI Technical Summary
During the audio and video editing process, the superposition transition effect processing between adjacent audio and video clips is time-consuming and labor-intensive, and may cause the duration of audio and video clips to change, affecting the editing effect.
By determining adjacent first and second media clips on the target editing track, and when triggering the superimposed transition special effect, the first new clip is added to the end of the first media clip, and the second new clip is connected to the head end of the second media clip to form the third and fourth media clips, achieving the superimposed transition special effect of gradually dimming and gradually appearing in the picture.
It realizes clear superimposed transition effects while keeping the total duration of audio and video clips unchanged, improving the efficiency and effect of audio and video editing.
Smart Images

Figure CN119729111A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] 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.
[0003] In the related schemes, it is necessary to analyze the adjacent audio and video clips to be processed and generate superimposed transition effects between them, which is time-consuming and labor-intensive. In addition, 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. Summary of the invention
[0004] The present invention 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 superimposing transition special effects on two adjacent media segments.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for processing transition special effects, the method comprising:
[0006] 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;
[0007] 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;
[0008] A superimposed transition effect is formed at the overlapping portion between the third media segment and the fourth media segment.
[0009] In a second aspect, the embodiments of the present disclosure further provide a transition special effect processing device, the device comprising:
[0010] 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;
[0011] A second determination module is used for determining, 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 after the first media segment, and the fourth media segment is composed of a 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 in the target editing track remain unchanged;
[0012] 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.
[0013] In a third aspect, an electronic device is also provided in an embodiment of the present disclosure, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the transition special effect processing method described in any one of the above embodiments.
[0017] In a fourth aspect, a computer-readable medium is also 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.
[0018] The disclosed embodiment creates a target transition task for performing transition editing on a media segment, and forms a corresponding third media segment by adding a first newly added segment at the end of a first media segment that is adjacent and connected end to end, and forms a corresponding fourth media segment by adding a second newly added segment at the beginning of a second media segment, so that a portion of the picture at the end of the third media segment corresponding to the first media segment and a portion 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, and 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 is maintained unchanged.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 It is a flowchart of a method for processing transition special effects provided by an embodiment of the present disclosure;
[0022] Figure 2a is a schematic diagram of an editing track interface applicable to the embodiment of the present disclosure;
[0023] Figure 2b It is a schematic diagram of adding a superimposed transition effect between adjacent media segments applicable to an embodiment of the present disclosure;
[0024] Figure 2c is another schematic diagram of an editing track interface applicable to the embodiment of the present disclosure;
[0025] Figure 2d It is a schematic diagram of a configuration of superimposed transition effects in an editing track interface applicable to an embodiment of the present disclosure;
[0026] Figure 2e This is a schematic diagram of an interface effect of superimposed transition special effects applicable to the embodiment of the present disclosure;
[0027] Figure 3 It is a flowchart of another method for processing transition special effects provided by an embodiment of the present disclosure;
[0028] Figure 4 is a comparative schematic diagram of media segments in a transition special effect processing applicable to an embodiment of the present disclosure;
[0029] Figure 5a It is a schematic diagram of a curve speed change configuration in a transition special effect processing applicable to an embodiment of the present disclosure;
[0030] Figure 5b It is a schematic diagram of the effect of curve speed change in transition special effect processing applicable to an embodiment of the present disclosure;
[0031] Figure 6 It is a structural schematic diagram of a transition special effect processing device provided by an embodiment of the present disclosure;
[0032] Figure 7 It is a structural schematic diagram of an electronic device for implementing a method for processing transition special effects provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] Embodiments of the present disclosure will be described in more detail below 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 being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0034] 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.
[0035] The term "including" and its variations used herein are open inclusions, 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"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0037] 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, it should be understood as "one or more".
[0038] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0039] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present 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.
[0040] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0041] As an optional but non-limiting implementation, in response to receiving an active request from the user, 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. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0042] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0043] 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) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0044] Figure 1 A flow chart of a transition special effect processing method provided in an embodiment of the present disclosure is applicable to the case of adding superimposed transition special effects between two adjacent media segments. The method can be executed by a transition special effect processing device, which can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0045] like Figure 1 As shown, the transition special effect processing method of the embodiment of the present disclosure may include the following process:
[0046] S110: 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.
[0047] See also Figure 2a, a plurality of media segments are presented on the target editing track of the editing interface, and the media segments may be audio segments or video segments, and each media segment presented on the target editing track may be a trimmed media segment or an uncropped media segment. When a transition effect needs to be added between two adjacent media segments, a target transition task may be created, and the first media segment 201 and the second media segment 202 specified by the target transition task may be determined, so that the transition effect is achieved when the first media segment 201 is switched to the second media segment 202 by executing the target transition task.
[0048] See also 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.
[0049] S120. In response to a first operation for triggering a superimposed transition effect for a target transition task, a third media segment and a fourth media segment placed on a target editing track are determined, 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 a 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 a 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.
[0050] See also Figure 2a , triggering the superimposed transition special effect for the first media segment 201 and the second media segment 202 specified by the target transition task, so as to have the superimposed transition special effect when switching from the picture corresponding to the first media segment 201 to the picture corresponding to the second media segment 202. Since when configuring the superimposed transition special effect, the picture of the previous media segment is usually superimposed with the picture of the next media segment, the picture of the previous media segment gradually disappears, and the picture of the next media segment gradually appears, the total duration of the media segment after the superimposed transition will change, which will affect the editing of the media segment.
[0051] For this purpose, see Figure 2bWhen triggering 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, the present application 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 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.
[0052] 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.
[0053] Also, see Figure 2a and Figure 2c For the first media segment in the third media segment and the second media segment in the fourth media segment, 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, the first newly added segment 205 is connected after the end position of the first media segment placed on the target editing track, and the 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.
[0054] Optionally, the second additional 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 additional 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.
[0055] 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 on 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 two adjacent media clips selected on the target editing track.
[0056] See also Figure 2d, the adjacent positions of the first media segment 201 and the second media segment 202 presented on the target editing track are added with the identifiers of the target transition tasks corresponding to the first media segment 201 and the second media segment 202. In response to the triggering operation of the identifiers of the target transition tasks corresponding to the first media segment 201 and the second media segment 202, the transition special effect selection area corresponding to the target transition task is displayed. A plurality of transition special effect identifiers are set in the transition special effect selection area, such as a push transition special effect, a flash-to-black transition special effect, and a superimposed transition special effect (also referred to as a superimposed transition special effect). The first operation may specifically be a triggering operation of selecting the identifier of the superimposed transition special effect in the transition special effect selection area corresponding to the target transition task.
[0057] See also Figure 2d 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 also configured in the transition effect selection area, and the 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 part between the third media segment corresponding to the first media segment and the fourth media segment corresponding to the second media segment is equal to the target transition duration.
[0058] As an optional but non-limiting implementation, determining the first media segment and the second media segment specified by the target transition task includes the following steps:
[0059] 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.
[0060] See also Figure 2c In response to the operation of adding a media material from the material library, at least two media materials corresponding to the adding operation are obtained and the editing interface is displayed. A target editing track is presented in the editing interface. At least two media segments formed based on the at least two media materials corresponding to the adding operation are placed on the target editing track. The media segments can be audio segments or video segments. Then, the adjacent first media segment and second media segment on the target editing track are selected, and the second operation of the target transition task is triggered for the selected two media segments, and the first media segment and the second media segment specified by the target transition task corresponding to the second operation are determined.
[0061] Optionally, the second operation of triggering the target transition task for two selected adjacent media segments among at least two media segments includes a triggering operation of identifying the target transition task for two selected adjacent media segments on the target editing track; the identifier of the target transition task is configured to be presented at the connection position of the two selected adjacent media segments on the target editing track.
[0062] See also Figure 2d , the adjacent positions of the first media segment 201 and the second media segment 202 presented on the target editing track are added with the identifiers of the target transition tasks corresponding to the first media segment 201 and the second media segment 202. The second operation is a trigger operation for the identifiers of the target transition tasks corresponding to the adjacent first media segment 201 and the second media segment 202 selected on the target editing track. When the trigger operation is performed on the identifiers of the target transition tasks, a transition special effect selection area corresponding to the target transition tasks is displayed.
[0063] S130: forming a superimposed transition effect at an overlapping portion between the third media segment and the fourth media segment.
[0064] Optionally, when the overlapping portion between the third media segment and the fourth media segment is positioned on the target editing track for display, a superimposed transition effect is presented on the overlapping portion between the third media segment and the fourth media segment. For example, when the playhead position is positioned on the target editing track to the overlapping portion between the third media segment and the fourth media segment, a superimposed transition effect is presented on the overlapping portion between the third media segment and the fourth media segment on the target editing track.
[0065] Optionally, when the playback head position is positioned within a first preset time range of the third media segment on the target editing track, a superimposed 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 a second preset time range of the fourth media segment on the target editing track, a superimposed 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.
[0066] See also Figure 2b and Figure 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 the first part of the superimposed transition special effect, and the overlapping portion of the first newly added segment 205 and the second media segment 202 in the third media segment presents the second part of the superimposed transition special effect. The first part of the superimposed transition special effect and the second part of the superimposed transition special effect together form the superimposed transition special effect of the first media segment 201 and the second media segment 202. For example, when the playhead is moved to a position on the first media segment close to the second media segment on the target editing track, Figure 2e The picture of the second newly added segment 204 which is connected before the first media segment appears vaguely on the picture of the first media segment 201.
[0067] Based on the above embodiment, optionally, after the overlapping portion between the third media segment and the fourth media segment forms a superimposed transition effect, the method further includes:
[0068] 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.
[0069] See also Figure 2b and Figure 2e , the preview area is displayed on the editing interface. You can use the preview player in the preview area to preview and play the draft preview of the third media segment and the fourth media segment presented on the target editing track before export. When the preview player in the preview area is used to preview and play the time range corresponding to the overlapping part between the third media segment and the fourth media segment, a superimposed transition effect is presented. See Figure 2b and Figure 2e In response to the video export operation on the third media segment and the fourth media segment, the third media segment and the fourth media segment on the target editing track can be synthesized as video segments according to the timeline order corresponding to the target editing track and the target video with superimposed transition effects presented in the overlapping part between the third media segment and the fourth media segment can be exported.
[0070] The technical solution of the disclosed embodiment 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 a first media segment that is adjacent and connected end to end, and forms a corresponding fourth media segment by adding a second newly added segment at the beginning of a 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, and 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.
[0071] Figure 3 A flow chart of another method for processing transition special effects provided in 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 in 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.
[0072] like Figure 3 As shown, the transition special effect processing method of the embodiment of the present disclosure may include the following process:
[0073] 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.
[0074] 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.
[0075] 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 on the target editing track. The first media material is a 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 to the first media segment.
[0076] See also Figure 4 , determine the second media material 206 corresponding to the first media segment, where the first media material 206 is the media segment before cutting used when the first media segment is formed by cutting. Figure 4The media segment is intercepted from the first media material 206 (from left to right), and the media segment is supplemented after the first media segment by intercepting the media segment on the first media material 206. In this way, the first newly added segment 205 can be connected after the first media segment 201, and the third media segment 208 consisting of the first media segment 201 and the first newly added segment 205 connected after the first media segment is obtained.
[0077] S340. 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 start point in the second media material to obtain a fourth media segment placed in the target editing track. The second media material is a media segment before trimming 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 connected to 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.
[0078] See also Figure 4 , determine the second media material 207 corresponding to the second media segment, where the second media material 207 is the media segment before cutting used when forming the second media segment by cutting. In the second media material 207, start from the end point of the second media segment 202 toward the start point (for example Figure 4 The sixth media segment 207 is intercepted from the right to the left direction in the sixth media segment, and the media segment is supplemented before the second media segment by intercepting the media segment on the second media material 207. In this way, the second newly added segment 204 can be connected before the second media segment 202, and the fourth media segment 209 consisting of the second media segment 202 and the second newly added segment 204 connected before the second media segment is obtained.
[0079] 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.
[0080] Optionally, the third media segment placed in the target editing track can be represented by the start point time and end point time of the first media segment on the target editing track, as well as the start point time and end point time of the third media segment relative to the first media material, the first media material being the media segment before trimming used when the first media segment is formed by trimming. The fourth media segment placed in the target editing track can be represented by the start point time and end point time of the second media segment on the target editing track, as well as the start point time and end point time of the fourth media segment relative to the second media material, the second media material being the media segment before trimming used when the second media segment is formed by trimming.
[0081] As an optional but non-limiting implementation method, the first newly added segment is determined based on the first cropped segment, the first cropped segment is a media segment that is 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.
[0082] 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 some 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.
[0083] 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 the media segment after the first media segment cannot be supplemented by only using the first cropped segment, and therefore further supplementation is required with the help of the end frame in the first cropped segment.
[0084] See also Figure 2b, 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 static frames, 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 at the UI layer, so when adjusting the transition duration, the UI layer can calculate the adjustment screen in real time, and then lock it when releasing the hand.
[0085] As an optional but non-limiting implementation method, the second newly added segment is determined based on the second cropped segment, 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.
[0086] 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 some 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 using only the second cropped segment.
[0087] 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 the media segment before the second media segment cannot be supplemented by only using the second cropped segment, and therefore further supplementation is required with the help of the starting frame in the second cropped segment.
[0088] Optionally, when the duration of the first cropped segment is zero, the first newly added segment is composed only of still frames captured from the first media segment, and the first cropped segment is a media segment that is 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 is composed only of still frames captured from the second media material, and the duration of the second cropped segment is a media segment that is cropped before the second media segment when the second media material is cropped to form the second media segment.
[0089] Optionally, the calculation of the start point time TrimIn of the third media segment relative to the first media material and the start point time TrimIn of the fourth media segment relative to the second media material is as follows:
[0090] The starting time of the third media segment relative to the first media material is TrimIn: it can be calculated directly using source_time_range().start()*speed();
[0091] 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 trimmed segment trimmed 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 as follows relative to the start time of the first media material: D TrimIn =T startTransition -(T startTarget -f(t)T startSource ).
[0092] Optionally, the calculation of the 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 is as follows:
[0093] The end point time TrimOut of the third media segment relative to the first media material is as follows:
[0094] D TrimOut=f(t)Ts tartSource +T durationSource +T durationTransiti / 2.
[0095] The end point time TrimOut of the fourth media segment relative to the second media material is as follows:
[0096] D TrimOut =f(t)T startSource +T durationSource
[0097] Among them, the speed change coefficient f(t): when the speed changes in the curve, the f(t) value is the reciprocal of the speed change value at the critical point with the non-transition; when the speed changes in the normal way, the f(t) value is the reciprocal of the speed change value.
[0098] S350: forming a superimposed transition effect at the overlapping portion between the third media segment and the fourth media segment.
[0099] 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:
[0100] Step A1, 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.
[0101] 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 a selection operation of the first media segment in the third media segment on the target editing track.
[0102] See also Figure 5a The flag for performing speed change configuration corresponding to the first media segment is presented based on the selection operation of the first media segment 201 in the third media segment on the target editing track, such as the flags of normal speed change and curve speed change. Then, the flag for performing speed change configuration corresponding to the first media segment 201 in the third media segment on the target editing track is triggered.
[0103] See also Figure 5b, the first media segment in the third media segment is displayed and the first curve speed change is added to the first media segment in the third media segment, and the end point speed of the first curve speed change used by the first media segment before the transition is added to the first newly added segment after the first media segment, and the speed change is applied to the first newly added segment after the first media segment. The first curve speed change is applied to the first media segment, and after cutting or extending, the first curve speed change is applied to the first media segment in the third media segment. After adding the transition, the extended part, the cropped part and the still frame part are generated, and the speed change rate of the first newly added segment in the extended part is the end point speed value of the first curve speed change.
[0104] 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, add a second curve speed change to the second media segment in the fourth media segment and add a head end point speed change corresponding to the second curve speed change to the second newly added segment in the fourth media segment.
[0105] 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 a selection operation of the second media segment in the fourth media segment on the target editing track.
[0106] See also Figure 5b , the second media segment in the fourth media segment is displayed and the second curve speed change is added to the second media segment in the fourth media segment, and the second curve speed change head end speed used by the second media segment before the transition is added to the second newly added segment connected before the second media segment, and the speed change is applied to the second newly added segment connected before the second media segment. Among them, the second curve speed change is applied to the second media segment, and after cutting or extending, the second curve speed change is applied to the second media segment in the fourth media segment. After adding the transition, the extended part, the cropped part and the still frame part are generated, and the speed change rate of the second newly added segment in the extended part is the head end speed value of the second curve speed change.
[0107] 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.
[0108] Optionally, the speed change panel will extend the newly added segment portion according to the corresponding time ratio. The beginning endpoint (left endpoint) of the second newly added segment or the end 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 beginning endpoint (left endpoint) of the second newly added segment and the beginning endpoint of the second media segment. Adjusting the speed change rate of the beginning endpoint of the second media segment can change the speed change rate of the left endpoint of the second newly added segment, and the beginning 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 end endpoint (right endpoint) of the first newly added segment and the end point of the first media segment. Adjusting the speed change of the end endpoint of the first media segment can change the speed change rate of the right endpoint of the first newly added segment, and the end endpoint of the first newly added segment is recalculated according to the new rate.
[0109] 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 keying, destrobing, noise reduction, anti-shake processing and motion tracking on the first newly added segment and the second newly added segment.
[0110] The technical solution of the disclosed embodiment 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 a first media segment that is adjacent and connected end to end, and forms a corresponding fourth media segment by adding a second newly added segment at the beginning of a 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, and 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.
[0111] Figure 6 This is a structural schematic diagram of a transition special effect processing device provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where an overlay 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.
[0112] like Figure 6 As shown, 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:
[0113] A first determining module 610 is used 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;
[0114] The second determination module 620 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 after 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 before 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;
[0115] 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.
[0116] Based on the above embodiment, optionally, after the overlapping portion between the third media segment and the fourth media segment forms a superimposed transition effect, the method further includes:
[0117] A target output result is generated based on the third media segment and the fourth media segment, 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.
[0118] Based on the above embodiment, optionally, determining the first media segment and the second media segment specified by the target transition task includes:
[0119] Present at least two media clips on the target editing track;
[0120] In response to a second operation 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.
[0121] Based on the above embodiment, optionally, the second operation includes a triggering operation for marking a target transition task of two adjacent media segments selected on the target editing track;
[0122] 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.
[0123] 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.
[0124] Based on the above embodiment, optionally, 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.
[0125] Based on the above embodiment, optionally, determining the third media segment and the fourth media segment to be placed in the target editing track includes:
[0126] Determine the target transition duration corresponding to the target transition task;
[0127] Based on the target transition duration and the duration of the first media segment, cutting a media segment from the start point of the first media segment toward 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 a media segment before cutting that is used when forming the first media segment by cutting;
[0128] 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.
[0129] 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.
[0130] Based on the above embodiment, optionally, when the duration of the first cropped segment is greater than or equal to a first preset duration, the first newly added segment is composed of some media segments in the first cropped segment;
[0131] When the duration of the first cropped segment is less than the first preset duration, the first newly added segment is composed of all media segments in the first cropped segment and the end frame in the first cropped segment;
[0132] When the duration of the second cropped segment is greater than or equal to the second preset duration, the second newly added segment is composed of some media segments in the second cropped segment;
[0133] When the duration of the second cropped segment is less than the second preset duration, the second newly added segment is composed of all media segments in the second cropped segment and a start frame in the second cropped segment;
[0134] The sum of the first preset duration and the second preset duration is equal to the target transition duration.
[0135] Based on the above embodiment, optionally, generating a target output result based on the third media segment and the fourth media segment includes:
[0136] In response to a third operation 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;
[0137] 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;
[0138] 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.
[0139] Based on the above embodiment, optionally, the third operation includes a triggering operation on 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 a selection operation on the first media segment in the third media segment on the target editing track;
[0140] 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.
[0141] The technical solution provided by the disclosed embodiment 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 a first adjacent and end-to-end connected media segment and forms a corresponding fourth media segment by adding a second newly added segment at the beginning of a 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, and 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.
[0142] The transition special effect processing device provided in the embodiments of the present disclosure can execute the transition special effect processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0143] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-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.
[0144] Figure 7 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 , which shows an electronic device (eg, Figure 7 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook 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. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0145] like Figure 7As shown, 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. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. 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.
[0146] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, 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 Figure 7 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0147] 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 contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0148] 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.
[0149] The electronic device provided in the embodiment of the present disclosure and the transition special effect processing method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0150] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method for processing transition special effects provided in the above embodiments is implemented.
[0151] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.
[0152] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may 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 future developed network.
[0153] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0154] 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.
[0155] 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 separate 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).
[0156] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0157] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0158] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0159] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. 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 equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may 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.
[0160] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 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 equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
[0161] 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 are 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.
[0162] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for processing transition special effects, characterized in that: include: 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 after 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 before the second media segment along a timeline, and when the first operation is triggered, positions of the first media segment and the second media segment on the target editing track remain unchanged; 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, characterized in that: 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, cutting a media segment from the start point of the first media segment toward 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 a media segment before cutting that is used when forming the first media segment by cutting; 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, characterized in that 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, characterized in that When the duration of the first cropped segment is greater than or equal to the first preset duration, the first newly added segment is composed of 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, characterized in that 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, characterized in that: 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, characterized in that 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, characterized in that: include: A first determining module is used 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 after 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 before 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, characterized in that: The electronic device comprises: 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 containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the transition special effect processing method as described in any one of claims 1-12 when executed by a computer processor.
Citation Information
Patent Citations
Video transition special effect method and engine
CN109451360A
Video generation method and device, electronic equipment and storage medium
CN113556486A
Video synthesis method, device, electronic equipment and storage medium
CN113660528A
Video data processing method and electronic equipment
CN115484400A
AU2009250985A1