Video editing method and device, electronic equipment and storage medium
By using video editing templates and preset image materials in the video editing method, the problem of difficulty in generating video editing effects when the user does not fill the part to be filled is solved, and a richer way of generating video editing effects is achieved and the editing difficulty is reduced.
Patent Information
- Application Number
- CN202311118960.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-02-28
AI Technical Summary
The existing video editing methods are relatively single and have high editing difficulties. If users do not fill in part of the clips to be filled when using the video editing template, it is difficult to generate a video editing effect.
Provided is a video editing method to generate a video editing effect by obtaining a video editing template and image material for filling the clip to be filled, including preset image material. This method allows the user to fill the to-filled clips in the template with the preset image material without filling all to-filled clips, thereby generating a video editing effect.
It enriches the way of generating video editing effects, reduces the difficulty of generating video editing effects, and supports users to generate video editing effects when some of the clips to be filled are not filled.
Smart Images

Figure CN119545100A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a video editing method, device, electronic device, and storage medium. Background Art
[0002] Currently, users can fill in video materials in each position to be filled in the video editing template, and edit and generate a video based on the filled video materials after filling. However, the video editing method is relatively simple and the editing difficulty is relatively high. Summary of the invention
[0003] The embodiments of the present disclosure provide a video editing method, device, electronic device and storage medium to enrich the video editing methods and reduce the editing difficulty when generating videos using templates.
[0004] In a first aspect, an embodiment of the present disclosure provides a video editing method, comprising:
[0005] Acquire a video editing template, and acquire image materials for filling the segments to be filled in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the segments to be filled in the video editing template that have not been filled by the user;
[0006] A video editing effect is generated according to the video editing template and the image material.
[0007] In a second aspect, the present disclosure also provides a video editing device, including:
[0008] an acquisition module, used to acquire a video editing template, and acquire image materials used to fill in the segments to be filled in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill in the segments to be filled in the video editing template that have not been filled by the user;
[0009] An effect generation module is used to generate a video editing effect according to the video editing template and the image material.
[0010] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
[0011] one or more processors;
[0012] a memory for storing one or more programs,
[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the video editing method as described in the embodiment of the present disclosure.
[0014] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the video editing method as described in the embodiments of the present disclosure is implemented.
[0015] The video editing method, device, electronic device and storage medium provided by the embodiments of the present disclosure obtain a video editing template, and obtain image materials used to fill the segments to be filled in the video editing template, the image materials are used to form video segments of a video editing draft, at least part of the image materials are preset image materials, and the preset image materials are used to fill the segments to be filled in the video editing template that have not been filled by the user; and a video editing effect is generated according to the video editing template and the image materials. By adopting the above-mentioned technical solution, the embodiments of the present disclosure support the generation of video editing effects according to the image materials filled in each segment to be filled in the video editing template when the user has not added image materials in at least part of the segments to be filled, which can enrich the generation method of video editing effects and reduce the difficulty of generating video editing effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0017] Figure 1 A flowchart of a video editing method provided by an embodiment of the present disclosure;
[0018] Figure 2 A schematic diagram showing an editing interface provided by an embodiment of the present disclosure;
[0019] Figure 3 A schematic diagram showing another editing interface provided by an embodiment of the present disclosure;
[0020] Figure 4 A flowchart of another video editing method provided by an embodiment of the present disclosure;
[0021] Figure 5 A schematic diagram showing a secondary editing item of a primary video clip editing item provided by an embodiment of the present disclosure;
[0022] Figure 6 A schematic diagram showing a secondary editing item of a primary audio editing item provided by an embodiment of the present disclosure;
[0023] Figure 7 A schematic diagram showing a secondary editing item of a primary text editing item provided in an embodiment of the present disclosure;
[0024] Figure 8 A schematic diagram showing a secondary editing item of a primary filter editing item provided by an embodiment of the present disclosure;
[0025] Fig. 9 A schematic diagram showing a secondary editing item of a primary sticker editing item provided by an embodiment of the present disclosure;
[0026] Fig.10 A schematic diagram showing a material filling interface provided by an embodiment of the present disclosure;
[0027] Fig.11 A schematic diagram of size adjustment of a sticker panel provided in an embodiment of the present disclosure;
[0028] Fig.12 A structural block diagram of a video editing device provided by an embodiment of the present disclosure;
[0029] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0032] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0033] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0034] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0036] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0037] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0038] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0039] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0040] Figure 1A flowchart of a video editing method provided by an embodiment of the present disclosure. The method can be executed by a video editing device, wherein the device can be implemented by software and / or hardware and can be configured in an electronic device, typically, a mobile phone or a tablet computer. The video editing method provided by an embodiment of the present disclosure is suitable for generating a video preview effect scenario when the user has not yet filled in at least part of the to-be-filled segment in the template with image materials, such as generating a new video or previewing a video to be generated when only part of the to-be-filled segment in the template has image materials added. Figure 1 As shown, the video editing method provided in this embodiment may include:
[0041] S101. Obtain a video editing template, and obtain image materials for filling the to-be-filled segments in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the to-be-filled segments in the video editing template that have not been filled by the user.
[0042] Among them, the video editing template can be a template used to edit and generate videos. The video editing template is equivalent to an incomplete editing draft. Compared with an ordinary video editing draft, the video editing template can specify that some video clips on the video editing track need to be filled with image materials by the user. The video editing template can contain editing information and may contain some materials that do not need to be filled by the user. For example, some video clips may be filled with materials that come with the template and do not need to be filled by the user or even do not support user filling. The editing information at least indicates the video clips that need to be filled with image materials. After the image materials are filled, a complete video editing draft can be formed. Therefore, when previewing, the image rendering can be performed based on the editing effect of the video editing draft to obtain a preview screen; when generating a video, the image material can be edited and processed based on the editing information to synthesize the video.
[0043] The video editing template may include one or more unfilled segments that require the user to fill in image materials. The unfilled segments can be understood as slots for users to fill in image materials, and the image materials can be considered as image-type video materials, such as video materials or picture materials. At least some of the unfilled segments in the video editing template are unfilled segments that the user has not yet filled. In other words, the video editing template may include unfilled segments that the user has not yet filled, and may or may not include unfilled segments that the user has already filled in with image materials.
[0044] In this embodiment, when the user has not filled at least part of the to-be-filled segments in the video editing template with image materials, the video editing template and the image materials used to fill the to-be-filled segments in the video editing template can be obtained.
[0045] Exemplarily, when the user has not yet filled image materials in at least part of the segments to be filled in the video editing template, such as when the user has only filled image materials in part of the segments to be filled or the user has not filled image materials in all the segments to be filled, the video editing template and the image materials used to fill the segments to be filled in the video editing template can be obtained in response to the user's trigger operation for indicating the generation of a video editing effect, so as to facilitate the subsequent generation of a video editing effect based on the acquired video editing template and image materials.
[0046] Here, the trigger operation used to indicate the generation of video editing effects is not limited. For example, the trigger operation used to indicate the generation of video editing effects can be a preview operation used to indicate the generation of a video editing draft and display a preview screen of the video clip in the video editing draft, or it can be a video generation operation used to indicate the generation of a target video.
[0047] S102: Generate a video editing effect according to the video editing template and the image material.
[0048] Specifically, after the video editing template and the image material used to fill the segment to be filled in the video editing template are acquired, the video editing effect can be generated according to the acquired video editing template and image material.
[0049] When generating video editing effects, for example, a video editing draft can be generated based on the acquired video editing template and image material, and a preview screen of the video clips in the video editing draft can be displayed; or, the image material filled in the video editing template can be edited and processed according to the editing information of the acquired video editing template to synthesize the target video.
[0050] In this embodiment, when there are unfilled segments in the video editing template that have not been filled with image materials by the user, preset image materials can be used to fill the unfilled segments that have not been filled with image materials by the user, thereby supporting the user to generate video editing effects when there are unfilled segments to be filled, without the user having to fill image materials in every segment to be filled, which can enrich the way of generating video editing effects and reduce the difficulty of generating video editing effects.
[0051] In this embodiment, the generated video editing effect can be preset, or determined based on a trigger operation used by a user to indicate the generation of a video editing effect, and this embodiment is not limited by comparison. The following is described by taking the determination based on the trigger operation used by a user to indicate the generation of a video editing effect as an example. The trigger operation used by a user to indicate the generation of a video editing effect may include, for example, a preview operation or a video generation operation. When the trigger operation performed by the user to indicate the generation of a video editing effect is different, different video editing effects may be generated.
[0052] In some embodiments, when acquiring image materials to generate a video editing draft, such as when the trigger operation performed by the user to indicate the generation of a video editing effect is a preview operation, after acquiring a video editing template and image materials used to fill in the segments to be filled in the video editing template, a video editing draft can be generated based on the acquired video editing template and image materials, and a preview screen of the video segments in the video editing draft can be displayed. For example, the rendered preview screens of the image materials added to each segment to be filled can be displayed in sequence according to the arrangement order of each segment to be filled in the video editing template for the user to view. At this time, optionally, the video editing effect includes a preview screen, and the generating of the video editing effect based on the video editing template and the image materials includes: generating a video editing draft based on the video editing template and the image materials, and displaying a preview screen of the video segments in the video editing draft.
[0053] In the above implementation, the preview screen is displayed in any manner. For example, the preview screen rendered by each image material can be displayed in the editing interface, such as displaying the preview screen rendered by each image material in the first area 20 of the editing interface, such as Figure 2 At this time, optionally, the preview screen of the video clip in the video editing draft includes: displaying an editing interface, and displaying the preview screen of the video clip in the video editing draft in the first area 20 of the editing interface.
[0054] The editing interface may be an interface for a user to edit a video clip in a video editing draft, and the editing interface may include an area for displaying a preview screen of the video clip in the video editing draft, namely, the first area 20. Optionally, as Figure 2 As shown, a preview progress bar 21 is also displayed in the first area 20, and the preview progress bar 21 is used to indicate the current preview progress, so that compared with displaying the preview progress bar 21 separately outside the first area 20, the preview progress bar 21 can reduce the space occupied by the editing interface display. The preview progress bar 21 can correspond to the video clip corresponding to the currently displayed preview screen, or can correspond to the video editing draft. In other words, the preview progress bar 21 can be a progress bar corresponding to a single video clip, or can be a progress bar corresponding to the video editing draft. The following description takes the preview progress bar 21 as a progress bar corresponding to the video editing draft as an example.
[0055] Optionally, the editing interface also includes a second area and / or a third area, wherein at least one first-level editing item is displayed in the second area, and an object identifier of at least one object to be edited is displayed in the third area, and the at least one object to be edited corresponds to a first-level editing item that is selected in the at least one first-level editing item.
[0056] like Figure 2 As shown, the editing interface may also include a second area 22 and / or a third area 23. The second area 22 may be an area in the editing interface for displaying editing items, and the editing items may include primary editing items and / or secondary editing items, which may be used to edit video clips in the video editing draft, such as different primary editing items may be used to edit different types of objects to be edited. The third area 23 may be an area for displaying object identifiers of objects to be edited. The objects to be edited may be understood as objects that can be edited by users, and may include objects that have been added to the video editing template and / or candidate objects for users to select to be added to the video editing template. The types of objects to be edited are not limited, for example, the objects to be edited may include video clips in the video editing draft, candidate background audio materials that can be selected by users, text, filters or stickers that have been added to the video editing draft, and the like. The object identifier of the object to be edited may be considered as the identifier of the object to be edited, such as the video clip identifier of the video clip, the audio identifier of the candidate background audio, the text identifier, the filter identifier and / or the sticker identifier, and the like.
[0057] Exemplarily, when the editing interface is switched to in response to a preview operation, a preview screen of a video clip in a video editing draft and a preview progress bar 21 of the video editing draft can be displayed in sequence in the first area 20 of the editing interface; at least one first-level editing item can be displayed in the second area 22 of the editing interface, and a certain first-level editing item can be displayed as a selected state; and, in the third area 23 of the editing interface, an object identifier of an object to be edited corresponding to the first-level editing item in the selected state can be displayed, for example, a first-level video clip editing item can be displayed as a selected state, and a video clip identifier of at least one video clip in the video editing draft can be displayed in the third area 23, for example, Figure 2 shown.
[0058] In this embodiment, the user can adjust the preview progress by performing a progress adjustment operation. Considering that the user generally locates the line of sight on the first area 20 during the progress adjustment operation, the preview progress information 24 currently indicated by the progress adjustment operation can be further added and displayed at a preset position in the first area 20 during the progress adjustment operation. Figure 3As shown, the user can adjust the preview progress to the one he wants to adjust more quickly; and when the progress adjustment operation is completed, the preview progress information 24 added and displayed in the first area 20 can be cancelled.
[0059] At this time, optionally, after displaying the editing interface, it also includes: in response to a progress adjustment operation on the video editing draft, during the execution of the progress adjustment operation, displaying preview progress information corresponding to the progress adjustment operation at a preset position in the first area, and canceling the display of the preview progress information when the progress adjustment operation is completed.
[0060] Among them, the preview progress information can be information about the current preview progress that the progress adjustment operation currently indicates to adjust to, such as the current duration that the progress adjustment operation currently indicates to adjust to, and can further include the total duration of the video editing draft, and the current duration can be understood as the time node corresponding to the current preview progress in the video editing draft. The execution method of the progress adjustment operation is not limited, such as the progress adjustment operation can be performed by dragging the progress indicator in the preview progress bar. The progress indicator in the preview progress bar can be used to indicate the current preview progress. When the progress indicator is located at different positions of the preview progress, the current preview progress indicated by it is different.
[0061] It is understandable that the preview progress information may or may not be displayed outside the first area. When the preview progress information is displayed outside the first area, the preview progress information displayed outside the first area may be kept displayed during the execution of the progress adjustment operation. Figure 3 As shown; the preview progress information displayed outside the first area may also be canceled. At this time, when the progress adjustment operation is completed, the preview progress information displayed outside the first area may be re-displayed.
[0062] In some embodiments, when acquiring image material to generate a target video, such as when the trigger operation performed by the user to indicate the generation of a video editing effect is a video generation operation, after acquiring a video editing template and image material for filling the to-be-filled segment in the video editing template, the acquired image material can be edited based on the editing information of the video editing template to generate a target video, so that the user can view, save or publish the generated target video. At this time, optionally, generating a video editing effect according to the video editing template and the image material includes: using the video editing template to process the image material to generate a target video. Among them, the target video can be a video that is finally generated based on the image material added to the video editing template. The video generation operation can be a trigger operation for indicating the generation of a video based on the image material added to the video editing template, such as triggering the export control 25 displayed in the material filling interface or the editing interface (such as Figure 2operations shown in the figure) etc.
[0063] In this embodiment, when there are unfilled segments in the video editing template to which the user has not yet added image materials, the current application can add preset image materials to the unfilled segments to which the user has not added image materials, so as to ensure that even if the user has not added image materials to all the unfilled segments, a video editing draft can be generated based on the video editing template and the video segments in the generated video editing draft can be previewed, or a target video can be generated based on the video editing template.
[0064] In some embodiments, the preset image material includes a first preset image material and / or a second preset image material, the first preset image material corresponds to the original material sample filled in the to-be-filled segment, and the second preset image material is a set image material.
[0065] The original material sample may be an image material sample originally added to the video editing template and used as an example for the user. The first preset image material may be a preset image material corresponding to the original material sample, such as a preset image material obtained based on the original material sample; the second preset image material may be a pre-set image material that can be filled in different segments to be filled.
[0066] In the above implementation, when obtaining image materials for filling the to-be-filled segments in the video editing template, preset image materials can be filled into the to-be-filled segments in the video editing template that have not been filled with image materials by the user, and the filled preset image materials can be set as needed.
[0067] For example, for a segment to be filled in a video editing template that has not yet been filled with image material by the user, the original material sample added to the segment to be filled can be determined, the first preset image material corresponding to the original material sample can be obtained, and the first preset image material can be filled into the segment to be filled.
[0068] For another example, a second preset image material that can be added to each different segment to be filled can be pre-set. Thus, when obtaining image material for filling the segment to be filled in the video editing template, the pre-set second preset image material can be obtained, and the second preset image material can be filled into the segment to be filled that the user has not yet filled, such as replacing the original material sample or the first preset image material filled in the segment to be filled in the video editing template that the user has not yet filled, so as to fill the second preset image material into the segment to be filled.
[0069] In this embodiment, the first preset image material filled in the to-be-filled segment that a user has not yet filled with image material can be obtained based on the original material sample in the to-be-filled segment. For example, the original material sample in the filled segment can be used as the first preset image material filled in the to-be-filled segment, or a preset image identifier can be added to the image screen of the original material sample to distinguish it from the image material filled by the user, so that the user can distinguish the preset image material in the video editing template from the image material added by himself. At this time, optionally, the preset image material includes the first preset image material, and the image material used to fill the to-be-filled segment in the video editing template includes: using the original material sample as the first preset image material corresponding to the original material sample; or adding a preset image identifier to the original material sample to obtain the first preset image material corresponding to the original material sample. Among them, the specific style of the preset image identifier can be set as needed, and this embodiment does not limit this. Exemplarily, the preset image identifier can be a watermark identifier used to indicate that the image material is a preset image material.
[0070] In some embodiments, the role of the acquired image material may be ignored, such as the specific trigger operation used by the user to indicate the generation of the video editing effect, and it may be preset whether to add the first preset image material or the second preset image material in the to-be-filled segment to which the user has not yet added image material.
[0071] In some implementations, the role of the acquired image material may also be considered, and based on the role of the acquired image material, it is determined whether to add the first preset image material or the second preset image material to the second segment to be filled. At this time, optionally, the acquisition of image material used to fill the segment to be filled in the video editing template includes: if the image material is acquired this time to generate a video editing draft, then the first preset image material corresponding to the original material sample in the segment to be filled that the user has not yet filled is acquired as the preset image material for filling the segment to be filled that the user has not yet filled; if the image material is acquired this time to generate a target video, then the second preset image material is acquired, and the second preset image material is used to replace the first preset image material filled in the segment to be filled that the user has not yet filled.
[0072] Specifically, when it is necessary to obtain image material for filling the to-be-filled segment in the video editing template to generate a video editing draft, a first preset image material corresponding to the original material sample in the to-be-filled segment that the user has not yet filled can be obtained as the preset image material for filling the to-be-filled segment.
[0073] When it is necessary to obtain image materials for filling the to-be-filled segments in the video editing template to generate the target video, a second preset image material can be obtained, and the second preset image material can be used to replace the first preset image material added in the to-be-filled segments that the user has not yet filled. For example, if a video editing draft has been generated before the image materials are obtained to generate the target video, that is, the first preset image material has been added to the to-be-filled segments that the user has not yet filled, then the second preset image material can be used to replace the first preset image material already filled in the to-be-filled segments that the user has not yet filled; if a video editing draft has not been generated before the image materials are obtained to generate the target video, that is, the to-be-filled segments that the user has not yet filled are still filled with the original material samples, then the second preset image material can be used to replace the original material samples in the to-be-filled segments that the user has not yet filled.
[0074] It is understandable that the display style of the filled preset image material can be set as needed. Exemplarily, the video editing draft may include a main editing track, and may further include a picture-in-picture editing track. When the clips to be filled are located on different tracks, the filled preset image materials may have different display styles. For example, when the clip to be filled that the user has not yet filled is a clip to be filled on the main editing track, the transparency of the filled preset image material may be a first transparency, and the first transparency is greater than 0; when the clip to be filled that the user has not yet filled is a clip to be filled on the picture-in-picture editing track, the transparency of the filled first preset image material may be a second transparency, and the transparency of the filled second preset image material may be a third transparency, wherein the second transparency is greater than or equal to the third transparency, and optionally, the second transparency may be greater than 0, and the third transparency may be 0.
[0075] The video editing method provided in this embodiment obtains a video editing template, and obtains image materials used to fill the segments to be filled in the video editing template. The image materials are used to form video segments of the video editing draft, and at least part of the image materials are preset image materials. The preset image materials are used to fill the segments to be filled in the video editing template that have not been filled by the user; and a video editing effect is generated according to the video editing template and the image materials. By adopting the above technical solution, this embodiment supports the generation of video editing effects according to the image materials filled in each segment to be filled in the video editing template when the user has not added image materials in at least part of the segments to be filled, which can enrich the generation method of video editing effects and reduce the difficulty of generating video editing effects.
[0076] Figure 4A flowchart of another video editing method provided for an embodiment of the present disclosure. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, after displaying the editing interface, it also includes: in response to a first trigger operation for a target object identifier, canceling the display of at least one first-level editing item, and displaying at least one second-level editing item in the second area, wherein the at least one second-level editing item corresponds to the first-level editing item in a selected state.
[0077] Correspondingly, such as Figure 4 As shown, the video editing method provided in this embodiment may include:
[0078] S201. Obtain a video editing template, and obtain image materials for filling the to-be-filled segments in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the to-be-filled segments in the video editing template that have not been filled by the user.
[0079] S202: Generate a video editing effect according to the video editing template and the image material.
[0080] S203. Display an editing interface, and display a preview screen of the video clip in the video editing draft in a first area of the editing interface, wherein the editing interface also includes a second area and / or a third area, at least one first-level editing item is displayed in the second area, and an object identifier of at least one object to be edited is displayed in the third area, and the at least one object to be edited corresponds to a first-level editing item that is in a selected state among the at least one first-level editing item.
[0081] S204. In response to a first trigger operation for a target object identifier, cancel display of the at least one primary editing item, and display at least one secondary editing item in the second area, wherein the at least one secondary editing item corresponds to the primary editing item in a selected state.
[0082] Among them, the first trigger operation can be a trigger operation of triggering an object identification displayed in the third area. For example, when the selected first-level editing item is a first-level video clip editing item, the first trigger operation can be an operation of triggering a video clip identification of a first video clip in the third area; when the selected first-level editing item is a first-level audio editing item, the first trigger operation can be an operation of triggering an audio identification of a candidate background audio in the third area; when the selected first-level editing item is a first-level text editing item, the first trigger operation can be an operation of triggering a text identification of a text in the third area; when the selected first-level editing item is a first-level filter editing item, the first trigger operation can be an operation of triggering a filter identification of a candidate filter in the third area; when the selected first-level editing item is a first-level sticker editing item, the first trigger operation can be an operation of triggering a sticker identification of a sticker in the third area.
[0083] The target object identifier can be understood as the object identifier triggered by the first trigger operation, which can be the video clip identifier of a video clip formed by the image material filled in by the user, the audio identifier of a candidate background audio, the text identifier of a text, the filter identifier of a candidate filter, or the sticker identifier of a sticker, etc.
[0084] Specifically, when a first trigger operation is received for an object identifier displayed in the third area, the first-level editing item in the selected state in the second area can be determined, the first-level editing items displayed in the second area can be canceled, and the second-level editing items of the selected first-level editing items can be displayed in the second area, so that the user can use the second-level editing items to edit the object to be edited corresponding to the target object identifier.
[0085] For example, Figure 5 As shown, when the first-level editing item in the selected state is a first-level video clip editing item, the video clip identifier of the video clip in the video editing draft can be displayed in the third area; when it is detected that the user triggers the video clip identifier of a certain video clip displayed in the third area ( Figure 5 Taking triggering video clip identifier 2 as an example), at least one primary editing item displayed in the second area can be switched to a secondary editing item of the primary video clip editing item, and the video clip identifier can be further displayed as a selected state.
[0086] like Figure 6 As shown, when the first-level editing item in the selected state is a first-level audio editing item, at least one audio identifier of a candidate background audio for the user to select can be displayed in the third area; when it is detected that the user triggers the audio identifier of a candidate background audio displayed in the third area ( Figure 6Taking the triggering audio identifier 1 as an example), at least one primary editing item displayed in the second area can be switched to a secondary editing item of the primary audio editing item, and the audio identifier can be further displayed as a selected state.
[0087] like Figure 7 As shown, when the first-level editing item in the selected state is a first-level text editing item, a text mark of at least one text added in the video editing draft can be displayed in the third area; when it is detected that the user triggers the text mark of a certain text displayed in the third area ( Figure 7 In the example of triggering text mark 2, at least one primary editing item displayed in the second area can be switched to a secondary editing item of the primary text editing item, and the text mark can be further displayed as a selected state. In addition, when displaying the text mark of the text added in the video editing template, a text adding control 70 can be further displayed, so that the user can add new text to the video editing template by triggering the text adding control 70.
[0088] like Figure 8 As shown, when the first-level editing item in the selected state is a first-level filter editing item, a filter identifier of at least one candidate filter that can be selected by the user can be displayed in the third area; when it is detected that the user triggers the filter identifier of a first candidate filter displayed in the third area ( Figure 8 Taking the triggering filter mark 2 as an example), at least one primary editing item displayed in the second area can be switched to a secondary editing item of the primary filter editing item, and the filter mark can be further displayed as a selected state.
[0089] like Fig. 9 As shown, when the first-level editing item in the selected state is a first-level sticker editing item, a sticker mark of at least one sticker added in the video editing draft can be displayed in the third area; when it is detected that a user triggers a sticker mark of a sticker displayed in the third area ( Fig. 9 Taking the trigger sticker mark 3 as an example), at least one first-level editing item displayed in the second area can be switched to a second-level editing item of the first-level sticker editing item, and the sticker mark can be further displayed as a selected state.
[0090] In some embodiments, when a trigger operation (such as a first trigger operation) is received for a video segment identification of a video segment formed by image material filled by a user, a secondary editing item of the first-level video segment editing item can be displayed in the second area for the user to edit the video segment; and / or, when a trigger operation is received for a video segment identification of a video segment formed by preset image material, it can be switched to a material filling interface for the user to fill in the image material in the segment to be filled corresponding to the preset image material.
[0091] At this time, optionally, in response to a second trigger operation for a video clip identifier of a target video clip, a material filling interface is displayed, the target video clip is a video clip formed by the preset image material, and at least one candidate image material is displayed in the material filling interface; in response to a material filling operation acting within the material filling interface, the preset image material corresponding to the target video clip is replaced with the candidate image material selected by the user.
[0092] Among them, the second trigger operation can be a trigger operation for instructing to display a material filling interface, which can be a trigger operation for a video clip formed by a preset image material, such as an operation for triggering a preview screen of a video clip formed by a preset image material displayed in the first area, or an operation for triggering a video clip identifier of a video clip formed by a preset image material displayed in the third area. The target video clip can be a video clip corresponding to the second trigger operation, and the target video clip is a video clip formed by the preset image material. The candidate image material can be an image material that can be selected to be filled in the video editing template. The material filling operation can be an operation for instructing to fill in a candidate image material. The user can select an image material in any way, such as the user can manually select an image material, or instruct the current application to automatically select an image material based on a preset selection rule through a certain trigger operation.
[0093] Exemplarily, when a second trigger operation for a video clip formed by a preset image material is received, such as when a user triggers a preview screen of a video clip formed by a preset image material displayed in the first area of the editing interface, or when a user triggers a video clip identifier of a video clip formed by a preset image material displayed in the third area of the editing interface, the current interface can be switched from the editing interface to a material filling interface, in which at least one candidate image material is displayed. In addition, at least one to-be-filled clip in the video editing template can be further displayed, and the to-be-filled clip where the second image material is located can be displayed as selected, such as Fig.10 Thus, when a material filling operation is received from the user, the image material filled in the to-be-filled segment can be replaced with the candidate image material indicated by the material filling operation. For example, when it is detected that a user triggers a candidate image material in the material filling interface, the image material filled in the to-be-filled segment can be replaced with the candidate image material triggered by the user.
[0094] Optionally, after replacing the preset image material corresponding to the target video clip with the candidate image material selected by the user, it also includes: updating the target video clip based on the candidate image material selected by the user, and displaying a preview screen of the updated target video clip in the first area of the editing interface.
[0095] In the above implementation, after replacing the selected candidate image material with the preset image material filled in a certain segment to be filled, the user can also switch to the editing interface to view the preview screen of the video segment formed by the selected candidate image material by performing a preview operation.
[0096] For example, when a preview operation of the user is received, such as when it is detected that the user triggers the preview control 100 (such as Fig.10 ), the target video segment in the video editing draft can be updated to the video segment formed by the candidate image material selected by the user, the editing interface is displayed, and a preview screen of the updated target video segment is displayed in the first area of the editing interface. For example, the time node corresponding to the starting point of the updated target video segment in the video editing draft can be used as the starting point, and a preview screen of the video editing draft can be displayed in the first area, so that the user can quickly preview the effect of the candidate image material filled in this time on the formation of the video segment.
[0097] In some embodiments, the first-level editing item in the selected state is a first-level sticker editing item, and the at least one second-level editing item includes a sticker replacement control, and the sticker replacement control is used to trigger the display of the sticker panel. The method also includes at least one of the following: in response to a size adjustment operation on the sticker panel, adjusting the display size of the sticker panel; in response to a cancel display operation on the sticker panel, canceling the display of the sticker panel, and the cancel display operation acts on a non-control area outside the sticker panel, and / or acts on a save control displayed in the sticker panel.
[0098] Among them, the size adjustment operation can be a trigger operation for indicating the adjustment of the size of the sticker panel. Exemplarily, the size adjustment operation can include a first size adjustment operation for indicating the reduction of the size of the sticker panel and / or a second size adjustment operation for indicating the increase of the size of the sticker panel. The first size adjustment operation can be, for example, an operation of sliding along a first direction in the top area of the sticker panel, or an operation of adjusting a sticker displayed in the first area in the first area of the editing interface, which can be performed when the sticker panel is displayed as a larger size (such as the first size). The second size adjustment operation can be, for example, an operation of sliding along a second direction in the top area of the sticker panel, which can be performed when the sticker panel is displayed as a smaller size (such as the second size). The cancel display operation can be a trigger operation for indicating the cancellation of the display of the sticker panel, such as an operation of triggering a non-control area outside the sticker panel, or an operation of triggering the save control displayed in the sticker panel. Here, the second size can be smaller than the first size. Optionally, when the sticker panel is displayed as the first size, there is an overlapping area between the sticker panel and the first area; when the sticker panel is displayed as the second size, there is no overlapping area between the sticker panel and the first area, so as to avoid blocking the preview screen displayed in the first area. The first direction and the second direction may be opposite directions, for example, the first direction may be downward, and the second direction may be upward. The non-control area may be an area where no control is displayed.
[0099] In the above embodiment, when it is detected that the user triggers the sticker mark of a sticker displayed in the third area 23, the preview progress of the video editing draft can be adjusted to the preview progress corresponding to the sticker, so as to display the preview screen containing the sticker in the first area 20 of the editing interface, and the secondary editing item of the primary sticker editing item can be displayed in the second area 22, and the secondary editing item can include, for example, a replacement control 90, such as Fig. 9 As shown ( Fig. 9 Thus, when it is detected that the user triggers the replacement control 91 displayed in the second area 22, the sticker panel 110 can be displayed, such as displaying the sticker panel 110 in the first size or the second size, and displaying the sticker identifier of at least one candidate sticker (i.e., the candidate sticker identifier) in the sticker panel 110, such as Fig.11 shown.
[0100] After displaying the sticker panel, the user can trigger a sticker identifier of a candidate sticker in the sticker panel to use the candidate sticker to replace the sticker corresponding to the sticker identifier triggered by the user in the third area, and can adjust the display size of the sticker panel by performing a size adjustment operation.
[0101] For example, Fig.11As shown, when the sticker panel is displayed in the first size, when it is detected that the user slides along the first direction in the top area of the sticker panel, the sticker panel can be reduced from the first size to the second size; or, when the sticker panel is displayed in the first size, when it is detected that the user adjusts the size, position and / or angle of a sticker displayed in the first area, the sticker panel can be reduced from the first size to the second size to facilitate the user to adjust the sticker. When the sticker panel is displayed in the second size, when it is detected that the user slides along the second direction in the top area of the sticker panel, the sticker panel can be increased from the second size to the first size.
[0102] After the sticker panel 110 is displayed, the user can also close the sticker panel 110 by performing a cancel display operation, such as when it is detected that the user triggers the non-control area outside the sticker panel 110, or when it is detected that the user triggers the save control 111 displayed in the sticker panel 110 (such as Fig.11 As shown), the sticker panel 110 can be cancelled.
[0103] In some embodiments, the first-level editing item in the selected state is a first-level audio editing item, and the object identifier is an audio identifier of a candidate background audio. After the editing interface is displayed, it also includes: in response to an audio editing operation acting on the editing interface, the first-level audio editing item is displayed as a selected state, and at least one audio identifier of a candidate background audio is displayed in the third area, the audio editing operation acts on the first-level audio editing item or acts on the fourth area of the editing interface, and the fourth area is used to display the audio information of the background audio added in the video editing draft.
[0104] The audio editing operation may be a triggering operation for indicating an audio identifier for displaying candidate background audio, such as an operation for triggering a primary audio editing item displayed in an editing interface, or an operation for triggering a fourth area of the editing interface, etc. The fourth area may be an area in the editing interface for displaying audio information of background audio added in a video editing draft.
[0105] Specifically, when receiving a user's audio editing operation, such as when detecting that the user triggers the primary audio editing item 26 (such as Figure 2 ), or, trigger the fourth area 27 of the editing interface (as shown Figure 2 As shown), at least one audio identifier of the candidate background audio may be displayed in the third area 23 of the editing interface, such as Figure 6 As shown, it is convenient for users to adjust the audio added in the video editing template.
[0106] The video editing method provided in this embodiment switches the first-level editing item displayed in the editing interface to the second-level editing item of the first-level editing item triggered by the user when the user triggers a certain level of editing item. This can enrich the display method of the second-level editing item and avoid blocking other page contents displayed in the editing interface, thus providing convenience for users to edit video editing drafts.
[0107] Fig.12 The structure block diagram of a video editing device provided by the embodiment of the present disclosure. The device can be implemented by software and / or hardware, and can be configured in an electronic device, typically, a mobile phone or a tablet computer, and can generate a video preview effect by executing a video editing method when the user has not yet filled in at least part of the to-be-filled segments in the template with image materials, such as generating a new video or previewing a video to be generated when only part of the to-be-filled segments in the template have been added with image materials. Fig.12 As shown, the video editing device provided in this embodiment may include: an acquisition module 1201 and an effect generation module 1202, wherein:
[0108] The acquisition module 1201 is used to acquire a video editing template and acquire image materials used to fill the segments to be filled in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the segments to be filled in the video editing template that have not been filled by the user;
[0109] The effect generation module 1202 is used to generate a video editing effect according to the video editing template and the image material.
[0110] The video editing device provided in this embodiment obtains a video editing template through an acquisition module, and obtains image materials used to fill the to-be-filled segments in the video editing template, the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the to-be-filled segments in the video editing template that have not been filled by the user; and generates a video editing effect according to the video editing template and the image materials through an effect generation module. By adopting the above-mentioned technical solution, the disclosed embodiment supports the generation of video editing effects according to the image materials filled in each to-be-filled segment of the video editing template when the user has not added image materials in at least part of the to-be-filled segments, which can enrich the generation method of video editing effects and reduce the difficulty of generating video editing effects.
[0111] In the above solution, the preset image material may include a first preset image material and / or a second preset image material, the first preset image material corresponds to the original material sample filled in the to-be-filled segment, and the second preset image material is a set image material.
[0112] In the above scheme, the preset image material includes a first preset image material, and the acquisition module 1201 can be used to: use the original material sample as the first preset image material corresponding to the original material sample; or add a preset image identifier to the original material sample to obtain the first preset image material corresponding to the original material sample.
[0113] In the above scheme, the acquisition module 1201 can be used for: if the image material is acquired this time to generate a video editing draft, then a first preset image material corresponding to the original material sample in the to-be-filled segment that has not yet been filled by the user is acquired, as the preset image material for filling the to-be-filled segment that has not yet been filled by the user; if the image material is acquired this time to generate a target video, then a second preset image material is acquired, and the second preset image material is used to replace the first preset image material filled in the to-be-filled segment that has not yet been filled by the user.
[0114] In the above scheme, the video editing effect may include a preview screen, and the effect generation module 1202 generates a video editing draft according to the video editing template and the image material, and displays a preview screen of the video clip in the video editing draft.
[0115] In the above solution, the effect generation module 1202 can be used to: display an editing interface, and display a preview screen of the video clip in the video editing draft in the first area of the editing interface.
[0116] In the above scheme, the editing interface may also include a second area and / or a third area, in which at least one first-level editing item may be displayed, and in which the object identifier of at least one object to be edited may be displayed. The at least one object to be edited corresponds to a first-level editing item that is selected in the at least one first-level editing item.
[0117] Furthermore, the video editing device provided in this embodiment may also include: an editing item display module, which is used to cancel the display of at least one first-level editing item and display at least one second-level editing item in the second area in response to a first trigger operation identified for the target object after the editing interface is displayed, and the at least one second-level editing item corresponds to the first-level editing item in a selected state.
[0118] In the above scheme, the first-level editing item in the selected state may be a first-level sticker editing item, and the at least one second-level editing item may include a sticker replacement control, and the sticker replacement control can be used to trigger the display of the sticker panel. The video editing device provided in this embodiment may also include: a size adjustment module, which is used to adjust the display size of the sticker panel in response to the size adjustment operation on the sticker panel; a display cancellation module, which is used to cancel the display of the sticker panel in response to the display cancellation operation on the sticker panel, and the display cancellation operation acts on the non-control area outside the sticker panel, and / or acts on the save control displayed in the sticker panel.
[0119] In the above scheme, the first-level editing item in the selected state can be a first-level video clip editing item, and the object identifier can be a video clip identifier of the video clip in the video editing draft. The video editing device provided by this embodiment may also include: an interface display module, which is used to respond to a second trigger operation on the video clip identifier of the target video clip, and display a material filling interface, wherein the target video clip is a video clip formed by the preset image material, and at least one candidate image material is displayed in the material filling interface; a material filling module, which is used to respond to the material filling operation acting in the material filling interface, and replace the preset image material corresponding to the target video clip with the candidate image material selected by the user.
[0120] Furthermore, the video editing device provided in this embodiment may also include: a preview module, which is used to update the target video segment based on the candidate image material selected by the user after replacing the preset image material corresponding to the target video segment with the candidate image material selected by the user, and display a preview screen of the updated target video segment in the first area of the editing interface.
[0121] In the above scheme, the first-level editing item in the selected state can be a first-level audio editing item, and the object identifier can be an audio identifier of a candidate background audio. The video editing device provided in this embodiment may also include: an identifier display module, which is used to display the first-level audio editing item as a selected state after the editing interface is displayed, in response to an audio editing operation acting in the editing interface, and to display the audio identifier of at least one candidate background audio in the third area in response to an audio editing operation acting in the editing interface. The audio editing operation acts on the first-level audio editing item or acts within the fourth area of the editing interface, and the fourth area is used to display the audio information of the background audio added in the video editing draft.
[0122] In the above scheme, a preview progress bar may also be displayed in the first area, and the preview progress bar may be used to indicate the current preview progress. The video editing device provided in this embodiment may also include: a progress information display module, which is used to respond to the progress adjustment operation on the video editing draft after the editing interface is displayed. During the execution of the progress adjustment operation, the preview progress information corresponding to the progress adjustment operation is displayed at a preset position in the first area, and the preview progress information is canceled when the progress adjustment operation is completed.
[0123] In the above solution, the effect generation module 1202 can be used to: use the video editing template to process the image material to generate a target video.
[0124] The video editing device provided in the embodiment of the present disclosure can execute the video editing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the video editing method. For technical details not described in detail in this embodiment, please refer to the video editing method provided in any embodiment of the present disclosure.
[0125] Reference below Fig.13 , which shows a schematic diagram of the structure of an electronic device (e.g., terminal device) 1300 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.13 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.
[0126] like Fig.13 As shown, the electronic device 1300 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage device 1308 to a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the electronic device 1300 are also stored. The processing device 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.
[0127] Typically, the following devices may be connected to the I / O interface 1305: an input device 1306 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 1307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1309. The communication device 1309 may allow the electronic device 1300 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.13 The electronic device 1300 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.
[0128] 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 1309, or installed from the storage device 1308, or installed from the ROM 1302. When the computer program is executed by the processing device 1301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0129] 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.
[0130] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0131] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0132] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains a video editing template, and obtains image materials for filling the to-be-filled segments in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the to-be-filled segments in the video editing template that have not yet been filled by the user; generates a video editing effect according to the video editing template and the image materials.
[0133] 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).
[0134] 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.
[0135] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, constitute a limitation on the unit itself.
[0136] 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.
[0137] 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.
[0138] According to one or more embodiments of the present disclosure, Example 1 provides a video editing method, including:
[0139] Acquire a video editing template, and acquire image materials for filling the segments to be filled in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the segments to be filled in the video editing template that have not been filled by the user;
[0140] A video editing effect is generated according to the video editing template and the image material.
[0141] According to one or more embodiments of the present disclosure, Example 2 is based on the method described in Example 1, wherein the preset image material includes a first preset image material and / or a second preset image material, the first preset image material corresponds to the original material sample filled in the segment to be filled, and the second preset image material is a set image material.
[0142] According to one or more embodiments of the present disclosure, Example 3 is the method according to Example 2, wherein the preset image material includes a first preset image material, and the obtaining of the image material for filling the to-be-filled segment in the video editing template includes:
[0143] using the original material sample as a first preset image material corresponding to the original material sample; or
[0144] A preset image identifier is added to the original material sample to obtain a first preset image material corresponding to the original material sample.
[0145] According to one or more embodiments of the present disclosure, Example 4 is the method according to Example 1, wherein obtaining image material for filling the to-be-filled segment in the video editing template includes:
[0146] If the image material is obtained this time to generate a video editing draft, a first preset image material corresponding to the original material sample in the to-be-filled segment that has not been filled by the user is obtained as the preset image material for filling the to-be-filled segment that has not been filled by the user;
[0147] If the image material is obtained this time to generate a target video, a second preset image material is obtained, and the second preset image material is used to replace the first preset image material filled in the to-be-filled segment that has not been filled by the user.
[0148] According to one or more embodiments of the present disclosure, Example 5 is a method according to any one of Examples 1 to 4, wherein the video editing effect includes a preview screen, and the generating of the video editing effect according to the video editing template and the image material includes:
[0149] A video editing draft is generated according to the video editing template and the image material, and a preview screen of the video clip in the video editing draft is displayed.
[0150] According to one or more embodiments of the present disclosure, Example 6 is the method according to Example 5, wherein displaying a preview screen of a video clip in the video editing draft includes:
[0151] An editing interface is displayed, and a preview screen of the video clip in the video editing draft is shown in a first area of the editing interface.
[0152] According to one or more embodiments of the present disclosure, Example 7 is based on the method described in Example 6, wherein the editing interface also includes a second area and / or a third area, at least one first-level editing item is displayed in the second area, and an object identifier of at least one object to be edited is displayed in the third area, and the at least one object to be edited corresponds to a first-level editing item that is in a selected state among the at least one first-level editing item.
[0153] According to one or more embodiments of the present disclosure, Example 8 is the method according to Example 7, after displaying the editing interface, further comprising:
[0154] In response to a first trigger operation for a target object identifier, the at least one primary editing item is canceled from being displayed, and at least one secondary editing item is displayed in the second area, where the at least one secondary editing item corresponds to the primary editing item in a selected state.
[0155] According to one or more embodiments of the present disclosure, Example 9 is the method according to Example 8, wherein the selected primary editing item is a primary sticker editing item, and the at least one secondary editing item includes a sticker replacement control, and the sticker replacement control is used to trigger display of a sticker panel, and the method further includes at least one of the following:
[0156] In response to a size adjustment operation on the sticker panel, adjusting the display size of the sticker panel;
[0157] In response to a cancel display operation on the sticker panel, the sticker panel is canceled from display, and the cancel display operation acts on a non-control area outside the sticker panel and / or acts on a save control displayed in the sticker panel.
[0158] According to one or more embodiments of the present disclosure, Example 10 is the method according to Example 7, wherein the selected primary editing item is a primary video clip editing item, and the object identifier is a video clip identifier of a video clip in the video editing draft, and after displaying the editing interface, further comprising:
[0159] In response to a second trigger operation on a video segment identifier of a target video segment, displaying a material filling interface, wherein the target video segment is a video segment formed by the preset image material, and at least one candidate image material is displayed in the material filling interface;
[0160] In response to a material filling operation performed within the material filling interface, the preset image material corresponding to the target video clip is replaced with the candidate image material selected by the user.
[0161] According to one or more embodiments of the present disclosure, Example 11 is the method according to Example 10, after replacing the preset image material corresponding to the target video clip with the candidate image material selected by the user, further comprising:
[0162] The target video segment is updated based on the candidate image material selected by the user, and a preview screen of the updated target video segment is displayed in the first area of the editing interface.
[0163] According to one or more embodiments of the present disclosure, Example 12 is the method according to Example 7, wherein the selected primary editing item is a primary audio editing item, and the object identifier is an audio identifier of the candidate background audio, and after displaying the editing interface, further comprising:
[0164] In response to an audio editing operation performed within the editing interface, the first-level audio editing item is displayed as selected, and an audio identifier of at least one candidate background audio is displayed in the third area. The audio editing operation is performed on the first-level audio editing item or on the fourth area of the editing interface. The fourth area is used to display the audio information of the background audio added in the video editing draft.
[0165] According to one or more embodiments of the present disclosure, Example 13 is the method according to Example 6, wherein a preview progress bar is further displayed in the first area, and the preview progress bar is used to indicate the current preview progress, and after displaying the editing interface, the method further includes:
[0166] In response to a progress adjustment operation on the video editing draft, during the execution of the progress adjustment operation, preview progress information corresponding to the progress adjustment operation is displayed at a preset position in the first area, and when the progress adjustment operation is completed, the preview progress information is canceled.
[0167] According to one or more embodiments of the present disclosure, Example 14 is a method according to any one of Examples 1-4, wherein generating a video editing effect according to the video editing template and the image material includes:
[0168] The image material is processed using the video editing template to generate a target video.
[0169] According to one or more embodiments of the present disclosure, Example 15 provides a video editing device, including:
[0170] an acquisition module, used to acquire a video editing template, and acquire image materials used to fill in the segments to be filled in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill in the segments to be filled in the video editing template that have not been filled by the user;
[0171] An effect generation module is used to generate a video editing effect according to the video editing template and the image material.
[0172] According to one or more embodiments of the present disclosure, Example 16 provides an electronic device, including:
[0173] one or more processors;
[0174] a memory for storing one or more programs,
[0175] When the one or more programs are executed by the one or more processors, the one or more processors implement the video editing method as described in any one of Examples 1-14.
[0176] According to one or more embodiments of the present disclosure, Example 14 provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video editing method as described in any one of Examples 1-14.
[0177] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0178] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0179] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video editing method, characterized in that: include: Acquire a video editing template, and acquire image materials for filling the segments to be filled in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill the segments to be filled in the video editing template that have not been filled by the user; A video editing effect is generated according to the video editing template and the image material.
2. The method according to claim 1, characterized in that The preset image material includes a first preset image material and / or a second preset image material, the first preset image material corresponds to the original material sample filled in the to-be-filled segment, and the second preset image material is a set image material.
3. The method according to claim 2, characterized in that The preset image material includes a first preset image material, and the acquiring of the image material for filling the to-be-filled segment in the video editing template includes: using the original material sample as a first preset image material corresponding to the original material sample; or A preset image identifier is added to the original material sample to obtain a first preset image material corresponding to the original material sample.
4. The method according to claim 1, characterized in that The step of obtaining image material for filling the segment to be filled in the video editing template includes: If the image material is obtained this time to generate a video editing draft, a first preset image material corresponding to the original material sample in the to-be-filled segment that has not been filled by the user is obtained as the preset image material for filling the to-be-filled segment that has not been filled by the user; If the image material is obtained this time to generate a target video, a second preset image material is obtained, and the second preset image material is used to replace the first preset image material filled in the to-be-filled segment that has not been filled by the user.
5. The method according to any one of claims 1 to 4, characterized in that: The video editing effect includes a preview screen, and the generating of the video editing effect according to the video editing template and the image material includes: A video editing draft is generated according to the video editing template and the image material, and a preview screen of the video clip in the video editing draft is displayed.
6. The method according to claim 5, characterized in that The preview screen showing the video clips in the video editing draft includes: An editing interface is displayed, and a preview screen of the video clip in the video editing draft is shown in a first area of the editing interface.
7. The method according to claim 6, characterized in that The editing interface also includes a second area and / or a third area, wherein at least one first-level editing item is displayed in the second area, and an object identifier of at least one object to be edited is displayed in the third area, and the at least one object to be edited corresponds to a first-level editing item that is in a selected state among the at least one first-level editing item.
8. The method according to claim 7, characterized in that After displaying the editing interface, the method further includes: In response to a first trigger operation for a target object identifier, the at least one primary editing item is canceled from being displayed, and at least one secondary editing item is displayed in the second area, where the at least one secondary editing item corresponds to the primary editing item in a selected state.
9. The method according to claim 8, characterized in that The first-level editing item in the selected state is a first-level sticker editing item, the at least one second-level editing item includes a sticker replacement control, and the sticker replacement control is used to trigger the display of the sticker panel. The method further includes at least one of the following: In response to a size adjustment operation on the sticker panel, adjusting the display size of the sticker panel; In response to a cancel display operation on the sticker panel, the sticker panel is canceled from display, and the cancel display operation acts on a non-control area outside the sticker panel and / or acts on a save control displayed in the sticker panel.
10. The method according to claim 7, characterized in that The first-level editing item in the selected state is a first-level video segment editing item, the object identifier is a video segment identifier of a video segment in the video editing draft, and after the display of the editing interface, the method further includes: In response to a second trigger operation on a video segment identifier of a target video segment, displaying a material filling interface, wherein the target video segment is a video segment formed by the preset image material, and at least one candidate image material is displayed in the material filling interface; In response to a material filling operation performed within the material filling interface, the preset image material corresponding to the target video clip is replaced with the candidate image material selected by the user.
11. The method according to claim 10, characterized in that After replacing the preset image material corresponding to the target video clip with the candidate image material selected by the user, the method further includes: The target video segment is updated based on the candidate image material selected by the user, and a preview screen of the updated target video segment is displayed in the first area of the editing interface.
12. The method according to claim 7, characterized in that The first-level editing item in the selected state is a first-level audio editing item, and the object identifier is an audio identifier of a candidate background audio. After the editing interface is displayed, the method further includes: In response to an audio editing operation performed within the editing interface, the first-level audio editing item is displayed as selected, and an audio identifier of at least one candidate background audio is displayed in the third area. The audio editing operation is performed on the first-level audio editing item or on the fourth area of the editing interface. The fourth area is used to display the audio information of the background audio added in the video editing draft.
13. The method according to claim 6, characterized in that The first area also displays a preview progress bar, which is used to indicate the current preview progress. After displaying the editing interface, the following further includes: In response to a progress adjustment operation on the video editing draft, during the execution of the progress adjustment operation, preview progress information corresponding to the progress adjustment operation is displayed at a preset position in the first area, and when the progress adjustment operation is completed, the preview progress information is canceled.
14. The method according to any one of claims 1 to 4, characterized in that: The generating of the video editing effect according to the video editing template and the image material comprises: The image material is processed using the video editing template to generate a target video.
15. A video editing device, characterized in that: include: an acquisition module, used to acquire a video editing template, and acquire image materials used to fill in the segments to be filled in the video editing template, wherein the image materials are used to form video segments of a video editing draft, and at least part of the image materials are preset image materials, and the preset image materials are used to fill in the segments to be filled in the video editing template that have not been filled by the user; An effect generation module is used to generate a video editing effect according to the video editing template and the image material.
16. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the video editing method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video editing method according to any one of claims 1 to 14 when executed.
Citation Information
Cited By
Video editing method and apparatus, electronic device, and storage medium
EP4773616A1
Video editing method and apparatus, electronic device, and storage medium
WO2025045235A1