Video editing method and device, electronic equipment and storage medium
By creating editing subtasks for video editing tasks and recording operation instructions in the editing interface, the problems of high complexity and high error frequency in existing video editing technologies are solved, realizing intuitive display and efficient editing of video.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2026-04-10
AI Technical Summary
In existing technologies, beat-matching video editing is only suitable for matching background music to videos of specific actions. It is complex to edit, prone to errors, requires certain skills to use editing tools, and has low editing efficiency.
By creating editing subtasks for video editing tasks, the original video footage is acquired and the editing track is presented in the editing interface. The instructions for editing operations are recorded and displayed, and the editing results are generated. The video content is split using different editing subtasks, simplifying the editing process.
It provides an intuitive display and simplified operation for video editing, improves editing efficiency, allows for re-editing in case of errors, and reduces complexity.
Smart Images

Figure CN117998163B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to video processing technology, and in particular, to a video editing method and device, an electronic device, and a storage medium. BACKGROUND
[0002] With the continuous development of technology, various short video software is increasingly available, and short video software can be selected for creation and editing to generate a video.
[0003] In related solutions, a video is matched with background music in a card point video manner, or a video editing tool is used to edit the obtained video. However, the card point video manner is only suitable for matching a specified action video with appropriate background music, and can usually only satisfy a small part of video creation. In addition, the use of a video editing tool has high editing complexity, requires certain editing skills for video creation, has low editing efficiency, and is prone to editing errors in the editing process, which may need to be re-edited once an error occurs. SUMMARY
[0004] The present disclosure provides a video editing method and device, an electronic device, and a storage medium to intuitively display a video structure and guide a creation process in a component manner, thereby simplifying editing operations.
[0005] In a first aspect, the embodiments of the present disclosure provide a video editing method, and the method comprises:
[0006] creating at least one editing subtask for a video editing task;
[0007] in response to a first operation for triggering a target editing subtask, obtaining original video material and presenting an editing interface of the target editing subtask, wherein the editing interface of the target editing subtask presents an editing track, a video track segment formed based on the original video material is placed on a video track in the editing track, and the at least one editing subtask includes a target video editing subtask;
[0008] during editing of the target editing subtask, recording an editing operation triggered in the editing interface and displaying an indication of the editing operation in the editing track;
[0009] in response to a second operation for confirming completion of the target editing subtask, generating an editing result of the target editing subtask based on recording information of the editing operation and the original video material;
[0010] generating a target video as an editing result of the video editing task based on editing results of each editing subtask of the video editing task, and in the target video, the original video material is presented according to an editing effect corresponding to the editing operation.
[0011] In a second aspect, the embodiments of the present disclosure further provide a video editing device, the device comprising:
[0012] a creating module configured to create at least one editing subtask for a video editing task;
[0013] an editing obtaining module configured to, in response to a first operation for triggering a target editing subtask, obtain an original video material and present an editing interface of the target editing subtask, wherein the editing interface of the target editing subtask presents an editing track, and a video track segment formed based on the original video material is placed on a video track in the editing track, and the at least one editing subtask comprises the target video editing subtask;
[0014] an editing recording module configured to, in an editing process of the target editing subtask, record an editing operation triggered in the editing interface and display an indication of the editing operation in the editing track;
[0015] an editing confirming module configured to, in response to a second operation for confirming completion of the target editing subtask, generate an editing result of the target editing subtask based on the recording information of the editing operation and the original video material;
[0016] a video generating module configured to generate a target video as an editing result of the video editing task based on the editing result of each editing subtask of the video editing task, and present the original video material in the target video according to an editing effect corresponding to the editing operation.
[0017] In a third aspect, the embodiments of the present disclosure further provide an electronic device, the electronic device comprising:
[0018] one or more processors;
[0019] a storage device configured to store one or more programs,
[0020] when the one or more programs are executed by the one or more processors, the one or more processors implement the video editing method according to any one of the above embodiments.
[0021] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium containing computer executable instructions, when executed by a computer processor, for performing the video editing method according to any one of the above embodiments.
[0022] The embodiments of the present disclosure create at least one editing subtask for a video editing task, in response to a first operation for triggering a target editing subtask, acquire original video materials and present an editing interface of the target editing subtask, and intuitively reflect a video content framework to be edited and generated through various editing subtasks; during the editing process of the target editing subtask, record editing operations triggered in the editing interface and display indication marks of the editing operations in an editing track, split the editing generation of the entire video by using different editing subtasks, guide the completion of video editing by using different editing subtasks, simplify the complexity of video editing, and even if editing errors occur during the editing process, the editing subtask with errors can be re-edited, thereby improving the efficiency of video editing generation.
[0023] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0024] The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals refer to the same or similar elements. It should be understood that the drawings are schematic, and the original and elements are not necessarily drawn according to the scale.
[0025] Figure 1 is a video editing method flowchart provided by an embodiment of the present disclosure;
[0026] Figure 2 is a relationship diagram between a video outline and an editing subtask corresponding video editing component provided by an embodiment of the present disclosure;
[0027] Figure 3 is a diagram of an editing interface of a video editing task displaying an editing subtask corresponding video editing component provided by an embodiment of the present disclosure;
[0028] Figure 4 is a diagram of an editing interface of a video editing task displaying an editing subtask corresponding video editing component provided by an embodiment of the present disclosure;
[0029] Figure 5 is another video editing method flowchart provided by an embodiment of the present disclosure;
[0030] Figure 6 is a flowchart of displaying an editing subtask corresponding video editing component from an editing template of a video editing task provided by an embodiment of the present disclosure;
[0031] Figure 7FIG. 1 is a schematic diagram of an operation menu of a video editing component corresponding to a display editing subtask provided by an embodiment of the present disclosure;
[0032] Figure 8 FIG. 2 is a schematic diagram of adding a video editing component corresponding to an editing subtask in an editing interface of a video editing task provided by an embodiment of the present disclosure;
[0033] Figure 9 FIG. 3 is a schematic diagram of an editing subtask editing mode selection window after a trigger control in an operation menu corresponding to an editing subtask is clicked provided by an embodiment of the present disclosure;
[0034] Figure 10 FIG. 4 is a general flowchart of jumping from an editing interface of a video editing task to an editing interface of an editing subtask provided by an embodiment of the present disclosure;
[0035] Figure 11 FIG. 5 is a flowchart of video editing in an editing subtask provided by an embodiment of the present disclosure;
[0036] Figure 12 FIG. 6 is a flowchart of jumping from an editing interface of a video editing task to an editing interface of an editing subtask provided by an embodiment of the present disclosure;
[0037] Figure 13 FIG. 7 is an interface flow schematic diagram of jumping from an editing interface of a video editing task to an editing interface of an editing subtask provided by an embodiment of the present disclosure;
[0038] Figure 14 FIG. 8 is another interface flow schematic diagram of jumping from an editing interface of a video editing task to an editing interface of an editing subtask provided by an embodiment of the present disclosure;
[0039] Figure 15 FIG. 9 is yet another interface flow schematic diagram of jumping from an editing interface of a video editing task to an editing interface of an editing subtask provided by an embodiment of the present disclosure;
[0040] Figure 16 FIG. 10 is another flowchart of video editing in an editing subtask provided by an embodiment of the present disclosure;
[0041] Figure 17 FIG. 11 is yet another flowchart of jumping from an editing interface of a video editing task to an editing interface of an editing subtask provided by an embodiment of the present disclosure;
[0042] Figure 18 FIG. 12 is yet another interface flow schematic diagram of jumping from an editing interface of a video editing task to an editing interface of an editing subtask provided by an embodiment of the present disclosure;
[0043] Figure 19is a flowchart of a process of editing a subtask of a video editing task according to an embodiment of the present disclosure;
[0044] Figure 20 is a flowchart of a process of jumping from an editing interface of a video editing task to an editing interface of a subtask according to an embodiment of the present disclosure;
[0045] Figure 21 is an interface flowchart of jumping from an editing interface of a video editing task to an editing interface of a subtask according to an embodiment of the present disclosure;
[0046] Figure 22 is a flowchart of a process of using a camera raised on a shooting interface to shoot according to an embodiment of the present disclosure;
[0047] Figure 23 is an interface diagram of an editing interface of a subtask according to an embodiment of the present disclosure;
[0048] Figure 24 is an interface diagram of an editing interface of a subtask according to an embodiment of the present disclosure;
[0049] Figure 25 is an interface flowchart of adding an audio in an editing interface of a subtask according to an embodiment of the present disclosure;
[0050] Figure 26 is an interface flowchart of adding an audio in an editing interface of a subtask according to an embodiment of the present disclosure;
[0051] Figure 27 is a binding diagram of an audio and a subtitle generated by an audio according to an embodiment of the present disclosure;
[0052] Figure 28 is a diagram of extracting a subtitle of a video according to an embodiment of the present disclosure;
[0053] Figure 29 is a logic diagram of moving a subtitle and an audio according to an embodiment of the present disclosure;
[0054] Figure 30 is a subtitle generation diagram according to an embodiment of the present disclosure;
[0055] Figure 31 is an interface flowchart of editing an audio segment in an audio track according to an embodiment of the present disclosure;
[0056] Figure 32 is an interface flowchart of re-recording an audio segment in an audio track according to an embodiment of the present disclosure;
[0057] Figure 33 is a logic schematic diagram provided by an embodiment of the present disclosure for replacing timbre of an audio segment in an audio track;
[0058] Figure 34 is a logic schematic diagram provided by an embodiment of the present disclosure for segmenting subtitles corresponding to an audio segment in an audio track;
[0059] Figure 35 is a structure schematic diagram of a video editing device provided by an embodiment of the present disclosure;
[0060] Figure 36 is a structure schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0061] Embodiments of the present disclosure will be described in more detail with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, but rather the embodiments are provided so that the present disclosure can be more thoroughly and completely understood. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0062] It should be understood that each step described in the method embodiments of the present disclosure can be executed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0063] The term "comprising" and variations thereof as used herein are open-ended, that is, "comprising but not limited to." The term "based on" is "based, at least in part, on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments." Related terms are defined in the following description.
[0064] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0065] It should be noted that the modification of "one" or "multiple" mentioned in the present disclosure is illustrative and not limiting, and those skilled in the art should understand that, unless otherwise explicitly indicated in the context, it should be understood as "one or more".
[0066] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0067] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type of personal information involved in the present disclosure, the use range, the use scenario, etc. should be informed to the user and the authorization of the user should be obtained in a proper manner according to relevant laws and regulations.
[0068] For example, in response to receiving the active request of the user, the prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using the personal information of the user. Thus, the user can autonomously select whether to provide the personal information to the software or hardware such as the electronic device, the application program, the server or the storage medium, etc. performing the operation of the technical solutions of the present disclosure according to the prompt information.
[0069] As an optional but non-limiting implementation manner, in response to receiving the active request of the user, the prompt information can be sent to the user in the form of a pop-up window, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to select "agree" or "disagree" to provide the personal information to the electronic device.
[0070] It can be understood that the above notification and obtaining of the authorization of the user are only illustrative, and do not limit the implementation manners of the present disclosure, and other manners meeting the relevant laws and regulations can also be applied to the implementation manners of the present disclosure.
[0071] Figure 1 A flowchart of a video editing method provided by the embodiments of the present disclosure, the embodiments of the present disclosure are applicable to the case of editing video division editing sub-tasks, and the method can be executed by a video editing device. The device can be implemented in the form of software and / or hardware, and can be configured in any electronic device having a network communication function to implement, and the electronic device can be a mobile terminal, a PC terminal or a server, etc. As shown in Figure 1 The video editing method of the present embodiment can include but is not limited to the following processes:
[0072] S110, creating at least one editing sub-task for a video editing task.
[0073] Referring to Figure 2 , a complete video can be divided into at least two video outlines according to the video content, such as Figure 2The video outline 1, the video outline 2 and the video outline 3 are shown, so that different case videos can be disassembled into different video outlines according to video content. For each video outline, a video editing subtask can be matched according to the creation form of the video outline, so that a video editing task can include at least one editing subtask.
[0074] Referring to Figure 3 When entering an editing interface for performing a video editing task, at least two video editing components 110 corresponding to video outlines can be created and displayed on the editing interface, each video editing component 110 corresponding to an editing subtask, and at least one video editing component 110 being included under the same video outline. The video editing component can be the smallest unit in the video editing process. For example, the editing interface of the video editing task can be a main framework page as shown in the left side of FIG. 1. Figure 3 The editing interface of the editing subtask can be a preview editing page as shown in the right side of FIG. 1. Due to the limited display size of the editing interface of the video editing task, part of the video editing components 110 can not be fully displayed, and the video editing components 110 hidden on the editing interface of the video editing task can be displayed by sliding the video editing components. Figure 3
[0075] Referring to Figure 2 With Figure 3 On the editing interface of the video editing task, at least one video editing component can be set corresponding to the same video outline, and the video editing component is taken as an editing subtask. For example, taking a video outline information as a video outline M / N as an example, the video outline M / N can represent that the video editing component selected by the dashed line is the video editing component corresponding to the Mth editing subtask of the Nth video outline, and the types of the video editing components set corresponding to the same video outline can be the same or different. The same video editing component belongs to the same video outline, that is, the same editing subtask cannot belong to different video outlines at the same time.
[0076] In the above manner, the video content framework to be edited and generated is directly embodied by the created editing subtasks, so that different editing methods can be clearly prompted in the video editing process, so that the corresponding video editing components can be used for video editing subtask creation according to the needs, the complexity of video editing is simplified, and the video editing process is more intuitive and clear.
[0077] As an optional but non-limiting implementation manner, referring to Figure 4 To Figure 3 The video editing component corresponding to the editing subtask displayed on the editing interface of the video editing task is enlarged and displayed. The video editing component displays first annotation content and second annotation content. The first annotation content describes the editing type of the video editing component corresponding to the editing subtask. The second annotation content describes the duration of the video clip generated by the video editing component corresponding to the editing subtask. The cover of the video editing component is the first frame of the video clip generated by the video editing component corresponding to the editing subtask.
[0078] Optionally, the editing type of the video editing component corresponding to the editing subtask can include voice-over video editing, oral video editing, and green screen video shooting. The voice-over video mainly describes the content from the voice-over, which is separately recorded, and is generally human voice or text-to-speech. The video screen can be switched according to the sound content. The oral video is a video clip of a real person explaining. The green screen video includes a real person explaining, and a product picture or a recording screen is added in the background.
[0079] In the above manner, the duration of the video clip and the video editing method of each editing subtask can be determined during the execution of the video editing subtask, so that the video clip of each editing subtask can be reduced or increased, and the video editing method can be optimized and adjusted according to the actual needs, to generate a better video.
[0080] S120, in response to a first operation for triggering a target editing subtask, obtaining an original video material and presenting an editing interface of the target editing subtask, wherein the editing interface of the target editing subtask presents an editing track, and a video track segment formed based on the original video material is placed on a video track in the editing track. At least one editing subtask includes the target video editing subtask.
[0081] Referring to Figure 3 For the video editing component corresponding to at least one editing subtask displayed on the editing interface of the video editing task, in response to a first operation on the video editing component, a target editing subtask in the at least one editing subtask is triggered. After triggering the target editing subtask, the original video material can be obtained and the editing interface of the target editing subtask is displayed. The editing page is used for video editing of the video editing component corresponding to the editing subtask. The editing interface presents an editing track, and a video track segment formed based on the original video material is placed on a video track in the editing track.
[0082] S130, in the editing process of the target editing subtask, recording the editing operation triggered in the editing interface and displaying an indication mark of the editing operation in the editing track.
[0083] Referring to Figure 3In one example, the video segmentation editing operation can be triggered on the video track segment of the edit track displayed on the edit page, so that the editing operation information of the video track segment segmentation performed on the video track can be recorded, and an indication mark indicating that the video track segment has been segmented can be displayed on the video track. In another example, the video speed change editing operation can be triggered on the video track segment of the edit track, so that the editing operation information of the video speed change performed on the video track segment can be recorded, and an indication mark indicating that the video track segment has been subjected to video speed change can be displayed on the video track. In yet another example, the video special effect editing operation can be triggered on the video track segment of the edit track, so that the editing operation information of the video special effect performed on the video track segment can be recorded, and an indication mark indicating that the video track segment has been subjected to video special effect operation can be displayed on the video track.
[0084] S140, in response to the second operation for confirming completion of the target editing subtask, generating an editing result of the target editing subtask based on the recording information of the editing operation and the original video material.
[0085] Referring to Figure 3 After the editing interface corresponding to each editing subtask of the video editing task is created and video editing is performed, a second operation can be triggered on the editing interface, the second operation being an operation for confirming completion of the target editing subtask, at which time the editing result of each editing subtask can be generated according to the recording result of the editing operation recorded on the editing interface corresponding to the editing subtask and the original video material.
[0086] In the above manner, different forms of video content segments are split by different editing subtasks, and video materials are filled to form video segments according to different video editing components corresponding to the editing subtasks, so that video editing is completed step by step by guiding in the editing interface corresponding to the video editing component of the different editing subtasks.
[0087] S150, based on the editing result of each editing subtask of the video editing task, generating a target video as the editing result of the video editing task; in the target video, the original video material is presented according to the editing effect corresponding to the editing operation.
[0088] After the editing result of each editing subtask is obtained by performing video editing in each video editing component corresponding editing subtask, the editing result of each video editing component corresponding editing subtask can be directly merged and spliced to generate the editing result of the complete video editing task as the target video, so that the final complete video is generated by guiding video editing in different video editing component corresponding editing subtasks step by step.
[0089] As an optional but non-limiting implementation, see Figure 3 Based on the editing results of the respective editing sub-tasks of the video editing task, generating the target video as the editing result of the video editing task can include, but is not limited to, the following steps A1-A2:
[0090] Step A1, obtaining the original audio material; displaying, on the editing interface of the video editing task, an audio track segment formed based on the original audio material and a video track segment formed based on the editing results of the respective editing sub-tasks of the video editing task.
[0091] Step A2, in response to an editing operation on the audio track segment, obtaining the target audio material; based on the editing results of the respective editing sub-tasks of the video editing task and the target audio material, generating the target video.
[0092] See Figure 3 On the left side of the diagram, the music icon 130 can be optionally displayed on the editing interface of the video editing task. When there is no music, clicking the music icon pulls up the music selection page to select appropriate music. Only one music can be added to a video globally, and after completing the addition, the editing interface of the video editing task is returned to enter the music editing panel to edit the added music. When entering the editing template of the video editing task for the first time, the music icon displayed on the editing interface of the video editing task is in an added state, and clicking it enters the music editing panel to view the music provided by the editing template, and the music duration is automatically aligned with the duration of the current video.
[0093] As an optional but non-limiting implementation, the video editing method of the embodiment can further include the following process: based on the editing result of the target editing sub-task, obtaining and saving the target sub-video corresponding to the target editing sub-task; in the target sub-video, the original video material is presented according to the editing effect corresponding to the editing operation.
[0094] Optionally, based on the editing result of the target editing sub-task, the video of the target editing sub-task can be generated based on the recording information of the editing operation and the original video material, and when the editing result based on the target editing sub-task is obtained, the videos of the respective target editing sub-tasks can be synthesized into a target video. Optionally, based on the editing result of the target editing sub-task, the editing draft generated based on the recording information of the editing operation and the original video material, and when the editing draft of the target editing sub-task is obtained, the respective editing drafts of the target editing sub-tasks can be merged first, and then the merged total editing draft is generated into the target video.
[0095] The technical scheme of the embodiments of the present disclosure creates at least one editing subtask for a video editing task, acquires original video materials and presents an editing interface of a target editing subtask in response to a first operation for triggering the target editing subtask, and intuitively presents a video content framework that needs to be edited and generated through each created editing subtask. During the editing process of the target editing subtask, an editing operation triggered in the editing interface is recorded and an indication mark of the editing operation is displayed in an editing track. The editing and generation of the entire video are split using different editing subtasks, the video editing is guided to be completed through different editing subtasks, the complexity of video editing is simplified, and even if an editing error occurs during the editing process, the editing subtask with the error can be re-edited, thereby improving the efficiency of video editing and generation.
[0096] Figure 5 Another video editing method flowchart provided by the embodiments of the present disclosure is provided. The technical scheme of the present embodiment is further optimized on the basis of the process of creating at least one editing subtask for a video editing task in the foregoing embodiments. The present embodiment can be combined with each optional scheme in one or more of the foregoing embodiments. As shown in Figure 5 The video editing method of the present embodiment can include but is not limited to the following processes:
[0097] S510, acquiring an editing template used by a video editing task.
[0098] S520, determining an editing subtask specified by the editing template.
[0099] S530, creating at least one editing subtask for the video editing task according to the editing subtask specified by the editing template.
[0100] As an optional but non-limiting implementation manner, creating at least one editing subtask for the video editing task according to the editing subtask specified by the editing template can include but is not limited to the following steps B1-B2:
[0101] Step B1, presenting an identification of the editing subtask specified by the editing template on an editing interface of the video editing task.
[0102] Referring to Figure 2 and Figure 6 Different editing template cases can be pre-configured, an editing template used by a video editing task can be selected in response to a template triggering operation when the video editing task is performed, and the editing subtask specified by the editing template is parsed. Referring to Figure 3 and Figure 6, in response to a trigger of an editing template of a selected video editing task, invoking each editing subtask for performing the video editing task, and displaying a video editing component specified by the editing template for performing each editing subtask of the video editing task on an editing interface of the video editing task, at least one editing subtask corresponds to one video outline, each editing subtask corresponds to one video editing component, and the identification of the editing subtask can be represented by the video editing component displayed on the editing interface of the video editing task, such as Figure 6 The video editing component A, the video editing component B, and the video editing component C shown in FIG. 1 are displayed in the form of the identification of each editing subtask.
[0103] Step B2, in response to a third operation for triggering an increase in an editing subtask, adding the identification of the first editing subtask in the editing interface of the video editing task, and / or, in response to a fourth operation for triggering a deletion of an editing subtask, deleting the identification of the second editing subtask in the editing interface of the video editing task.
[0104] Among them, at least one editing subtask refers to the editing subtask with an identification presented in the editing interface of the video editing task.
[0105] In an optional example, in response to the third operation for triggering an increase in an editing subtask, the identification of each editing subtask displayed on the editing interface of the video editing task (i.e., the identification for visualizing the video editing component corresponding to the editing subtask) is selected, and a subtask operation menu with the selected identification of the editing subtask is displayed synchronously, and the subtask operation menu displays editing trigger controls, addition trigger controls, and deletion trigger controls.
[0106] Referring to Figure 7 For each video editing component 110 corresponding to each editing subtask displayed on the editing interface of the video editing task, the identification of the editing subtask can be used to visualize the video editing component on the editing interface, in response to a click operation on any video editing component, i.e., in response to a click operation on the identification of an editing subtask, the selected video editing component 110 can be selected and framed on the editing interface of the video editing task, such as Figure 7 In the M+1th video outline of FIG. 1, the video editing component 110 of the 1st editing subtask is selected. When the video editing component 110 is selected, the subtask operation menu of the corresponding editing subtask of the selected video editing component can be pulled up and displayed as a pop-up window on the editing interface of the video editing task, and the editing trigger controls, addition trigger controls, and deletion trigger controls displayed in the subtask operation menu can be clicked to trigger.
[0107] In an optional example, referring to Figure 7, in response to a fourth operation for triggering deletion of the editing subtask, selecting the displayed identification of the second editing subtask (the identification applied to the visual presentation of the video editing component corresponding to the editing subtask) on the editing interface of the video editing task, synchronously displaying a subtask operation menu of the identification of the second editing subtask, and displaying the editing trigger control, the adding trigger control and the deleting trigger control in the subtask operation menu. By clicking the deleting trigger control through the fourth operation, the identification of the second editing subtask is deleted in the editing interface of the video editing task, that is, the video editing component corresponding to the second editing subtask is deleted. Optionally, when the identification of the second editing subtask is deleted, a deletion prompt information of the identification of the second editing subtask is displayed, for secondary confirmation of whether to delete the identification of the second editing subtask. As an optional but non-limiting implementation manner, the video editing method of the embodiment can include the following process: determining the grouping specified by the editing template, presenting the editing subtasks specified by the editing template according to the specified grouping; and displaying the content prompt information or the editing prompt information corresponding to the specified grouping.
[0108] Referring to Figure 7 , each editing subtask in the video editing task corresponding to the editing template is presented on the editing page of the video editing task according to the specified video outline grouping, at least one editing subtask is included under the same video outline grouping, and at least one video editing component corresponding to the video outline grouping is presented in the video editing task. Figure 7 In the editing page of the video editing task, the content prompt information or the editing prompt information corresponding to each video outline grouping is displayed. The content prompt information includes the content prompt of the video material corresponding to the video outline grouping; the editing prompt information includes the prompt related to the voiceover, the voiceover, the green screen, etc.; and the editing prompt information can also include the prompt information related to the filter, the transition, the special effect, etc.
[0109] Referring to Figure 7 , optionally, after the identification of all the editing subtasks corresponding to the same video outline displayed on the editing interface of the video editing task is deleted (indicating that the video editing component is deleted), the video outline information is retained on the editing interface of the video editing task, and a blank placeholder is displayed under the video outline. The blank placeholder is clicked to add the identification of a new editing subtask.
[0110] As an optional but non-limiting implementation manner, the third operation for triggering addition of the editing subtask is specifically a trigger operation for the identification of the third editing subtask presented on the editing interface of the video editing task; and the identification of the first editing subtask is added at the adjacent position of the identification of the third editing subtask on the editing interface of the video editing task.
[0111] Referring to Figure 8In the editing interface of the video editing task, the identifier of the third editing subtask is selected, and a third operation is performed on the identifier of the third editing subtask. After the third operation for triggering the addition of the editing subtask is performed, a subtask operation menu of the selected third editing subtask is pulled up, and the third operation for triggering the addition of the editing subtask further includes an operation of triggering the addition trigger control in the subtask operation menu of the editing subtask. In response to the third operation for triggering the addition of the editing subtask, a first editing subtask identifier is added in the editing interface of the video editing task, that is, a video editing component is added in the editing interface of the video editing task.
[0112] Referring to Figure 8 In the editing interface of the video editing task, the identifier of the third editing subtask is selected, and a third operation is performed on the identifier of the third editing subtask. After the third operation for triggering the addition of the editing subtask is performed, a subtask operation menu of the selected third editing subtask is pulled up, and the third operation for triggering the addition of the editing subtask further includes an operation of triggering the addition trigger control in the subtask operation menu of the editing subtask. In response to the third operation for triggering the addition of the editing subtask, a first editing subtask identifier is added in the editing interface of the video editing task, that is, a video editing component is added in the editing interface of the video editing task.
[0113] Referring to Figure 9 When the addition trigger control in the subtask operation menu is clicked, an editing subtask editing mode selection window is displayed in the form of a mask on the editing interface of the video editing task. The editing subtask editing mode selection window displays, but is not limited to, the following editing modes of the editing subtask: voice-over, voice-over, green screen shooting, camera direct shooting, uploading materials from the album, and the like. In each time of triggering the operation of adding an editing subtask, only one new editing subtask is allowed to be added, and the identifier of the editing subtask is presented on the editing interface of the video editing task.
[0114] S540, in response to the first operation for triggering the target editing subtask, the original video material is acquired and the editing interface of the target editing subtask is presented, wherein the editing interface of the target editing subtask presents an editing track, and a video track segment formed based on the original video material is placed on the video track in the editing track. The at least one editing subtask includes a target video editing subtask.
[0115] S550, in the editing process of the target editing subtask, the editing operation triggered in the editing interface is recorded and the indication identifier of the editing operation is displayed in the editing track.
[0116] S560, in response to the second operation for confirming completion of the target editing subtask, generating an editing result of the target editing subtask based on the record information of the editing operation and the original video material.
[0117] S570, based on the editing result of each editing subtask of the video editing task, generating a target video as the editing result of the video editing task; in the target video, the original video material is presented according to the editing effect corresponding to the editing operation.
[0118] As an optional but non-limiting implementation manner, based on the editing result of each editing subtask of the video editing task, generating a target video as the editing result of the video editing task can include the following:
[0119] determining a combination manner specified by the editing template, the combination manner being used to indicate that at least one editing subtask is combined into the video editing task; and synthesizing the editing result of each editing subtask of the video editing task according to the combination manner to obtain the target video.
[0120] Referring to Figure 3 , the editing interface of the video editing task displays the identification of each editing subtask, i.e., the video editing component corresponding to each editing subtask, and the editing template of the video editing task specifies the combination manner between each editing subtask, and the combination manner of each editing subtask is at least configured as: at least one editing subtask is spliced and combined into the video editing task according to the arrangement order. Optionally, the arrangement order of the at least one editing subtask is specifically the arrangement order of the identification of the at least one editing subtask on the editing interface of the video editing task; and the editing subtask specified by the editing template is sorted according to the arrangement order specified by the editing template. Optionally, if there are multiple video tracks on the editing interface of the editing subtask, in response to a splitting operation on the video track, the split video track is used as a new editing subtask.
[0121] As an optional but non-limiting implementation manner, the video editing method of the embodiment can further include the following process: a preview player is presented on the editing interface of the video editing task, and the preview player is used to preview and play the merging result of the editing result of each editing subtask of the video editing task.
[0122] Referring to Figure 3The left side view shows that the preview player 140 is displayed on the editing interface of the video editing task, and the preview player 140 can be used to preview the combined result of the editing results of the various editing sub-tasks of the video editing task on the editing interface of the video editing task. Optionally, when playing through the preview player 140, the identification of the corresponding played editing sub-task can be selected on the editing interface of the video editing task, and a play icon is displayed on the selected identification of the editing sub-task, which is used to prompt that the editing result of the corresponding editing sub-task is being played.
[0123] Referring to Figure 3 The left side view shows that the progress bar 120 is displayed on the editing interface of the video editing task, and the progress bar 120 is displayed in segments according to different video outline groups. The progress bar is positioned to the video outline group to which the editing sub-task corresponding to the played position belongs. When the preview player 140 is playing, the playing progress can be dragged by clicking the progress bar 120, and after the hand is released, the preview player 140 continues to play from the editing result of the editing sub-task positioned by the progress bar, and the identification of the corresponding editing sub-task is positioned and selected. When the progress bar 120 is dragged, the video outline title corresponding to the progress bar is switched, and the selection state of the identification of the editing sub-task is not affected. When the progress bar is released, the identification of the editing sub-task corresponding to the played picture of the preview player 140 is positioned and selected.
[0124] Referring to Figure 3 The left side view shows that, optionally, in response to a click operation on the identification of an editing sub-task on the editing interface of the video editing task, the video being played on the preview player 140 is paused, and the video frame displayed after the pause is switched to the first frame of the video clip associated with the editing result of the editing sub-task corresponding to the click operation. Optionally, after the video being played on the preview player on the editing interface of the video editing task is paused, the video can be played on the preview player starting from the first frame of the video clip associated with the editing result of the editing sub-task corresponding to the click operation in response to a video playing trigger operation on the preview player on the editing interface of the video editing task. When the full-screen icon on the editing interface of the video editing task is clicked, the preview player on the editing interface of the video editing task enters full-screen preview playing.
[0125] Referring to Figure 3 The left side view shows that, optionally, in response to a slide trigger operation on the identification of an editing sub-task on the editing interface of the video editing task, the video being played on the preview player on the editing interface of the video editing task is paused. Optionally, when the identification of the editing sub-task on the editing interface of the video editing task is selected, a sub-task operation menu of the identification of the editing sub-task is synchronously displayed.
[0126] Referring to Figure 3The left side view shows that the video draft is automatically saved when the editing interface of the video editing task is closed, and the previous page is returned, prompting that the draft has been saved. Clicking the export control on the editing interface of the video editing task enters the video export process. If there is no modified video content of the video editing component corresponding to the editing subtask in the original editing template, a prompt is given that the video cannot be exported; if the identifiers of the editing subtasks are all deleted, a prompt is given that the video cannot be exported. Clicking the settings control pulls up the export settings panel, and the resolution is set on the settings panel, such as the default 720p. The switch is configured on the settings panel: whether to save the identifiers of the editing subtasks at the same time during export, which is turned off by default. Clicking the settings button again hides the panel and saves the settings.
[0127] The technical solutions of the embodiments of the present disclosure can provide appropriate editing templates according to the requirements of a video editing task, create at least one editing subtask for the video editing task, obtain original video materials and present an editing interface of a target editing subtask in response to a first operation for triggering the target editing subtask, intuitively show the video content framework that needs to be edited and generated through each created editing subtask, record the editing operations triggered in the editing interface and display the indication identifiers of the editing operations in the editing track during the editing process of the target editing subtask, split the entire video editing and generation using different editing subtasks, guide the completion of video editing through different editing subtasks, simplify the complexity of video editing, and even if an editing error occurs during the editing process, the editing subtask with the error can be re-edited, thereby improving the efficiency of video editing and generation.
[0128] As an optional but non-limiting implementation manner, obtaining original video materials and presenting the editing interface of the target editing subtask includes: selecting the identifier of one displayed editing subtask on the editing interface of the video editing task, the identifier of the editing subtask being pre-configured in the editing template when the editing subtask enters the editing interface of the video editing task; in response to the editing triggering operation on the identifier of the editing subtask, calling the material filling page of the editing subtask to obtain the original video materials, and presenting the editing interface of the target editing subtask according to the obtained original video materials.
[0129] Referring to Figure 8 In response to the point selection operation on the identifier of any editing subtask, the identifier box of the editing subtask displayed on the editing interface of the video editing task and receiving the point selection operation can be selected, wherein the identifier of the editing subtask selected by the point selection operation is pre-configured in the editing template when the editing subtask enters the editing interface of the video editing task.
[0130] Referring to Figure 10When the selected identifier of the editing subtask is an identifier of an editing subtask that is pre-configured in the editing template when entering the editing interface of the video editing task, instead of an identifier of a newly added editing subtask, a subtask operation menu of the selected editing subtask can be pulled up on the editing interface of the video editing task. After the subtask operation menu is pulled up, an editing control on the subtask operation menu is allowed to be triggered. In response to a click on the editing control on the subtask operation menu, the editing interface of the video editing task can be jumped to a material filling page of the editing subtask, and the original video material can be obtained through the material filling page of the editing subtask.
[0131] As an optional but non-limiting implementation manner, obtaining the original video material and presenting the editing interface of the target editing subtask includes: in response to a click operation on an identifier of one of the editing subtasks displayed on the editing interface of the video editing task, calling a material filling page of the identifier of the editing subtask to obtain the original video material, and presenting the editing interface of the target editing subtask according to the obtained original video material; the editing subtask is a newly added editing subtask that is not configured in the editing template when entering the editing interface of the video editing task.
[0132] Referring to Figure 10 When the selected identifier of the editing subtask is an identifier of an editing subtask that is newly added after entering the editing interface of the video editing task, in response to a click operation on an identifier of one of the editing subtasks displayed on the editing interface of the video editing task, the editing interface of the video editing task is directly jumped to a material filling page of the editing subtask, and the original video material can be obtained through the material filling page of the editing subtask.
[0133] As an optional but non-limiting implementation manner, if the target editing subtask is a first type of editing subtask, a voice track segment formed based on voice material is placed on an audio track of an edit track of an editing interface corresponding to the target editing subtask. The voice material is audio material obtained by voice synthesis on a read text, such as audio material obtained by text-to-speech processing; or the voice material is audio material obtained by audio recording. Optionally, the target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the read text is a first preset text specified for the target editing subtask based on the editing template. The first preset text is described in detail below.
[0134] As an optional but non-limiting implementation manner, referring to Figure 11 , obtaining the original video material and presenting the editing interface of the target editing subtask can include the following processes S1110-S1120:
[0135] S1110, display the material filling page of the first type of editing subtask, and the material filling page of the first type of editing subtask is a script and video filling page.
[0136] Referring to Figure 10 When the first type of editing subtask triggered by the click is the first editing or the last exit from the material filling page of the first type of editing subtask, the material filling page of the first type of editing subtask is displayed from the editing interface of the video editing task, and the content filling process is entered. The first type of editing subtask can be a voice-over video editing task.
[0137] Optionally, referring to Figure 12 The display of the material filling page of the first type of editing subtask can include the following process: detecting whether the first type of editing subtask is the first editing or the last exit from the material filling page of the first type of editing subtask; if so, directly jumping from the editing interface of the video editing task and displaying the material filling page of the first type of editing subtask; if not, directly displaying the editing page of the first type of editing subtask.
[0138] S1120, obtaining the original video material of the first type of editing subtask by using the material filling page of the first type of editing subtask.
[0139] Referring to Figure 13 Optionally, when the first type of editing subtask is the editing subtask specified in the editing template used by the video editing task, the material filling page of the first type of editing subtask displays the first preset text and the prompt content for prompting the existence of the first preset text and supporting text editing based on the first preset text. The aforementioned reading text can be obtained by editing operation based on the first preset text specified for the target editing subtask by the editing template, Figure 13 The interface flow chart for obtaining the original video material in the first type of editing subtask is shown.
[0140] Optionally, the text editing area is provided on the material filling page of the first type of editing subtask, and the first preset text is presented in the text editing area; in response to the editing operation of the text editing area, the text in the text editing area after the editing operation is obtained as the reading text.
[0141] Referring to Figure 13 Optionally, when the first type of editing subtask is not the editing subtask specified in the editing template used by the video editing task, but the newly added editing subtask on the editing interface of the video editing task, the prompt content for prompting the custom editing text is displayed on the material filling page of the first type of editing subtask, and the first preset text is not displayed on the material filling page of the first type of editing subtask.
[0142] Referring to Figure 13 Optionally, after editing the text or inputting the video picture material on the material filling page of the first type of editing subtask, the inputted text script and the video picture material are saved by clicking on the blank or closing the keyboard. The text script word limit is set in the material filling page of the first type of editing subtask, and if the inputted text script word limit is exceeded, a pop-up window will prompt that the word limit is exceeded, and the content exceeding the range will be deleted.
[0143] Referring to Figure 13 After filling the text script content and the video picture material in the material filling page of the first type of editing subtask, the filled text script content and the video picture material are taken as the original video material, and in response to the triggering operation of the editing page of the editing subtask in the material filling page of the first type of editing subtask, the editing interface of the editing subtask is presented based on the original video material.
[0144] Optionally, referring to Figure 13 from the 4th page to the 5th page from left to right, the text script of the obtained video material is converted into speech and filled into the audio track and / or the subtitle track of the editing track presented in the editing interface of the editing subtask; in response to the uploading operation of the video picture material on the material filling page of the first type of editing subtask, the video picture material is sequentially filled into the video track of the editing track presented in the editing interface of the editing subtask in order.
[0145] Optionally, referring to Figure 14 from the 4th page to the 6th page from left to right, the text script of the obtained video material is converted into speech and filled into the audio track and / or the subtitle track of the editing track presented in the editing interface of the editing subtask; from the material filling page of the first type of editing subtask to the editing interface of the first type of editing subtask; in response to the uploading operation of the video picture material on the editing interface of the first type of editing subtask, the uploaded picture material is filled into the video track of the editing track presented in the editing interface of the editing subtask by using the editing interface of the first type of editing subtask. Wherein, in the case that the material filling page of the first type of editing subtask does not include video picture material, the preview player area of the editing interface of the first type of editing subtask fills the video picture placeholder, the video picture placeholder is not displayed on the video track, and clicking on the video track or the picture placeholder of the preview player area can add the video picture material by using the editing interface of the first type of editing subtask.
[0146] Optionally, referring to Figure 15From the fourth page to the fifth page from left to right, in response to a video picture material uploading operation of filling the material of the first type of editing subtask on the page, the first type of editing subtask acquires the uploaded video picture material and fills the video picture material into the video track of the editing track presented in the editing interface of the first type of editing subtask; the first type of editing subtask jumps from the material filling page to the editing interface; in response to an audio adding operation on the editing interface of the first type of editing subtask, the first type of editing subtask acquires the added audio and fills the audio into the audio track of the editing track presented in the editing interface. When the first type of editing subtask does not include the text script material, the audio track of the editing interface of the first type of editing subtask is empty, and clicking the audio track can trigger adding a recording or text.
[0147] As an optional but non-limiting implementation, the subtitle track segment formed based on the read text is placed on the subtitle track of the editing track, the voice material is the read audio of the read text, and the subtitle track segment and the voice track segment have an aligned time axis position on the editing track.
[0148] As an optional but non-limiting implementation, when the first type of editing subtask is first edited into the material filling page of the first type of editing subtask, in response to a script library viewing trigger operation on the material filling page of the first type of editing subtask, the text script material in the script library is displayed. When text editing is performed on the material filling page of the first type of editing subtask, switching to view the script library on the material filling page of the first type of editing subtask is supported. The script library content is displayed and sorted as follows: the script categories are displayed according to tabs, such as classification according to video outline types; the script sorting logic is: the scripts are arranged in descending order according to the similarity of the script containing labels and templates and the component containing labels. The similarity definition can be the number of identical script labels and template labels (including template layer and component layer labels). For example, if a script is marked with ABCD and a template is marked with CDE, the similarity is 2.
[0149] As an optional but non-limiting implementation, when video picture material is uploaded on the material filling page of the first type of editing subtask or the editing interface of the first type of editing subtask, multiple video and picture material uploading is supported, and after being selected, the video picture material is filled into the material filling page of the first type of editing subtask or the editing interface of the first type of editing subtask. The material filling page of the first type of editing subtask or the editing interface of the first type of editing subtask supports deleting the added video picture material.
[0150] As an optional but non-limiting implementation, refer to Figure 16 If the target editing subtask is a second type of editing subtask and the original video material is a recorded video obtained by a camera, the video editing method of the embodiment can further include, but is not limited to, the following processes S1610-S1620:
[0151] S1610, presenting a shooting interface of the second type of editing subtask, the shooting interface having a text prompt area for displaying and / or editing a prompt text.
[0152] The target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the prompt text is obtained based on a second preset text specified for the target editing subtask by the editing template.
[0153] Refer to Figure 17 Optionally, the second type of editing subtask is a lip-sync video editing task. In response to an editing trigger operation on the second type of editing subtask, it is detected whether the second type of editing subtask is edited for the first time or exited from the shooting interface of the second type of editing subtask last time. If yes, the shooting interface of the second type of editing subtask is directly jumped from the editing interface of the video editing task. If not, the editing interface of the second type of editing subtask is directly displayed.
[0154] S1620, in response to a shooting operation triggered on the shooting interface, dynamically playing the prompt text during the shooting process and generating a recorded video based on a shooting image.
[0155] Optionally, the video editing method of the embodiment further includes: presenting the second preset text in the text prompt area of the shooting interface; and in response to an editing operation on the text prompt area, obtaining the text in the text prompt area after the editing operation as the prompt text.
[0156] Refer to Figure 17 The text prompt area of the shooting interface of the second type of editing subtask is configured with a teleprompter for displaying and / or editing the second preset text for lip-sync shooting. In response to a shooting operation triggered on the shooting interface, a video is shot or uploaded by using a camera corresponding to the shooting interface, so as to fill the video into a video track of the editing interface of the editing subtask.
[0157] Refer to Figure 17 and Figure 18When entering the shooting interface of the second type of editing subtask, the shooting interface automatically pulls up the camera, and at the same time opens the teleprompter in the text prompt area of the shooting interface. The second preset text on the teleprompter can assist in prompting during shooting. Among them, the teleprompter can automatically fill in the script for the second type of editing subtask as the dialogue, and the dialogue in the teleprompter supports re-editing and modifying the second preset text displayed in the text prompt area.
[0158] Referring to Figure 17 With Figure 18 The shooting interface is configured with a shooting control, and in response to a trigger operation on the shooting control, a video picture material is shot using the camera. Optionally, the shooting interface is also configured with a special effect control and an album control. In response to a special effect trigger operation, special effects can be added to the shot video picture material. In response to a trigger operation on the album control, the camera is used to obtain video picture material uploaded from the album. Optionally, the shooting interface is provided with a single-segment shooting control and a multi-segment shooting control, and the shooting mode is selected by triggering the single-segment shooting control or the multi-segment shooting control.
[0159] Referring to Figure 17 With Figure 18 After triggering the confirmation control on the shooting interface, the shot video picture material can be previewed and displayed. In response to a next trigger operation on the previewed video picture material, the editing interface of the second type of editing subtask is displayed. For example, after the video picture material is shot by the camera on the shooting interface, the editing interface of the second type of editing subtask is entered, and all shot or uploaded video picture materials are imported, and the photo material is imported by default for 3 seconds.
[0160] Referring to Figure 18 The page element layout of the shooting interface corresponding to the camera includes a right function area (right function area) Figure 18The right side function area includes front and rear camera flip control, filter control, timing control, flash control, and teleprompter control. The front and rear camera flip control defaults to the last selection, and the first time it is entered as the front camera. The timing control can be selected to cancel / 3 seconds / 7 seconds, and the second type of editing subtask defaults to 3 seconds, and other editing subtasks do not set the countdown. The flash is turned off by default. The teleprompter is turned on by default for the second type of editing subtask, and is turned off by default for other editing subtasks. The teleprompter supports script library prompts during editing. The main operation area includes special effect / green screen control, shooting control, and upload control. The shooting control starts recording by default, and records 16:9 vertical screen size and 720p. The upload control enters the album import material process. After at least one material is shot, Next is clicked to enter the track editing page. When the shooting interface upper left corner of the shooting device is clicked, the close control is clicked, the script in the teleprompter is modified, or at least one material is shot, and a pop-up window is popped up after the close control is clicked. The discard control / restart control can be selected. If the discard control is clicked, the editing subtask will be considered as unmodified. If it is a new editing subtask, the video editing task displays an empty editing subtask. After the restart control is clicked, the previous shooting segment is discarded, and shooting is restarted.
[0161] Optionally, enter the album, and all albums of the system are displayed at the top. The first layer defaults to the recent album, and the second layer is a material type filter, which is all / video / photo / live photo. The material supports multiple selection, supports mixed selection of various materials, and is displayed in the bottom in the order of selection. Clicking the selected album material or the album area material itself enters the material preview page. For video type materials, rough cutting is supported. The material can be imported by shooting, and the shooting process is entered by clicking. After confirming the import, the rough cut material is imported into the track in order, and the default duration of the photo is 3 seconds.
[0162] As an optional but non-limiting implementation, if the target editing subtask is a third type of editing subtask, the original video material includes at least a first video material and a second video material, the images of the first video material and the second video material are used to synthesize the images of the third video material according to the specified splicing layout, and the video track segment formed based on the images of the third video material is placed on the video track in the editing track. The target editing subtask is an editing subtask specified by an editing template used by the video editing task.
[0163] As an optional but non-limiting implementation, referring to Figure 19 The video editing method of the embodiment can further include but is not limited to the following processes S1910-S1930:
[0164] S1910, acquire the second video material and determine the splicing layout between the first video material and the second video material.
[0165] Optionally, a shooting interface of the third type of editing subtask is presented, and in response to a second video material acquisition operation triggered on the shooting interface, the second video material is acquired and a layout manner of the first video material and the second video material is determined.
[0166] Referring to Figure 20 With Figure 21 , in response to an editing trigger operation on the third type of editing subtask, it is detected whether the third type of editing subtask is edited for the first time or exited from the shooting interface of the third type of editing subtask last time; if yes, the shooting interface of the third type of editing subtask is directly jumped from the editing interface of the video editing task; if not, the editing interface of the third type of editing subtask is directly displayed.
[0167] Among them, the green screen mode is started by default on the shooting interface of the third type of editing subtask, and the background of the shooting interface is the green screen placeholder picture by default. After the second video material acquisition operation triggered on the shooting interface, the second video material is acquired, and the green screen placeholder picture in the shooting interface of the third type of editing subtask is replaced by the second video material.
[0168] Referring to Figure 21 , after entering the shooting interface, the camera is automatically raised, and the green screen mode is automatically opened by default. In response to a trigger operation of a green screen control on the shooting interface, a green screen operation panel is automatically raised. The green screen operation panel allows selection of a green screen background material to enter an album selection page to import a background material as a second video material. Among them, the album selection page can display video picture materials in the album in time reverse order. The album selection page only supports checking video picture materials, and the video picture materials only support single selection. After selecting the material, enter the rough cutting page, and after confirmation, import into the camera to display the shooting interface of the imported background material.
[0169] Referring to Figure 21 , the green screen operation panel displays a control for configuring the layout between the background and the camera shooting content. There are three layout modes: cutout, background on top and camera shooting content on bottom, and background on bottom and camera shooting content on top. It is supported to select and disable the green screen layout. The first time entering defaults to selecting the cutout.
[0170] S1920, in response to a shooting trigger operation, during the shooting process, the shooting image and the image of the second video material are spliced and previewed based on the splicing layout between the first video material and the second video material, and the first video material is generated based on the shooting image.
[0171] Optionally, in response to a shooting operation triggered on the shooting interface, the shooting image can be collected during shooting, and the shooting image and the image of the second video material are spliced and previewed according to the splicing layout on the shooting interface, and then the shooting image is recorded to generate the first video material.
[0172] Referring to Figure 21 Optionally, in response to a background replacement operation on the shooting interface of the third type of editing subtask, the obtained second video material is used to replace the original green screen placeholder picture. After the camera is pulled up on the shooting interface of the third type of editing subtask (i.e., the green screen shooting interface), the original green screen placeholder picture of the shooting interface of the third type of editing subtask can be replaced by the second video material added and obtained. After the second video material is imported into the shooting interface of the third type of editing subtask, in response to a shooting operation triggered on the shooting interface, the shooting image can be collected by the camera, and the shooting image and the image of the second video material are spliced and displayed according to the splicing layout on the shooting interface for previewing. Subsequently, the shooting image can be recorded to obtain the first video material.
[0173] As an optional but non-limiting implementation, referring to Figure 21 With Figure 22 During the shooting using the camera pulled up on the shooting interface, the camera can support single-shot mode and multi-shot mode. In the single-shot mode, if the uploaded background is a video, the shooting is manually stopped or completed when the video duration is reached, and the playing is entered into the shooting preview page; if the uploaded background is a photo, the shooting duration is not limited, and the playing is completed after the shooting is manually stopped, and the shooting preview page is entered. In the multi-shot mode, if the uploaded background is a video, the playing is automatically completed when the countdown duration or the video duration (the shorter one is taken) is reached, and the shooting preview page is entered. The middle manual pause is supported, and the background material is switched after the pause. Whether the switching is performed or not, the material is played from the beginning when the shooting is continued. If the uploaded background is a photo, the playing is automatically completed when the countdown duration is reached, and the shooting preview page is entered. The foreground and the background are supported to be dragged and zoomed before and during the shooting.
[0174] S1930, based on the splicing layout, the first video material and the second video material are combined into a third video material through video.
[0175] Optionally, based on the layout mode of the first video material and the second video material, the first video material and the second video material are combined into a third video material through video, and at least part of the third video material is used as a video track segment.
[0176] Referring to Figure 21In the third type of editing subtask, after the shooting interface first video material and the second video material are obtained, the video synthesis processing is performed according to the layout mode of the first video material and the second video material to obtain a third video material, and then at least part of the video is filled into the video track in the edit track of the edit interface of the third type of editing subtask. The playing area of the video picture supports dragging and zooming the foreground and the background.
[0177] As an optional but non-limiting implementation, see Figure 23 For the edit interface of the editing subtask, the edit interface is provided with a preview area, and a preview player is arranged on the preview area. The video preview is played or paused by clicking the play control of the preview player. Optionally, the edit interface is provided with a page closing control. When the closing control is clicked, a pop-up window is displayed to confirm whether to save the modification. If the confirmation is clicked, the modification is saved, and the previous page is returned. If the cancel is clicked, the modification is not saved, and the previous page is returned. Optionally, the edit interface is provided with a full-screen preview control supporting full-screen preview, and the edit interface is provided with a undo control supporting editing operation undo or a restore control supporting editing operation restore.
[0178] As an optional but non-limiting implementation, see Figure 23 The edit interface of the editing subtask supports at most three tracks, including a picture track, an audio track, and a subtitle track. The picture track fills the video picture material, the audio track fills the text-to-speech or recording, and the subtitle track is used to fill the text. If there is no subtitle, the subtitle track is not displayed.
[0179] As an optional but non-limiting implementation, see Figure 23 The edit interface of the editing subtask is provided with a beautification control. When the beautification control is clicked, a beautification menu panel is displayed. The beautification menu panel is provided with an add text control, a text template control, and a sticker control. By clicking the add text control, the text template control, and the sticker control, the selected audio track and the subtitle track can be hidden, and the sticker, the text template, and the flower character track are displayed.
[0180] See Figure 23 The add text control is clicked to pull up a text panel and a keyboard to add text. After the text is added, a text track is added to the time axis by default for 3 seconds. The text is edited. After the text is added, the text is overlaid on the picture track in a mask form by default for 3 seconds. The text length is supported to be cropped. The text is added by clicking the add text control, or a text editing panel is called by clicking a text / subtitle in the picture.
[0181] See Figure 23, click the trigger text template control, pull up the text template panel. Text template panel: pull up the text template panel in the background, first pull up the category, then pull up the text template under the category. Add it to the timeline to add a text template track by default. 3 seconds. Show the text templates in chronological order. You need to check if the text template has a preset label.
[0182] As an optional but non-limiting implementation, see Figure 25 , in response to the trigger operation of adding an audio control or a blank audio track in the editing interface of the editing subtask, pull up the secondary menu, and in response to the recording trigger operation of the secondary menu, trigger the recording function to record audio input into the audio track; or, in response to the text-to-speech operation of the secondary menu, trigger the text-to-speech function to input text and convert it to speech to fill into the audio track. If the audio track already has a recording, you cannot add text-to-speech audio, and the text-to-speech control option is grayed out and unavailable; if the audio track already has text-to-speech audio, you cannot add recording-generated audio, and the recording control option is grayed out and unavailable.
[0183] Optionally, see Figure 25 , click the add video or select the audio track in the editing interface of the editing subtask to add the audio control that pops up in the editing interface of the editing subtask, and prompt to select the audio adding method as recording or text-to-speech. When selecting text-to-speech, pull up the script editing page and fill in the script; after completing the script filling, click Save to automatically generate text-to-speech TTS audio and subtitles. When selecting recording, pull up the recording panel and click the recording control to start recording, and click it again to pause recording; select the close control to cancel recording, and select the save control to complete recording.
[0184] As an optional but non-limiting implementation, see Figure 26 , in response to the trigger operation of adding a video control or a video track in the editing interface of the editing subtask, pull up the secondary menu, and in response to the video addition trigger operation of the secondary menu, select shooting or uploading; after selecting shooting, pull up the camera to shoot video material, and refer to the foregoing for specific details; after selecting uploading, pull up the album import page to upload video material, and refer to the foregoing for specific details. When adding pictures, the default duration is 3 seconds, and when adding videos, the original video duration is filled.
[0185] As an optional but non-limiting implementation, see Figure 24, the video track is dragged, the duration of the video clip can be cropped. In response to the triggering operation of the automatic recognition control, the subtitle of the selected video clip is recognized according to the original sound. In response to the triggering operation of the segmentation control, the video clip is segmented by pulling up the segmentation line. In response to the triggering operation of the volume control, the volume of the selected video clip is adjusted. In response to the triggering operation of the deletion control, the selected video clip is deleted, and the video clip followed by the selected video clip and the subtitle are automatically attracted and moved forward; meanwhile, the subtitle generated according to the picture is also deleted.
[0186] As an optional but non-limiting implementation, see Figure 24 For the editing interface of the editing subtask, the picture size can be adjusted by scaling and rotation by clicking the blank part of the canvas / video track, selecting the canvas and track.
[0187] As an optional but non-limiting implementation, see Figure 27 For the editing interface of the editing subtask, only one type of audio can exist on the audio track at the same time, such as the audio of text-to-speech and the audio of recording. For the audio track with text-to-speech, only text-to-speech audio can be added when adding audio; for the audio track with recording, only recording audio can be added when adding audio, and text-to-speech audio cannot be added.
[0188] As an optional but non-limiting implementation, see Figure 27 For the editing interface of the editing subtask, the binding relationship between the audio and the subtitle generated by the audio is as follows: the audio and the subtitle are selected and moved together by clicking the audio / subtitle; when there is a video subtitle on the track, only the audio is pushed, and the subtitle is not pushed; the audio and the subtitle can be adjusted in duration; the duration of the subtitle cannot exceed the duration of the corresponding audio; when the audio duration is shortened, the subtitle is also shortened, and when the audio duration is lengthened, the subtitle content is restored; when deleting / modifying text-to-speech TTS, it is asked whether to delete / modify the corresponding subtitle, and if confirmed, the subtitle is updated; when deleting recording, it is asked whether to delete the corresponding subtitle, and if confirmed, the subtitle is deleted; when deleting the subtitle of text-to-speech TTS, it is asked whether to modify the corresponding TTS, and if confirmed, the audio is updated.
[0189] As an optional but non-limiting implementation, see Figure 27For the editing interface of the editing subtask, the binding relationship between the video and the video-generated subtitle is as follows: when the video is moved, the subtitle in the video time range also moves (the subtitle start time is in the video time range) and cannot be moved alone; the subtitle can be moved alone, and when it is moved out of the video time range, it is unbound with the video; the video and the subtitle can be adjusted in length respectively; deleting the subtitle does not affect the video, and deleting the video deletes the subtitle in the video time range.
[0190] As an optional but non-limiting implementation, see Figure 28 For the editing interface of the editing subtask, the subtitle source is audio and video, each of which is marked with an icon, and audio subtitle and video subtitle cannot exist simultaneously, and adding prompts that they need to be covered. Extracting the video subtitle deletes all subtitles on the current track and extracts the video subtitle of the current segment.
[0191] Optionally, when there is an existing audio subtitle, the video subtitle is extracted, triggering a prompt: there is currently an audio subtitle, and the newly added video subtitle will cover all audio subtitles. Do you want to continue? If yes, a new subtitle is generated to cover the original subtitle. Optionally, when there is an existing video subtitle, the audio subtitle is extracted, triggering a prompt: there is currently a video subtitle, and the newly added audio subtitle will cover all video subtitles. Do you want to continue? If yes, a new subtitle is generated to cover the original subtitle. Optionally, when there is an existing video subtitle, the TTS is added, prompting: there is currently a video subtitle, and the newly added Text to speech subtitle will automatically generate a subtitle to cover the original video subtitle. Do you want to continue? If yes, a new subtitle is generated to cover the original subtitle.
[0192] As an optional but non-limiting implementation, see Figure 29 For the editing interface of the editing subtask, when the audio / subtitle is moved, if there is audio / subtitle at the target position, moving is still supported, and the right audio and the subtitle corresponding to the audio are automatically moved to the right. The video and video subtitle moving logic is consistent with the engineering.
[0193] As an optional but non-limiting implementation, see Figure 30 For the editing interface of the editing subtask, after the script is imported into the preview editing page, the audio of the text-to-speech is automatically generated, and the audio and the subtitle are segmented according to the reading speed and correspond one by one. The text-to-speech audio is filled into the audio track, and the script is filled into the subtitle track as a subtitle. Exemplarily, the subtitle segment splitting logic is: segmented according to the period and line feed, and the upper limit of the number of words in a piece of text: 10 English words.
[0194] As an optional but non-limiting implementation, see Figure 31For the editing interface of the editing subtask, selecting the audio segment corresponding to the text-to-speech audio track will pop up the editing control. In response to the trigger operation of the editing control, the text modification page will be launched, and the text corresponding to the text-to-speech audio segment will be automatically filled in. After modification, the text-to-speech audio and subtitles will be automatically generated, overwriting the original text-to-speech audio and subtitles.
[0195] As an optional but non-restrictive implementation, see [link to relevant documentation]. Figure 32 In the editing interface of the subtask, selecting the audio segment corresponding to the text-to-speech audio track will bring up a re-recording control. Responding to the triggering of the re-recording control, the recording panel will be opened. Upon confirming the re-recording, the text recording page can be expanded and filled with the corresponding text for text-to-speech (the text is for display only and cannot be edited). After the re-recording is completed, new subtitles will be automatically generated based on the recording, overwriting the original audio and subtitles. When the re-recording control is triggered, a prompt will be displayed to indicate that the current text-to-speech audio and subtitles will be overwritten after the re-recording (this prompt can be ignored).
[0196] As an optional but non-restrictive implementation, see [link to relevant documentation]. Figure 33 In the editing interface of the subtask, selecting the audio segment corresponding to the text-to-speech audio track will bring up a timbre selection control. Responding to the trigger operation of the timbre selection control, a timbre panel will be pulled up, allowing you to select the audio timbre type for text-to-speech (TTS). After selection, the corresponding text-to-speech audio will be automatically generated. Note that if modifying the timbre changes the audio timing of the text-to-speech, the associated subtitle length must be aligned with the new audio length. If "Apply to all audio" is checked for timbre adjustment, the timbre will be applied to all audio tracks.
[0197] As an optional but non-restrictive implementation, see [link to relevant documentation]. Figure 34 In the editing interface for subtasks, selecting the audio segment corresponding to the text-to-speech (TTS) audio track allows you to split the TTS audio at the timeline location. If the subtitles are split in the middle, they are copied twice. Optionally, selecting the audio segment corresponding to the TTS audio track pops up a delete control. Responding to the deletion control's trigger, a prompt appears asking whether to automatically delete the corresponding TTS subtitles. If deleted, both the subtitles and audio are deleted; otherwise, the subtitles are retained. Optionally, selecting the audio segment corresponding to the TTS audio track and dragging the highlighted box allows you to trim the audio segment's duration. The volume control supports adjusting the audio segment's volume, ranging from 0-1000.
[0198] As an optional but non-limiting implementation, for the editing interface of the editing subtask, the subtitle corresponding to the audio track of the text-to-speech is selected, the modification of the subtitle content is supported, the modification of the subtitle style is supported, and the deletion of part of the subtitle is supported. Among them, the modification of the subtitle content is as follows: the brush or the subtitle editing control is clicked to modify the subtitle content. The automatic text-to-speech switch is turned on, and the audio and the subtitle content of the text-to-speech are automatically updated after the modification of the subtitle. If it is turned off, the audio content is not updated. The modification of the subtitle content queries whether to change the audio of the text-to-speech at the same time. If it is confirmed to change at the same time, the subtitle content is changed first, and then the new audio of the text-to-speech is generated. The modification of the subtitle style is as follows: the brush or the subtitle editing control is clicked to modify the subtitle font. The font only displays the commercial font, and the style can modify the color background. The default style of the subtitle is as follows: if the template is edited, the style of the template is automatically applied when the text-to-speech generated subtitle is added from the track, and the following elements are applied: font, calligraphy, and animation. The deletion of part of the subtitle is as follows: it is queried whether to update the audio of the text-to-speech. If it is updated, the audio of the text-to-speech is generated according to the new subtitle, and the original audio and the subtitle are covered.
[0199] Figure 35 A structural schematic diagram of a video editing device provided by an embodiment of the present disclosure is provided. The embodiment of the present disclosure is suitable for the case of editing video division editing subtasks. The device can be realized in the form of software and / or hardware. The video editing device can be configured in any electronic device with network communication function to realize, and the electronic device can be a mobile terminal, a PC terminal, or a server, etc. As shown in the figure, the video editing device of the embodiment can include but is not limited to the following: a creation module 3510, an editing acquisition module 3520, an editing recording module 3530, an editing confirmation module 3540, and a video generation module 3550. Among them: Figure 35
[0200] The creation module 3510 is configured to create at least one editing subtask for a video editing task;
[0201] The editing acquisition module 3520 is configured to acquire an original video material and present an editing interface of a target editing subtask in response to a first operation for triggering the target editing subtask, wherein the editing interface of the target editing subtask presents an editing track, and a video track segment formed based on the original video material is placed on a video track in the editing track, and the at least one editing subtask includes the target video editing subtask;
[0202] The editing recording module 3530 is configured to record an editing operation triggered in the editing interface and display an indication mark of the editing operation in the editing track during an editing process of the target editing subtask;
[0203] The editing confirmation module 3540 is configured to, in response to a second operation for confirming completion of the target editing subtask, generate an editing result of the target editing subtask based on the record information of the editing operation and the original video material.
[0204] The video generation module 3550 is configured to generate a target video as an editing result of the video editing task based on the editing results of the respective editing subtasks of the video editing task, wherein in the target video, the original video material is presented according to the editing effect corresponding to the editing operation.
[0205] On the basis of the above-mentioned embodiments, optionally, the creating at least one editing subtask for the video editing task comprises:
[0206] Obtaining an editing template used by the video editing task;
[0207] Determining an editing subtask specified by the editing template;
[0208] Creating the at least one editing subtask according to the editing subtask specified by the editing template.
[0209] On the basis of the above-mentioned embodiments, optionally, the creating the at least one editing subtask according to the editing subtask specified by the editing template comprises:
[0210] Presenting an identifier of the editing subtask specified by the editing template on an editing interface of the video editing task;
[0211] In response to a third operation for triggering addition of an editing subtask, adding an identifier of a first editing subtask in the editing interface of the video editing task, and / or in response to a fourth operation for triggering deletion of an editing subtask, deleting an identifier of a second editing subtask in the editing interface of the video editing task;
[0212] The at least one editing subtask comprises an editing subtask whose identifier is presented in the editing interface of the video editing task.
[0213] On the basis of the above-mentioned embodiments, optionally, the first operation is specifically a triggering operation on an identifier of a third editing subtask presented on the editing interface of the video editing task;
[0214] The identifier of the third editing subtask is added at a position adjacent to the identifier of the first editing subtask on the editing interface of the video editing task.
[0215] On the basis of the above-mentioned embodiments, optionally, the generating a target video as an editing result of the video editing task based on the editing results of the respective editing subtasks of the video editing task comprises:
[0216] determine a combination manner specified by the editing template, the combination manner being used to indicate that the at least one editing subtask is combined into the video editing task;
[0217] combine editing results of each editing subtask of the video editing task according to the combination manner, to obtain the target video.
[0218] On the basis of the above embodiment, optionally, the combination manner is that the at least one editing subtask is spliced and combined into the video editing task according to an arrangement order.
[0219] On the basis of the above embodiment, optionally, further comprising: determining a specified grouping by the editing template, and presenting the editing subtask specified by the editing template according to the specified grouping;
[0220] presenting content prompt information or editing prompt information corresponding to the specified grouping.
[0221] On the basis of the above embodiment, optionally, if the target editing subtask is an editing subtask of a first type, a voice track segment formed based on a voice material is placed on an audio track of the editing track.
[0222] On the basis of the above embodiment, optionally, the voice material is an audio material obtained by performing voice synthesis on a read text, or the voice material is an audio material obtained by recording through an audio collector.
[0223] On the basis of the above embodiment, optionally, the target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the read text is obtained based on a first preset text specified by the editing template for the target editing subtask.
[0224] On the basis of the above embodiment, optionally, further comprising: presenting the first preset text in a text editing area.
[0225] In response to an editing operation of the text editing area, obtaining text in the text editing area after the editing operation as the read text.
[0226] On the basis of the above embodiment, optionally, a subtitle track segment formed based on a read text is placed on a subtitle track of the editing track, the voice material is a read audio of the read text, and the subtitle track segment and the voice track segment have an aligned time axis position on the editing track.
[0227] On the basis of the above-mentioned embodiments, optionally, if the target editing subtask is a second type of editing subtask, the original video material is a recorded video obtained by a camera.
[0228] The method further comprises:
[0229] A shooting interface is presented, and the shooting interface has a text prompt area for displaying and / or editing prompt text.
[0230] In response to a shooting operation triggered on the shooting interface, the prompt text is dynamically played during shooting, and the recorded video is generated based on a shooting image.
[0231] On the basis of the above-mentioned embodiments, optionally, the target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the prompt text is obtained based on a second preset text specified by the editing template for the target editing subtask.
[0232] On the basis of the above-mentioned embodiments, optionally, the second preset text is presented in the text prompt area.
[0233] In response to an editing operation of the text prompt area, text in the text prompt area after the editing operation is obtained as the prompt text.
[0234] On the basis of the above-mentioned embodiments, optionally, if the target editing subtask is a third type of editing subtask, the original video material includes at least a first video material and a second video material, images of the first video material and images of the second video material are used to synthesize images of a third video material according to a specified splicing layout, and a video track segment formed based on the third video material is placed on a video track in the editing track.
[0235] On the basis of the above-mentioned embodiments, optionally, the second video material is obtained and the splicing layout is determined, in response to a shooting trigger operation, during shooting, the shooting image and the images of the second video material are spliced and previewed based on the splicing layout, and the first video material is generated based on the shooting image; and the first video material and the second video material are combined into the third video material through video synthesis based on the splicing layout.
[0236] On the basis of the above-mentioned embodiments, optionally, the target editing subtask is an editing subtask specified by an editing template used by the video editing task.
[0237] Based on the above embodiments, optionally, a target video is generated as the editing result of the video editing task based on the editing results of each editing sub-task of the video editing task, including:
[0238] Obtain the original audio material;
[0239] The editing interface of the video editing task displays audio track segments formed based on the original audio material and video track segments formed based on the editing results of each editing subtask of the video editing task;
[0240] In response to an editing operation on the audio track segment, the target audio material is acquired;
[0241] The target video is generated based on the editing results of each editing subtask of the video editing task and the target audio material.
[0242] Optionally, based on the above embodiments, the method further includes: displaying a preview player on the editing interface of the video editing task, the preview player being used to preview and play the merged result of the editing results of each editing sub-task of the video editing task.
[0243] Optionally, based on the above embodiments, the method further includes: obtaining and saving a target sub-video corresponding to the target editing sub-task based on the editing result of the target editing sub-task; in the target sub-video, the original video material is presented according to the editing effect corresponding to the editing operation.
[0244] The video editing apparatus provided in this embodiment can execute the video editing method provided in any of the above embodiments of this disclosure, and has the corresponding functions and beneficial effects of executing the video editing method. For details, please refer to the relevant operations of the video editing method in the foregoing embodiments.
[0245] Figure 36 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 36 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 36 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 36 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0246] As shown in Figure 36 The electronic device 500 can include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501 that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 502 or programs loaded into a random access memory (RAM) 503 from a storage device 508. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0247] In general, the following devices can be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication devices 509 can allow the electronic device 500 to communicate wirelessly or wired with other devices to exchange data. Although Figure 36 The electronic device 500 having various devices is shown, but it is understood that all of the shown devices are not required to be implemented or provided. More or less devices can alternatively be implemented or provided.
[0248] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 509, or installed from the storage devices 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the methods of embodiments of the present disclosure are performed.
[0249] The names of messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0250] The electronic device provided by the embodiments of the present disclosure and the video editing method provided by the above embodiments belong to the same inventive concept, and the technical details not described in detail in the present embodiments can be referred to the above embodiments, and the present embodiments have the same beneficial effects as the above embodiments.
[0251] The computer storage medium provided by the embodiments of the present disclosure stores a computer program, and the computer program is executed by a processor to implement the video editing method provided by the above embodiments.
[0252] It should be noted that the computer readable medium of the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present disclosure, the computer readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or apparatus. The program code contained in the computer readable medium can be transmitted by any suitable medium, including but not limited to a wire, a cable, an RF (radio frequency) or the like, or any suitable combination thereof.
[0253] In some embodiments, the client, server can communicate using any currently known or future 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 local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
[0254] The above computer readable medium can be included in the above electronic device; or can exist separately without being assembled into the electronic device.
[0255] The computer readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, cause the electronic device to:
[0256] The computer readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, cause the electronic device to: create at least one editing subtask for a video editing task; in response to a first operation for triggering a target editing subtask, acquire an original video material and present an editing interface of the target editing subtask, wherein the editing interface of the target editing subtask presents an editing track, and a video track segment formed based on the original video material is placed on a video track in the editing track, the at least one editing subtask includes the target video editing subtask; during the editing process of the target editing subtask, record an editing operation triggered in the editing interface and present an indication of the editing operation in the editing track; in response to a second operation for confirming completion of the target editing subtask, generate an editing result of the target editing subtask based on the recording information of the editing operation and the original video material; generate a target video based on the editing results of the editing subtasks of the video editing task as an editing result of the video editing task; and present the original video material in the target video according to an editing effect corresponding to the editing operation.
[0257] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can 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 the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0258] The computer program product of the first aspect can include a computer readable storage medium. The computer readable storage medium can be a transitory or a non-transitory computer readable medium. The computer readable storage medium can include: a hard disk, a floppy disk, a CD-ROM, a DVD, a Blu-Ray Disc, a flash memory, a PROM, an EPROM, a EEPROM, a EEPROM, a register, a memory chip, or a storage of any suitable combination of the foregoing. In some embodiments, the computer readable storage medium can be tangible. In some embodiments, the computer readable storage medium can be a non-transitory computer readable medium.
[0259] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of a unit does not constitute a limitation on the unit itself. For example, the first obtaining unit can also be described as a unit that obtains at least two Internet protocol addresses.
[0260] The functions described above in the detailed description of embodiments of the present disclosure can be performed by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip systems (SOCs), complex programmable logic devices (CPLDs), etc.
[0261] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more of: a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0262] According to one or more embodiments of the present disclosure, example 1 provides a video editing method, the method comprising:
[0263] Create at least one editing subtask for each video editing task;
[0264] In response to a first operation for triggering a target editing subtask, the original video footage is acquired and the editing interface of the target editing subtask is presented, wherein the editing interface of the target editing subtask presents an editing track, and a video track segment formed based on the original video footage is placed on the video track in the editing track, and the at least one editing subtask includes the target video editing subtask;
[0265] During the editing process of the target editing subtask, the editing operations triggered in the editing interface are recorded and the indicator icons of the editing operations are displayed in the editing track;
[0266] In response to a second operation for confirming the completion of the target editing subtask, an editing result for the target editing subtask is generated based on the recorded information of the editing operation and the original video footage;
[0267] Based on the editing results of each editing subtask of the video editing task, a target video is generated as the editing result of the video editing task; in the target video, the original video material is presented according to the editing effect corresponding to the editing operation.
[0268] According to one or more embodiments of this disclosure, Example 2 provides the method of Example 1, wherein creating at least one editing subtask for a video editing task includes:
[0269] Obtain the editing template used by the video editing task;
[0270] Determine the editing subtask specified by the editing template;
[0271] Create the at least one editing subtask according to the editing subtask specified in the editing template.
[0272] According to one or more embodiments of this disclosure, Example 3 provides the method of Example 2, wherein creating the at least one editing subtask according to the editing subtask specified by the editing template includes:
[0273] On the editing interface of the video editing task, the identifier of the editing sub-task specified by the editing template is displayed;
[0274] In response to a third operation for triggering the addition of an editing subtask, an identifier for a first editing subtask is added to the editing interface of the video editing task, and / or, in response to a fourth operation for triggering the deletion of an editing subtask, an identifier for a second editing subtask is deleted from the editing interface of the video editing task.
[0275] The at least one editing subtask includes an editing subtask whose identifier is presented in an editing interface of the video editing task.
[0276] According to one or more embodiments of the present disclosure, example 4 provides the method of example 3,
[0277] The first operation is specifically a triggering operation on an identifier of a third editing subtask presented on an editing interface of the video editing task.
[0278] On the editing interface of the video editing task, the identifier of the third editing subtask is added at a position adjacent to the identifier of the first editing subtask.
[0279] According to one or more embodiments of the present disclosure, example 5 provides the method of example 2, wherein the generating a target video as an editing result of the video editing task based on editing results of each editing subtask of the video editing task comprises:
[0280] Determining a combination manner specified by the editing template, the combination manner being used to indicate that the at least one editing subtask is combined into the video editing task.
[0281] According to the combination manner, the editing results of each editing subtask of the video editing task are synthesized to obtain the target video.
[0282] According to one or more embodiments of the present disclosure, example 6 provides the method of example 5, wherein the combination manner is that the at least one editing subtask is spliced and combined into the video editing task according to an arrangement order.
[0283] According to one or more embodiments of the present disclosure, example 7 provides the method of example 2, further comprising:
[0284] Determining a grouping specified by the editing template, and presenting the editing subtask specified by the editing template according to the specified grouping;
[0285] Displaying content prompt information or editing prompt information corresponding to the specified grouping.
[0286] According to one or more embodiments of the present disclosure, example 8 provides the method of example 1, wherein if the target editing subtask is a first type of editing subtask, a voice track segment formed based on voice material is placed on an audio track of the editing track.
[0287] According to one or more embodiments of the present disclosure, example 9 provides the method of example 8, wherein the voice material is audio material obtained by performing voice synthesis on the read text, or the voice material is audio material obtained by recording through an audio collector.
[0288] According to one or more embodiments of the present disclosure, example 10 provides the method of example 9, wherein the target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the read text is obtained based on a first preset text specified by the editing template for the target editing subtask.
[0289] According to one or more embodiments of the present disclosure, example 11 provides the method of example 10, further comprising:
[0290] presenting the first preset text in a text editing area;
[0291] obtaining text in the text editing area after an editing operation on the text editing area as the read text in response to the editing operation on the text editing area.
[0292] According to one or more embodiments of the present disclosure, example 12 provides the method of example 8, wherein a subtitle track segment formed based on the read text is placed on a subtitle track of the editing track, the voice material is read audio of the read text, and the subtitle track segment and the voice track segment have an aligned time axis position on the editing track.
[0293] According to one or more embodiments of the present disclosure, example 13 provides the method of example 1, wherein, if the target editing subtask is a second type of editing subtask, the original video material is a recorded video obtained through a camera.
[0294] The method further comprises:
[0295] presenting a shooting interface, wherein the shooting interface has a text prompt area for displaying and / or editing prompt text;
[0296] in response to a shooting operation triggered on the shooting interface, dynamically playing the prompt text during shooting and generating the recorded video based on a shooting image.
[0297] According to one or more embodiments of the present disclosure, example 14 provides the method of example 13, wherein the target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the prompt text is obtained based on a second preset text specified by the editing template for the target editing subtask.
[0298] According to one or more embodiments of the present disclosure, example 15 provides the method of example 14, further comprising:
[0299] presenting the second preset text in the text prompt area;
[0300] in response to an editing operation of the text prompt area, obtaining text in the text prompt area after the editing operation as the prompt text.
[0301] According to one or more embodiments of the present disclosure, example 16 provides the method of example 1, if the target editing subtask is a third type of editing subtask, the original video material at least includes a first video material and a second video material, images of the first video material and images of the second video material are used to synthesize images of a third video material according to a specified splicing layout, and a video track segment formed based on the third video material is placed on a video track in the edit track.
[0302] According to one or more embodiments of the present disclosure, example 17 provides the method of example 16, further comprising:
[0303] obtaining the second video material and determining the splicing layout;
[0304] in response to a shooting trigger operation, splicing a shooting image with images of the second video material based on the splicing layout and previewing during a shooting process, and generating the first video material based on the shooting image;
[0305] based on the splicing layout, synthesizing the first video material and the second video material into the third video material through video.
[0306] According to one or more embodiments of the present disclosure, example 18 provides the method of any one of examples 1 to 17, generating a target video as an editing result of the video editing task based on editing results of each editing subtask of the video editing task, comprising:
[0307] obtaining an original audio material;
[0308] displaying, on an editing interface of the video editing task, an audio track segment formed based on the original audio material and a video track segment formed based on the editing result of each editing subtask of the video editing task;
[0309] in response to an editing operation on the audio track segment, obtaining a target audio material;
[0310] generating the target video based on the editing result of each editing subtask of the video editing task and the target audio material.
[0311] According to one or more embodiments of the present disclosure, example 19 provides the method of any one of examples 1 to 17, further comprising:
[0312] The preview player is presented on an editing interface of the video editing task, and is configured to preview play a merging result of editing results of each editing subtask of the video editing task.
[0313] According to one or more embodiments of the present disclosure, example 20 provides the method of any one of examples 1 to 17, further comprising:
[0314] Based on the editing result of the target editing subtask, a target sub-video corresponding to the target editing subtask is obtained and saved, and in the target sub-video, the original video material is presented according to the editing effect corresponding to the editing operation.
[0315] The above description is merely preferred embodiments of the present disclosure and a description of the principles of the technology employed. It should be understood by those skilled in the art that the disclosed scope of the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combinations of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) having similar functions.
[0316] In addition, although each operation is described in a particular order, this should not be understood as requiring the operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing can be advantageous. Similarly, although several implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be combined in a single embodiment. Conversely, various features described in the context of a single embodiment can also be separated and implemented in multiple embodiments. The various features described in the context of separate embodiments can also be combined in a single embodiment.
[0317] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject 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 disclosed as example forms of implementing the claims.
Claims
1. A video editing method characterized by, The method comprises: creating at least one editing subtask for a video editing task; in response to a first operation for triggering a target editing subtask, obtaining original video material and presenting an editing interface of the target editing subtask, wherein the editing interface of the target editing subtask presents an editing track, and a video track segment formed based on the original video material is placed on the video track in the editing track, the at least one editing subtask includes a target video editing subtask, and the editing presents content prompt information or editing prompt information corresponding to a specified group in the task according to the specified grouping; during the editing process of the target editing subtask, recording an editing operation triggered in the editing interface and presenting an indication mark of the editing operation in the editing track, the indication mark corresponds one-to-one to the editing type of the editing operation; in response to a second operation for confirming completion of the target editing subtask, generating an editing result of the target editing subtask based on the recording information of the editing operation and the original video material; based on the editing results of the respective editing subtasks of the video editing task, generating a target video as the editing result of the video editing task; in the target video, the original video material is presented according to the editing effect corresponding to the editing operation.
2. The method of claim 1, wherein, The method comprises: obtaining an editing template used by the video editing task; determining an editing subtask specified by the editing template; creating the at least one editing subtask according to the editing subtask specified by the editing template.
3. The method of claim 2, wherein, The method comprises: presenting an identifier of the editing subtask specified by the editing template on an editing interface of the video editing task; in response to a third operation for triggering an increase in an editing subtask, adding an identifier of a first editing subtask in the editing interface of the video editing task, and / or in response to a fourth operation for triggering a deletion of an editing subtask, deleting an identifier of a second editing subtask in the editing interface of the video editing task; wherein the at least one editing subtask includes an editing subtask whose identifier is presented in the editing interface of the video editing task.
4. The method of claim 3, wherein: the third operation is specifically a triggering operation on an identifier of a third editing subtask presented on the editing interface of the video editing task; on the editing interface of the video editing task, the identifier of the first editing subtask is added adjacent to the identifier of the third editing subtask.
5. The method of claim 2, wherein, The method comprises: determining a combination mode specified by the editing template, the combination mode being used to indicate that the at least one editing subtask is combined into the video editing task; combining the editing results of the respective editing subtasks of the video editing task according to the combination mode to obtain the target video.
6. The method of claim 5, wherein, The combination manner is that the at least one editing subtask is spliced and combined into the video editing task according to the arrangement order.
7. The method of claim 2, wherein, Further comprising: determining the grouping specified by the editing template, and presenting the editing subtasks specified by the editing template according to the specified grouping; presenting the content prompt information or the editing prompt information corresponding to the specified grouping.
8. The method of claim 1, wherein, If the target editing subtask is an editing subtask of a first type, a voice track segment formed based on voice material is placed on an audio track of the editing track.
9. The method of claim 8, wherein, The voice material is audio material obtained by voice synthesis on read text, or the voice material is audio material obtained by audio recording by an audio collector.
10. The method of claim 9, wherein, The target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the read text is obtained based on a first preset text specified by the editing template for the target editing subtask.
11. The method of claim 10, wherein, Further comprising: presenting the first preset text in a text editing area; in response to an editing operation of the text editing area, obtaining text in the text editing area after the editing operation as the read text.
12. The method of claim 8, wherein, If the target editing subtask is an editing subtask of a second type, the original video material is a recorded video obtained by a camera; 13. The method of claim 1, wherein, The method further comprises: presenting a shooting interface, the shooting interface having a text prompt area for presenting and / or editing a prompt text; in response to a shooting operation triggered on the shooting interface, dynamically playing the prompt text during shooting and generating the recorded video based on a shooting image. The target editing subtask is an editing subtask specified by an editing template used by the video editing task, and the prompt text is obtained based on a second preset text specified by the editing template for the target editing subtask.
14. The method of claim 13, wherein, Further comprising:
15. The method of claim 14, wherein, presenting the second preset text in the text prompt area; in response to an editing operation of the text prompt area, obtaining text in the text prompt area after the editing operation as the prompt text. If the target editing subtask is an editing subtask of a third type, the original video material includes at least a first video material and a second video material, images of the first video material and images of the second video material are used to synthesize images of a third video material according to a specified splicing layout, and a video track segment formed based on the third video material is placed on a video track in the editing track.
16. The method of claim 1, wherein, Further comprising:
17. The method of claim 16, wherein, obtaining the second video material and determining the splicing layout; in response to a shooting trigger operation, splicing and previewing a shooting image and images of the second video material based on the splicing layout during shooting, and generating the first video material based on the shooting image; Based on the splicing layout, the first video material and the second video material are synthesized into the third video material through video.
18. The method according to any one of claims 1 to 17, characterized in that, Based on the editing results of the respective editing sub-tasks of the video editing task, a target video is generated as the editing result of the video editing task, including: Obtaining an original audio material; On the editing interface of the video editing task, an audio track segment formed based on the original audio material and a video track segment formed based on the editing results of the respective editing sub-tasks of the video editing task are displayed; In response to an editing operation on the audio track segment, a target audio material is obtained; Based on the editing results of the respective editing sub-tasks of the video editing task and the target audio material, the target video is generated.
19. The method according to any one of claims 1 to 17, characterized in that, Also includes: The editing interface of the video editing task is presented with a preview player, which is used to preview and play the merged results of the editing results of the respective editing sub-tasks of the video editing task.
20. The method according to any one of claims 1 to 17, characterized in that, Also includes: Based on the editing result of the target editing sub-task, a target sub-video corresponding to the target editing sub-task is obtained and saved; In the target sub-video, the original video material is presented according to the editing effect corresponding to the editing operation.
21. A video editing apparatus characterized by comprising: The device includes: A creation module for creating at least one editing sub-task for a video editing task; An editing acquisition module for obtaining an original video material and presenting an editing interface of a target editing sub-task in response to a first operation for triggering the target editing sub-task, wherein the editing interface of the target editing sub-task presents an editing track, and a video track segment formed based on the original video material is placed on a video track in the editing track, the at least one editing sub-task includes a target video editing sub-task, and the editing task presents content prompt information or editing prompt information corresponding to a specified group according to a specified grouping; An editing recording module for recording an editing operation triggered in the editing interface and presenting an indication of the editing operation in the editing track during the editing process of the target editing sub-task, the indication corresponding one-to-one to the editing type of the editing operation; An editing confirmation module for generating an editing result of the target editing sub-task based on the recording information of the editing operation and the original video material in response to a second operation for confirming the completion of the target editing sub-task; A video generation module for generating a target video as the editing result of the video editing task based on the editing results of the respective editing sub-tasks of the video editing task, wherein the original video material is presented according to the editing effect corresponding to the editing operation in the target video.
22. An electronic device, comprising: The electronic device includes: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video editing method of any one of claims 1-20.
23. A storage medium containing computer-executable instructions, wherein: The computer executable instructions, when executed by a computer processor, are used to perform the video editing method of any one of claims 1-20. The computer executable instructions, when executed by a computer processor, are used to perform the video editing method of any one of claims 1-20.
Citation Information
Patent Citations
Teleprompter tool for voice-over tool
US20120033948A1
Video generation method and apparatus, electronic device, and storage medium
WO2022143924A1