Video editing method and apparatus, electronic device, and storage medium
By obtaining video editing templates and preset image materials, automatically fill the clips to be filled in the video editing template, solving the problem of single and difficult existing video editing methods, achieving more flexible and efficient video editing effect generation.
Patent Information
- Application Number
- PCT/CN2024/116130
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-31
- Filing Date
- 2024-08-30
- Publication Date
- 2025-03-06
AI Technical Summary
The existing video editing method is relatively single and has high editing difficulty. Users lack flexibility and auxiliary tools when filling the clips to be filled in video editing templates.
Provide a video editing method, by obtaining video editing templates and preset image materials, fill the clips to be filled in the template, and generate a video editing effect. The method includes obtaining a video editing template and image material, and automatically filling the unfilled clips to be filled by the user using the preset material, 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 preview effects or target videos without adding image materials to some clips to be filled.
Smart Images

Figure CN2024116130_06032025_PF_FP_ABST
Abstract
Description
Video editing method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese invention patent application entitled “Video Editing Method, Device, Electronic Device and Storage Medium” filed on August 31, 2023, with application number 2023111189603, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] 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
[0003] Currently, users can fill in the positions to be filled in a video editing template with video materials, and then edit and generate a video based on the filled video materials. However, the video editing method is relatively simple and difficult to edit.
[0004] Summary of the Invention
[0005] In a first aspect, an embodiment of the present disclosure provides a video editing method, comprising: obtaining a video editing template, and obtaining image materials for filling the to-be-filled segments in the video editing template, the image materials being used to form video segments of a video editing draft, at least part of the image materials being preset image materials, and the preset image materials being used to fill the to-be-filled segments in the video editing template that have not yet been filled by the user; generating a video editing effect based on the video editing template and the image materials.
[0006] In the second aspect, the embodiments of the present disclosure also provide a video editing device, including: an acquisition module, used to acquire a video editing template, and acquire 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; an effect generation module, used to generate video editing effects based on the video editing template and the image materials.
[0007] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein 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.
[0008] In a fourth aspect, an embodiment of the present disclosure further provides 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 embodiment of the present disclosure is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0010] FIG1 is a flow chart of a video editing method provided by an embodiment of the present disclosure;
[0011] FIG2 is a schematic diagram showing an editing interface provided by an embodiment of the present disclosure;
[0012] FIG3 is a schematic diagram showing another editing interface provided by an embodiment of the present disclosure;
[0013] FIG4 is a flow chart of another video editing method provided by an embodiment of the present disclosure;
[0014] FIG5 is a schematic diagram showing a secondary editing item of a primary video clip editing item provided by an embodiment of the present disclosure;
[0015] FIG6 is a schematic diagram showing a secondary editing item of a primary audio editing item provided by an embodiment of the present disclosure;
[0016] FIG7 is a schematic diagram showing a secondary editing item of a primary text editing item provided by an embodiment of the present disclosure;
[0017] FIG8 is a schematic diagram showing a secondary editing item of a primary filter editing item provided by an embodiment of the present disclosure;
[0018] FIG9 is a schematic diagram showing a secondary editing item of a primary sticker editing item according to an embodiment of the present disclosure;
[0019] FIG10 is a schematic diagram showing a material filling interface provided by an embodiment of the present disclosure;
[0020] FIG11 is a schematic diagram of size adjustment of a sticker panel provided by an embodiment of the present disclosure;
[0021] FIG12 is a structural block diagram of a video editing device provided by an embodiment of the present disclosure;
[0022] FIG13 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The following describes embodiments of the present disclosure in more detail 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 limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0024] 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.
[0025] As used herein, the term "including" and its variations are open-ended, 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," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0026] It should be noted that the concepts of "first" and "second" mentioned in this 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.
[0027] It should be noted that the modifications of "one" and "multiple" 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, they should be understood as "one or more".
[0028] 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.
[0029] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this 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.
[0030] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0031] As an optional but non-limiting implementation, in response to receiving a user's active request, 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. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0032] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0033] The embodiments of the present disclosure provide a video editing method, apparatus, electronic device, and storage medium to enrich video editing methods and reduce the editing difficulty when generating videos using templates.
[0034] The video editing method, apparatus, 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 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 some of the image materials are preset image materials. 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; and a video editing effect is generated based on 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 based on the image materials filled in each to-be-filled segment of the video editing template when the user has not yet added image materials to at least some of the to-be-filled segments. This can enrich the method of generating video editing effects and reduce the difficulty of generating video editing effects.
[0035] FIG1 is a flow chart 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, the device can be configured in 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 scene when the user has not yet filled in at least part of the to-be-filled segments in the template with image materials. For example, a scene in which a new video is generated or a video to be generated is previewed when image materials are added to only part of the to-be-filled segments in the template. As shown in FIG1 , the video editing method provided by this embodiment may include:
[0036] S101: Obtain a video editing template and obtain image materials for filling in unfilled segments in the video editing template. The image materials are used to form video segments in a video editing draft, and at least some of the image materials are preset image materials. The preset image materials are used to fill in unfilled segments in the video editing template that have not yet been filled by the user.
[0037] A video editing template can be a template used to edit and generate videos. A video editing template is equivalent to an incomplete editing draft. Compared with an ordinary video editing draft, a video editing template can specify that some video clips on the video editing track require the user to fill in image materials. A video editing template can contain editing information and may contain some materials that do not require the user to fill in. For example, there may be some video clips that are filled with materials that come with the template and do not require the user to fill in 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 can be rendered based on the editing effect of the video editing draft to obtain a preview screen. When generating a video, the image materials can be edited and processed based on the editing information to synthesize the video.
[0038] A video editing template may include one or more unfilled segments that require the user to fill in image material. A unfilled segment can be understood as a slot for the user to fill in image material. This image material can be considered to be image-based video material, such as video material or picture material. At least some of the unfilled segments in the video editing template are unfilled segments that the user has not yet filled in. In other words, a video editing template may include unfilled segments that the user has not yet filled in, and may or may not include unfilled segments that the user has already filled in with image material.
[0039] 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.
[0040] For example, when the user has not yet filled at least some of the to-be-filled segments in the video editing template with image materials (e.g., when the user has only filled some of the to-be-filled segments with image materials or when the user has not filled all of the to-be-filled segments 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 in response to the user's triggering operation for instructing to generate a video editing effect. This facilitates subsequent generation of a video editing effect based on the obtained video editing template and image materials.
[0041] Here, the triggering operation for instructing to generate a video editing effect is not limited. For example, the triggering operation for instructing to generate a video editing effect can be a preview operation for instructing to generate a video editing draft and displaying a preview screen of a video clip in the video editing draft, or a video generation operation for instructing to generate a target video.
[0042] S102: Generate a video editing effect according to the video editing template and the image material.
[0043] Specifically, after obtaining a video editing template and image materials used to fill the segments to be filled in the video editing template, a video editing effect can be generated according to the obtained video editing template and image materials.
[0044] When generating a video editing effect, for example, a video editing draft can be generated based on the acquired video editing template and image material, and a preview of the video clip in the video editing draft can be displayed. Alternatively, the image material filled in the video editing template can be edited based on the acquired editing information of the video editing template to synthesize the target video.
[0045] In this embodiment, if a video editing template contains unfilled segments that the user hasn't yet filled with image material, preset image material can be used to fill in the unfilled segments. This allows users to create video editing effects even when there are unfilled segments, without having to fill each segment with image material. This enriches the methods for creating video editing effects and reduces the difficulty of creating them.
[0046] In this embodiment, the generated video editing effect can be preset. Alternatively, the video editing effect can also be determined based on the trigger operation used by the user to indicate the generation of the video editing effect, which is not limited in this embodiment. The following describes the process of determining the video editing effect by taking the method of determining the video editing effect based on the trigger operation used by the user to indicate the generation of the video editing effect as an example. The trigger operation used by the user to indicate the generation of the 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 the video editing effect is different, different video editing effects can be generated.
[0047] In some embodiments, when acquiring image materials to generate a video editing draft (such as when the triggering operation performed by the user to indicate the generation of a video editing effect is a preview operation), after acquiring the video editing template and the image materials used to fill the segments to be filled in the video editing template, the video editing draft can be generated based on the acquired video editing template and image materials. A preview screen of the video segments in the video editing draft can also be displayed. For example, the rendered preview screen 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. The process of generating a video editing effect based on the video editing template and the image material includes: generating a video editing draft based on the video editing template and the image material, and displaying a preview screen of the video segment in the video editing draft.
[0048] In the above embodiment, the display method of the preview screen is not limited. For example, the preview screen obtained by rendering each image material can be displayed in the editing interface. For example, the preview screen obtained by rendering each image material is displayed in the first area 20 of the editing interface, as shown in Figure 2, so as to meet the user's preview needs and editing needs at the same time. At this time, optionally, the display of the preview screen of the video clip in the video editing draft includes: displaying the 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.
[0049] The editing interface can be an interface for users to edit video clips in a video editing draft. The editing interface can include an area for displaying a preview screen of the video clip in the video editing draft, namely the first area 20. Optionally, as shown in Figure 2, a preview progress bar 21 is also displayed in the first area 20. The preview progress bar 21 is used to indicate the current preview progress. 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 it 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 it can be a progress bar corresponding to the video editing draft. The following description takes the preview progress bar 21 as the progress bar corresponding to the video editing draft as an example.
[0050] Optionally, the editing interface further includes a second area and / or a third area. The second area displays at least one first-level editing item. The third area displays an object identifier of at least one object to be edited. The at least one object to be edited corresponds to a selected first-level editing item among the at least one first-level editing item.
[0051] As shown in Figure 2, the editing interface may also include a second area 22 and / or a third area 23. The second area 22 may be an area within the editing interface for displaying editing items. These editing items may include primary editing items and / or secondary editing items, which can be used to edit video clips in the video editing draft. For example, different primary editing items can 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. These objects to be edited can be understood as objects available for the user to edit. They may include objects already added to the video editing template and / or candidate objects for the user to select and add to the video editing template. The type of object to be edited is not limited. For example, the object to be edited may include a video clip in the video editing draft, candidate background audio materials available for the user to select, text, filters, or stickers already added to the video editing draft, and so on. The object identifier of the object to be edited can be considered to be the identifier of the object to be edited, such as the video clip identifier of a video clip, the audio identifier of a candidate background audio, a text identifier, a filter identifier, and / or a sticker identifier.
[0052] For example, when the editing interface is switched to in response to a preview operation, a preview screen of the video clip in the 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 is displayed in the second area 22 of the editing interface, and a certain first-level editing item can be displayed as selected. The object identifier of the object to be edited corresponding to the first-level editing item in the selected state is displayed in the third area 23 of the editing interface. For example, the first-level video clip editing item can be displayed as selected, and the video clip identifier of at least one video clip in the video editing draft can be displayed in the third area 23, as shown in FIG2 .
[0053] In this embodiment, the user can adjust the preview progress by performing a progress adjustment operation. Considering that the user generally focuses their gaze on the first area 20 during the progress adjustment operation, preview progress information 24 indicating the progress adjustment operation is currently being performed can be further displayed at a preset position in the first area 20, as shown in FIG3 . This allows the user to more quickly adjust to the desired preview progress. The preview progress information 24 added to the first area 20 can be removed when the progress adjustment operation is completed.
[0054] At this time, optionally, after displaying the editing interface, the method further 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. When the progress adjustment operation is completed, canceling the display of the preview progress information.
[0055] The preview progress information may be information about the current preview progress that the progress adjustment operation currently indicates to adjust to. For example, the current duration that the progress adjustment operation currently indicates to adjust to. The preview progress information may further include the total duration of the video editing draft. The current duration may be understood as the time node corresponding to the current preview progress in the video editing draft. There is no limit to the execution method of the progress adjustment operation, such as the progress adjustment operation may be performed by dragging the progress indicator in the preview progress bar. The progress indicator in the preview progress bar may 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.
[0056] It is understood that preview progress information may or may not be displayed outside the first area. When preview progress information is displayed outside the first area, the preview progress information displayed outside the first area may be maintained during the progress adjustment process, as shown in FIG3 . The preview progress information displayed outside the first area may also be canceled. When the progress adjustment process is completed, the preview progress information displayed outside the first area may be redisplayed.
[0057] 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 the image material for filling the segment to be filled in the video editing template, the acquired image material can be edited based on the editing information of the video editing template. In this way, a target video is generated so that the user can view, save or publish the generated target video. At this time, optionally, the generation of a video editing effect based on the video editing template and the image material includes: using the video editing template to process the image material to generate a target video. The target video can be a video that is finally generated based on the image material added in 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 in the video editing template, such as the operation of triggering the export control 25 (as shown in FIG. 2 ) displayed in the material filling interface or editing interface.
[0058] In this embodiment, when a video editing template contains unfilled segments to which the user has not yet added image materials, the current application can add preset image materials to the unfilled segments. In this way, even if the user has not added image materials to all the unfilled segments, it is still possible to generate a video editing draft based on the video editing template and preview the video segments in the generated video editing draft, or generate a target video based on the video editing template.
[0059] In some embodiments, the preset image material includes a first preset image material and / or a second preset image material, wherein 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.
[0060] The original material sample can 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 can be a preset image material corresponding to the original material sample, such as a preset image material derived based on the original material sample. The second preset image material can be a pre-set image material that can be used to fill different segments to be filled.
[0061] In the above embodiment, 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 yet been filled with image materials by the user. The preset image materials filled can be set as needed.
[0062] For example, for a segment to be filled that has not yet been filled with image material by the user in a video editing template, the original material sample added to the segment to be filled can be determined, and then a first preset image material corresponding to the original material sample can be obtained and filled into the segment to be filled.
[0063] For another example, a second preset image material can be pre-set to be added to each different segment to be filled. When obtaining image materials for filling the segment to be filled in the video editing template, the pre-set second preset image material can be obtained and filled into the segment to be filled that the user has not yet filled. For example, 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 can be replaced with the second preset image material.
[0064] In this embodiment, the first preset image material used to fill a segment to be filled that has not yet been filled with image material by a user can be obtained based on a sample of the original material in the segment to be filled. For example, the sample of the original material in the filled segment can be used as the first preset image material to be filled in the segment to be filled. A preset image identifier can also be added to the image screen of the original material sample to distinguish it from the image material filled by the user, making it easier for the user to distinguish between the preset image material in the video editing template and the image material added by the user. In this case, optionally, the preset image material includes the first preset image material. Obtaining the image material used to fill the segment to be filled in the video editing template includes: using the original material sample as the first preset image material corresponding to the original material sample. Alternatively, adding a preset image identifier to the original material sample to obtain the first preset image material corresponding to the original material sample. The specific style of the preset image identifier can be set as needed and is not limited in this embodiment. Exemplarily, the preset image identifier can be a watermark identifier used to indicate that the image material is a preset image material.
[0065] In some embodiments, the role of the acquired image material may be ignored (e.g., the specific trigger operation used by the user to indicate the generation of the video editing effect may be ignored), and it may be preset whether to add the first preset image material or the second preset image material to the to-be-filled segment to which the user has not yet added the image material.
[0066] In some embodiments, the role of the acquired image material may also be considered. Based on the role of the acquired image material, determine 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 for filling 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. The first preset image material is used 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, 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.
[0067] 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.
[0068] When it is necessary to obtain image materials for filling the to-be-filled segments in the video editing template to generate a 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 to 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 material is obtained to generate the target video this time (that is, the first preset image material has been added to the to-be-filled segments that the user has not yet filled), 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 material is obtained to generate the target video this time (that is, the to-be-filled segments that the user has not yet filled are still filled with the original material samples), 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.
[0069] 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. The second transparency is greater than or equal to the third transparency. Optionally, the second transparency may be greater than 0, and the third transparency may be 0.
[0070] The video editing method provided in this embodiment obtains a video editing template 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 the video editing draft, and at least some of the image materials are preset image materials. 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. A video editing effect is generated based on the video editing template and the image materials. By adopting the above-mentioned technical solution, this embodiment supports the generation of video editing effects based on the image materials filled in each to-be-filled segment of the video editing template when the user has not yet added image materials to at least some of the to-be-filled segments. This can enrich the method of generating video editing effects and reduce the difficulty of generating video editing effects.
[0071] FIG4 is a flow chart of another video editing method provided by 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, the method further includes: in response to a first trigger operation for the target object identifier, canceling the display of the 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 the selected state.
[0072] Accordingly, as shown in FIG4 , the video editing method provided in this embodiment may include the following steps: S201: obtaining a video editing template and obtaining image materials for filling in segments to be filled in the video editing template, wherein the image materials are used to form video segments in a video editing draft, and at least some of the image materials are preset image materials, which are used to fill in segments to be filled in the video editing template that have not yet been filled by the user. S202: generating a video editing effect based on the video editing template and the image materials. S203: displaying an editing interface and displaying a preview of the video segments in the video editing draft in a first area of the editing interface, wherein the editing interface further includes a second area and / or a third area, wherein the second area displays at least one primary editing item, and the third area displays an object identifier of at least one object to be edited, wherein the at least one object to be edited corresponds to a selected primary editing item in the at least one primary editing item. S204: in response to a first trigger operation on the target object identifier, canceling the display of the at least one primary editing item and displaying at least one secondary editing item in the second area, wherein the at least one secondary editing item corresponds to the selected primary editing item.
[0073] The first trigger operation may be a trigger operation for triggering an object identifier 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 may be an operation for triggering a video clip identifier 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 may be an operation for triggering an audio identifier 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 may be an operation for triggering a text identifier 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 may be an operation for triggering a filter identifier 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 may be an operation for triggering a sticker identifier of a sticker in the third area.
[0074] The target object identifier can be understood as the object identifier triggered by the first trigger operation. It 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.
[0075] Specifically, upon receiving a first trigger operation for an object identifier displayed in the third area, the first-level editing item in the second area that is currently selected may be determined, and all first-level editing items displayed in the second area may be canceled. Secondary editing items of the selected first-level editing item may also 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.
[0076] For example, as shown in FIG5 , when the selected primary edit item is a primary video clip edit item, the video clip identifier of the video clip in the video edit draft can be displayed in the third area. When it is detected that the user triggers the video clip identifier of a video clip displayed in the third area (using the triggering of video clip identifier 2 as an example in FIG5 ), at least one primary edit item displayed in the second area can be switched to a secondary edit item of the primary video clip edit item. In addition, the video clip identifier can be further displayed as selected.
[0077] As shown in Figure 6, when the selected first-level editing item is a first-level audio editing item, the audio identifier of at least one 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 (using the triggering audio identifier 1 as an example in Figure 6), the 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 audio editing item. In addition, the audio identifier can be further displayed in a selected state.
[0078] As shown in Figure 7, when the first-level editing item in the selected state is a first-level text editing item, the text identifier 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 identifier of a certain text displayed in the third area (taking the triggering text identifier 2 as an example in Figure 7), the 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 text editing item, and the text identifier can be further displayed as a selected state. In addition, when displaying the text identifier of the text added in the video editing template, a text adding control 70 can be further displayed to facilitate the user to add new text to the video editing template by triggering the text adding control 70.
[0079] As shown in Figure 8 , when the selected primary edit item is a primary filter edit item, the filter identifier of at least one candidate filter available for user selection can be displayed in the third area. When it is detected that the user has triggered the filter identifier of a first candidate filter displayed in the third area (using triggering filter identifier 2 as an example in Figure 8 ), the at least one primary edit item displayed in the second area can be switched to a secondary edit item of the primary filter edit item, and the filter identifier can be further displayed as selected.
[0080] As shown in Figure 9, when the selected first-level editing item is a first-level sticker editing item, the sticker icon of at least one sticker added in the video editing draft can be displayed in the third area. When it is detected that the user triggers the sticker icon of a sticker displayed in the third area (using the triggering sticker icon 3 as an example in Figure 9), the 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 icon can be further displayed as selected.
[0081] In some embodiments, when a trigger operation (e.g., a first trigger operation) is received for a video segment identifier of a video segment formed by a user-filled image material, a second-level editing item of the first-level video segment editing item may 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 identifier of a video segment formed by a preset image material, a material filling interface may be switched to for the user to fill the image material in the to-be-filled segment corresponding to the preset image material.
[0082] At this point, optionally, in response to a second triggering operation on the video clip identifier of the target video clip, a material filling interface is displayed. The target video clip is a video clip formed by the preset image material, and the material filling interface displays at least one candidate image material. In response to the 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.
[0083] Among them, the second trigger operation can be a trigger operation for instructing the display of the material filling interface, which can be a trigger operation for a video clip formed by a preset image material. For example, an operation for triggering the preview screen of a video clip formed by a preset image material displayed in the first area, or an operation for triggering the 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 way the user selects the image material is not limited, such as the user can manually select a certain image material, or, through a certain trigger operation, instruct the current application to automatically select the image material based on the preset selection rules.
[0084] For example, when a second trigger operation is received for a video clip formed by a preset image material, the current interface can be switched from the editing interface to the material filling interface, where at least one candidate image material is displayed in the material filling interface. Receiving a second trigger operation for a video clip formed by a preset image material can be detecting a preview of the video clip formed by the preset image material displayed in the first area of the editing interface when the user triggers it, or detecting a video clip identifier of the video clip formed by the preset image material displayed in the third area of the editing interface when the user triggers it. Furthermore, at least one to-be-filled segment in the video editing template can be further displayed, and the to-be-filled segment containing the second image material can be displayed as selected, as shown in FIG10 . Thus, when a user's material filling operation is received, 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 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.
[0085] Optionally, after replacing the preset image material corresponding to the target video clip with the candidate image material selected by the user, the method 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.
[0086] In the above embodiment, 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 by performing a preview operation to view the preview screen of the video segment formed by the selected candidate image material.
[0087] For example, when a user's preview operation is received, such as when it is detected that the user triggers the preview control 100 displayed in the material filling interface (as shown in FIG10 ), 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 preview screen of the video editing draft can be displayed in the first area with the time node corresponding to the starting point of the updated target video segment in the video editing draft as the starting point. In this way, the user can quickly preview the effect of the candidate image material filled in this time on the video segment.
[0088] In some embodiments, the selected primary edit item is a primary sticker edit item, the at least one secondary edit item includes a sticker replacement control, and the sticker replacement control is used to trigger the display of a 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, or in response to a cancel display operation on the sticker panel, canceling the display of the sticker panel. 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.
[0089] The resize operation can be a triggering operation for instructing to adjust the size of the sticker panel. Exemplarily, the resize operation can include a first resize operation for instructing to reduce the size of the sticker panel and / or a second resize operation for instructing to increase the size of the sticker panel. The first resize operation can, for example, be an operation of sliding in a first direction on the top area of the sticker panel, or an operation of adjusting a sticker displayed in the first area of the editing interface. This operation can be performed when the sticker panel is displayed at a larger size (e.g., the first size). The second resize operation can, for example, be an operation of sliding in a second direction on the top area of the sticker panel, and can be performed when the sticker panel is displayed at a smaller size (e.g., the second size). The cancel display operation can be a triggering operation for instructing to cancel 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 a save control displayed in the sticker panel. The second size can be smaller than the first size. Optionally, when the sticker panel is displayed at the first size, there is an overlap between the sticker panel and the first area. When the sticker panel is displayed at the second size, there is no overlap between the sticker panel and the first area to avoid obstructing the preview image displayed in the first area. The first direction and the second direction can 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.
[0090] In the above embodiment, when it is detected that the user triggers the sticker identifier 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. Thus, a preview screen containing the sticker is displayed in the first area 20 of the editing interface, and a secondary editing item of the primary sticker editing item can be displayed in the second area 22. The secondary editing item may include, for example, a replacement control 90, as shown in Figure 9 (the sticker is not shown in Figure 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. For example, the sticker panel 110 is displayed in the first size or the second size, and the sticker identifier of at least one candidate sticker (i.e., the candidate sticker identifier) is displayed in the sticker panel 110, as shown in Figure 11.
[0091] After the sticker panel is displayed, the user can trigger a sticker identifier of a candidate sticker in the sticker panel to replace the sticker corresponding to the sticker identifier triggered by the user in the third area with the candidate sticker. The user can also adjust the display size of the sticker panel by performing a size adjustment operation.
[0092] For example, as shown in FIG11 , when the sticker panel is displayed at a first size, if a user is detected sliding in a first direction on the top area of the sticker panel, the sticker panel can be reduced from the first size to a second size. Alternatively, when the sticker panel is displayed at a first size, if a user is detected adjusting 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's adjustment of the sticker. When the sticker panel is displayed at a second size, if a user is detected sliding in a second direction on the top area of the sticker panel, the sticker panel can be increased from the second size to the first size.
[0093] After displaying the sticker panel 110, the user can also cancel the display of the sticker panel 110 by performing a cancel operation. For example, when it is detected that the user triggers a 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 (as shown in FIG. 11 ), the sticker panel 110 can be canceled.
[0094] In some embodiments, the selected primary editing item is a primary audio editing item, and the object identifier is an audio identifier of a candidate background audio item. After displaying the editing interface, the method further includes: in response to an audio editing operation performed within the editing interface, displaying the primary audio editing item as selected and displaying the audio identifier of at least one candidate background audio item in the third area. The audio editing operation is performed on the primary audio editing item or within a fourth area of the editing interface, and the fourth area is used to display audio information of the background audio added to the video editing draft.
[0095] 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 the editing interface, or an operation for triggering a fourth area in the editing interface. The fourth area may be an area in the editing interface for displaying audio information of background audio added to a video editing draft.
[0096] Specifically, when a user performs an audio editing operation (e.g., when a user triggers the primary audio editing item 26 (as shown in FIG. 2 ) displayed in the second area 22 of the editing interface, or triggers the fourth area 27 (as shown in FIG. 2 ) of the editing interface), the audio identifier of at least one candidate background audio can be displayed in the third area 23 of the editing interface, as shown in FIG. 6 . This facilitates the user to adjust the audio added to the video editing template.
[0097] The video editing method provided in this embodiment switches the primary editing item displayed in the editing interface to the secondary editing item of the user-triggered primary editing item when the user triggers a specific editing item. This method enriches the display of secondary editing items, avoids obstruction of other pages displayed in the editing interface, and provides convenience for users to edit video drafts.
[0098] FIG12 is a block diagram of the structure of a video editing device provided by an 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 tablet computer. It 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 to-be-generated video when only part of the to-be-filled segments in the template have been added with image materials. As shown in FIG12 , the video editing device provided by this embodiment may include: an acquisition module 1201 and an effect generation module 1202. The acquisition module 1201 is used to acquire a video editing template and acquire image materials for filling the to-be-filled segments 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. The preset image materials are used to fill the to-be-filled segments in the video editing template that the user has not yet filled. The effect generation module 1202 is used to generate a video editing effect based on the video editing template and the image materials.
[0099] The video editing device provided by this embodiment obtains a video editing template through an acquisition module, and obtains image materials for filling the to-be-filled segments 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 to-be-filled segments in the video editing template that have not yet been filled by the user. The video editing effect is generated according to the video editing template and the image materials by the 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 yet added image materials to at least part of the to-be-filled segments. In this way, the generation method of video editing effects can be enriched and the difficulty of generating video editing effects can be reduced.
[0100] In the above solution, the preset image material may include a first preset image material and / or a second preset image material, wherein 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.
[0101] In the above solution, the preset image material includes a first preset image material, and the acquisition module 1201 can be configured to: use the original material sample as the first preset image material corresponding to the original material sample. Alternatively, a preset image identifier is added to the original material sample to obtain the first preset image material corresponding to the original material sample.
[0102] In the above solution, the acquisition module 1201 may be configured to: if the image material is acquired to generate a video editing draft, acquire a first preset image material corresponding to the original material sample in the unfilled segment that the user has not yet filled, as the preset image material for filling the unfilled segment that the user has not yet filled. If the image material is acquired to generate a target video, acquire a second preset image material and use the second preset image material to replace the first preset image material in the unfilled segment that the user has not yet filled.
[0103] In the above solution, 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.
[0104] 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.
[0105] In the above scheme, the editing interface may also include a second area and / or a third area, wherein the second area may display at least one first-level editing item, and the third area may display an object identifier of at least one object to be edited, and the at least one object to be edited corresponds to the first-level editing item that is in a selected state among the at least one first-level editing item.
[0106] 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 for the target object identifier after the editing interface is displayed, and the at least one second-level editing item corresponds to the first-level editing item in the selected state.
[0107] 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, which can be used to trigger the display of a sticker panel. The video editing device provided in this embodiment may also include: a size adjustment module for adjusting the display size of the sticker panel in response to a size adjustment operation on the sticker panel; a display cancellation module for canceling the display of the sticker panel in response to a display cancellation operation on the sticker panel, and the display cancellation operation acts on a non-control area outside the sticker panel, and / or acts on a save control displayed in the sticker panel.
[0108] 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 can also include: an interface display module, which is used to respond to the second trigger operation of 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.
[0109] Furthermore, the video editing device provided in this embodiment may also include: a preview module, which is used to update the target video clip based on the candidate image material selected by the user after replacing the preset image material corresponding to the target video clip with the candidate image material selected by the user, and display a preview screen of the updated target video clip in the first area of the editing interface.
[0110] 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 in response to an audio editing operation acting on the editing interface after the editing interface is displayed, and display the audio identifier of at least one candidate background audio in the third area in response to an audio editing operation acting on 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. The fourth area is used to display the audio information of the background audio added in the video editing draft.
[0111] 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.
[0112] 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.
[0113] 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 fully described in this embodiment, please refer to the video editing method provided in any embodiment of the present disclosure.
[0114] Reference is now made to FIG13 , which illustrates a schematic diagram of the structure of an electronic device (e.g., a terminal device) 1300 suitable for implementing 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, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG13 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.
[0115] As shown in FIG13 , the electronic device 1300 may include a processing device (e.g., a central processing unit, a graphics processing unit, 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 into a random access memory (RAM) 1303. Various programs and data required for the operation of the electronic device 1300 are also stored in the RAM 1303. 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.
[0116] Typically, the following devices may be connected to the I / O interface 1305: an input device 1306 including, for example, a touch screen, a touchpad, 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 FIG13 illustrates the electronic device 1300 with various devices, it should be understood that not all of the illustrated devices are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0117] 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 includes a 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 performed.
[0118] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, 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 that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.
[0119] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can 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 later developed network.
[0120] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0121] 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 the 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.
[0122] 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 stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the 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).
[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a module does not, in some cases, limit the unit itself.
[0125] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and 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 chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0126] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.
[0127] According to one or more embodiments of the present disclosure, Example 1 provides a video editing method, including: obtaining a video editing template, and obtaining image materials for filling the to-be-filled segments in the video editing template, the image materials being used to form video segments of a video editing draft, at least part of the image materials being preset image materials, and the preset image materials being used to fill the to-be-filled segments in the video editing template that have not yet been filled by the user; generating a video editing effect based on the video editing template and the image materials.
[0128] 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.
[0129] According to one or more embodiments of the present disclosure, Example 3 is based on the method described in Example 2, wherein the preset image material includes a first preset image material, and obtaining 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.
[0130] According to one or more embodiments of the present disclosure, Example 4 is based on the method described in Example 1, and the obtaining of image materials for filling the to-be-filled segment in the video editing template includes: if the image material is obtained this time to generate a video editing draft, then obtaining a first preset image material corresponding to the original material sample in the to-be-filled segment that the user has not yet filled, as the preset image material for filling the to-be-filled segment that the user has not yet filled; if the image material is obtained this time to generate a target video, then obtaining a second preset image material, and using the second preset image material to replace the first preset image material filled in the to-be-filled segment that the user has not yet filled.
[0131] According to one or more embodiments of the present disclosure, Example 5 is the method according to any one of Examples 1-4, wherein the video editing effect includes a preview screen, and generating the video editing effect based on the video editing template and the image material includes:
[0132] 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.
[0133] According to one or more embodiments of the present disclosure, Example 6 is based on the method described in Example 5, and the display of 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 of the editing interface.
[0134] 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.
[0135] According to one or more embodiments of the present disclosure, Example 8 is based on the method described in Example 7, and after the display of the editing interface, it also includes: in response to a first trigger operation identified for the target object, canceling the display of the at least one first-level editing item, and displaying at least one second-level editing item in the second area, and the at least one second-level editing item corresponds to the first-level editing item in the selected state.
[0136] According to one or more embodiments of the present disclosure, Example 9 is based on the method described in Example 8, wherein 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.
[0137] According to one or more embodiments of the present disclosure, Example 10 is based on the method described in Example 7, wherein the first-level editing item in the selected state is a first-level video clip editing item, and the object identifier is the video clip identifier of the video clip in the video editing draft. After displaying the editing interface, it also includes: in response to a second trigger operation for the video clip identifier of the target video clip, a material filling interface is displayed, 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; in response to the material filling operation acting in 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.
[0138] According to one or more embodiments of the present disclosure, Example 11 is based on the method described in Example 10, and 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: 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.
[0139] According to one or more embodiments of the present disclosure, Example 12 is based on the method described in Example 7, wherein the first-level editing item in the selected state is a first-level audio editing item, and the object identifier is the audio identifier of the candidate background audio. After the editing interface is displayed, it also includes: in response to an audio editing operation acting within the editing interface, the first-level audio editing item is displayed as a selected state, and at least one audio identifier of the candidate background audio is displayed in the third area, 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.
[0140] According to one or more embodiments of the present disclosure, Example 13 is based on the method described in Example 6, wherein a preview progress bar is also displayed in the first area, and the preview progress bar is used to indicate the current preview progress. After the editing interface is displayed, it also includes: in response to a progress adjustment operation on the video editing draft, 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 when the progress adjustment operation is completed, the preview progress information is canceled.
[0141] 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 based on the video editing template and the image material includes: using the video editing template to process the image material to generate a target video.
[0142] According to one or more embodiments of the present disclosure, Example 15 provides a video editing device, including: an acquisition module for acquiring a video editing template, and acquiring 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; an effect generation module for generating video editing effects based on the video editing template and the image materials.
[0143] According to one or more embodiments of the present disclosure, Example 16 provides an electronic device comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a video editing method as described in any one of Examples 1-14.
[0144] 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 described in any one of Examples 1-14.
[0145] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. 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 the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0146] 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 have been 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.
[0147] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A video editing method, comprising: 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, 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 to-be-filled segment, and the second preset image material is a set image material.
3. The method according to claim 2, wherein the preset image material comprises a first preset image material, and the acquiring of the image material for filling the to-be-filled segment in the video editing template comprises: 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, wherein the acquiring of image material for filling the to-be-filled segment in the video editing template comprises: 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 the target video, then the 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, wherein the video editing effect comprises a preview screen, and the generating of the video editing effect according to the video editing template and the image material comprises: 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, wherein the step of displaying a preview screen of the video clip in the video editing draft comprises: 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, wherein the editing interface further includes a second area and / or a third area, the second area displays at least one first-level editing item, the third area displays an object identifier of at least one object to be edited, 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, wherein after displaying the editing interface, it further comprises: 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, wherein the selected primary editing item is a primary sticker editing item, the at least one secondary editing item comprises a sticker replacement control, the sticker replacement control is used to trigger display of a sticker panel, and the method further comprises 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, wherein the selected primary editing item is a primary video segment editing item, the object identifier is a video segment identifier of a video segment in the video editing draft, and after displaying the editing interface, further comprising: 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, wherein after replacing the preset image material corresponding to the target video clip with the candidate image material selected by the user, further comprising: 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, wherein the selected primary editing item is a primary audio editing item, the object identifier is an audio identifier of a candidate background audio, and after displaying the editing interface, further comprising: In response to an audio editing operation performed within the editing interface, the primary audio editing item is displayed as a selected state, and an audio identifier of at least one candidate background audio is displayed in the third area, wherein the audio editing operation is performed on the primary audio editing item or on the fourth area of the editing interface, and the fourth area is used to display the audio of the background audio added in the video editing draft. information.
13. The method according to claim 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 comprises: 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, wherein generating a 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, comprising: 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, comprising: 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, wherein the computer program is executed by the at least one processor so that the at least one processor can execute the claim. Request a video editing method as described in any one of 1-14.
17. A computer-readable storage medium storing computer instructions, wherein 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
Patent Citations
Video editing method and device, electronic equipment and storage medium
CN119545100A
Short video production method and system
CN110266971A
Video display and processing method, device and system, equipment and medium
CN112579826A
Video generation method and device, electronic equipment and storage medium
CN112911379A
Video editing method and device, electronic equipment and storage medium
CN115695907A