Material Processing Method, Apparatus, Device, and Storage Medium

By obtaining and adjusting the track numbers before and after the movement of materials, the problem of failure in material movement in multi-track editing software is solved, and the successful movement of multiple materials and user experience improvement is achieved.

CN116366929BActive Publication Date: 2025-08-05BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310382060.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2025-08-05
Estimated Expiration
2043-04-11

AI Technical Summary

Technical Problem

In multi-track editing software, when multiple materials move at the same time, the relative relationship of tracks and time sequence cannot be maintained, resulting in the failure of movement or interfering with other materials, and the user editing experience is poor.

Method used

By obtaining the track number before moving of each selected material, determine the track number and display position after moving, ensuring that the track relationship remains unchanged, the track number adjustment and insertion of new tracks are used to realize the simultaneous movement of multiple materials.

Benefits of technology

It improves the success rate of moving multiple materials at the same time, reduces the frequency of user operations, and improves the editing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366929B_ABST
    Figure CN116366929B_ABST
Patent Text Reader

Abstract

The present disclosure provides a material processing method, apparatus, device and storage medium, which relate to the field of computer technology. The material processing method includes: in response to a selection operation of multiple materials, obtaining a pre-movement track number associated with each selected material; in response to a move start operation of the multiple selected materials, determining a first target material selected by the move start operation among the multiple selected materials, and determining a first target track corresponding to the move end operation; if no material is displayed at a first position in the first target track corresponding to the move end operation, determining the first position in the first target track as a post-movement display position of the first target material; determining, based on the track number of the first target track and the pre-movement track number associated with each selected material, post-movement track numbers and post-movement display positions of other selected materials except the first target material among the multiple selected materials; thereby improving the success rate of simultaneous movement of multiple materials.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a material processing method, a material processing device, an electronic device, and a computer-readable storage medium. Background Art

[0002] Multi-track editing software allows you to place different types of material (such as video, audio, special effects, or subtitles) on different tracks to create the final audio and video. The order in which the different materials are placed on the tracks determines the final display effect of the audio and video.

[0003] In related technologies, during the audio and video editing process, multi-track editing software supports moving multiple materials located on the same track or different tracks to other tracks at the same time. In order to ensure that the display effect of the edited audio and video is not affected, it is required that after multiple materials are moved, the relative relationship between the tracks where the multiple materials are located, as well as the time sequence between the display times of the materials, be maintained.

[0004] However, in most cases, the multiple materials that are moved cannot maintain the relative relationship between the tracks and the time sequence after being moved. Therefore, the multi-track editing software will refuse the user to move multiple materials, or interfere with other materials, resulting in a poor audio and video editing experience for the user. Summary of the Invention

[0005] The present disclosure provides a material processing method, apparatus, device, and storage medium to at least solve the problem of low success rate of simultaneous movement of multiple materials in related technologies. The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a material processing method is provided. The method is applied to a terminal device, wherein the terminal device displays an editing interface, the editing interface includes multiple tracks, each of the tracks displays at least one material, including:

[0007] In response to a selection operation on a plurality of materials, obtaining a pre-movement track number associated with each selected material;

[0008] In response to a move start operation on the plurality of selected materials, determining a first target material selected by the move start operation from the plurality of selected materials; and in response to a move end operation on the plurality of materials, determining a first target track corresponding to the move end operation;

[0009] If no material is displayed at the first position in the first target track corresponding to the move end operation, determining the first position in the first target track as the display position of the first target material after the move;

[0010] According to the track number of the first target track and the track number before movement associated with each selected material, the track number after movement and the display position after movement of other selected materials except the first target material among the multiple selected materials are determined, wherein the track number after movement associated with the first part of the selected materials is less than or equal to the track number of the first target track, and the first part of the selected materials is the selected material whose track number before movement is less than the track number before movement of the first target material, and the track number after movement associated with the second part of the selected materials is greater than or equal to the track number of the first target track, and the second part of the selected materials is the selected material whose track number before movement is greater than the track number before movement of the first target material.

[0011] Optionally, determining the post-movement track numbers and post-movement display positions of other selected materials among the multiple selected materials except the first target material based on the track number of the first target track and the pre-movement track number associated with each selected material includes:

[0012] determining a display time variation of the plurality of selected materials according to a first operation position of a movement start operation and a second operation position of a movement end operation;

[0013] Determining, according to the display time variation and the first target track for displaying the first target material, a track number and a display position after movement of each selected material in the first portion of selected materials;

[0014] According to the display time variation and the first target track for displaying the first target material, the track number and the display position after movement of each selected material in the second part of selected materials are determined.

[0015] Optionally, determining the track number and display position after movement of each selected material in the first portion of selected materials based on the display time change and the first target track for displaying the first target material includes:

[0016] determining a second target material according to the pre-movement track number associated with each selected material in the first portion of selected materials, wherein the pre-movement track number of the second target material is smaller than the pre-movement track number of the first target material, and a difference between the pre-movement track number of the second target material and the pre-movement track number of the first target material in the first portion of selected materials is minimal;

[0017] determining a second display time of the second target material after the movement according to the first display time of the second target material before the movement and the display time variation;

[0018] determining a display status of a material at a second position corresponding to the second display time in the first target track for displaying the first target material;

[0019] Determine the track number and display position of the second target material after moving based on the material display situation of the second position, and determine the second target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the first part of the selected materials are determined.

[0020] Optionally, determining the track number and display position of the second target material after movement according to the display status of the material at the second position includes:

[0021] If no material is displayed at the second position corresponding to the second display time in the first target track used to display the first target material, the track number of the first target track is determined to be the track number of the second target material after movement, and the second position is determined to be the display position of the second target material after movement.

[0022] Optionally, determining the track number and display position of the second target material after movement according to the display status of the material at the second position includes:

[0023] If, in the first target track for displaying the first target material, a second position corresponding to the second display time displays material, then determining a display status of material at a third position corresponding to the second display time in the second target track, the second target track being adjacent to the first target track and having a track number smaller than that of the first target track;

[0024] If no material is displayed at the third position corresponding to the second display time in the second target track, determining the track number of the second target track as the track number of the second target material after movement, and determining the third position as the display position of the second target material after movement;

[0025] In the case that material is displayed at the third position corresponding to the second display time in the second target track, the updated second target track is determined, and starting from the determination of the material display situation at the third position corresponding to the second display time in the second target track, the above process is repeated until the track number and display position after movement of the second target material are determined, the updated second target track is adjacent to the second target track, and the track number of the updated second target track is smaller than the track number of the second target track.

[0026] Optionally, determining the track number and display position after movement of each selected material in the second portion of selected materials based on the display time change and the first target track for displaying the first target material includes:

[0027] determining a third target material according to the pre-movement track number associated with each selected material in the second portion of selected materials, wherein the pre-movement track number of the third target material is greater than the pre-movement track number of the first target material, and a difference between the pre-movement track number of the third target material and the pre-movement track number of the first target material in the second portion of selected materials is minimal;

[0028] determining a fourth display time of the second target material after the movement according to the third display time of the third target material before the movement and the display time variation;

[0029] determining a display status of a material at a fourth position corresponding to the fourth display time in the first target track for displaying the first target material;

[0030] Determine the track number and display position of the third target material after moving based on the material display situation of the fourth position, and determine the third target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the second part of the selected materials are determined.

[0031] Optionally, determining the track number and display position of the third target material after movement according to the display status of the material at the fourth position includes:

[0032] If, in the first target track used to display the first target material, no material is displayed at the fourth position corresponding to the fourth display time, the track number of the first target track is determined to be the track number of the third target material after movement, and the fourth position is determined to be the display position of the third target material after movement.

[0033] Optionally, determining the track number and display position of the third target material after movement according to the display status of the material at the fourth position includes:

[0034] If, in the first target track for displaying the first target material, a material is displayed at a fourth position corresponding to the fourth display time, determining a display status of the material at a fifth position corresponding to the fourth display time in a third target track, the third target track being adjacent to the first target track and having a track number greater than that of the first target track;

[0035] If no material is displayed at the fifth position corresponding to the fourth display time in the third target track, determining the track number of the third target track as the track number of the third target material after movement, and determining the fifth position as the display position of the third target material after movement;

[0036] In a case where material is displayed at the fifth position corresponding to the fourth display time in the third target track, an updated third target track is determined, and starting from determining the display status of the material at the fifth position corresponding to the fourth display time in the third target track, the above process is repeated until the track number and display position after movement of the third target material are determined, the updated third target track is adjacent to the third target track, and the track number of the updated third target track is greater than the track number of the third target track.

[0037] Optionally, the method further includes:

[0038] If a material is displayed at a first position in the first target track corresponding to the move end operation, determining a display time change amount of the plurality of selected materials according to the first operation position of the move start operation and the second operation position of the move end operation;

[0039] determining a sixth display time of the second target material after the movement according to the fifth display time of the first target material before the movement and the display time variation;

[0040] If there is no material displayed at the sixth position corresponding to the sixth display time in the fourth target track, determining the track number of the fourth target track to be the track number of the first target material after the move, and determining the sixth position to be the display position of the first target material after the move, and the fourth target track is adjacent to the first target track;

[0041] If there is material displayed at the sixth position corresponding to the sixth display time in the fourth target track, an updated fourth target track is determined until the moved track number and the moved display position of the first target material are determined, and the updated fourth target track is adjacent to the fourth target track.

[0042] Optionally, the method further includes:

[0043] If the display position for displaying the first target material after the move is not determined in all tracks with track numbers smaller than the track number of the first target track, inserting a new track before the track with the smallest track number among the multiple tracks in the editing interface;

[0044] The track number of the newly inserted track is determined as the track number of the first target material after moving, and the seventh position corresponding to the sixth display time in the newly inserted track is determined as the display position of the first target material after moving.

[0045] According to a second aspect of an embodiment of the present disclosure, a material processing apparatus is provided. The apparatus is a terminal device, and the terminal device displays an editing interface. The editing interface includes multiple tracks, and each track displays at least one material, including:

[0046] An acquisition module is configured to acquire a pre-movement track number associated with each selected material in response to a selection operation on the plurality of materials;

[0047] a first determining module configured to, in response to a move start operation on the plurality of selected materials, determine a first target material selected by the move start operation from the plurality of selected materials, and, in response to a move end operation on the plurality of materials, determine a first target track corresponding to the move end operation;

[0048] a second determining module configured to determine, if no material is displayed at a first position in the first target track corresponding to the move end operation, as a display position of the first target material after the move;

[0049] The third determination module is configured to determine the post-movement track number and the post-movement display position of other selected materials among the multiple selected materials except the first target material based on the track number of the first target track and the pre-movement track number associated with each selected material, wherein the post-movement track number associated with the first part of the selected materials is less than or equal to the track number of the first target track, and the first part of the selected materials is the selected material whose pre-movement track number is less than the pre-movement track number of the first target material, and the post-movement track number associated with the second part of the selected materials is greater than or equal to the track number of the first target track, and the second part of the selected materials is the selected material whose pre-movement track number is greater than the pre-movement track number of the first target material.

[0050] Optionally, the third determining module is configured to:

[0051] determining a display time variation of the plurality of selected materials according to a first operation position of a movement start operation and a second operation position of a movement end operation;

[0052] Determining, according to the display time variation and the first target track for displaying the first target material, a track number and a display position after movement of each selected material in the first portion of selected materials;

[0053] According to the display time variation and the first target track for displaying the first target material, the track number and the display position after movement of each selected material in the second part of selected materials are determined.

[0054] Optionally, the third determining module is configured to:

[0055] determining a second target material according to the pre-movement track number associated with each selected material in the first portion of selected materials, wherein the pre-movement track number of the second target material is smaller than the pre-movement track number of the first target material, and a difference between the pre-movement track number of the second target material and the pre-movement track number of the first target material in the first portion of selected materials is minimal;

[0056] determining a second display time of the second target material after the movement according to the first display time of the second target material before the movement and the display time variation;

[0057] determining a display status of a material at a second position corresponding to the second display time in the first target track for displaying the first target material;

[0058] Determine the track number and display position of the second target material after moving based on the material display situation of the second position, and determine the second target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the first part of the selected materials are determined.

[0059] Optionally, the third determining module is configured to:

[0060] If no material is displayed at the second position corresponding to the second display time in the first target track used to display the first target material, the track number of the first target track is determined to be the track number of the second target material after movement, and the second position is determined to be the display position of the second target material after movement.

[0061] Optionally, the third determining module is configured to:

[0062] If, in the first target track for displaying the first target material, a second position corresponding to the second display time displays material, then determining a display status of material at a third position corresponding to the second display time in the second target track, the second target track being adjacent to the first target track and having a track number smaller than that of the first target track;

[0063] If no material is displayed at the third position corresponding to the second display time in the second target track, determining the track number of the second target track as the track number of the second target material after movement, and determining the third position as the display position of the second target material after movement;

[0064] In the case that material is displayed at the third position corresponding to the second display time in the second target track, the updated second target track is determined, and starting from the determination of the material display situation at the third position corresponding to the second display time in the second target track, the above process is repeated until the track number and display position after movement of the second target material are determined, the updated second target track is adjacent to the second target track, and the track number of the updated second target track is smaller than the track number of the second target track.

[0065] Optionally, the third determining module is configured to:

[0066] determining a third target material according to the pre-movement track number associated with each selected material in the second portion of selected materials, wherein the pre-movement track number of the third target material is greater than the pre-movement track number of the first target material, and a difference between the pre-movement track number of the third target material and the pre-movement track number of the first target material in the second portion of selected materials is minimal;

[0067] determining a fourth display time of the second target material after the movement according to the third display time of the third target material before the movement and the display time variation;

[0068] determining a display status of a material at a fourth position corresponding to the fourth display time in the first target track for displaying the first target material;

[0069] Determine the track number and display position of the third target material after moving based on the material display situation of the fourth position, and determine the third target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the second part of the selected materials are determined.

[0070] Optionally, the third determining module is configured to:

[0071] If, in the first target track used to display the first target material, no material is displayed at the fourth position corresponding to the fourth display time, the track number of the first target track is determined to be the track number of the third target material after movement, and the fourth position is determined to be the display position of the third target material after movement.

[0072] Optionally, the third determining module is configured to:

[0073] If, in the first target track for displaying the first target material, a material is displayed at a fourth position corresponding to the fourth display time, determining a display status of the material at a fifth position corresponding to the fourth display time in a third target track, the third target track being adjacent to the first target track and having a track number greater than that of the first target track;

[0074] If no material is displayed at the fifth position corresponding to the fourth display time in the third target track, determining the track number of the third target track as the track number of the third target material after movement, and determining the fifth position as the display position of the third target material after movement;

[0075] In a case where material is displayed at the fifth position corresponding to the fourth display time in the third target track, an updated third target track is determined, and starting from determining the display status of the material at the fifth position corresponding to the fourth display time in the third target track, the above process is repeated until the track number and display position after movement of the third target material are determined, the updated third target track is adjacent to the third target track, and the track number of the updated third target track is greater than the track number of the third target track.

[0076] Optionally, the apparatus further includes a fourth determining module configured to:

[0077] If a material is displayed at a first position in the first target track corresponding to the move end operation, determining a display time change amount of the plurality of selected materials according to the first operation position of the move start operation and the second operation position of the move end operation;

[0078] determining a sixth display time of the second target material after the movement according to the fifth display time of the first target material before the movement and the display time variation;

[0079] If there is no material displayed at the sixth position corresponding to the sixth display time in the fourth target track, determining the track number of the fourth target track to be the track number of the first target material after the move, and determining the sixth position to be the display position of the first target material after the move, and the fourth target track is adjacent to the first target track;

[0080] If there is material displayed at the sixth position corresponding to the sixth display time in the fourth target track, an updated fourth target track is determined until the moved track number and the moved display position of the first target material are determined, and the updated fourth target track is adjacent to the fourth target track.

[0081] Optionally, the apparatus further includes a fifth determining module configured to:

[0082] If the display position for displaying the first target material after the move is not determined in all tracks with track numbers smaller than the track number of the first target track, inserting a new track before the track with the smallest track number among the multiple tracks in the editing interface;

[0083] The track number of the newly inserted track is determined as the track number of the first target material after moving, and the seventh position corresponding to the sixth display time in the newly inserted track is determined as the display position of the first target material after moving.

[0084] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0085] processor;

[0086] a memory for storing instructions executable by the processor;

[0087] The processor is configured to execute the instructions to implement the material processing method as described in the first aspect;

[0088] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the material processing method as described in the first aspect.

[0089] According to a fourth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the material processing method as described in the first aspect.

[0090] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:

[0091] The material processing method, apparatus, device and storage medium provided by the embodiments of the present disclosure can, on the one hand, successfully respond to the simultaneous movement of multiple materials while ensuring that the track sequence relationship of the tracks on which the multiple materials are respectively located remains unchanged after the movement, thereby improving the success probability of the simultaneous movement of multiple materials; on the other hand, it can reduce the frequency of user operations during the movement of multiple materials, thereby improving the user's editing experience.

[0092] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0094] Figure 1 is a schematic diagram of a display interface of a material processing device according to an exemplary embodiment;

[0095] Figure 2 is a flow chart showing a material processing method according to an exemplary embodiment;

[0096] Figure 3 is a flow chart showing another material processing method according to an exemplary embodiment;

[0097] Figure 4 is a block diagram of a material processing device according to an exemplary embodiment;

[0098] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0099] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0100] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.

[0101] When using multi-track editing software to combine audio and video, you can move multiple materials on multiple tracks simultaneously. For example, you can move the first special effect material on track 0, the audio material and second special effect material on track 1, and the video material on track 3 at the same time.

[0102] In the related art, when multiple materials are moved simultaneously, it can be determined that the multiple materials have been successfully moved only when the relative relationship between the tracks where the multiple materials are located after being moved, and the time sequence relationship between the display times of the materials are not affected. Otherwise, the multi-track editing software will refuse the user's movement of multiple materials, or interfere with other materials, for example, trimming other materials, or changing the display time of other materials in the track, resulting in a poor audio and video editing experience for the user. It should be noted that the relative relationship between the tracks where multiple materials are located is used to characterize the number of interval tracks between the tracks where different materials are located, and the track sequence relationship between the tracks where different materials are located.

[0103] For example, suppose that the first special effects material on track 0, the audio material and the second special effects material on track 1, and the video material on track 3 need to be moved simultaneously; in the related technology, the successful movement of multiple materials can only be determined under the premise of ensuring that the number of interval tracks between the first special effects material and the audio material and the second special effects material after being moved is 0, and the track number of the first special effects material after being moved is less than the track number of the audio material and the second special effects material; and ensuring that the number of interval tracks between the audio material and the second special effects material after being moved and the video material after being moved is 1, and the track number of the audio material and the second special effects material after being moved is less than the track number of the video material.

[0104] In view of the above problems, an exemplary embodiment of the present disclosure provides a material processing method, and the application scenarios of the material processing method are not limited to: running multi-track editing software in a terminal device to enable the terminal device to display an editing interface, the editing interface includes multiple tracks, and each track displays at least one material; wherein the terminal device can obtain a track number associated with each selected material in response to a selection operation of multiple materials; in response to a move start operation on multiple selected materials, determine a first target material selected by the move start operation in the multiple selected materials, and in response to a move end operation on multiple materials, determine a first target track corresponding to the move end operation; if no material is displayed in the first position corresponding to the move end operation in the first target track, determine the first target track corresponding to the move end operation. The first position in the target track is the display position of the first target material after the move; based on the track number of the first target track and the track number before the move associated with each selected material, the track numbers after the move and the display positions after the move of the other selected materials except the first target material in the multiple selected materials are determined, wherein the track number after the move associated with the first part of the selected materials is less than or equal to the track number of the first target track, and the first part of the selected materials are selected materials whose track numbers before the move are less than the track number before the move of the first target material; the track number after the move associated with the second part of the selected materials is greater than or equal to the track number of the first target track, and the second part of the selected materials are selected materials whose track numbers before the move are greater than the track number before the move of the first target material. When it is determined that the track order relationship of the tracks where the multiple materials are respectively located is not changed after the move, the simultaneous move of the multiple materials can be successfully responded to, thereby increasing the success probability of the simultaneous move of the multiple materials and improving the user experience.

[0105] In order to implement the above-mentioned material processing method, an exemplary embodiment of the present disclosure provides a material processing device. Figure 1 Schematic diagram of the material processing device is shown in FIG. Figure 1 As shown, the material processing device 100 can be a terminal device. More specifically, the terminal device can be a smart phone, a personal computer, a tablet computer, etc.

[0106] Among them, the terminal device can run multi-track editing software and display the editing interface 101, wherein the editing interface can include an editing effect display area 1011 and a track display area 1012, wherein the editing effect display area 1011 is used to display the synthesis effect of the material; the track display area 1012 includes multiple tracks, and each track can display at least one material.

[0107] Figure 2 is a flow chart showing a material processing method according to an exemplary embodiment. The material processing method can be applied to a terminal device, such as Figure 2As shown, the material processing method includes the following steps.

[0108] Step S201, in response to a selection operation on a plurality of materials, obtaining a track number before movement associated with each selected material;

[0109] Step S202, in response to a move start operation on the plurality of selected materials, determining a first target material selected by the move start operation from the plurality of selected materials, and in response to a move end operation on the plurality of materials, determining a first target track corresponding to the move end operation;

[0110] Step S203: If the first position in the first target track corresponding to the move end operation does not display the material, then determine the first position in the first target track as the display position of the first target material after the move;

[0111] Step S204: determining the track numbers after movement and the display positions after movement of the selected materials other than the first target material in the plurality of selected materials according to the track number of the first target track and the track number before movement associated with each selected material;

[0112] Among them, the track number after movement associated with the first part of the selected material is less than or equal to the track number of the first target track, and the first part of the selected material is the selected material whose track number before movement is less than the track number before movement of the first target material, and the track number after movement associated with the second part of the selected material is greater than or equal to the track number of the first target track, and the second part of the selected material is the selected material whose track number before movement is greater than the track number before movement of the first target material.

[0113] To sum up, the material processing method provided by the embodiment of the present disclosure, on the one hand, in the process of simultaneous movement of multiple materials, successfully responds to the simultaneous movement of multiple materials while determining that the track sequence relationship of the tracks where the multiple materials are respectively located is not changed after the movement, thereby improving the success probability of simultaneous movement of multiple materials; on the other hand, it can reduce the frequency of user operations in the process of moving multiple materials, thereby improving the user's editing experience.

[0114] The following Figure 2 The specific implementation of each step in the embodiment shown is described in detail:

[0115] In step S201 , the terminal device may obtain a pre-movement track number associated with each selected material in response to a selection operation on multiple materials.

[0116] In an embodiment of the present disclosure, the editing interface can display multiple tracks, each track corresponds to a track number, and the track number determines the coverage relationship of the materials in the track in the synthesized audio and video; among them, during the same material display time, the material in the track corresponding to the smaller track number will cover the material in the track corresponding to the larger track number.

[0117] In an optional implementation, the terminal device may obtain the track number of the track where each selected material is located in response to the selection operation of the multiple materials, and obtain the track number before movement associated with each selected material.

[0118] In an optional embodiment, after obtaining the pre-movement track number associated with each selected material, it can be determined whether the display times of the candidate materials of adjacent tracks overlap before the move. If the display times of the candidate materials of adjacent tracks do not overlap before the move, the pre-movement track number of the candidate materials of the adjacent tracks can be determined as any of the adjacent tracks. The pre-movement track numbers of the candidate materials whose display times do not overlap can be merged to reduce the amount of data.

[0119] In step S202, the terminal device can determine the first target material selected by the move start operation among the multiple selected materials in response to the move start operation on the multiple selected materials, and determine the first target track corresponding to the move end operation in response to the move end operation on the multiple materials.

[0120] In the embodiment of the present disclosure, during the simultaneous movement of multiple materials, the user usually selects a target material from multiple selected materials, moves the target material to the target position of the target track, and the multi-track editing software automatically determines the track number and display position of other selected materials after the move.

[0121] In an optional embodiment, the process of the terminal device determining the first target track corresponding to the move end operation in response to the move end operation of multiple materials may include: determining whether there is a track at the position corresponding to the move end operation in the editing interface, if there is a track at the position corresponding to the move end operation in the editing interface, determining the track at the position corresponding to the move end operation as the first target track; if there is no track at the position corresponding to the move end operation in the editing interface, inserting a new track at the position corresponding to the move end operation, and determining the newly inserted track as the first target track.

[0122] It can be understood that in the embodiment of the present disclosure, after a new track is inserted in the editing interface, the track number of the newly inserted track can be determined as the track number of the first track of the two tracks adjacent to the newly inserted track, and the track numbers of the first track and other tracks with a track number larger than the track number of the first track are updated, wherein the first track is the track corresponding to the larger track number of the two tracks adjacent to the newly inserted track, and the track number update process can be to add parameter 1 to the original track number of the track to obtain the updated track number.

[0123] In step S203 , if the first position in the first target track corresponding to the move end operation does not display the material, the first position in the first target track is determined as the display position of the first target material after the move.

[0124] In the embodiment of the present disclosure, the movement of the material cannot affect the display time and visual effect of other unmoved materials. When the selected material is moved, the display position after movement selected for the alternative material can be determined as the final display position of the selected material only when it is determined that no other material is displayed at the display position after movement selected for the alternative material.

[0125] In an optional embodiment, if the first position in the first target track corresponding to the end of the move operation does not display a material, the terminal device may determine the first position in the first target track as the display position of the first target material after the move. This ensures that the material is successfully moved without affecting the display time and visual effect of other unselected materials.

[0126] In step S204, the terminal device can determine the post-movement track numbers and post-movement display positions of other selected materials except the first target material among the multiple selected materials based on the track number of the first target track and the pre-movement track number associated with each selected material.

[0127] In the embodiment of the present disclosure, when multiple materials are moved simultaneously, if it is determined that the track order relationship of the tracks where the multiple materials are respectively located is not changed after the movement, the simultaneous movement of the multiple materials is allowed.

[0128] In an optional implementation, the movement of the material may include a change in the track where the material is located, or a change in the display time of the material. Figure 3 As shown, the process of the terminal device determining the track numbers after movement and the display positions after movement of other selected materials except the first target material among the multiple selected materials based on the track number of the first target track and the track number before movement associated with each selected material may include:

[0129] Step S301 : determining a display time variation of a plurality of selected materials according to a first operation position of a move start operation and a second operation position of a move end operation.

[0130] In the embodiment of the present disclosure, when a plurality of materials are moved simultaneously, the change in display time of each selected material before and after the movement is the same.

[0131] In an optional embodiment, the process of the terminal device determining the display time change of multiple selected materials based on the first operation position of the movement start operation and the second operation position of the movement end operation may include: determining the display time of the first target material before moving, determining the display time corresponding to the first position in the first target track, obtaining the display time of the first target material after moving, determining the difference between the display time of the first target material after moving and the display time before moving, obtaining the display time change of the first target material, and determining the display time change of the first target material as the display time change of multiple selected materials.

[0132] Step S302, determining the track number and the display position after the movement of each selected material in the first part of the selected materials according to the display time variation and the first target track for displaying the first target material;

[0133] In the embodiment of the present disclosure, in order to ensure that the track order relationship of the tracks where multiple materials are respectively located is not changed after moving, for the first part of the selected materials, it is necessary to determine the track number of each selected material in the first part of the selected materials and the display position after moving in a track with a smaller track number than the first target track.

[0134] In an optional embodiment, the process of determining the track number and the display position after the movement of each selected material in the first portion of selected materials by the terminal device based on the display time change and the first target track for displaying the first target material may include: determining a second target material based on the pre-movement track number associated with each selected material in the first portion of selected materials; determining a second display time of the second target material after the movement based on the first display time and the display time change of the second target material before the movement; determining the display status of the material at the second position corresponding to the second display time in the first target track for displaying the first target material; determining the post-movement track number and the display position after the movement of the second target material based on the display status of the material at the second position, and determining the second target material as the updated first target material, and repeating the above process until the post-movement track number and the post-movement display position of each selected material in the first portion of selected materials are determined. The pre-movement track number of the second target material is smaller than the pre-movement track number of the first target material, and the difference between the pre-movement track number of the second target material and the pre-movement track number of the first target material in the first portion of selected materials is the smallest. The track number after movement and the display position after movement of each selected material in the first part of the selected material can be determined in sequence, preventing the selected material from being omitted in the process of determining the track number after movement and the display position after movement of the first part of the selected material, thereby improving the reliability of the track number after movement and the display position after movement of each selected material in the first part of the selected material.

[0135] In an optional embodiment, the process of the terminal device determining the track number and display position of the second target material after moving based on the display status of the material at the second position may include: if the second position corresponding to the second display time in the first target track used to display the first target material does not display the material, then determining the track number of the first target track as the track number of the second target material after moving, and determining the second position as the display position of the second target material after moving. When it is determined that the position corresponding to the display time after moving of the second target material in the track selected for displaying the second target material is not occupied, the position corresponding to the display time after moving of the second target material in the track selected for displaying the second target material may be determined as the display position of the second target material after moving, without affecting the visual effects of other materials that do not need to be moved during the display process.

[0136] In an optional embodiment, the process of the terminal device determining the track number and display position of the second target material after moving based on the display status of the material at the second position may include: if the first target track for displaying the first target material displays material at the second position corresponding to the second display time, then determining the display status of the material at the third position corresponding to the second display time in the second target track; if no material is displayed at the third position corresponding to the second display time in the second target track, then determining the track number of the second target track as the track number of the second target material after moving, and determining the third position as the display position of the second target material after moving; if material is displayed at the third position corresponding to the second display time in the second target track, then determining an updated second target track, and starting from determining the display status of the material at the third position corresponding to the second display time in the second target track, repeating the above process until the track number and display position of the second target material after moving are determined, the updated second target track is adjacent to the second target track, and the track number of the updated second target track is smaller than the track number of the second target track. Wherein, the second target track is adjacent to the first target track, and the track number of the second target track is smaller than the track number of the first target track. When the position corresponding to the display time of the second target material after movement is occupied in the track selected for displaying the second target material, a new track can be selected to re-determine the track number and display position after movement for the second target material to prevent interference with the visual effects of other materials that do not need to be moved during the display process.

[0137] Step S303 : determining the track number and the display position after moving of each selected material in the second part of the selected materials according to the display time variation and the first target track for displaying the first target material.

[0138] In the embodiment of the present disclosure, in order to ensure that the track order relationship of the tracks where multiple materials are respectively located is not changed after moving, for the second part of the selected materials, it is necessary to determine the track number after moving and the display position after moving of each selected material in the second part of the selected materials in a track with a larger track number than the first target track.

[0139] In an optional embodiment, the process of determining the track number and display position after movement of each selected material in the second portion of selected materials based on the display time change and the first target track for displaying the first target material may include: determining a third target material based on the track number before movement associated with each selected material in the second portion of selected materials; determining a fourth display time after movement of the second target material based on the third display time before movement and the display time change of the third target material; determining a display status of a material at a fourth position corresponding to the fourth display time in the first target track for displaying the first target material; determining the track number and display position after movement of the third target material based on the display status of the material at the fourth position, and determining the third target material as the updated first target material, and repeating the above process until the track number and display position after movement of each selected material in the second portion of selected materials are determined. The track number before movement of the third target material is greater than the track number before movement of the first target material, and the difference between the track numbers before movement of the third target material and the track numbers before movement of the first target material in the second portion of selected materials is the smallest. The track number after movement and the display position after movement of each selected material in the second part of the selected material can be determined in sequence, preventing the selected material from being omitted in the process of determining the track number after movement and the display position after movement of the second part of the selected material, thereby improving the reliability of the track number after movement and the display position after movement of each selected material in the second part of the selected material.

[0140] In an optional embodiment, the process of determining the track number and display position of the third target material after moving based on the display status of the material at the fourth position may include: if no material is displayed at the fourth position corresponding to the fourth display time in the first target track used to display the first target material, then determining the track number of the first target track as the track number of the third target material after moving, and determining the fourth position as the display position of the third target material after moving. When it is determined that the position corresponding to the display time after moving of the third target material in the track selected for displaying the third target material is not occupied, the position corresponding to the display time after moving of the third target material in the track selected for displaying the third target material may be determined as the display position of the third target material after moving, without affecting the visual effects of other materials that do not need to be moved during the display process.

[0141] In an optional embodiment, the process of determining the track number and display position of the third target material after moving based on the display status of the material at the fourth position may include: if the first target track for displaying the first target material displays material at the fourth position corresponding to the fourth display time, determining the display status of the material at the fifth position corresponding to the fourth display time in the third target track; if no material is displayed at the fifth position corresponding to the fourth display time in the third target track, determining the track number of the third target track as the track number of the third target material after moving, and determining the fifth position as the display position of the third target material after moving; if material is displayed at the fifth position corresponding to the fourth display time in the third target track, determining an updated third target track, and starting from determining the display status of the material at the fifth position corresponding to the fourth display time in the third target track, repeating the above process until the track number and display position of the third target material after moving are determined, the updated third target track is adjacent to the third target track, and the track number of the updated third target track is greater than the track number of the third target track. Wherein, the third target track is adjacent to the first target track, and the track number of the third target track is greater than the track number of the first target track. When the position corresponding to the display time of the third target material after movement is occupied in the track selected for displaying the third target material, a new track can be selected to re-determine the track number and display position after movement for the third target material to prevent interference with the visual effects of other materials that do not need to be moved during the display process.

[0142] It can be understood that when the movement of multiple materials includes changes in the tracks where the materials are located and changes in the display time of the materials, the display time change of the selected materials can be determined first, and then the track number and display position of each selected material after movement can be determined based on the display time change, which can improve the accuracy of the determined track numbers and display positions of the multiple selected materials after movement.

[0143] In an optional embodiment, the movement of the material may include a change in the track where the material is located. The process in which the terminal device determines the track numbers and display positions of the selected materials other than the first target material in the plurality of selected materials, based on the track number of the first target track and the track number before movement associated with each selected material, may include: determining the display position of each selected material in the first portion of the selected materials after movement based on the display time change and the first target track used to display the first target material; and determining the display position of each selected material in the second portion of the selected materials after movement based on the display time change and the first target track used to display the first target material. It should be noted that since the display time of the material has not changed, the display time change can be determined to be 0.

[0144] Among them, the process of determining the display position of each selected material in the first part of the selected materials after moving based on the display time change and the first target track for displaying the first target material can refer to the above-mentioned step S302, and the process of determining the display position of each selected material in the second part of the selected materials after moving based on the display time change and the first target track for displaying the first target material can refer to the above-mentioned step S303, which is not elaborated in the present embodiment.

[0145] In an optional embodiment, if material is displayed at the first position corresponding to the end operation of the move in the first target track, the display time change of multiple selected materials is determined according to the first operation position of the start operation of the move and the second operation position of the end operation of the move; the sixth display time of the second target material after the move is determined according to the fifth display time and the display time change of the first target material before the move; if material is not displayed at the sixth position corresponding to the sixth display time in the fourth target track, the track number of the fourth target track is determined to be the track number of the first target material after the move, and the sixth position is determined to be the display position of the first target material after the move; if material is displayed at the sixth position corresponding to the sixth display time in the fourth target track, the updated fourth target track is determined, until the track number and display position of the first target material after the move are determined, wherein the fourth target track is adjacent to the first target track, and the updated fourth target track is adjacent to the fourth target track. When the position corresponding to the display time of the first target material after movement is occupied in the track selected for displaying the first target material, a new track can be selected to re-determine the track number and display position after movement for the first target material to prevent interference with the visual effects of other materials that do not need to be moved during the display process.

[0146] In an optional embodiment, if the display position after the move for displaying the first target material has not been determined in all tracks with track numbers smaller than the track number of the first target track, a new track is inserted before the track with the smallest track number among the multiple tracks in the editing interface; the track number of the newly inserted track is determined as the track number after the move of the first target material, and the seventh position corresponding to the sixth display time in the newly inserted track is determined as the display position after the move of the first target material. In the case where the display position after the move cannot be determined for the first target material in the multiple tracks already in the editing interface, a new track can be added to display the first target material after the move, thereby further increasing the probability of multiple materials being successfully moved at the same time, and further improving the user's audio and video editing experience.

[0147] The newly added track may be the track with the smallest track number, and the track number of the existing track in the editing interface is updated. The updating process of the track number of the existing track may be to add parameter 1 to the original track number of the existing track to obtain the updated track number.

[0148] Figure 4 This is a block diagram of a material processing device according to an exemplary embodiment. The material processing device can be a terminal device, which displays an editing interface. The editing interface includes multiple tracks, and each track displays at least one material, such as Figure 4 As shown, the material processing device 400 includes:

[0149] The acquisition module 401 is configured to, in response to a selection operation on a plurality of materials, acquire a track number before movement associated with each selected material;

[0150] A first determining module 402 is configured to, in response to a move start operation on a plurality of selected materials, determine a first target material selected by the move start operation from the plurality of selected materials, and, in response to a move end operation on the plurality of materials, determine a first target track corresponding to the move end operation;

[0151] The second determining module 403 is configured to determine the first position in the first target track as the display position of the first target material after the move if the first position corresponding to the move end operation in the first target track does not display the material;

[0152] The third determination module 404 is configured to determine the track numbers after movement and the display positions after movement of other selected materials except the first target material among the multiple selected materials based on the track number of the first target track and the track numbers before movement associated with each selected material, wherein the track numbers after movement associated with the first part of the selected materials are less than or equal to the track number of the first target track, and the first part of the selected materials are the selected materials whose track numbers before movement are less than the track numbers before movement of the first target material, and the track numbers after movement associated with the second part of the selected materials are greater than or equal to the track number of the first target track, and the second part of the selected materials are the selected materials whose track numbers before movement are greater than the track numbers before movement of the first target material.

[0153] Optionally, the third determining module 404 is configured to:

[0154] determining a display time variation of the plurality of selected materials according to a first operation position of a movement start operation and a second operation position of a movement end operation;

[0155] Determine the track number and display position of each selected material in the first portion of selected materials after the move according to the display time variation and the first target track for displaying the first target material;

[0156] The track number and the display position after movement of each selected material in the second part of the selected materials are determined according to the display time variation and the first target track for displaying the first target material.

[0157] Optionally, the third determining module 404 is configured to:

[0158] determining a second target material according to the pre-movement track number associated with each selected material in the first portion of the selected materials, wherein the pre-movement track number of the second target material is smaller than the pre-movement track number of the first target material, and the difference between the pre-movement track number of the second target material and the pre-movement track number of the first target material in the first portion of the selected materials is the smallest;

[0159] determining a second display time of the second target material after the movement according to the first display time of the second target material before the movement and the display time variation;

[0160] Determining a display status of a material at a second position corresponding to a second display time in a first target track for displaying the first target material;

[0161] Determine the track number and display position of the second target material after moving based on the display status of the material at the second position, and determine the second target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the first part of the selected materials are determined.

[0162] Optionally, the third determining module 404 is configured to:

[0163] If no material is displayed at the second position corresponding to the second display time in the first target track used to display the first target material, the track number of the first target track is determined to be the moved track number of the second target material, and the second position is determined to be the moved display position of the second target material.

[0164] Optionally, the third determining module 404 is configured to:

[0165] If, in a first target track for displaying a first target material, a second position corresponding to a second display time displays a material, determining a display status of a material at a third position corresponding to the second display time in a second target track, the second target track is adjacent to the first target track, and a track number of the second target track is smaller than a track number of the first target track;

[0166] If no material is displayed at the third position corresponding to the second display time in the second target track, determining the track number of the second target track as the track number of the second target material after movement, and determining the third position as the display position of the second target material after movement;

[0167] In the case that material is displayed at the third position corresponding to the second display time in the second target track, the updated second target track is determined, and starting from determining the display status of the material at the third position corresponding to the second display time in the second target track, the above process is repeated until the track number and the display position after movement of the second target material are determined, the updated second target track is adjacent to the second target track, and the track number of the updated second target track is smaller than the track number of the second target track.

[0168] Optionally, the third determining module 404 is configured to:

[0169] determining a third target material according to the pre-movement track number associated with each selected material in the second portion of selected materials, wherein the pre-movement track number of the third target material is greater than the pre-movement track number of the first target material, and a difference between the pre-movement track number of the third target material and the pre-movement track number of the first target material in the second portion of selected materials is minimal;

[0170] determining a fourth display time of the second target material after the movement according to a third display time of the third target material before the movement and a display time variation;

[0171] Determining a display status of a material at a fourth position corresponding to a fourth display time in a first target track for displaying the first target material;

[0172] Determine the track number and display position of the third target material after moving based on the display status of the material at the fourth position, and determine the third target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the second part of the selected materials are determined.

[0173] Optionally, the third determining module 404 is configured to:

[0174] If no material is displayed at the fourth position corresponding to the fourth display time in the first target track used to display the first target material, the track number of the first target track is determined to be the moved track number of the third target material, and the fourth position is determined to be the moved display position of the third target material.

[0175] Optionally, the third determining module 404 is configured to:

[0176] If a material is displayed at a fourth position corresponding to a fourth display time in a first target track for displaying the first target material, determining a display status of the material at a fifth position corresponding to the fourth display time in a third target track, the third target track being adjacent to the first target track, and a track number of the third target track being greater than a track number of the first target track;

[0177] If no material is displayed at the fifth position corresponding to the fourth display time in the third target track, determining the track number of the third target track as the track number of the third target material after movement, and determining the fifth position as the display position of the third target material after movement;

[0178] When material is displayed at the fifth position corresponding to the fourth display time in the third target track, the updated third target track is determined, and starting from determining the display status of the material at the fifth position corresponding to the fourth display time in the third target track, the above process is repeated until the track number and display position after movement of the third target material are determined, the updated third target track is adjacent to the third target track, and the track number of the updated third target track is greater than the track number of the third target track.

[0179] Optional, such as Figure 4 As shown, the material processing device 400 further includes a fourth determining module 405 configured to:

[0180] If a material is displayed at a first position in the first target track corresponding to the move end operation, determining a display time variation of the plurality of selected materials according to the first operation position of the move start operation and the second operation position of the move end operation;

[0181] determining a sixth display time of the second target material after the movement according to the fifth display time of the first target material before the movement and the display time variation;

[0182] If the sixth position corresponding to the sixth display time in the fourth target track does not display the material, then the track number of the fourth target track is determined to be the track number after the movement of the first target material, and the sixth position is determined to be the display position after the movement of the first target material, and the fourth target track is adjacent to the first target track;

[0183] If there is material displayed at the sixth position corresponding to the sixth display time in the fourth target track, the updated fourth target track is determined until the moved track number and the moved display position of the first target material are determined, and the updated fourth target track is adjacent to the fourth target track.

[0184] Optional, such as Figure 4 As shown, the material processing apparatus 400 further includes a fifth determining module 406 configured to:

[0185] If the display position after the move for displaying the first target material has not been determined in all tracks with track numbers smaller than the track number of the first target track, a new track is inserted before the track with the smallest track number among the multiple tracks in the editing interface;

[0186] The track number of the newly inserted track is determined as the track number of the first target material after moving, and the seventh position corresponding to the sixth display time in the newly inserted track is determined as the display position of the first target material after moving.

[0187] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0188] The exemplary embodiment of the present disclosure also provides an electronic device, which may be a terminal device. Figure 5 The electronic device is described. It should be understood that the following reference Figure 5 The electronic device will be described. It should be understood that Figure 5 The electronic device 500 shown is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0189] like Figure 5 As shown, electronic device 500 is implemented as a general-purpose computing device. Components of electronic device 500 may include, but are not limited to, at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting various system components (including storage unit 520 and processing unit 510).

[0190] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section above. For example, the processing unit 510 can perform the following steps: Figures 2 to 3 The method steps shown, etc.

[0191] The storage unit 520 may include a volatile storage unit, such as a random access memory unit (RAM) 521 and / or a cache memory unit 522 , and may further include a read-only memory unit (ROM) 523 .

[0192] The storage unit 520 may also include a program / utility 524 having a set (at least one) of program modules 525, such program modules 525 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0193] The bus 530 may include a data bus, an address bus, and a control bus.

[0194] The electronic device 500 can also communicate with one or more external devices 600 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), and such communication can be performed via an input / output (I / O) interface 540. The electronic device 500 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 580. As shown, the network adapter 580 communicates with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0195] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0196] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented as the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "system". Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to encompass any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

[0197] In addition, the present disclosure also provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the material processing method provided in the above embodiment.

[0198] In addition, the present disclosure also provides a computer program product, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the material processing method provided in the above embodiments.

[0199] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

Claims

1. A material processing method, characterized in that: The method is applied to a terminal device, wherein the terminal device displays an editing interface, the editing interface includes a plurality of tracks, and each track displays at least one material, including: In response to a selection operation on a plurality of materials, obtaining a pre-movement track number associated with each selected material; In response to a move start operation on a plurality of selected materials, determining a first target material selected by the move start operation from the plurality of selected materials, and in response to a move end operation on the plurality of materials, determining a first target track corresponding to the move end operation; If no material is displayed at the first position in the first target track corresponding to the move end operation, determining the first position in the first target track as the display position of the first target material after the move; According to the track number of the first target track and the track number before movement associated with each selected material, the track number after movement and the display position after movement of other selected materials except the first target material among the multiple selected materials are determined, wherein the track number after movement associated with the first part of the selected materials is less than or equal to the track number of the first target track, and the first part of the selected materials is the selected material whose track number before movement is less than the track number before movement of the first target material, and the track number after movement associated with the second part of the selected materials is greater than or equal to the track number of the first target track, and the second part of the selected materials is the selected material whose track number before movement is greater than the track number before movement of the first target material.

2. The material processing method according to claim 1, wherein: The step of determining, based on the track number of the first target track and the track number before movement associated with each selected material, the track numbers after movement and the display positions after movement of the selected materials other than the first target material in the plurality of selected materials includes: determining a display time variation of the plurality of selected materials according to a first operation position of a movement start operation and a second operation position of a movement end operation; Determining, according to the display time variation and the first target track for displaying the first target material, a track number and a display position after movement of each selected material in the first portion of selected materials; According to the display time variation and the first target track for displaying the first target material, the track number and the display position after movement of each selected material in the second part of selected materials are determined.

3. The material processing method according to claim 2, wherein: The step of determining, based on the display time variation and the first target track for displaying the first target material, a track number and a display position after movement of each selected material in the first portion of selected materials, includes: determining a second target material according to the pre-movement track number associated with each selected material in the first portion of selected materials, wherein the pre-movement track number of the second target material is smaller than the pre-movement track number of the first target material, and a difference between the pre-movement track number of the second target material and the pre-movement track number of the first target material in the first portion of selected materials is minimal; determining a second display time of the second target material after the movement according to the first display time of the second target material before the movement and the display time variation; determining a display status of a material at a second position corresponding to the second display time in the first target track for displaying the first target material; Determine the track number and display position of the second target material after moving based on the material display situation of the second position, and determine the second target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the first part of the selected materials are determined.

4. The material processing method according to claim 3, wherein: The determining, according to the display condition of the material at the second position, the track number and the display position of the second target material after the movement, includes: If no material is displayed at the second position corresponding to the second display time in the first target track used to display the first target material, the track number of the first target track is determined to be the track number of the second target material after movement, and the second position is determined to be the display position of the second target material after movement.

5. The material processing method according to claim 3, wherein: The determining, according to the display condition of the material at the second position, the track number and the display position of the second target material after the movement, includes: If, in the first target track for displaying the first target material, a second position corresponding to the second display time displays material, then determining a display status of material at a third position corresponding to the second display time in the second target track, the second target track being adjacent to the first target track and having a track number smaller than that of the first target track; If no material is displayed at the third position corresponding to the second display time in the second target track, determining the track number of the second target track as the track number of the second target material after movement, and determining the third position as the display position of the second target material after movement; In the case that material is displayed at the third position corresponding to the second display time in the second target track, the updated second target track is determined, and starting from the determination of the material display situation at the third position corresponding to the second display time in the second target track, the above process is repeated until the track number and display position after movement of the second target material are determined, the updated second target track is adjacent to the second target track, and the track number of the updated second target track is smaller than the track number of the second target track.

6. The material processing method according to claim 3, wherein: The step of determining, based on the display time variation and the first target track for displaying the first target material, a track number and a display position after movement of each selected material in the second portion of selected materials, includes: determining a third target material according to the pre-movement track number associated with each selected material in the second portion of selected materials, wherein the pre-movement track number of the third target material is greater than the pre-movement track number of the first target material, and a difference between the pre-movement track number of the third target material and the pre-movement track number of the first target material in the second portion of selected materials is minimal; determining a fourth display time of the second target material after the movement according to the third display time of the third target material before the movement and the display time variation; determining a display status of a material at a fourth position corresponding to the fourth display time in the first target track for displaying the first target material; Determine the track number and display position of the third target material after moving based on the material display situation of the fourth position, and determine the third target material as the updated first target material, and repeat the above process until the track number and display position after moving of each selected material in the second part of the selected materials are determined.

7. The material processing method according to claim 6, characterized in that: The determining the track number and the display position of the third target material after the movement according to the display status of the material at the fourth position includes: If, in the first target track used to display the first target material, no material is displayed at the fourth position corresponding to the fourth display time, the track number of the first target track is determined to be the track number of the third target material after movement, and the fourth position is determined to be the display position of the third target material after movement.

8. The material processing method according to claim 6, wherein: The determining the track number and the display position of the third target material after the movement according to the display status of the material at the fourth position includes: If, in the first target track for displaying the first target material, a material is displayed at a fourth position corresponding to the fourth display time, determining a display status of the material at a fifth position corresponding to the fourth display time in a third target track, the third target track being adjacent to the first target track and having a track number greater than that of the first target track; If no material is displayed at the fifth position corresponding to the fourth display time in the third target track, determining the track number of the third target track as the track number of the third target material after movement, and determining the fifth position as the display position of the third target material after movement; In a case where material is displayed at the fifth position corresponding to the fourth display time in the third target track, an updated third target track is determined, and starting from determining the display status of the material at the fifth position corresponding to the fourth display time in the third target track, the above process is repeated until the track number and display position after movement of the third target material are determined, the updated third target track is adjacent to the third target track, and the track number of the updated third target track is greater than the track number of the third target track.

9. The material processing method according to any one of claims 3 to 8, characterized in that: The method further comprises: If a material is displayed at a first position in the first target track corresponding to the move end operation, determining a display time change amount of the plurality of selected materials according to the first operation position of the move start operation and the second operation position of the move end operation; determining a sixth display time of the second target material after the movement according to the fifth display time of the first target material before the movement and the display time variation; If there is no material displayed at the sixth position corresponding to the sixth display time in the fourth target track, determining the track number of the fourth target track to be the track number of the first target material after the move, and determining the sixth position to be the display position of the first target material after the move, and the fourth target track is adjacent to the first target track; If there is material displayed at the sixth position corresponding to the sixth display time in the fourth target track, an updated fourth target track is determined until the moved track number and the moved display position of the first target material are determined, and the updated fourth target track is adjacent to the fourth target track.

10. The material processing method according to claim 9, wherein: The method further comprises: If the display position for displaying the first target material after the move is not determined in all tracks with track numbers smaller than the track number of the first target track, inserting a new track before the track with the smallest track number among the multiple tracks in the editing interface; The track number of the newly inserted track is determined as the track number of the first target material after moving, and the seventh position corresponding to the sixth display time in the newly inserted track is determined as the display position of the first target material after moving.

11. A material processing device, characterized in that: The apparatus is a terminal device, and the terminal device displays an editing interface, wherein the editing interface includes a plurality of tracks, and each track displays at least one material, including: An acquisition module is configured to acquire a pre-movement track number associated with each selected material in response to a selection operation on the plurality of materials; a first determining module configured to, in response to a move start operation on a plurality of selected materials, determine a first target material selected by the move start operation from the plurality of selected materials, and, in response to a move end operation on the plurality of materials, determine a first target track corresponding to the move end operation; a second determining module configured to determine, if no material is displayed at a first position in the first target track corresponding to the move end operation, as a display position of the first target material after the move; The third determination module is configured to determine the post-movement track number and the post-movement display position of other selected materials among the multiple selected materials except the first target material based on the track number of the first target track and the pre-movement track number associated with each selected material, wherein the post-movement track number associated with the first part of the selected materials is less than or equal to the track number of the first target track, and the first part of the selected materials is the selected material whose pre-movement track number is less than the pre-movement track number of the first target material, and the post-movement track number associated with the second part of the selected materials is greater than or equal to the track number of the first target track, and the second part of the selected materials is the selected material whose pre-movement track number is greater than the pre-movement track number of the first target material.

12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the material processing method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the material processing method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Material processing method and device, electronic equipment and storage medium

    CN113473223A

  • Material editing method and device, terminal and storage medium

    CN115334361A