Video processing methods, apparatus, electronic devices, storage media, and computer programs
The method and apparatus facilitate transitions between video clips on sub-tracks, overcoming limitations of current tools by enabling diverse editing scenarios and improving user experience.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-09-26
- Publication Date
- 2026-06-30
AI Technical Summary
Current video editing tools limit transitions to only the main track, restricting the editing experience by preventing transitions between video clips on sub-tracks, which are common in multi-track editing scenarios.
A video processing method and apparatus that supports transitions between video clips on sub-tracks by displaying a video editing interface with transition identifiers and determining the level of video clips in sub-tracks, allowing transitions based on the same transition effect scheme.
Enables diverse video editing scenes and improves the editing experience by allowing transitions between video clips on sub-tracks, enhancing operational efficiency and user interaction.
Smart Images

Figure 2026521607000001_ABST
Abstract
Description
Technical Field
[0001] [Cross-reference to Related Applications] This application claims priority to a Chinese patent application for invention titled "Video Processing Method, Apparatus, Electronic Device, and Storage Medium" with application number 202311278214.0 and filing date September 28, 2023, the entire content of which is incorporated herein by reference.
[0002] [Technical Field] This disclosure relates to the technical field of video processing, and in particular, to a video processing method, apparatus, electronic device, and storage medium.
Background Art
[0003] As Internet information becomes increasingly rich day by day, watching videos has become one of the entertainment activities in people's daily lives. In order to improve the user's viewing experience, it is an important part to edit videos before posting various videos.
[0004] During the process of video editing, a creator may add effects, filters, text, stickers, transitions, etc. to the video based on the functions provided by the video editing tool to package the video and improve the effect of the unpublished video obtained by editing.
[0005] Among them, transitions can make the transition between video clips more natural. Since current video editing tools only support adding transitions between adjacent clips on the main track, the main video can only be set within the main track, thus limiting the video editing scene and greatly affecting the video editing experience.
Summary of the Invention
Problems to be Solved by the Invention
[0006] This disclosure provides a video processing method, apparatus, electronic device, and storage medium to solve, or at least partially solve, the technical problems described above. [Means for solving the problem]
[0007] A first aspect of the embodiments of the present disclosure provides a video processing method that displays a video editing interface including a material area displaying a plurality of transition identifiers and a timeline area including at least one video track, wherein each transition identifier is used to indicate a type of transition effect scheme, and in response to a target trigger operation on a target transition identifier among the plurality of transition identifiers, determines that the level of a target video clip in the target video track corresponding to the target trigger operation is the same, and adds a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier, wherein the target video track is a sub-track in the at least one video track.
[0008] A second embodiment of the embodiments of the present disclosure provides a video processing device comprising: a display module for displaying a video editing interface including a material area displaying a plurality of transition identifiers and a timeline area including at least one video track, wherein each transition identifier is used to indicate a type of transition effect scheme; and a processing module used to, in response to a target trigger operation on a target transition identifier among the plurality of transition identifiers, determine that the level of a target video clip in the target video track corresponding to the target trigger operation is the same, and add a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier, wherein the target video track is a sub-track in the at least one video track.
[0009] A third embodiment of the embodiments of the present disclosure provides an electronic device comprising a processor, memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the video processing method described in the first embodiment.
[0010] A fourth embodiment of the embodiments of this disclosure provides a computer-readable storage medium that stores a computer program that, when executed by a processor, implements the video processing method described in the first embodiment.
[0011] A fifth embodiment of the embodiments of this disclosure provides a computer program product which, when executed on a processor, causes the processor to execute the computer program to realize the video processing method described in the first embodiment.
[0012] A sixth embodiment of the embodiments of this disclosure provides a chip comprising a processor used to execute program instructions to realize the video processing method described in the first embodiment, and a communication interface coupled to the processor.
[0013] An embodiment of the present disclosure provides a video editing interface that includes a material area displaying a plurality of transition identifiers and a timeline area including at least one video track, wherein each transition identifier is used to indicate a type of transition effect scheme, and in response to a target trigger operation on a target transition identifier among the plurality of transition identifiers, it is determined that the level of a target video clip in the target video track corresponding to the target trigger operation is the same, wherein the target video track is a sub-track in the at least one video track, and a transition is added between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier. [Brief explanation of the drawing]
[0014] These drawings, incorporated into the specification and constituting part of this specification, illustrate embodiments conforming to the present disclosure and are used together with the specification to interpret the principles of this disclosure. To more clearly illustrate the embodiments of this disclosure or the technical concepts in the prior art, the drawings that may be used in the description of the embodiments or the prior art will be briefly described below, and it will be apparent to those skilled in the art that other drawings can be obtained in accordance with these drawings without any creative effort. [Figure 1] This is a schematic diagram of the flow of the video processing method provided in the embodiments of this disclosure. [Figure 2] This is a schematic diagram of the interface of a video processing method provided in the embodiments of this disclosure. [Figure 3] This is a schematic diagram of the track of a video processing method provided in the embodiments of the present disclosure. [Figure 4] This is a first schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 5] This is a second schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 6] This is a third schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 7] This is a fourth schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 8] This is a fifth schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 9] This is a sixth schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 10] This is a schematic diagram of the seventh level of the video processing method provided in the embodiments of the present disclosure. [Figure 11] This is an eighth schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 12] This is a ninth schematic diagram of a level of the video processing method provided in the embodiments of the present disclosure. [Figure 13] A block diagram of the configuration of a video processing apparatus provided by an embodiment of the present disclosure. [Figure 14] A block diagram of the configuration of an electronic device provided by an embodiment of the present disclosure.
Embodiments for Carrying Out the Invention
[0015] In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. In addition, the embodiments of the present disclosure and the features in the embodiments may be combined with each other as long as they do not conflict.
[0016] In the following description, many specific details are set forth in order to provide a thorough understanding of the present disclosure. However, the present disclosure may be implemented in other ways different from those described herein. Obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, not all of the embodiments.
[0017] Terms such as "first", "second", etc. within the specification and claims of the present disclosure are for distinguishing similar objects and are not for explaining a specific order or sequence. The data used as such is interchangeable when appropriate to make it easier to implement the embodiments of the present disclosure in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, without limiting the number of objects. For example, the first object may be one or more. Also, "and / or" within the specification and claims represents at least any one of the connected objects, and the character " / " generally represents that the related objects before and after are in an "or" relationship.
[0018] Current video editing tools support adding transitions only between adjacent clips on the main track. However, since most videos are multi-track edited, restricting transitions to only the main track prevents many effects from being achieved. For example, in a scene where the background video is on the main track and the main video is on a sub-track, transitions cannot be added to the video. To add a transition, the main video must be set to the main track and the background video to the sub-track, thus limiting the video editing scenes and significantly impacting the video editing experience.
[0019] To solve the technical problems described above, embodiments of this application display a video editing interface including a material area displaying a plurality of transition identifiers and a timeline area including at least one video track, wherein each transition identifier is used to indicate a type of transition effect scheme, and in response to a target trigger operation on a target transition identifier among the plurality of transition identifiers, it is determined that the level of the target video clip in the target video track corresponding to the target trigger operation is the same, wherein the target video track is a sub-track in the at least one video track, and a transition is added between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier. This scheme supports adding transitions to sub-tracks, so that the main video can be set to a sub-track and background videos can be set to the main track or other sub-tracks, thereby increasing the diversity of video editing scenes and improving the video editing experience.
[0020] The electronic devices in the embodiments of this disclosure may be mobile electronic devices or non-mobile electronic devices. Mobile electronic devices may include mobile phones, tablets, laptops, palmtops, automotive electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), while non-mobile electronic devices may include personal computers (PCs), televisions (TVs), ATMs, or self-service machines, and the embodiments of this disclosure are not specifically limited.
[0021] The entity that implements the video processing method provided in the embodiments of this disclosure may be the electronic device described above (including mobile and non-mobile electronic devices), or a functional module and / or functional entity capable of implementing the video processing method in such electronic device, and may be specifically determined according to the actual usage needs, and the embodiments of this disclosure are not limited.
[0022] The video processing method provided by the embodiments of this disclosure will be described in detail below, in conjunction with the drawings, through specific embodiments and their application scenarios.
[0023] As shown in Figure 1, embodiments of the present disclosure provide a video processing method which may include the following steps 100 to 102.
[0024] 100: Displays the video editing interface, including the material area and the timeline area.
[0025] Within that, the material area displays multiple transition identifiers, each transition identifier used to indicate a single transition effect scheme, and the timeline area contains at least one video track.
[0026] Within that, the material area displays multiple material type options, which include transition options, effect options, filter options, text options, sticker options, material library options, and more. The specific options can be determined based on the actual situation and are not limited to those listed here.
[0027] When different material options are selected, the material area displays multiple material identifiers corresponding to the selected material options. When a transition option is selected, the material area displays multiple transition identifiers.
[0028] 101: In response to a target trigger operation on a target transition identifier among the multiple transition identifiers, it is determined that the level at which the target video clip is located in the target video track corresponding to the target trigger operation is the same.
[0029] In this context, the target video track is a sub-track within at least one of the video tracks.
[0030] 102: Add a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier.
[0031] In this context, the target video track is a sub-track within at least one of the video tracks.
[0032] Within this context, the target trigger operation may be a click operation on the target transition identifier, a drag operation on the target transition identifier, or any other executable operation on the target transition identifier, and can be specifically determined according to the actual situation, and is not limited thereto.
[0033] Among these, the transition effect schemes indicated by multiple transition identifiers include, but are not limited to, spatial rotation transitions, page-turning transitions, before-and-after comparison transitions, jitter expansion transitions, vibration transitions, heart-shaped dissolve transitions, stretch transitions, inhalation transitions, atomization transitions, and droplet transitions.
[0034] In the embodiments of this application, at least one video track may include at least one sub-track and may further include a main track, which can be specifically determined on a case-by-case basis and is not limited thereto.
[0035] In that context, adding a transition between adjacent video clips specifically means adding a transition at the point where two adjacent video clips connect.
[0036] In the embodiments of this application, it is possible to add transitions to the main track and also to the sub-track, and in specific usage scenarios, transitions can be added to either the main track or the sub-track according to the actual needs.
[0037] In the embodiments of this application, settings that support adding transitions to sub-tracks allow the main video to be set to a sub-track and background videos to be set to the main track or other sub-tracks, thereby increasing the diversity of video editing scenes and improving the video editing experience.
[0038] In some embodiments of this application, step 101 described above may be specifically implemented by the following steps 201 and 202.
[0039] 201: In response to a target trigger operation on a target transition identifier among the multiple transition identifiers, if the target trigger operation is a click operation, traverse the at least one video track, and determine the first adjacent video clip to which a transition can be added detected during the traversal of the at least one video track as the target adjacent video clip.
[0040] 202: Determine that the level of the target video clip in the target video track corresponding to the target trigger operation is the same.
[0041] Specifically, steps 201, 202, and 102 described above, in response to a click operation on the target transition identifier, retrieve all video tracks in the timeline area that contain video clips, retrieve at least one video track, retrieve the number of at least one video track according to certain rules (for example, sorting the video tracks in order from top to bottom of the timeline area, or sorting the video tracks in order from bottom to top), traverse at least one video track according to the number, and when traversing a video track, determine whether there is a video clip to which a transition can be added in that video track, and if it is determined that there is a target adjacent video clip to which a transition can be added in that video track, add the transition to the target adjacent video clip and end the flow, without traversing any other video tracks, and if it is determined that there is no video clip to which a transition can be added in that video clip, traverse the next video track. In the process of traversing at least one video track, the transition is added to the first determined adjacent video clip to which a transition can be added. If the traverse is stopped, or if there are no adjacent video clips to which a transition can be added after traversing each video clip, the addition of the transition fails and the flow terminates.
[0042] In the embodiments of this application, steps 201, 202, and 102 described above enable support for adding smart transitions, automatically recognizing adjacent video clips to which transitions can be added in the video track in the timeline area, and then adding the transitions, thereby improving operational efficiency.
[0043] In some embodiments of this application, step 101 described above may be specifically implemented by the following steps 203 and 204.
[0044] 203: In response to a target trigger operation on a target transition identifier among the multiple transition identifiers, if the target trigger operation is a drag operation, the adjacent video clip corresponding to the end position of the drag operation's trajectory is determined as the target adjacent video clip.
[0045] In some embodiments of this application, if the trajectory of the drag operation passes through any adjacent video clip, the connection area of the arbitrary adjacent video clip is displayed in a first display method. In this first display method, the first display method may be a highlight display, thereby prompting the user that an adjacent video clip exists at that location.
[0046] 204: Determine that the target video clip is at the same level in the target video track corresponding to the target trigger operation.
[0047] In the embodiments of this application, users can, according to their needs, drag a transition identifier to a target adjacent video clip to which a transition needs to be added, and then add the transition to the target adjacent video clip, thereby improving the user experience.
[0048] In some embodiments of this application, if there is no adjacent video clip at the end of the drag operation's trajectory, the transition fails to be added.
[0049] In some embodiments of the present application, if adding a transition fails in response to a target trigger operation on a target transition identifier among a plurality of transition identifiers, the cause of the transition addition failure is displayed, and the cause of the transition addition failure includes one of the following: there is no adjacent video clip at the current addition location; the length of the video clip at the current addition location is less than or equal to a length threshold; the video track at the current addition location is locked; or the adjacent video clips at the current addition location are not at the same level.
[0050] As an example, Figure 2 is a schematic diagram of the video editing interface, where the area indicated by mark "21" is the material area, the area indicated by mark "22" is the timeline area, the area indicated by mark "23" is the player area, and the area indicated by mark "24" is the function panel. In this diagram, the transition package option is selected in the material area, the timeline area contains four video tracks which are sub-tracks, and the selected material 1, material 2, and material 3 are the three materials in the material package combination. Click the transition identifier to add a transition between video clip 1 and compound clip 1.
[0051] Currently, video editing tools only support adding transitions to the main track for the following reasons: Transitions can only be added between adjacent video clips with the same rendering level (hereinafter abbreviated as level), and not between adjacent video clips with different rendering levels. However, since the rendering levels of video clips on the main track are always the same, the main track supports adding transitions between adjacent video clips. On the other hand, if the free level feature is not turned on, the rendering levels of video clips on sub-tracks are always different, so sub-tracks do not support adding transitions between adjacent video clips.
[0052] In related technologies, in non-free-level drafts (drafts where the free-level feature is not turned on), if all sub-track video clips are at different rendering levels and each clip is at a different level, it is not possible to add transitions to the sub-tracks. Therefore, a new level setting rule is needed that allows different clips to be at the same level while satisfying the current level relationships. The level setting rule in related technologies is to directly set the level of newly added video clips by adding 1 to the current maximum level. As an example, add the video clips shown in Figure 3 to the sub-tracks in the timeline area, adding clips 1 to 4 sequentially, and the corresponding level relationships are shown in Figure 4(a).
[0053] In some embodiments of this application, the video processing method provided by the embodiments of this application may further include the following steps 103 to 105.
[0054] 103: In response to a trigger operation that adds a new video clip to the timeline area, the initial level of the new video clip is determined as the sum of the current maximum level in the timeline area and 1.
[0055] 104: If, in at least one consecutive level below the initial level, all areas corresponding to the new video clip can accommodate the new video clip, the final level of the new video clip is determined as the minimum level of that at least one consecutive level.
[0056] 105: If the area corresponding to the new video clip cannot accommodate the new video clip at the current maximum level, the final level of the new video clip is determined as the initial level.
[0057] In the embodiments of this application, the level of a new video clip is determined using a "sinking method." Specifically, the level of the new video clip is first determined by adding 1 to the current maximum level. Then, it is determined whether the new video clip can be accommodated in the next level. If it can be accommodated, the level is "sunk" until it is no longer possible to "sink or lower it to a lower level" (i.e., the new video clip cannot be accommodated in the level after the current level). As shown in Figure 4(b) above Figure 4(a), adding clip 2 allows the level to sink down to level 1, and adding clip 2 and clip 3 allows the level to sink down to level 2. Therefore, the rendering levels of the video clips in the subtrack in the embodiments of this application may be the same or different.
[0058] In the embodiments of this application, the "sinking method" is employed to determine the level of a new video clip, which allows for better implementation of adding transitions to sub-tracks.
[0059] In some embodiments of this application, step 101 described above may be specifically implemented by step 301, step 302, or step 303.
[0060] 301: If the target video track has the free level function turned on, it is determined that the level at which the target video clip is located is the same.
[0061] Within this context, the Free Level function is used to indicate that the level of a video clip in each sub-track corresponds to the track number of that sub-track. In other words, when the Free Level function is turned on, the levels of video clips in each sub-track are the same, and the level of each video clip in any sub-track corresponds to the track number of that single video clip.
[0062] In this scenario, if one sub-track has the Free Level function enabled, the levels of the video clips on that sub-track are the same. If the Free Level function is not enabled on one sub-track, the levels of the video clips on that sub-track may be the same or different, and are usually different. Therefore, if the Free Level function is enabled, it is determined that the levels of the target adjacent video clips are the same.
[0063] 302: If the target video track does not have the free level function turned on, and the level identifiers of the adjacent video clips are the same, it is determined that the target video clips are at the same level.
[0064] In this context, the level identifier may also be a level index. If the level indices of the levels where the target adjacent video clips are located are the same, it is determined that the levels where the target adjacent video clips are located are the same.
[0065] In some embodiments of this application, the magnitude of the level may be determined according to the level index of different levels.
[0066] 303: If the target video track does not have the free level function turned on, and the level identifiers of the levels where the target adjacent video clips are located are different, the target adjacent video clips are adjusted to the same level so that the levels where the target adjacent video clips are located are the same.
[0067] In the embodiments of this application, the positional levels of one or two of the target adjacent video clips are adjusted so that the adjusted target adjacent video clips are at the same level.
[0068] Steps 301 to 303 described above may also be expressed as follows: Determine whether the target video track has the free level function turned on. If it is determined that the target video track has the free level function turned on, it can be determined that the target adjacent video clips are at the same level. If it is determined that the target video track does not have the free level function turned on, determine whether the level identifiers of the target adjacent video clips are the same. If the level identifiers of the target adjacent video clips are the same, it can be determined that the target adjacent video clips are at the same level. If the level identifiers of the target adjacent video clips are different, adjust the target adjacent video clips to the same level to determine that the target adjacent video clips are at the same level. After determining that the target adjacent video clips are at the same level by any one of steps 301 to 303, a transition may be added between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier.
[0069] In the embodiments of this application, a transition can be added to a sub-track by adding a determination of whether the level identifier of the target adjacent video clip is the same, depending on whether the free level function is turned on or not.
[0070] In some embodiments of this application, step 303 described above may be specifically implemented by the following steps 303a to 303d.
[0071] 303a: If the target video track does not have the free level function turned on, and it is determined that the level identifier of the level where the adjacent target video clip is located is different, it is determined whether the video screen within the target time range is the same before and after adjusting the adjacent target video clip to the same level.
[0072] Within that context, the target time range is the time range corresponding to the video clip whose level has been adjusted among the adjacent video clips in the timeline area.
[0073] If one of the target adjacent video clips has its level adjusted, the target time range is understood to be the time interval corresponding to that one video clip. If both of the target adjacent video clips have their levels adjusted, the target time range is the time interval corresponding to those two video clips.
[0074] Two video clips that overlap in time are located at different levels. When displayed, the video clip at the higher level obscures the video clip at the lower level. Therefore, if the levels of these two video clips are swapped, the occlusion between them changes, and thus the displayed video screen changes. As shown in Figure 5, clip 1 is at level 1 and clip 2 is at level 2. Currently, clip 2 obscures clip 1. However, if the levels of clip 1 and clip 2 are swapped, clip 1 will obscure clip 2, causing the video screen to change when displayed.
[0075] If it is determined that the video screen within the target time range is the same before and after adjusting the target adjacent video clip to the same level, step 303b is performed. If it is determined that the video screen within the target time range is different before and after adjusting the target adjacent video clip to the same level, steps 303c and 303d are performed.
[0076] 303b: Adjust adjacent video clips to the same level as the target.
[0077] 303c: Display prompt information including a first option to indicate adjusting the adjacent target video clip to the same level, and a second option to indicate not adjusting the adjacent target video clip to the same level.
[0078] 303d: In response to a trigger operation for the first option, adjust the target adjacent video clip to the same level.
[0079] In the embodiments of this application, if it is determined that the video screen within the target time range is the same before and after adjusting the target adjacent video clip to the same level, the displayed video screen is not affected, thus improving operational efficiency by directly adjusting the target adjacent video clip to the same level. If it is determined that the video screen within the target time range is different before and after adjusting the target adjacent video clip to the same level, prompt information prompts the user to acknowledge that the level change will affect the video screen. Depending on the user's selection of the prompt information, it is determined whether or not to perform a level adjustment or add a transition, informing the user that the level adjustment will affect the video screen and improving the user experience compared to directly adjusting the target adjacent video clip to the same level.
[0080] In some embodiments of this application, if it is determined that the levels of adjacent target video clips are different, prompt information may be displayed asking whether or not to adjust the levels, and further, depending on the user's selection, it may be determined whether or not to adjust the levels, and a transition may be added.
[0081] In some embodiments of this application, the target adjacent video clip includes a first video clip and a second video clip, wherein the level of the first video clip is lower than the level of the second video clip and the level of the second video clip is the same as the first level, and step 303 described above may be specifically implemented by any of the following steps 303e to 303g.
[0082] 303e: If the first level can accommodate the first video clip in the area corresponding to the first video clip, adjust the level of the first video clip to the first level.
[0083] The region corresponding to the first video clip may also be the region corresponding to the position of the first video clip on the timeline.
[0084] 303f: If the first level cannot accommodate the first video clip in the area corresponding to the first video clip, and the second level can accommodate the target adjacent video clip in the area corresponding to the target adjacent video clip, adjust the level of the target adjacent video clip to the second level.
[0085] Within that framework, the second level is one level higher than the first level.
[0086] 303g: If the first level cannot accommodate the first video clip in the area corresponding to the first video clip, and the second level cannot accommodate the target adjacent video clip in the area corresponding to the target adjacent video clip, a third level is newly created above the first level, and the level of the target adjacent video clip is adjusted to the third level.
[0087] In some embodiments of this application, a third level may be newly created between the first and second levels, and the level index of the third level may be set as the level index of the second level, with 1 added to the level indices of the second level and any other levels higher than the second level.
[0088] For example, as shown in Figure 5, clip 1 and clip 3 are adjacent video clips on the same video track, where clip 1 is located at level 1 and clip 3 is located at level 3. If a transition is added between clip 1 and clip 3, level 3 can accommodate clip 1. Therefore, as shown in Figure 6(a), clip 1 may be adjusted to level 3 before adding the transition.
[0089] For example, as shown in Figure 5, clip 1 and clip 4 are adjacent video clips on the same video track, where clip 1 is located at level 1 and clip 4 is located at level 2. If a transition is added between clip 1 and clip 4, level 2 will not be able to accommodate clip 1, and level 3 will not be able to accommodate both clip 1 and clip 4. Therefore, as shown in Figure 6(b), a new level 3 may be created above level 2, 1 added to the level index of the previous level 3, and clip 1 and clip 4 adjusted to the new level 3 before adding the transition.
[0090] In the embodiments of this application, adjusting the levels according to steps 303e to 303g results in a simple logic, minimal changes in the relative level relationships between clips, and minimal impact on the video screen.
[0091] In some embodiments of this application, a third level may be newly created above the second level or the highest level, and then the third level may be made the highest level.
[0092] In some embodiments of this application, if the level at which the first video clip is located can accommodate the second video clip, the level of the second video clip may be adjusted to the level of the first video clip, and this can be specifically determined according to the actual needs, but is not limited thereto.
[0093] In some embodiments of this application, step 303 described above may be specifically implemented by the following steps 303h and / or step 303i.
[0094] 303h: If the first video clip is connected to other video clips by a transition, adjust the target adjacent video clip and the other video clips connected to the first video clip by a transition to the same level.
[0095] 303i: If the second video clip is connected to other video clips by a transition, adjust the target adjacent video clip and the other video clips connected to the second video clip by a transition to the same level.
[0096] Performing steps 303h and / or 303i simultaneously, as described above, will adjust the target adjacent video clip, other video clips connected to the first video clip by transitions, and other video clips connected to the second video clip by transitions to the same level.
[0097] In the embodiments of this application, when adjusting target adjacent video clips to the same level, it is not necessary to consider adjusting only the target adjacent video clips to the same level, because one (or two) of the target adjacent video clips may be "connected" with other video clips by a transition (hereinafter, two video clips "connected" by a transition will be referred to as a clip chain), and if only the target adjacent video clips are adjusted to the same level, any transitions already added to that one (or two) video clip will be invalidated. Therefore, it is necessary to adjust the level of the entire clip chain corresponding to that one (or two) video clip together. Specifically, if the level where a clip chain located at a higher level is located can accommodate a clip chain located at a lower level, the lower-level clip chain is promoted to the higher level; otherwise, a new level is created above the higher-level clip chain to accommodate the two clip chains.
[0098] For example, as shown in Figure 7(a), clips 1 and 2 form a clip chain located at level 1, clips 3 and 4 form a clip chain located at level 2, and at the same time, level 1 also includes clip 5. If it is necessary to add a transition between adjacent clips 2 and 3, level 2 can accommodate the clip chain formed by clips 1 and 2. Therefore, as shown in Figure 7(b), the level of the clip chain formed by clips 1 and 2 may be promoted to level 2, and then the transition between clips 2 and 3 may be added.
[0099] For example, as shown in Figure 8(a), clip 1 and clip 2 form a clip chain located at level 1, clip 3 and clip 4 form a clip chain located at level 2, and simultaneously level 1 further includes clip 5, and level 2 further includes clip 6, and if it is necessary to add a transition between adjacent clip 2 and clip 3, level 2 cannot accommodate the clip chain formed by clip 1 and clip 2, so as shown in Figure 8(b), a new level 3 may be created above level 2, and the levels of the clip chain formed by clip 1 and clip 2 and the clip chain formed by clip 3 and clip 4 may be simultaneously promoted to level 3, and then a transition may be added between clip 2 and clip 3.
[0100] In some embodiments of this application, after step 102 described above, the video processing method provided by the embodiments of this application may further include the following step 106.
[0101] 106: In response to an editing operation on the target video clip among the adjacent target video clips, the system performs corresponding processing on the target video clip and deletes any transitions that have been disabled as a result of the editing operation.
[0102] The editing operation in question includes one of the following: delete, paste, move, level adjust, or time reduction.
[0103] Among these, the delete operation is the operation to delete the target video clip, the paste operation is the operation to paste the target video clip to the target location (including copy or cut operations on the target video clip before the paste operation), the move operation is the operation to move the target video clip to the target location, the level adjustment operation is the operation to manually adjust the level of the target video clip in the function panel area, and the time reduction operation is the time reduction operation for one end of the additional transition of the target video clip.
[0104] In the embodiments of this application, a transition is added between target adjacent video clips to form a single clip chain. Therefore, after editing one of the target video clips, the transition between the target adjacent video clips may become invalid. By automatically deleting the invalidated transition after it has been invalidated, video editing efficiency can be improved.
[0105] In the embodiments of this application, the deletion of transitions that have been disabled in response to the editing operation may be performed by a direct deletion process or by calling a deletion function. In the embodiments of this application, transitions that have been disabled by editing operations such as deletion, paste, move, level adjustment, and time reduction operations can all be deleted by calling a single deletion function, thereby simplifying the code deletion logic and improving operational efficiency.
[0106] In some embodiments of this application, if the editing operation includes a paste, move, or level adjustment operation, the corresponding process determines the level of the target video clip as the first pending determination level if the first pending determination level can accommodate the target video clip in the area corresponding to the target video clip, wherein if the editing operation includes a paste or move operation, the first pending determination level is the level where the target video clip is located before the editing operation, and if the editing operation includes a level adjustment operation, the first pending determination level is the level corresponding to the level adjustment operation, and the first pending determination level is the level corresponding to the area corresponding to the target video If the clip cannot be accommodated and the second pending decision level can accommodate the target video clip in the area corresponding to the target video clip, the level of the target video clip is determined as the second pending decision level, wherein the second pending decision level is one level higher than the first pending decision level; and if the first pending decision level cannot accommodate the target video clip in the area corresponding to the target video clip and the second pending decision level cannot accommodate the target video clip in the area corresponding to the target video clip, a third pending decision level is newly created above the first pending decision level, and the level of the target video clip is determined as the third pending decision level.
[0107] Regarding move and paste operations, it can be understood that the levels of moved and pasted video clips are sequentially adjusted from bottom to top according to the original level. Specifically, if the original level can accommodate the moved or pasted video clip, the level of the moved or pasted video clip remains unchanged. If the original level cannot accommodate the moved or pasted video clip, it is adjusted to the next higher level. If the next higher level can accommodate the moved or pasted video clip, the moved or pasted video clip is directly promoted to the next higher level. Otherwise, a new level is created above the original level to place the moved or pasted video clip.
[0108] For example, clips 1 and 2 are located at level 1, clips 3 and 4 are located at level 2, and clips 5 and 6 are located at level 3. As shown in Figure 9(a), clip 3 is moved so that it cannot be accommodated at level 2 but can be accommodated at level 3. As shown in Figure 9(b), clip 3 is adjusted to level 3.
[0109] For example, clips 1 and 2 are located at level 1, clips 3 and 4 are located at level 2, and clips 5 and 6 are located at level 3. As shown in Figure 10(a), clip 3 is moved and cannot be accommodated in either level 2 or level 3. As shown in Figure 10(b), the original level 3 is adjusted to level 4, a new level 3 is created between level 2 and level 4, and clip 3 is adjusted to level 3.
[0110] In the embodiments of this application, adjusting the levels according to the corresponding process described above results in a simple logic, minimal changes in the relative level relationships between clips, and minimal impact on the video screen.
[0111] In some embodiments of this application, the level adjustment operation is a level rotation operation for multiple video clips selected by the playback progress line. As shown in Figure 11(a), clips 1 and 6 are at level 1, clip 2 is at level 2, and clips 3, 4 and 5 are at level 3. Currently, clips 1, 2 and 3 are selected by the playback progress line, and when rotating the levels of the three clips after setting the relative level of clip 3 to 1, as shown in Figure 11(b), if clip 2 moves to level 3 it will overlap with the other clips, so as shown in Figure 12(a), clip 2 needs to be moved to the next level up.
[0112] In the embodiments of this application, the levels displayed on the function panel are the relative levels between clips at the current time, and the calculation method for changing the levels does not affect the calculation of those relative levels. The levels of the relevant clips are rotated in response to the fluctuations in relative levels, and collisions within the levels are handled according to the logic of the paste (or move) operation, the logic is simple, the change in the relative level relationships between clips is minimal, and the impact on the video screen is minimal.
[0113] In some embodiments of the present application, if the editing operation includes a delete operation, the corresponding process includes deleting the target video clip and, if no video clips exist at the target level, lowering each video clip at a level higher than the target level by one level, wherein the target level is the level at which the target video clip was located before the editing operation.
[0114] Considering that transitions may be added between clips, it is understandable that when deleting a clip, it is not possible to simply drop a single clip down one level, but rather the entire level must be dropped down one level when an empty level is created. In this way, it is possible to ensure that empty levels are not created, improve the efficiency of level management, and ensure that added transitions are not invalidated, thus ensuring a good user experience.
[0115] For example, as shown in Figure 11(a), after removing the clip located at level 2, level 2 becomes an empty level, and clips 3, 4, and 5 can be lowered to level 2, as shown in Figure 12(b).
[0116] Figure 13 is a block diagram of the configuration of a video processing apparatus shown in an embodiment of the present disclosure, which comprises a display module 1301 and a processing module 1302, as shown in Figure 3, wherein the display module 1301 is used to display a video editing interface, which includes a material area where a plurality of transition identifiers are displayed and a timeline area including at least one video track, each transition identifier being used to indicate a type of transition effect scheme, and the processing module 1302 is used to respond to a target trigger operation on a target transition identifier among the plurality of transition identifiers, to determine that the level of the target video clip in the target video track corresponding to the target trigger operation is the same, and to add a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier, the target video track being a sub-track in the at least one video track.
[0117] In some embodiments of the present application, the apparatus further comprises a determination module for, before adding a transition between target adjacent video clips, if the target trigger operation is a click operation, traversing the at least one video track and determining the first adjacent video clip to which a transition can be added detected in the process of traversing the at least one video track as the target adjacent video clip, and if the target trigger operation is a drag operation, determining the adjacent video clip corresponding to the end position of the trajectory of the drag operation as the target adjacent video clip.
[0118] In some embodiments of this application, the processing module 1302 is used to determine that the target video clips are at the same level if the target video track has the free level function turned on, the free level function being used to indicate that the level of the video clips in each sub-track is the track number of the corresponding sub-track; to determine that the target video clips are at the same level if the target video track does not have the free level function turned on and the level identifiers of the adjacent video clips are the same; and to adjust the target adjacent video clips to the same level so that the target adjacent video clips are at the same level if the target video track does not have the free level function turned on and the level identifiers of the target adjacent video clips are different.
[0119] In some embodiments of this application, the processing module 1302 is used to adjust a target adjacent video clip to the same level if it is determined that the video screen within a target time range is the same before and after adjusting the target adjacent video clip to the same level, wherein the target time range is the time range of the target adjacent video clips in the timeline area that corresponds to the video clip whose level has been adjusted; to display prompt information including a first option to indicate that the target adjacent video clip should be adjusted to the same level and a second option to indicate that the target adjacent video clip should not be adjusted to the same level if it is determined that the video screen within the target time range is different before and after adjusting the target adjacent video clip to the same level; and to adjust the target adjacent video clip to the same level in response to a trigger operation for the first option.
[0120] In some embodiments of this application, the target adjacent video clip includes a first video clip and a second video clip, wherein the level of the first video clip is lower than the level of the second video clip and the level of the second video clip is the first level, and the processing module 1302 specifically adjusts the level of the first video clip to the first level if the first level can accommodate the first video clip in the area corresponding to the first video clip, and if the first level cannot accommodate the first video clip in the area corresponding to the first video clip and the second level is This method is used to adjust the level of a target adjacent video clip to a second level, where the second level is one level higher than the first level, if the area corresponding to the target adjacent video clip can accommodate the target adjacent video clip, and the area corresponding to the target adjacent video clip at the second level cannot accommodate the target adjacent video clip, then a third level is newly created above the first level, and the level of the target adjacent video clip is adjusted to the third level.
[0121] In some embodiments of this application, the processing module 1302 is used, specifically, to adjust a target adjacent video clip and other video clips connected to the first video clip by a transition to the same level when the first video clip is connected to other video clips by a transition, and to adjust a target adjacent video clip and other video clips connected to the second video clip by a transition to the same level when the second video clip is connected to other video clips by a transition.
[0122] In some embodiments of the present application, the apparatus further comprises an editing module used to add a transition between target adjacent video clips based on a transition effect scheme indicated by a target transition identifier, and then, in response to an editing operation on the target video clip among the target adjacent video clips, to perform corresponding processing on the target video clip and delete any transitions that have been disabled in response to the editing operation, wherein the editing operation includes one of the following: delete, paste, move, level adjust, or time shorten.
[0123] In some embodiments of this application, if the editing operation includes a paste, move, or level adjustment operation, the corresponding process determines the level of the target video clip as the first pending decision level if the first pending decision level can accommodate the target video clip in the area corresponding to the target video clip; if the editing operation includes a paste or move operation, the first pending decision level is the level where the target video clip was located before the editing operation; if the editing operation includes a level adjustment operation, the first pending decision level is the level corresponding to the level adjustment operation; and if the first pending decision level cannot accommodate the target video clip in the area corresponding to the target video clip, and the second pending decision level can accommodate the target video clip in the area corresponding to the target video clip, the level of the target video clip is determined to the second level The process includes determining a level to be determined, wherein the second level to be determined is one level higher than the first level to be determined, and if the first level to be determined cannot accommodate the target video clip in the area corresponding to the target video clip, and the second level to be determined cannot accommodate the target video clip in the area corresponding to the target video clip, a third level to be determined is newly created above the first level to be determined, and the level of the target video clip is determined as the third level to be determined, and if the editing operation includes a delete operation, the corresponding process includes deleting the target video clip, and if no video clip exists at the target level, lowering the video clips at levels higher than the target level by one level each, wherein the target level is the level where the target video clip was located before the editing operation.
[0124] In some embodiments of the present application, the apparatus further comprises a determination module used to: determine an initial level of a new video clip in response to a trigger operation to add a new video clip to a timeline region as the sum of the current maximum level in the timeline region and 1; determine a final level of a new video clip as the minimum level of at least one consecutive level below the initial level if all areas corresponding to the new video clip below that initial level can accommodate the new video clip; and determine a final level of a new video clip as the initial level if no area corresponding to the new video clip at the current maximum level can accommodate the new video clip.
[0125] In the embodiments of this disclosure, each module can implement the video processing method provided in the embodiments of the method described above and achieve the same technical effects, and will not be described repeatedly here to avoid duplication.
[0126] Figure 14 is a schematic diagram of the configuration of an electronic device provided in an embodiment of the present disclosure, and is intended to exemplify an electronic device that implements any of the video processing methods in an embodiment of the present disclosure, and should not be understood as specifically limiting the embodiments of the present disclosure.
[0127] As shown in Figure 14, the electronic device 1400 may include a processor (e.g., a central processing unit, graphics processor, etc.) 1401 capable of performing various appropriate operations and processes according to a program stored in a read-only memory (ROM) 1402 or a program loaded from a storage device 1408 into a random access memory (RAM) 1403. The RAM 1403 also stores various programs and data necessary for the operation of the electronic device 1400. The processor 1401, ROM 1402, and RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.
[0128] Typically, the I / O interface 1405 may be connected to an input device 1406, such as a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 1407, such as a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 1408, such as a magnetic tape, hard disk, etc.; and a communication device 1409. The communication device 1409 may allow the electronic device 1400 to communicate with other devices wirelessly or via wired connections to exchange data. While an electronic device 1400 with various devices is shown, it should be understood that it is not necessary to implement or include all the devices shown. Instead, more or fewer devices may be implemented or included.
[0129] In particular, according to embodiments of the present disclosure, the procedure described with reference to the flowchart above may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product which includes a computer program mounted on a 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 1409, installed from a storage device 1408, or installed from a ROM 1402. When executed by a processor 1401, the computer program can perform limited functions in any of the video processing methods provided by embodiments of the present disclosure.
[0130] The computer-readable media described above in this disclosure may be computer-readable signal media or computer-readable storage media, or any combination of both. Computer-readable storage media may be, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical memory devices, magnetic memory devices, or any suitable combination thereof. In this disclosure, computer-readable storage media may be any tangible medium containing or storing programs that can be used by or in combination with an instruction execution system, apparatus, or device. On the other hand, in this disclosure, computer-readable signal media may include data signals carrying computer-readable program code that are propagated in the baseband or as part of a carrier wave. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination described above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transmit programs for use by or in combination with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted by any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), or any suitable combination described above.
[0131] In some embodiments, the client and server sides may communicate using any currently known or future-to-be-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and may connect with each other to digital data communications (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), extranets (e.g., the Internet), end-to-end networks (e.g., ad-hoc end-to-end networks), and networks currently known or future-to-be-developed.
[0132] The computer-readable media described above may be included in the electronic device described above, or it may be a separate entity not incorporated into the electronic device.
[0133] The computer-readable medium described above contains one or more programs, and when one or more of these programs are executed by the electronic device, the electronic device displays a video editing interface including a material area displaying a plurality of transition identifiers and a timeline area including at least one video track, each transition identifier used to indicate a type of transition effect scheme, and in response to a target trigger operation on a target transition identifier among the plurality of transition identifiers, it determines that the level of the target video clip in the target video track corresponding to the target trigger operation is the same, the target video track is a sub-track in the at least one video track, and adds a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier.
[0134] In embodiments of the Disclosure, computer program code for performing the operations of the 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, and C++, as well as conventional procedural programming languages such as the C language or similar programming languages. The program code may run entirely on a computer, partially on a computer, run as a standalone software package, partially on a computer and partially on a remote computer, or run entirely on a remote computer or server. Where a remote computer is involved, the remote computer may be connected to the 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 (for example, connected via the Internet using an Internet service provider).
[0135] The flowcharts and block diagrams in the drawings illustrate implementable architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program clip, or portion of code containing one or more executable instructions for realizing a given logical function. It should also be noted that in some alternative implementations, the functions represented within a block may occur in a different order than those shown in the drawings. For example, two consecutively represented blocks may actually be executed substantially in parallel, or in reverse order depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, may be realized by a dedicated hardware-based system that performs a given function or operation, or by a combination of dedicated hardware and computer instructions.
[0136] The units described in the embodiments of this disclosure may be implemented in software or in hardware. In such cases, the name of the unit does not constitute a limitation on the unit itself.
[0137] The functions described above in this text may be performed by at least partially one or more hardware logic components. For example, non-limiting 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-a-chip (SOCs), and complex programmable logic devices (CPLDs).
[0138] In the context of this disclosure, computer-readable media may be tangible media that contain or can store programs used by or in combination with instruction execution systems, devices, or equipment. Computer-readable media may be computer-readable signal media or computer-readable storage media. Computer-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any appropriate combination of the above. More specific examples of computer-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any appropriate combination of the above.
[0139] The above description is merely an explanation of preferred embodiments and applicable technical principles of the present disclosure. Those skilled in the art will understand that the scope of the disclosure is not limited to technical proposals consisting of specific combinations of the above-described technical features, but should also encompass other technical proposals consisting of any combination of the above-described technical features or equivalent features, without departing from the ideas of the above disclosure. For example, technical proposals formed by substituting the above-described features with similar functional technical features disclosed in this disclosure may be included.
[0140] Furthermore, although each operation is described in a specific order, this should not be understood as requiring that these operations be performed in a specific order shown or in a sequential order. In certain environments, 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 individual embodiments 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.
[0141] While this subject matter is described using language specific to structural features and / or methodological logic, it should be understood that the subject matter limited in the attached claims is not necessarily limited to the specific features or behaviors described above. Conversely, the specific features and behaviors described above are merely illustrative forms of realizing the claims.
Claims
1. Displaying a video editing interface that includes a material area displaying multiple transition identifiers and a timeline area containing at least one video track, wherein each transition identifier is used to indicate a type of transition effect scheme. In response to a target trigger operation on a target transition identifier among the plurality of transition identifiers, it is determined that the level at which the target video clip is located in the target video track corresponding to the target trigger operation is the same. This includes adding a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier, The target video track is a sub-track in the at least one video track. Video processing methods.
2. Before adding a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier, the method: If the target trigger operation is a click operation, the system traverses the at least one video track, and determines the first adjacent video clip to which a transition can be added detected during the process of traversing the at least one video track as the target adjacent video clip. If the target trigger operation is a drag operation, the adjacent video clip corresponding to the end position of the trajectory of the drag operation is determined to be the target adjacent video clip. The method according to claim 1.
3. Determining that the level at which the target video clip is located in the target video track corresponding to the aforementioned target trigger operation is the same means When the target video track has the free level function turned on, it is determined that the level at which the target video clip is located is the same, If the target video track does not have the free level function turned on, and the level identifiers of the adjacent video clips are the same, then it is determined that the target video clips are at the same level. If the target video track does not have the free level function turned on, and the level identifiers of the levels where the target adjacent video clips are located are different, the method includes adjusting the target adjacent video clips to the same level so that the levels where the target adjacent video clips are located are the same. The aforementioned free level function is used to indicate that the level at which a video clip is located in each sub-track corresponds to the track number of the corresponding sub-track. The method according to claim 1.
4. Adjusting the aforementioned target adjacent video clips to the same level is, If, before and after adjusting the target adjacent video clips to the same level, it is determined that the video screen within the target time range, which corresponds to the time range of the video clip whose level has been adjusted, is the same in the timeline area, then the target adjacent video clips shall be adjusted to the same level. If it is determined that the video screen within the target time range is different before and after adjusting the target adjacent video clip to the same level, prompt information is displayed including a first option to indicate that the target adjacent video clip should be adjusted to the same level, and a second option to indicate that the target adjacent video clip should not be adjusted to the same level. Includes adjusting the target adjacent video clip to the same level in response to a trigger operation for the first option described above, The method according to claim 3.
5. The target adjacent video clip includes a first video clip and a second video clip, wherein the level of the first video clip is lower than the level of the second video clip, and the level of the second video clip is the same as the first level, and adjusting the target adjacent video clip to the same level is, If the first level can accommodate the first video clip in the area corresponding to the first video clip, the level of the first video clip is adjusted to the first level, If the first level cannot accommodate the first video clip in the area corresponding to the first video clip, and a second level, which is one level higher than the first level, can accommodate the target adjacent video clip in the area corresponding to the target adjacent video clip, then the level of the target adjacent video clip is adjusted to the second level. If the first level cannot accommodate the first video clip in the area corresponding to the first video clip, and the second level cannot accommodate the target adjacent video clip in the area corresponding to the target adjacent video clip, the method includes creating a new third level above the first level and adjusting the level of the target adjacent video clip to the third level. The method according to claim 3.
6. Adjusting the aforementioned target adjacent video clips to the same level is, If the first video clip is connected to other video clips by a transition, the target adjacent video clip and the other video clips connected to the first video clip by a transition are adjusted to the same level. If the second video clip is connected to another video clip by a transition, the method includes adjusting the target adjacent video clip and the other video clip connected to the second video clip by a transition to the same level. The method according to claim 5.
7. After adding a transition between the target adjacent video clips based on the transition effect scheme indicated by the target transition identifier, the method further: This includes performing corresponding processing on the target video clip in response to an editing operation on the target video clip among the target adjacent video clips, and deleting any transitions that have been disabled in response to the editing operation. The aforementioned editing operations include one of the following: delete, paste, move, level adjust, or time reduction. The method according to claim 1.
8. If the aforementioned editing operation includes a paste operation, a move operation, or a level adjustment operation, the corresponding process is: If the first pending determination level allows the target video clip to be contained within the area corresponding to the target video clip, the level of the target video clip is determined as the first pending determination level, wherein if the editing operation includes a paste operation or a move operation, the first pending determination level is the level at which the target video clip is located before the editing operation, and if the editing operation includes a level adjustment operation, the first pending determination level is the level corresponding to the level adjustment operation. If the first decision waiting level does not allow the target video clip to fit into the area corresponding to the target video clip, and a second decision waiting level, which is one level higher than the first decision waiting level, can fit the target video clip into the area corresponding to the target video clip, then the level of the target video clip is determined as the second decision waiting level. If the first decision waiting level cannot accommodate the target video clip in the area corresponding to the target video clip, and the second decision waiting level cannot accommodate the target video clip in the area corresponding to the target video clip, the method includes creating a new third decision waiting level above the first decision waiting level and determining the level of the target video clip as the third decision waiting level. If the editing operation includes a delete operation, the corresponding process is: Deleting the aforementioned target video clip, If no video clip exists at the target level, the editing operation includes lowering each video clip at a level higher than the target level (where the target video clip is located) by one level before the editing operation. The method according to claim 7.
9. The above method further, In response to a trigger operation to add a new video clip to the timeline area, the initial level of the new video clip is determined as the sum of the current maximum level in the timeline area and 1. If, in at least one consecutive level below the initial level, the areas corresponding to the new video clip can all accommodate the new video clip, then the final level of the new video clip is determined as the minimum level among the at least one consecutive level. If, at the current maximum level, the area corresponding to the new video clip cannot accommodate the new video clip, the final level of the new video clip is determined to be the initial level, including: The method according to any one of claims 1 to 8.
10. A display module for displaying a video editing interface, comprising a material area displaying multiple transition identifiers and a timeline area containing at least one video track, wherein each transition identifier is used to indicate a type of transition effect scheme. In response to a target trigger operation on a target transition identifier among the plurality of transition identifiers, it is determined that the level at which the target video clip is located in the target video track corresponding to the target trigger operation is the same. Furthermore, the system includes a processing module for adding transitions between target adjacent video clips based on the transition effect scheme indicated by the target transition identifier, The target video track is a sub-track in the at least one video track. Video processing device.
11. A memory for storing a computer program and a processor for executing the video processing method described in any one of claims 1 to 9 when calling the computer program, electronic equipment.
12. When executed by a processor, it stores a computer program that implements the video processing method described in any one of claims 1 to 9. A computer-readable storage medium.
13. When executed by a processor, the computer program includes a computer program that implements the video processing method described in any one of claims 1 to 9. Computer program products.