Composite fragment storage method and device, electronic equipment and readable medium

By saving the draft and editing attribute information of the composite fragment in the multimedia editing task and calling it directly in subsequent tasks, the complex process of reusing fragments in the existing technology is solved, and an efficient multimedia editing process is achieved.

CN119807451APending Publication Date: 2025-04-11BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311302553.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-09
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing multimedia editing technology is complicated when editing specific fragments in the task before reusing them, resulting in high editing costs, low efficiency, and the inability to flexibly perform secondary editing of composite fragments.

Method used

Provides a method for saving composite fragments. By saving the draft and editing attribute information of the composite fragment in a multimedia editing task, and directly calling and displaying the composite fragment in subsequent multimedia editing tasks, there is no need for export and import operations.

Benefits of technology

It simplifies the workflow and workload of users to reuse composite fragments in multimedia editing work, improves reuse efficiency, and allows users to quickly complete multimedia editing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807451A_ABST
    Figure CN119807451A_ABST
Patent Text Reader

Abstract

The invention discloses a composite fragment storage method and device, electronic equipment and a readable medium, and the method comprises the steps: storing a first draft and editing attribute information of a first composite fragment in response to a storage operation for the first composite fragment in a first multimedia editing task, the editing attribute information is used for indicating editing operation on a plurality of media segments in the first draft; and in response to a calling operation for the first composite fragment in a second multimedia editing task, displaying the first composite fragment on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft. Therefore, the content related to a certain composite fragment possibly multiplexed in the draft corresponding to one multimedia editing task is stored, and in other multimedia editing tasks, the composite fragment can be displayed by calling the composite fragment, so that the efficiency of multiplexing the composite fragment by a user is improved, and the user experience is improved. Therefore, convenience is provided for the user to quickly edit the multimedia.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of media processing technology, and in particular to a method, device, electronic device and readable medium for storing a composite segment. Background Art

[0002] In the process of multimedia editing, in order to improve the efficiency of multimedia editing, there is a need to reuse specific segments in previous editing tasks, for example, to use the title or end of the previous editing task.

[0003] At present, it is usually necessary to copy the fragment information and materials corresponding to each media fragment of multiple media fragments (such as audio, video, text, stickers, etc.) corresponding to a specific fragment that may be reused, and obtain the relevant information of the specific fragment through the same editing operation (such as deleting redundant parts) as that performed on the specific fragment obtained in the previous clipping content, and export the specific fragment. In this way, in the editing task that needs to reuse the specific fragment, it is necessary to import the previously exported results of the specific fragment to realize the "reuse" of the specific fragment.

[0004] However, the above-mentioned multiplexing method of reusing specific segments in the previous editing task has a complex process, resulting in high multimedia editing costs and low efficiency, which is not conducive to users quickly completing multimedia editing tasks. Summary of the invention

[0005] In order to solve the above-mentioned technical problems, the present application provides a method, device, electronic device and readable medium for saving composite fragments, which can save composite fragments that may be reused in a multimedia editing task, and directly use the composite fragments in subsequent other multimedia editing tasks without the need to export and import specific fragments, thereby facilitating users to implement multimedia editing tasks.

[0006] In order to achieve the above objectives, the technical solutions provided by this application are as follows:

[0007] In a first aspect, the present application provides a method for storing a composite fragment, comprising:

[0008] In response to a save operation on a first composite segment in a first multimedia editing task, saving a first draft and editing attribute information of the first composite segment, wherein the editing attribute information is used to indicate an editing operation on a plurality of media segments in the first draft;

[0009] In response to a calling operation on the first composite segment in a second multimedia editing task, the first composite segment is displayed on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft.

[0010] In one implementation, in response to a save operation on the first composite segment in the first multimedia editing task, saving the first draft and editing property information of the first composite segment includes:

[0011] In response to a save operation on a first composite segment in a first multimedia editing task, a first segment identifier is obtained, where the first segment identifier is used to indicate first segment information corresponding to the first composite segment, where the first segment information includes the editing attribute information and a first material identifier;

[0012] Based on the first segment identifier, acquiring the first segment information from the second draft corresponding to the first multimedia editing task;

[0013] Based on the first material identifier, obtaining the first draft from a material pool of the second draft;

[0014] The first segment information and the first draft are saved in the composite segment preset path.

[0015] In one implementation, the editing attribute information includes at least one of the following information: start time, end time, cropping, speed multiple, or displacement.

[0016] In one implementation, the plurality of media segments include a plurality of single material segments;

[0017] Alternatively, the plurality of media segments include at least one single material segment and at least one composite segment;

[0018] Alternatively, the plurality of media segments include a plurality of composite segments.

[0019] In one implementation, the saving of the first draft includes:

[0020] If the first media segment among the multiple media segments has been saved in the preset path of the composite segment, then updating the path corresponding to the material identifier corresponding to the first media segment in the first draft, and after the update, the path indicated by the material identifier corresponding to the first media segment in the first draft is the saving location of the first media segment in the preset path of the composite segment;

[0021] If the second media segment among the multiple media segments is not saved in the preset path of the compound segment, the second media segment is saved in the preset path of the compound segment, and the path corresponding to the material identifier corresponding to the second media segment in the first draft is updated. After the update, the path indicated by the material identifier corresponding to the second media segment in the first draft is the saving location of the second media segment in the preset path of the compound segment.

[0022] In one implementation, before the calling operation on the first composite segment in the second multimedia editing task, the method further includes:

[0023] In response to a new creation operation on the second multimedia editing task, loading a third draft corresponding to the second multimedia editing task;

[0024] Reading the saved fragment information and draft corresponding to at least one compound fragment, wherein the fragment information and draft corresponding to the at least one compound fragment include the first fragment information and the first draft corresponding to the first compound fragment;

[0025] In response to the calling operation on the first composite segment in the second multimedia editing task, displaying the first composite segment on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft includes:

[0026] In response to a calling operation on the first composite segment in the second multimedia editing task, adding the first segment information and the first draft to the third draft;

[0027] On a page corresponding to the second multimedia editing task, the first composite segment is added to a corresponding timeline according to the editing attribute information and the first draft.

[0028] In one implementation, the reading of the saved fragment information and the draft corresponding to the at least one composite fragment includes:

[0029] For each composite segment of the at least one composite segment, verify the segment information of the composite segment to obtain a first verification result, where the first verification result is used to indicate whether the segment information of the composite segment is damaged;

[0030] If the first verification result indicates that the segment information of the composite segment is not damaged, then verifying the material included in the draft of the composite segment to obtain a second verification result, where the second verification result is used to indicate the situation of the material included in the draft of the composite segment;

[0031] Based on the second verification result, the draft of the composite fragment is updated.

[0032] In one implementation, the method further includes:

[0033] In response to an editing operation on the saved first composite segment, updating the first composite segment, the editing operation comprising at least one of the following operations: renaming, cropping, or speed doubling;

[0034] Alternatively, in response to a preview operation on the saved first compound fragment, an editing effect screen corresponding to the first compound fragment is displayed in a player on the multimedia editing page, and the editing effect screen is used to reflect the effect of the first compound fragment after being exported.

[0035] In a second aspect, the present application also provides a composite fragment storage device, comprising:

[0036] a saving unit, configured to save, in response to a saving operation on a first composite segment in a first multimedia editing task, a first draft and editing attribute information of the first composite segment, wherein the editing attribute information is used to indicate an editing operation on a plurality of media segments in the first draft;

[0037] A calling unit is used to respond to a calling operation on the first composite segment in a second multimedia editing task, and display the first composite segment according to the editing attribute information and the first draft on a page corresponding to the second multimedia editing task.

[0038] In one implementation, the storage unit is specifically used to:

[0039] In response to a save operation on a first composite segment in a first multimedia editing task, a first segment identifier is obtained, where the first segment identifier is used to indicate first segment information corresponding to the first composite segment, where the first segment information includes the editing attribute information and a first material identifier;

[0040] Based on the first segment identifier, acquiring the first segment information from the second draft corresponding to the first multimedia editing task;

[0041] Based on the first material identifier, obtaining the first draft from a material pool of the second draft;

[0042] The first segment information and the first draft are saved in the composite segment preset path.

[0043] In one implementation, the editing attribute information includes at least one of the following information: start time, end time, cropping, speed multiple, or displacement.

[0044] In one implementation, the plurality of media segments include a plurality of single material segments;

[0045] Alternatively, the plurality of media segments include at least one single material segment and at least one composite segment;

[0046] Alternatively, the plurality of media segments include a plurality of composite segments.

[0047] In one implementation, the storage unit is specifically used to:

[0048] If the first media segment among the multiple media segments has been saved in the preset path of the composite segment, then updating the path corresponding to the material identifier corresponding to the first media segment in the first draft, and after the update, the path indicated by the material identifier corresponding to the first media segment in the first draft is the saving location of the first media segment in the preset path of the composite segment;

[0049] If the second media segment among the multiple media segments is not saved in the preset path of the compound segment, the second media segment is saved in the preset path of the compound segment, and the path corresponding to the material identifier corresponding to the second media segment in the first draft is updated. After the update, the path indicated by the material identifier corresponding to the second media segment in the first draft is the saving location of the second media segment in the preset path of the compound segment.

[0050] In one implementation, the device further includes:

[0051] a loading unit, configured to load a third draft corresponding to the second multimedia editing task in response to a new creation operation on the second multimedia editing task before the calling operation on the first composite segment in the second multimedia editing task;

[0052] a reading unit, configured to read the saved fragment information and draft corresponding to at least one compound fragment, wherein the fragment information and draft corresponding to the at least one compound fragment include the first fragment information and the first draft corresponding to the first compound fragment;

[0053] The calling unit is specifically used for:

[0054] In response to a calling operation on the first composite segment in the second multimedia editing task, adding the first segment information and the first draft to the third draft;

[0055] On a page corresponding to the second multimedia editing task, the first composite segment is added to a corresponding timeline according to the editing attribute information and the first draft.

[0056] As an example, the reading unit is specifically used for:

[0057] For each composite segment of the at least one composite segment, verify the segment information of the composite segment to obtain a first verification result, where the first verification result is used to indicate whether the segment information of the composite segment is damaged;

[0058] If the first verification result indicates that the segment information of the composite segment is not damaged, then verifying the material included in the draft of the composite segment to obtain a second verification result, where the second verification result is used to indicate the situation of the material included in the draft of the composite segment;

[0059] Based on the second verification result, the draft of the composite fragment is updated.

[0060] In one implementation, the device further includes:

[0061] An updating unit is used to update the first compound segment in response to an editing operation on the saved first compound segment, where the editing operation includes at least one of the following operations: renaming, cropping, or speed doubling.

[0062] In one implementation, the device further includes:

[0063] The preview unit is used to respond to the preview operation of the saved first compound fragment, and display the editing effect screen corresponding to the first compound fragment in the player of the multimedia editing page, wherein the editing effect screen is used to reflect the effect of the first compound fragment after being exported.

[0064] It should be noted that the specific implementation method of the device and the technical effects achieved can refer to the relevant description of the method provided in the first aspect or any implementation method of the first aspect.

[0065] In a third aspect, the present application further provides an electronic device, the electronic device comprising: a processor and a memory;

[0066] The memory is used to store instructions or programs;

[0067] The processor is used to execute the instructions or programs in the memory so that the electronic device executes the method provided by the above-mentioned target aspect or any one of the implementations of the target aspect.

[0068] In a fourth aspect, the present application also provides a readable medium, in which instructions or programs are stored. When the instructions or programs are executed on a processor, the processor executes the method provided by the above-mentioned target aspect or any one of the implementations of the target aspect.

[0069] Compared with the prior art, the embodiments of the present application have at least the following advantages:

[0070] In the technical solution provided by the present application, a method for saving a composite segment is provided, which method may include, for example: in response to a save operation on a first composite segment in a first multimedia editing task, saving a first draft and editing attribute information of the first composite segment, the editing attribute information being used to indicate an editing operation on multiple media segments in the first draft; in response to a call operation on the first composite segment in a second multimedia editing task, displaying the first composite segment on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft. In this way, in a multimedia editing task, the content related to a composite segment that may be reused in the draft corresponding to the multimedia editing task is saved, and in other multimedia editing tasks, the user can obtain the content corresponding to the composite segment by calling the composite segment, and display the composite segment on the page corresponding to the multimedia editing task based on the obtained content, without the user having to separately composite and export multiple media segments involved in the composite segment, and then import the exported result when reusing the composite segment, which greatly simplifies the workflow and workload of users reusing composite segments in multimedia editing work, improves the efficiency of users reusing composite segments, and thus provides convenience for users to realize fast multimedia editing. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0072] Figure 1 A schematic diagram of a multimedia editing page provided in an embodiment of the present application;

[0073] Figure 2 A schematic diagram of a process for storing a composite fragment provided in an embodiment of the present application;

[0074] Figure 3 A schematic diagram of another multimedia editing page provided in an embodiment of the present application;

[0075] Figure 4 A schematic diagram of a process of saving a composite fragment as my preset provided in an embodiment of the present application;

[0076] Figure 5 A schematic diagram of a process of creating a new multimedia editing task provided in an embodiment of the present application;

[0077] Figure 6A schematic diagram of the structure of a composite fragment storage device 600 provided in an embodiment of the present application;

[0078] Figure 7 A schematic diagram of the structure of an electronic device 700 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] With the development of the Internet, the spread of multimedia files has enriched people's work and life. Before the spread of multimedia files, people usually use tools with multimedia editing functions to perform multimedia editing on the original media materials, for example, adding stickers, subtitles, background music, etc. to the original media materials, and for example, cutting and arranging each of the original multiple materials to obtain a better quality multimedia file and play the high-quality multimedia file.

[0080] In the process of multimedia editing, multiple media clips are usually displayed on the multimedia editing page, for example, see Figure 1 The multimedia editing page shown may include a title area, a tool area, an editing area, and a player, wherein in the editing area, the first track includes text 1 or sticker 1, the second track includes background music 1 and background music 2, and the third track includes video 1. The title area may display, for example, the name of the multimedia editing tool and / or the name of the multimedia editing task, such as Figure 1 As shown, the title area may display "Multimedia Editing Tool A: New Multimedia Editing Task 1"; the tool area may include the names of various tools, such as Figure 1 As shown, the names of the tools are shown as examples of "XXXX", "ZZZZ", "AAAA", and "BBBB". In the embodiment of the present application, the tool area may include at least the tool "My Preset". The player is used to display the editing effect screen of various materials, and the editing effect screen is used to reflect the effects of various materials after being exported. In order to achieve unified operation of multiple media segments, the user can compound multiple media segments to obtain a composite segment. There are many composite segments that can be reused repeatedly. For example, the segments used at the beginning and / or end of many media files can all use the same composite segment. However, the current method of multiplexing composite segments requires the user to first export the composite segment to be reused from a multimedia editing task to obtain the corresponding media file, and then import the media file into the newly created multimedia editing task to realize the reuse of the composite segment. This method has the following problems: Problem 1: The user operation is complicated. Problem 2: It is necessary to export and import the corresponding media file in a targeted manner when there is a reuse target, which is not flexible enough. Problem 3: Since the reused composite segment is exported to the corresponding media file and then imported, the reused composite segment cannot be edited twice.

[0081] Based on this, an embodiment of the present application provides a method for saving a composite fragment, which method may, for example, include: in response to a save operation on a first composite fragment in a first multimedia editing task, saving a first draft and editing attribute information of the first composite fragment, the editing attribute information being used to indicate editing operations on multiple media fragments in the first draft; in response to a call operation on the first composite fragment in a second multimedia editing task, displaying the first composite fragment on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft.

[0082] In this way, in a multimedia editing task, the content related to a composite fragment that may be reused in the draft corresponding to the multimedia editing task is saved. In other multimedia editing tasks, the user can obtain the content corresponding to the composite fragment by calling the composite fragment, and display the composite fragment on the page corresponding to the multimedia editing task based on the obtained content. The user does not need to separately composite and export multiple media fragments involved in the composite fragment, and then import the exported results when reusing the composite fragment. This greatly simplifies the workflow and workload of users in reusing composite fragments in multimedia editing work, improves the efficiency of users in reusing composite fragments, and thus provides convenience for users to achieve fast multimedia editing.

[0083] Still Figure 1Taking the multimedia editing page shown as an example, assuming that the page corresponds to multimedia editing task 1, through the method provided in the embodiment of the present application, the user performs a composite operation on text 1 (or sticker 1), background music 1, background music 2 and video 1 to obtain a composite segment 1 displayed on track n; then, the user saves the composite segment 1 to "My Presets", and for a tool with multimedia editing function, saves the content related to the composite segment 1 in the draft 0 corresponding to the multimedia editing task 1, for example, it may include the segment information 1 of the composite segment 1 and the draft 1 indicated by the material identifier in the segment information 1; in multimedia editing task 2, the user can call the composite segment (including the composite segment 1) saved in "My Presets" and display the composite segment 1 on the multimedia editing page, that is, add the segment information 1 and draft 1 of the composite segment 1 to the draft 2 corresponding to the multimedia editing task 2, and display the composite segment 1 on the page corresponding to the multimedia editing task 2 according to the editing attribute information in the segment information 1 and draft 1. Track n can be the first track, the second track or the third track mentioned above, or any other track except the first track, the second track and the third track. Among them, draft 1 can be regarded as a sub-draft of draft 0 and draft 2 in two multimedia editing tasks. Draft 1 includes segment information corresponding to text 1 (or sticker 1), background music 1, background music 2 and video 1. The editing attribute information included in segment information 1 is used to indicate the uniformly applicable editing operations of text 1 (or sticker 1), background music 1, background music 2 and video 1, such as speed, displacement, cropping, etc.

[0084] It should be noted that the subject implementing the composite segment storage method may be the composite segment storage device provided in the embodiment of the present application. The composite segment storage device may be carried in an electronic device or a functional module of an electronic device. The composite segment storage device may be a functional module on a tool with multimedia editing function (such as a multimedia editing client or website) that can implement the composite segment storage function provided in the embodiment of the present application.

[0085] Figure 2 The present invention provides a schematic flow chart of a method for storing a composite fragment according to an embodiment of the present invention. The method can be applied to a composite fragment storage device, which can be, for example, Figure 6 A storage device 600 for composite fragments is shown.

[0086] like Figure 2 As shown, the method may include, for example, the following S101 to S102:

[0087] S101, in response to a save operation on a first composite segment in a first multimedia editing task, saving a first draft and editing property information of the first composite segment, wherein the editing property information is used to indicate an editing operation on multiple media segments in the first draft.

[0088] Multimedia editing refers to the process in which a user edits the original media material (such as video or audio) to obtain a media file to be played. Multimedia editing may include, but is not limited to, editing of at least one of the following materials: video, audio, text, or stickers. Multimedia editing is usually achieved by a user performing editing operations in a multimedia editing task on a tool with multimedia editing functions (such as a video editing client). The page of a multimedia editing task may refer to an editing page presented to the user by a tool with multimedia editing functions in the multimedia editing task. For example, the page corresponding to the first multimedia editing task in S101 refers to the editing page presented to the user in the first multimedia editing task; the page corresponding to the second multimedia editing task in S102 refers to the editing page presented to the user in the second multimedia editing task. The first multimedia editing task and the second multimedia editing task may be the same multimedia editing task or different multimedia editing tasks.

[0089] In the multimedia editing tool, the user can create a new multimedia editing task and open the corresponding multimedia editing page. For the multimedia editing tool, in response to the new operation of the multimedia editing task, a project file is generated. The project file can be called a large draft (such as the above draft 0 or draft 2, and the second draft or third draft below). Then, the user can import multiple media clips on the same or different tracks of the multimedia editing page according to the editing needs of the multimedia editing task.

[0090] The multiple media segments may include multiple single material segments; the single material segments may include but are not limited to: video, audio, text or sticker. Alternatively, the multiple media segments may include at least one single material segment and at least one composite segment. Alternatively, the multiple media segments include multiple composite segments. In the embodiment of the present application, the composite segment may also be used as a material type to participate in the multimedia editing task.

[0091] On the multimedia editing page, users can edit each multimedia clip individually. Figure 1 Taking the multimedia editing page shown as corresponding to the page corresponding to the first multimedia editing task in S101 as an example, assuming that the first track includes text 1, at this time, the second draft corresponding to the first multimedia editing task can be expressed as:

[0092] Second Draft

[0093] material pool {

[0094] text1{materialid1:path1};

[0095] sticker1{materialid2:path2};

[0096] Background music 1{material id 3: path 3};

[0097] Background music 2 {material id4: path 4};

[0098] Video1{materialid5:path5}};

[0099] First track {

[0100] Segment 1 corresponding to text 1 {edit attribute information 1, material id: 1}};

[0101] Second track

[0102] Clip 3 corresponding to background music 1 {edit attribute information 3, material id: 3};

[0103] Clip 4 corresponding to background music 2 {edit attribute information 4, material id: 4}};

[0104] The third track

[0105] Clip 5 corresponding to video 1 {edit attribute information 5, material id: 5}}

[0106] }.

[0107] The segment information corresponding to the segment includes editing attribute information and material (identifier, id). The editing attribute information may be the editing operation of the corresponding segment indicated by the user. The editing attribute information may include, but is not limited to, at least one of the following information: start time, end time, cropping, speed or displacement. The material id is used to index in the material pool, obtain the path corresponding to the material id, and thus obtain the corresponding material from the path. The path may be, for example, a local path or a network path. If the material is stored locally, then the path corresponds to the local path where the material is stored; if the material corresponds to an online resource, then the path corresponds to the online acquisition link of the material, such as downloading or pulling the uniform resource locator (Uniform Resource Locator, URL) of the online resource.

[0108] It should be noted that at least two media segments among the multiple media segments are required to participate in the generation of the composite segment. The number of media segments participating in the generation of the composite segment does not affect the implementation of the composite segment generation method. The following description will be made by taking the above-mentioned multiple media segments in S101 all participating in the generation of the composite segment as an example.

[0109] Before S101, the method may further include: generating a first composite segment in response to a composite operation on the multiple media segments in the first multimedia editing task. As an example, generating the first composite segment may include: generating the first draft and first segment information corresponding to the first composite segment in the second draft corresponding to the first multimedia editing task, wherein the editing attribute information in the first segment information is used to indicate the editing operation on the multiple media segments in the first draft; and the first material identifier in the first segment information is used to indicate the first draft in the material pool of the second draft.

[0110] In one case, the composite operation can be implemented through a control on the multimedia editing page corresponding to the composite function provided in the embodiment of the present application. For example, the control can be a "composite" button on the multimedia editing page. The composite operation can correspond to clicking the control, or the composite operation can correspond to selecting at least two media segments participating in the composite + clicking the control. In another case, the composite operation can be implemented through a shortcut key of the multimedia editing. The composite operation can correspond to using the shortcut key, or the composite operation can correspond to selecting at least two media segments participating in the composite + using the shortcut key.

[0111] by Figure 1 Taking the multimedia editing page shown as corresponding to the page corresponding to the first multimedia editing task in S101 as an example, assuming that the first track includes text 1, then after the first composite segment is generated, the second draft corresponding to the first multimedia editing task can be expressed as:

[0112] Second Draft

[0113] material pool {

[0114] text1{materialid1:path1};

[0115] sticker1{materialid2:path2};

[0116] Background music 1{material id 3: path 3};

[0117] Background music 2 {material id4: path 4};

[0118] Video 1 {material id 5: path 5};

[0119] Draft {Material id 6: First Draft};

[0120]

[0121] First track {

[0122] Segment 1 corresponding to text 1 {edit attribute information 1, material id: 1}};

[0123] Second track

[0124] Clip 3 corresponding to background music 1 {edit attribute information 3, material id: 3};

[0125] Clip 4 corresponding to background music 2 {edit attribute information 4, material id: 4}};

[0126] The third track

[0127] Clip 5 corresponding to video 1 {edit attribute information 5, material id: 5}};

[0128] Track n {

[0129] Compound fragment 1 {edit attribute information 6, material id: 6}};

[0130] }.

[0131] The composite segment 1 includes editing attribute information 6 and material id 6. The editing attribute information 6 can be used to indicate the editing operation of each media segment in the first draft indicated by the material id 6. The editing attribute information 6 can include, for example, the start time, end time, cropping, multiple speed or displacement. The editing attribute information 6 can correspond to each media segment in the composite segment 1 respectively, which is equivalent to a unified definition of each media segment. The material id 6 is indexed in the material pool to obtain the first draft. Compared with a single material segment, the material id in the segment information of a single material segment is indexed in the material pool to obtain a path rather than a draft. The first draft can at least include the segment information of each media segment in the composite segment 1. In addition, it can also include a material pool composed of the materials involved in each media segment.

[0132] It is understandable that after the first composite segment is generated, on the page corresponding to the first multimedia editing task, the first draft is presented as the first composite segment according to the editing attribute information of the first composite segment, and the multiple media segments are replaced.

[0133] In order to facilitate the reuse of the first compound fragment in other multimedia editing tasks, the first compound fragment can be saved as "My Preset", that is, the first compound fragment can be saved as a special material for use in subsequent multimedia editing tasks.

[0134] In a possible implementation, the saving operation can be implemented by a control corresponding to the save preset function provided in the embodiment of the present application on the page corresponding to the first multimedia editing task, and the control can be, for example, a "Save as Preset" button on the multimedia editing page. The user clicks the control to trigger S101 to save the first draft and editing attribute information of the first composite segment.

[0135] In another possible implementation, the saving operation may be implemented by a multimedia editing shortcut key, and the user may directly use the shortcut key to trigger S101 to save the first draft and editing attribute information of the first composite segment.

[0136] For example, Figure 1 The page shown corresponds to the page corresponding to the first multimedia editing task as an example. Figure 3 As shown, by performing a "compound" operation on multiple media segments on page 1 corresponding to the first multimedia editing task, the compound segment 1 can be displayed on page 2 corresponding to the first multimedia editing task, and the multiple media segments are no longer displayed; then, on page 2 corresponding to the first multimedia editing task that displays the compound segment 1, a "save as preset" operation can be performed, and the compound segment 1 can be included in "My Presets" on page 3 corresponding to the first multimedia editing task.

[0137] In a possible implementation, S101 may include, for example: in response to a save operation on the first compound segment in the first multimedia editing task, obtaining a first segment identifier, the first segment identifier being used to indicate the first segment information corresponding to the first compound segment, the first segment information including editing attribute information and a first material identifier; then, based on the first segment identifier, obtaining the first segment information from the second draft corresponding to the first multimedia editing task, and, based on the first material identifier, obtaining the first draft from the material pool of the second draft; then, saving the first segment information and the first draft in the compound segment preset path. In this way, when the first compound segment needs to be saved as "My Preset", the content related to the first compound segment can be accurately obtained and saved in the preset path, so as to prepare for the subsequent call of the first compound segment.

[0138] If the first composite segment corresponds to the composite segment 1 in the second draft, the first segment identifier may be the "composite segment 1" before {editing attribute information 6, material id: 6} in the above text, the first segment information may correspond to {editing attribute information 6, material id: 6}, and the first material identifier may correspond to material id: 6. The content saved after S101 may correspond to:

[0139] Draft {Material id 6: First Draft};

[0140]

[0141] as well as

[0142] Compound fragment 1 {edit attribute information 6, material id: 6}.

[0143] In one implementation, the first draft and first segment information corresponding to the first composite segment are saved in S101, and the first segment information includes a first material identifier and editing attribute information. Saving the first draft may include: saving the materials involved in each media segment in the first draft. As an example, in order to save storage resources, before saving each media segment involved in the first draft, it can be determined whether the media segment has been saved in the composite segment preset path. If so, the media segment is no longer saved repeatedly, and only the path corresponding to the material identifier of the media segment in the first draft is updated. After the update, the path indicated by the material identifier of the media segment in the first draft is the storage location of the media segment in the composite segment preset path; if the media segment is not saved in the composite segment preset path, the media segment is saved in the composite segment preset path, and the path corresponding to the material identifier of the media segment in the first draft is updated. After the update, the path indicated by the material identifier of the media segment in the first draft is the storage location of the media segment in the composite segment preset path.

[0144] As an example, if the first media segment among the multiple media segments has been saved in the preset path of the compound segment, the path corresponding to the material identifier corresponding to the first media segment in the first draft is updated, and after the update, the path indicated by the material identifier corresponding to the first media segment in the first draft is the saving location of the first media segment in the preset path of the compound segment; if the second media segment among the multiple media segments is not saved in the preset path of the compound segment, the second media segment is saved in the preset path of the compound segment, and the path corresponding to the material identifier corresponding to the second media segment in the first draft is updated, and after the update, the path indicated by the material identifier corresponding to the second media segment in the first draft is the saving location of the second media segment in the preset path of the compound segment.

[0145] For example, see Figure 4As shown, the process of saving the first composite segment as "my preset" may include: S11, the user clicks "Save as preset" on the page corresponding to the first multimedia editing task, and obtains the first segment information indicated by the first segment identifier in the second draft corresponding to the first multimedia editing task and the first draft indicated by the first material identifier in the first segment information according to the first segment identifier of the first composite segment; S12, displays a prompt waiting for saving, for example, it may include a saving progress bar, and prompts that the saving is successful after the saving is completed; S13, compares with the materials already saved in the composite segment preset path, and saves the media segments involved in the first composite segment that need to be saved locally and are not saved in the composite segment preset path on the composite segment preset path; S14, determines whether all the saving is completed, if so, executes S15, otherwise executes S16; S15, updates the path corresponding to the material identifier of each media segment in the sub-draft, and saves the updated first segment information and the first draft; S16, prompts that the saving fails, and deletes the content related to the "save as preset" operation in the memory.

[0146] It can be seen that through S101, the first compound fragment is saved as "My Preset", and the storage device for the compound fragment saves the content related to the first compound fragment (i.e., the first fragment information and the first draft), preparing for the subsequent reuse of the first compound fragment (such as in the second multimedia editing task in S102).

[0147] S102: In response to a calling operation on the first composite segment in a second multimedia editing task, display the first composite segment on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft.

[0148] In a possible implementation, if the second multimedia editing task is a different multimedia editing task from the first multimedia editing task, then, after S101 and before S102, the method may further include: S21, in response to a new operation for the second multimedia editing task, loading a third draft corresponding to the second multimedia editing task; S22, reading the fragment information and draft corresponding to at least one saved compound fragment, the fragment information and draft corresponding to the at least one compound fragment include the first fragment information and the first draft corresponding to the first compound fragment. Thus, S102 may include: in response to a call operation for the first compound fragment in the second multimedia editing task, adding the first fragment information and the first draft to the third draft; on the page corresponding to the second multimedia editing task, adding the first compound fragment to the corresponding timeline according to the edited attribute information in the first draft and the first fragment information.

[0149] by Figure 1Taking the multimedia editing page shown as corresponding to the page corresponding to the first multimedia editing task in S101 as an example, assuming that the first track includes text 1, after saving the first composite segment and calling the composite segment 1 in the second multimedia editing task, the third draft corresponding to the second multimedia editing task can be expressed as:

[0150]

[0151]

[0152] For example, Figure 3 Based on the fact that compound segment 1 is included in "My Preset" of page 3 corresponding to the first multimedia editing task, multiple compound segments are displayed in "My Preset" on page 4 corresponding to the second multimedia editing task, and the multiple compound segments include compound segment 1; if the user wants to reuse compound segment 1 on page 4 corresponding to the second multimedia editing task, the user can click the "Call" button below compound segment 1 to display compound segment 1 on track m of page 5 corresponding to the second multimedia editing task. In this way, the user can edit compound segment 1 on page 5 again.

[0153] As an example, reading the fragment information and draft corresponding to at least one saved compound fragment in the above S22 may include: for each compound fragment in the at least one compound fragment, first checking whether the relevant content of the compound fragment is damaged, and obtaining a first verification result, for example, whether the draft corresponding to the compound fragment is deleted or damaged, and whether the fragment information of the compound fragment is deleted or damaged; if the first verification result indicates that the relevant content of the compound fragment is neither deleted nor damaged, then continuing to check the material included in the draft of the compound fragment to obtain a second verification result; if the second verification result indicates that the material included in the draft of the compound fragment is deleted, replaced or modified, then, updating the draft of the compound fragment based on the updated material.

[0154] For example, see Figure 5As shown, the process of calling the first compound segment in the second multimedia editing task may include: S31, the user creates a new second media editing task on a tool with multimedia editing function, and generates a third draft corresponding to the second multimedia task; S32, waiting for the third draft to be loaded; S33, starting to read the compound segments in "My Presets", including the first compound segment; S34, for each of the compound segments in "My Presets", first check whether the relevant content of the compound segment is damaged, and obtain a first verification result; if the first verification result indicates that the relevant content of the compound segment is not deleted or damaged, continue to verify the situation of the material included in the draft of the compound segment, obtain a second verification result, and update the draft of the compound segment based on the second verification result; S35, complete the reading of each compound segment in "My Presets".

[0155] In a possible implementation, the calling operation can be implemented by a control corresponding to the calling preset function provided in the embodiment of the present application on the page corresponding to the second multimedia editing task, and the control can be, for example, a "call" button on the multimedia editing page. The user can click the control to trigger S102 to display the first composite segment on the page corresponding to the second multimedia editing task.

[0156] In another possible implementation, the calling operation may be implemented through a multimedia editing shortcut key, and the user may directly use the shortcut key to trigger S102 to display the first composite segment on a page corresponding to the second multimedia editing task.

[0157] In another possible implementation, the calling operation can be implemented by "dragging" the composite segment to be called in "My Presets" on the multimedia editing page. The user can "drag" the "first composite segment" in "My Presets" to track m, triggering S102 to be executed, and displaying the first composite segment on the page corresponding to the second multimedia editing task. Track m can be any track on the page corresponding to the second multimedia editing task.

[0158] As an example, the method may further include: in response to an editing operation on the saved first compound fragment, updating the first compound fragment, wherein the editing operation may, for example, include at least one of the following operations: renaming, cropping, or speed doubling. If the first compound fragment is edited on the page corresponding to the second multimedia editing task, then, corresponding to the third draft, the editing attribute information related to the editing operation in the fragment information corresponding to the first compound fragment in the third draft needs to be updated. The editing operation may be implemented through the corresponding editing control or shortcut key on the page corresponding to the second multimedia editing task. It should be noted that the editing operation on the first compound fragment may be implemented by the action layer of the tool that provides multimedia editing functions.

[0159] It should be noted that if the editing operation is a trimming operation on the first compound segment, then the compound segment storage device can prohibit outward trimming, that is, for the first compound segment with a duration of 10 seconds, the duration of the compound segment obtained after the trimming operation is at most 10 seconds, and a segment with a duration greater than 10 seconds cannot be obtained.

[0160] As another example, the method may also include: in response to a preview operation on the saved first compound fragment, displaying an editing effect screen corresponding to the first compound fragment in the player of the multimedia editing page, and the editing effect screen is used to reflect the effect of the first compound fragment after export. Among them, the preview operation can be implemented through the corresponding preview control or shortcut key on the page corresponding to the second multimedia editing task, and can also be implemented by clicking the first compound fragment in "My Presets". In this way, without calling the compound fragment in "My Presets" and placing the compound fragment on the timeline, you can understand the content in the compound fragment by previewing the compound fragment in "My Presets", thereby providing convenience for calling the appropriate compound fragment, which is very user-friendly. It should be noted that the above-mentioned preview operation can be implemented by the driver layer rendering the first compound fragment according to the editing attribute information of the first draft and the first compound fragment.

[0161] It can be seen that through this method, in a multimedia editing task, the content related to a composite fragment that may be reused in the draft corresponding to the multimedia editing task is saved. In other multimedia editing tasks, the user can obtain the content corresponding to the composite fragment by calling the composite fragment, and display the composite fragment on the page corresponding to the multimedia editing task based on the acquired content. The user does not need to separately composite and export multiple media fragments involved in the composite fragment, and then import the exported results when reusing the composite fragment. This greatly simplifies the workflow and workload of users in reusing composite fragments in multimedia editing work, improves the efficiency of users in reusing composite fragments, and thus provides convenience for users to achieve fast multimedia editing.

[0162] Accordingly, the embodiment of the present application also provides a composite fragment generation device 600. Figure 6 As shown, the apparatus 600 may include:

[0163] A saving unit 601 is configured to save a first draft and editing attribute information of the first composite segment in response to a saving operation on the first composite segment in the first multimedia editing task, wherein the editing attribute information is used to indicate an editing operation on multiple media segments in the first draft;

[0164] The calling unit 602 is configured to, in response to a calling operation on the first composite segment in a second multimedia editing task, display the first composite segment on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft.

[0165] In one implementation, the storage unit 601 is specifically configured to:

[0166] In response to a save operation on a first composite segment in a first multimedia editing task, a first segment identifier is obtained, where the first segment identifier is used to indicate first segment information corresponding to the first composite segment, where the first segment information includes the editing attribute information and a first material identifier;

[0167] Based on the first segment identifier, acquiring the first segment information from the second draft corresponding to the first multimedia editing task;

[0168] Based on the first material identifier, obtaining the first draft from a material pool of the second draft;

[0169] The first segment information and the first draft are saved in the composite segment preset path.

[0170] In one implementation, the editing attribute information includes at least one of the following information: start time, end time, cropping, speed multiple, or displacement.

[0171] In one implementation, the plurality of media segments include a plurality of single material segments;

[0172] Alternatively, the plurality of media segments include at least one single material segment and at least one composite segment;

[0173] Alternatively, the plurality of media segments include a plurality of composite segments.

[0174] In one implementation, the storage unit 601 is specifically configured to:

[0175] If the first media segment among the multiple media segments has been saved in the preset path of the composite segment, then updating the path corresponding to the material identifier corresponding to the first media segment in the first draft, and after the update, the path indicated by the material identifier corresponding to the first media segment in the first draft is the saving location of the first media segment in the preset path of the composite segment;

[0176] If the second media segment among the multiple media segments is not saved in the preset path of the compound segment, the second media segment is saved in the preset path of the compound segment, and the path corresponding to the material identifier corresponding to the second media segment in the first draft is updated. After the update, the path indicated by the material identifier corresponding to the second media segment in the first draft is the saving location of the second media segment in the preset path of the compound segment.

[0177] In one implementation, the apparatus 600 further includes:

[0178] a loading unit, configured to load a third draft corresponding to the second multimedia editing task in response to a new creation operation on the second multimedia editing task before the calling operation on the first composite segment in the second multimedia editing task;

[0179] a reading unit, configured to read the saved fragment information and draft corresponding to at least one compound fragment, wherein the fragment information and draft corresponding to the at least one compound fragment include the first fragment information and the first draft corresponding to the first compound fragment;

[0180] The calling unit 602 is specifically used for:

[0181] In response to a calling operation on the first composite segment in the second multimedia editing task, adding the first segment information and the first draft to the third draft;

[0182] On a page corresponding to the second multimedia editing task, the first composite segment is added to a corresponding timeline according to the editing attribute information and the first draft.

[0183] As an example, the reading unit is specifically used for:

[0184] For each composite segment of the at least one composite segment, verify the segment information of the composite segment to obtain a first verification result, where the first verification result is used to indicate whether the segment information of the composite segment is damaged;

[0185] If the first verification result indicates that the segment information of the composite segment is not damaged, then verifying the material included in the draft of the composite segment to obtain a second verification result, where the second verification result is used to indicate the situation of the material included in the draft of the composite segment;

[0186] Based on the second verification result, the draft of the composite fragment is updated.

[0187] In one implementation, the apparatus 600 further includes:

[0188] An updating unit is used to update the first compound segment in response to an editing operation on the saved first compound segment, where the editing operation includes at least one of the following operations: renaming, cropping, or speed doubling.

[0189] In one implementation, the apparatus 600 further includes:

[0190] The preview unit is used to respond to the preview operation of the saved first compound fragment, and display the editing effect screen corresponding to the first compound fragment in the player of the multimedia editing page, wherein the editing effect screen is used to reflect the effect of the first compound fragment after being exported.

[0191] It should be noted that the specific implementation method of the device 600 and the technical effects achieved can be found in Figure 2 Description of the method shown.

[0192] In addition, an embodiment of the present application also provides an electronic device, which includes a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the electronic device executes any implementation of the method provided in the embodiment of the present application.

[0193] See also Figure 7, which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0194] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0195] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

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

[0197] The electronic device provided by the embodiment of the present disclosure and the method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0198] The embodiment of the present application also provides a computer-readable medium, in which instructions or computer programs are stored. When the instructions or computer programs are executed on a device, the device executes any implementation of the method provided in the embodiment of the present application.

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

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

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

[0202] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can execute the method.

[0203] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

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

[0205] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit / module does not, in some cases, constitute a limitation on the unit itself.

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

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

[0208] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0209] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0210] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0211] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0212] It should be noted that in the embodiments of the present application, user sensitive information is not involved, and user-related information is obtained, used and determined after user authorization. In one example, before obtaining user-related information, the corresponding interface displays prompt information related to obtaining data use authorization. The prompt information is based on relevant laws and regulations in an appropriate manner to inform the user of the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure, so that the user can determine whether to agree to the authorization based on the prompt information. It can be understood that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation method of the present disclosure.

[0213] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for storing a composite fragment, characterized in that: include: In response to a save operation on a first composite segment in a first multimedia editing task, saving a first draft and editing attribute information of the first composite segment, wherein the editing attribute information is used to indicate an editing operation on a plurality of media segments in the first draft; In response to a calling operation on the first composite segment in a second multimedia editing task, the first composite segment is displayed on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft.

2. The method according to claim 1, characterized in that In response to a save operation on the first composite segment in the first multimedia editing task, saving the first draft and editing property information of the first composite segment includes: In response to a save operation on a first composite segment in a first multimedia editing task, a first segment identifier is obtained, where the first segment identifier is used to indicate first segment information corresponding to the first composite segment, where the first segment information includes the editing attribute information and a first material identifier; Based on the first segment identifier, acquiring the first segment information from the second draft corresponding to the first multimedia editing task; Based on the first material identifier, obtaining the first draft from a material pool of the second draft; The first segment information and the first draft are saved in the composite segment preset path.

3. The method according to claim 1 or 2, characterized in that: The editing attribute information includes at least one of the following information: start time, end time, cropping, speed or displacement.

4. The method according to any one of claims 1 to 3, characterized in that: The plurality of media segments include a plurality of single material segments; Alternatively, the plurality of media segments include at least one single material segment and at least one composite segment; Alternatively, the plurality of media segments include a plurality of composite segments.

5. The method according to any one of claims 2 to 4, characterized in that: The saving of the first draft comprises: If the first media segment among the multiple media segments has been saved in the preset path of the composite segment, then updating the path corresponding to the material identifier corresponding to the first media segment in the first draft, so that after the update, the path indicated by the material identifier corresponding to the first media segment in the first draft is the saving location of the first media segment in the preset path of the composite segment; If the second media segment among the multiple media segments is not saved in the preset path of the compound segment, the second media segment is saved in the preset path of the compound segment, and the path corresponding to the material identifier corresponding to the second media segment in the first draft is updated. After the update, the path indicated by the material identifier corresponding to the second media segment in the first draft is the saving location of the second media segment in the preset path of the compound segment.

6. The method according to any one of claims 1 to 5, characterized in that: Before the calling operation on the first composite segment in the second multimedia editing task, the method further includes: In response to a new creation operation on the second multimedia editing task, loading a third draft corresponding to the second multimedia editing task; Reading the saved fragment information and draft corresponding to at least one compound fragment, wherein the fragment information and draft corresponding to the at least one compound fragment include the first fragment information and the first draft corresponding to the first compound fragment; In response to the calling operation on the first composite segment in the second multimedia editing task, displaying the first composite segment on a page corresponding to the second multimedia editing task according to the editing attribute information and the first draft includes: In response to a calling operation on the first composite segment in the second multimedia editing task, adding the first segment information and the first draft to the third draft; On a page corresponding to the second multimedia editing task, the first composite segment is added to a corresponding timeline according to the editing attribute information and the first draft.

7. The method according to claim 6, characterized in that The reading of the saved fragment information and the draft corresponding to the at least one composite fragment includes: For each composite segment of the at least one composite segment, verify the segment information of the composite segment to obtain a first verification result, where the first verification result is used to indicate whether the segment information of the composite segment is damaged; If the first verification result indicates that the segment information of the composite segment is not damaged, then verifying the material included in the draft of the composite segment to obtain a second verification result, where the second verification result is used to indicate the situation of the material included in the draft of the composite segment; Based on the second verification result, the draft of the composite fragment is updated.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to an editing operation on the saved first composite segment, updating the first composite segment, the editing operation comprising at least one of the following operations: renaming, cropping, or speed doubling; Alternatively, in response to a preview operation on the saved first compound fragment, an editing effect screen corresponding to the first compound fragment is displayed in a player on the multimedia editing page, and the editing effect screen is used to reflect the effect of the first compound fragment after being exported.

9. A composite fragment storage device, characterized in that: include: a saving unit, configured to save, in response to a saving operation on a first composite segment in a first multimedia editing task, a first draft and editing attribute information of the first composite segment, wherein the editing attribute information is used to indicate an editing operation on a plurality of media segments in the first draft; A calling unit is used to respond to a calling operation on the first composite fragment in a second multimedia editing task, and display the first composite fragment according to the editing attribute information and the first draft on a page corresponding to the second multimedia editing task.

10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store instructions or programs; The processor is used to execute the instructions or programs in the memory so that the electronic device executes the method according to any one of claims 1 to 8.

11. A readable medium, characterized in that: The readable medium stores instructions or programs, and when the instructions or programs are executed on a processor, the processor is enabled to execute the method according to any one of claims 1 to 8.