Video editing method and device, electronic equipment and storage medium
By responding to material import and slot adjustment operations in the video editing interface, and generating and displaying initial and target draft files, the problem of low order adjustment of video template materials in the prior art is solved, and the flexibility and efficiency of video editing are achieved.
Patent Information
- Application Number
- CN202311168793.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2025-03-11
AI Technical Summary
Existing video editing applications are inefficient when adjusting the sequence of materials in video templates, requiring reimport or replacement of clips from a single slot.
By responding to the material import operation and slot adjustment operation in the video editing interface, the initial draft file and the target draft file are generated and displayed in the video editing interface to achieve flexible adjustment of the material order.
Improves the flexibility and editing efficiency of video editing, allowing users to flexibly adjust the order of materials when editing videos without re-importing materials.
Smart Images

Figure CN119603511A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of video editing, and in particular to a video editing method, device, electronic device, and storage medium. Background Art
[0002] When editing videos, in order to simplify the difficulty of video editing, the video editing application provides video templates for users to use. When the user needs to generate a video of a certain template, he can directly select the template and transfer the material.
[0003] A video template usually requires multiple video materials to be imported in sequence. When the order of one of the materials needs to be adjusted, the only option is to exit and re-import the material, or replace the clip in a single slot, which is very inefficient. Summary of the invention
[0004] The embodiments of the present disclosure provide a video editing method, device, electronic device and storage medium to achieve flexible editing of template videos and improve the editing efficiency of video editing.
[0005] In a first aspect, an embodiment of the present disclosure provides a video editing method, the method comprising:
[0006] In response to a material import operation in a video editing interface, an initial draft file is generated based on the import slots of each imported material and video template information, and the initial draft file is displayed in the video editing interface;
[0007] In response to a slot adjustment operation on a target material, determining a target adjustment slot of each of the imported materials, wherein the target material is one or more materials among the imported materials;
[0008] A target draft file is generated based on the target adjustment slot of each of the imported materials and the video template information, and the target draft file is displayed on the video editing interface.
[0009] In a second aspect, an embodiment of the present disclosure further provides a video editing device, the device comprising:
[0010] An initial draft display module, for responding to a material import operation in a video editing interface, generating an initial draft file based on the import slot of each imported material and video template information, and displaying the initial draft file in the video editing interface;
[0011] A material slot adjustment module, configured to determine a target adjustment slot of each of the imported materials in response to a slot adjustment operation on a target material, wherein the target material is one or more materials among the imported materials;
[0012] A target draft display module is used to generate a target draft file based on the target adjustment slot of each imported material and the video template information, and display the target draft file in the video editing interface.
[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0014] one or more processors;
[0015] a storage device for storing one or more programs,
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the video editing method as described in any of the embodiments of the present disclosure.
[0017] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the video editing method as described in any one of the embodiments of the present disclosure.
[0018] The technical solution of the disclosed embodiment generates an initial draft file based on the import slots and video template information of each imported material in response to a material import operation in a video editing interface, and displays the initial draft file in the video editing interface; determines the target adjustment slot of each imported material in response to a slot adjustment operation on a target material, wherein the target material is one or more materials in the imported material; generates a target draft file based on the target adjustment slot and video template information of each imported material, and displays the target draft file in the video editing interface, determines the target adjustment slot of each imported material based on the slot adjustment operation after the material is imported, generates a corresponding target draft file for display, thereby realizing the adjustment of the order of the imported materials after the material is imported during video editing, and improving the flexibility and editing efficiency of video editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1 A flowchart of a video editing method provided by an embodiment of the present disclosure;
[0021] Figure 2 is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure;
[0022] Figure 3is a schematic diagram of a slot adjustment result provided by an embodiment of the present disclosure;
[0023] Figure 4 is a schematic diagram of another slot adjustment result provided by an embodiment of the present disclosure;
[0024] Figure 5 is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure;
[0025] Figure 6 A flowchart of another video editing method provided by an embodiment of the present disclosure;
[0026] Figure 7 A structural block diagram of a video editing device provided by an embodiment of the present disclosure;
[0027] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] Before introducing the technical solution, an exemplary description of the application scenario can be given. The disclosed technical solution can be applied to any interactive interface that needs to display effects, for example, it can be applied in the process of video shooting, where the image or video corresponding to the user being filmed can be displayed, such as in short video shooting or editing scenarios.
[0034] Figure 1 This is a flowchart of a video editing method provided by an embodiment of the present disclosure. This embodiment can be applied to any video editing scenario supported by the Internet, and is used to display the effects of slot adjustment operations on materials in video editing. The method can be executed by a video editing device, which can be implemented in the form of software and / or hardware, and the hardware can be an electronic device, such as a mobile terminal, a PC, or a server. Any video editing scenario is usually implemented by the cooperation of a client and a server. The method provided in this embodiment can be executed by the server, the client, or the cooperation of the client and the server.
[0035] like Figure 1 , the method of this embodiment includes:
[0036] S110. In response to a material import operation in a video editing interface, an initial draft file is generated based on an import slot of each imported material and video template information, and the initial draft file is displayed in the video editing interface.
[0037] Among them, the device for executing the video editing method provided by the embodiment of the present disclosure can be integrated into an application software that supports the video editing function, and the software can be installed in an electronic device. Optionally, the electronic device can be a mobile terminal or a PC. The application software can be a type of software for video processing, and its specific application software will not be described one by one here, as long as the editing and processing of the template video can be realized. It can also be a specially developed application program to implement the software for editing the template video, or it can be integrated in the corresponding page, and the user can implement the special effect adding processing through the page integrated in the PC.
[0038] When a user edits a video through a template, it is usually necessary to first select the desired video template, and then import multiple materials in sequence. The video editing device maps the materials imported in sequence by the user to the slots of the video template to display a video editing interface including multiple materials arranged in sequence. The video template can be a template provided by the video editing device or uploaded by the user, and its display form is a project file. It should be noted that this embodiment is applied to the editing scenario of the template video before the template video is synthesized, so the editing of the template video in this embodiment is essentially the editing of the project file.
[0039] Figure 2 is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure, such as Figure 2 As shown, the video editing interface includes a video display area 210, a progress bar 220, and slot display areas 231, 232, and 233. The user can Figure 2 The video editing interface shown is used to import or edit materials. The video display area 210 is used to display the video editing effect, the progress bar 220 is used to display the video playback progress, and the slot display areas 231, 232, and 233 are used to display the imported materials corresponding to each slot. Figure 2 The video editing interface is described in an exemplary manner by taking the example of a user importing material a into slot 231, material b into slot 232, and material c into slot 233. Optionally, thumbnails of the imported materials corresponding to each slot can be displayed in slot display areas 231, 232, and 233, respectively.
[0040] It is understandable that the video template includes information about display parameters (such as display effect, display duration, etc.) of each slot. Therefore, after obtaining the imported material and determining the import slot of the imported material, an initial draft file can be generated based on the import slot of each imported material and the video template information, and an initial display video corresponding to the initial draft file can be generated, and the initial display video can be displayed in the video editing interface. Figure 2 Taking the video editing interface shown as an example, the initial draft file can be displayed in the video display area 210.
[0041] S120. In response to a slot adjustment operation on a target material, determine a target adjustment slot for each of the imported materials, wherein the target material is one or more materials in the imported materials.
[0042] In this embodiment, in order to solve the technical problems of difficulty and low efficiency in adjusting the slot of materials in the prior art, a technical idea of directly adjusting the slot of materials on the video editing interface is provided to the user. The user can directly operate the displayed imported materials on the video editing interface to adjust the slot corresponding to the material. After detecting the slot adjustment operation initiated by the user, the imported material whose slot has changed and the target adjustment slot of the imported material are determined.
[0043] It is understandable that since the imported material corresponds to the slot one-to-one, when the slot of a certain imported material changes, it may affect the slots of other imported materials. Therefore, in order to achieve corresponding video adjustment when the slot changes, the imported material that triggers the slot adjustment operation can be used as the target material, and the target adjustment slot of each imported material after the slot adjustment operation is determined, so as to make each imported material correspond to its corresponding target adjustment slot one-to-one.
[0044] The target adjustment slot of the imported material is determined based on the slot adjustment operation and the slot adjustment logic. Optionally, the slot adjustment logic can be to exchange the slot-corresponding materials, or to move the slot-corresponding materials in association. When the slot adjustment logic is to exchange the slot-corresponding materials, the slots of the selected material and the material of the dragged target slot change; when the slot adjustment logic is to add the selected material before the material of the dragged target slot, the slot corresponding to the imported material and the slot of the imported material of the dragged target slot will both change.
[0045] by Figure 2 The displayed video editing interface takes the display information of the initial draft file as an example. Slot 231 is filled with material a, slot 232 is filled with material b, and slot 233 is filled with material c. If the slot of material c is adjusted to slot 231. Figure 3 FIG. 1 is a schematic diagram of a slot adjustment result provided by an embodiment of the present disclosure. Figure 3 As shown, when the slot adjustment logic can exchange the slot-corresponding materials, the target adjustment slot of material a is slot 233, and the target adjustment slot of material c is slot 231. Figure 4 FIG. 1 is a schematic diagram of another slot adjustment result provided by an embodiment of the present disclosure. Figure 4 As shown, when the slot adjustment logic is to add the selected material before the material of the dragged target slot, the target adjustment slot of material c is slot 231, the target adjustment slot of material a is slot 232, and the target adjustment slot of material b is slot 233.
[0046] In one embodiment of the present invention, the slot adjustment operation is triggered by dragging the target material, and the target material is selected by single-clicking, double-clicking, and / or long-pressing. Optionally, the user can select an imported material as the target material by setting the selection method (single-click, double-click, or long-press), and then perform a drag operation to drag the target material to the slot to be adjusted. When it is detected that the user has selected an imported material, the display method of the slot corresponding to the imported material can be adjusted (such as enlarging, adding a shadow effect, etc.) to prompt the user that the imported material has been selected.
[0047] S130: Generate a target draft file based on the target adjustment slot of each of the imported materials and the video template information, and display the target draft file on a video editing interface.
[0048] After determining the target adjustment slot corresponding to each imported material, a target draft file is generated according to the slot information of the target adjustment slot of each imported material (determined according to the video template information), and a corresponding target display video is generated for display.
[0049] Optionally, the target draft file can be obtained by adjusting the slot changes of the imported material based on the initial draft file, or the corresponding target draft file can be generated directly based on the target adjustment slot of the imported material, which is not limited here.
[0050] It is understandable that before displaying the target draft file, it is necessary to generate the target display video corresponding to the target draft file. The video template may be provided with the track editing information of the video template, such as displaying by setting special effects (black and white effect, animation effect, reverse effect, etc.) in a certain time period, and the above contents are all stored in the target draft file. Based on this, in order to display the video effect corresponding to the video template, it is necessary to edit the imported material according to the editing information in the target draft file.
[0051] In one embodiment of the present disclosure, before displaying the target draft file on the video editing interface, the method further includes:
[0052] Determine at least one material editing segment in the target draft file according to the track editing information in the target draft file, and edit the material editing segment based on the track editing information;
[0053] Accordingly, displaying the target draft file on the video editing interface includes:
[0054] The editing result of the material editing segment is displayed on the video editing interface.
[0055] Optionally, the target draft file can be parsed to obtain track editing information in the target draft file, wherein the track editing information can include editing effects corresponding to each time period on the time track. A segment in the imported material is obtained as a material editing segment through the track editing information, and then the material editing segment is edited with special effects to obtain a special effect editing result of the material editing segment as a target display video of the target draft file for display.
[0056] Optionally, determining the material editing segment in the target draft file according to the track editing information in the target draft file includes:
[0057] Determine an editing time period corresponding to the track editing information;
[0058] The video material corresponding to the editing time period in the target draft file is used as the material editing segment.
[0059] It should be noted that the time period for special effects editing in the track editing information is random and may or may not correspond to the video clip time of the slot. Therefore, it is only necessary to use the imported material corresponding to the editing time period as the material editing clip. Among them, the material editing clip may be a complete one or more imported materials, or it may be a video clip composed of some / all clips of adjacent imported materials.
[0060] It is understandable that not all the imported materials have corresponding editing effects. Therefore, it is only necessary to obtain one or more material editing segments with editing effects and generate corresponding special effects editing tasks. Assuming that there are two material editing segments, two corresponding special effects editing tasks can be generated. If there are multiple special effects editing tasks, multiple special effects editing tasks can be processed in parallel through different controllers to reduce the execution time of each special effects editing task and speed up the special effects editing time of the material editing segments.
[0061] In another embodiment of the present invention, the imported material can be directly edited for special effects based on the special effects corresponding to the slots. In this case, considering that the slots corresponding to the imported material have changed, it is possible that the duration of the imported material does not match the duration of the target adjustment slot of the imported material, affecting the display effect of the video. For each imported material with slot changes, when the material duration of the imported material with slot changes does not match the slot duration of its corresponding target adjustment slot, the imported material can be first processed according to the slot duration of the target adjustment slot and the material duration of the imported material to obtain a duration matching material, and then special effects editing can be performed based on the duration matching material.
[0062] Optionally, the imported material is processed according to the slot duration of the target adjustment slot and the material duration of the imported material to obtain a duration matching material, including: when the slot duration is greater than the material duration, based on the duration difference between the slot duration and the material duration, the material duration is slowed down to obtain a duration matching material that matches the slot duration. Exemplarily, when the slot duration is 5 seconds and the material duration is 3 seconds, the target material can be played in slow motion, and the duration of the target material can be adjusted from 3 seconds to 5 seconds to obtain a duration matching material.
[0063] Optionally, the imported material is processed according to the slot duration of the target adjustment slot and the material duration of the imported material to obtain a duration matching material, including: when the slot duration is less than the material duration, the target material is cropped based on the duration difference between the slot duration and the material duration to obtain a duration matching material that matches the slot duration. Among them, cropping the target material can be to start with the starting frame of the target material, crop the target material, and obtain a duration matching material whose cropped duration is the slot duration. On the basis of the above, if the user has cropped the target material, in order to make the cropped material meet the user's needs, the target material can be cropped starting from the starting frame of the user's cropped material to obtain a duration matching material whose cropped duration is the slot duration. If the target material is cropped starting from the starting frame of the user's cropped material and the duration of the last frame is still less than the slot duration, the duration can be increased from the starting frame of the user's cropped material until the duration matches the slot duration to obtain the duration matching material.
[0064] In addition to the above solutions, it also includes:
[0065] The editing information of the material editing segment is stored based on the template identifier corresponding to the video template information; and when a file selection operation is detected, the template identifier corresponding to the file selection operation is determined, and the editing information corresponding to the template identifier is obtained for display.
[0066] In order to solve the technical problem of file loss when the special effects loading time is too long or the abnormal exit caused by user operation. In this embodiment, after the special effects editing operation is started, the editing information of the special effects editing operation is stored in the database, so that after the abnormal exit, when the previously edited template video is entered again, the corresponding project file can be read from the database and displayed. Optionally, the editing information can be stored based on the template identifier of the video template used for the current video editing. Specifically, the template identifier and editing information of the video template can be stored in the database accordingly. When the user selects a file in the draft box, the corresponding editing information is obtained from the database based on the template identifier corresponding to the selected file, and the special effects editing operation is continued to be executed, avoiding file exit during abnormal exit and improving the editing efficiency of the template video.
[0067] Correspondingly, the method further includes: after the editing of the material editing segment is completed, deleting the stored editing information corresponding to the material editing segment.
[0068] To avoid reading completed video editing files and reduce memory pressure, after all special effect editing tasks are completed, the template identifier and editing information of the video template corresponding to the editing are deleted from the database.
[0069] In an implementation manner of the present disclosure, it further includes: before the editing of the material editing segment is completed, displaying the processing progress of the material editing segment.
[0070] It is understandable that the special effects editing operation of the material editing clip may take a certain period of time to complete. In order to improve the flexibility of video editing, in this embodiment, when performing special effects editing, the execution progress of the special effects editing can be displayed on the video editing interface, so that while waiting for the special effects editing to be completed, simple material processing and editing can still be performed on the target material, thereby improving the editing efficiency of the template video.
[0071] Among them, the processing progress can be the processing progress of special effects editing of all material editing segments, which can be determined by the number of completed material editing segments and the number of all material editing segments, and can be displayed by a progress bar, a progress ring, etc. Optionally, in order to reduce the display area of the processing progress, the task execution progress can be displayed in the form of a progress bar. Specifically, a processing progress bar is determined based on the processing progress, and the processing progress bar is displayed on the video editing interface. Exemplarily, when there are 5 special effects editing tasks in total and 1 special effects editing task has been completed, the task execution progress is 20%, and the progress bar is filled with 20% for display. Figure 5 is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure. Figure 5 As shown, a processing progress bar 240 is provided near the slot display area of the video editing interface to display the special effect editing processing progress after the slot is adjusted.
[0072] When the special effects editing of each material editing segment is completed, the special effects editing results of each material editing segment are obtained and displayed.
[0073] On the basis of the above scheme, it also includes: in response to the material processing operation on the target material, executing the material processing operation and displaying it, wherein the material processing operation includes a material element editing operation and / or a playback attribute adjustment operation. The technical solution provided by this embodiment does not block user operations during the execution of special effect editing, and the user can still perform simple material processing operations, such as material element editing (addition / removal) operations, playback attribute adjustment operations, etc., as long as the special effect processing part of the material is not changed. Among them, the material element editing operation can be a text editing operation, a map editing operation, etc., and the playback attribute adjustment operation can be a video playback operation, a volume adjustment operation, etc. The above operations do not need to call the algorithm to execute, and can be completed directly based on device parameters or existing elements. Therefore, during the execution of special effect editing, when the material processing operation on the target element initiated by the user is detected, the processing result of the material processing operation can still be displayed in real time. After the special effect editing is completed, the target editing result of the special effect editing can be superimposed and displayed with the processing result of the material processing operation. Save the editing time of the template video and improve the editing efficiency of the template video.
[0074] The technical solution of the disclosed embodiment generates an initial draft file based on the import slots and video template information of each imported material in response to a material import operation in a video editing interface, and displays the initial draft file in the video editing interface; determines the target adjustment slot of each imported material in response to a slot adjustment operation on a target material, wherein the target material is one or more materials in the imported material; generates a target draft file based on the target adjustment slot and video template information of each imported material, and displays the target draft file in the video editing interface, determines the target adjustment slot of each imported material based on the slot adjustment operation after the material is imported, generates a corresponding target draft file for display, thereby realizing the adjustment of the order of the imported materials after the material is imported during video editing, and improving the flexibility and editing efficiency of video editing.
[0075] Figure 6 A flowchart of another video editing method provided by an embodiment of the present disclosure is shown below. Figure 6 Based on the above embodiments, a preferred embodiment is provided.
[0076] In general, this embodiment proposes a non-blocking solution for adjusting the order of clips after the user adjusts the order of clips. After the user drags to adjust the order of clips, a non-blocking progress bar is provided, but the user operation is not blocked. Instead, the loading effect is put into an asynchronous task manager in the background for loading, which improves the editing efficiency of the template video.
[0077] like Figure 6 As shown, Figure 6 The video editing methods provided in include:
[0078] S210, adjusting the order of materials.
[0079] The user can long press the slot, select the material corresponding to the slot, drag the material, adjust the order of the materials, and use the material with the changed order as the target material.
[0080] S220, material variable speed cropping and replacement.
[0081] The duration of the slots in the video template is fixed. To improve the video display effect, the cropping duration of the target material will also be determined according to the slot changes. After dragging and sorting is completed and clicking OK, the length of the material after the order is adjusted is checked to obtain the duration matching material, so that the material length of the duration matching material is consistent with the corresponding slot length.
[0082] Optionally, the generation of the duration-matched material can be determined by cropping or speed change, specifically:
[0083] When dragging a long video to a short time slot, if the user has previously cropped the video, the original cropping position is retained as the start frame; if the duration from the previous start frame to the last frame is shorter than the duration of the new slot, the duration is increased from the start frame forward, and the video is automatically cropped and filled into the new slot to obtain time-matched material.
[0084] When you drag the short video to the long slot, adjust the video length and play it in slow motion automatically to get material that matches the length.
[0085] S230, adding an effect loading task and executing it.
[0086] When the target material video is dragged to the slot with special effects, the material will be automatically played, and the slots that need to load the effects will generate corresponding tasks and load them into the effect task manager. A progress bar is generated based on the execution status of the effect task manager, and the progress bar is displayed in the video editing interface. The specific display position is not limited, such as being displayed in the lower left corner of the video editing interface. Further, the progress bar can be not displayed after all effects are loaded.
[0087] It should be noted that during the loading process of the progress bar, user operations are not blocked. Users can play videos, adjust the volume, add text, apply other special effects, etc. After all effects are loaded, there is a superimposed effect state. However, if the slot in the asynchronous task is cropped or replaced, the asynchronous task of the slot will be canceled, and the other asynchronous tasks will not be affected.
[0088] Optionally, the loading effect task manager can be set with functions such as adding, recording, executing, deleting, and restoring tasks. After dragging and adjusting the order to generate the effect loading task, each slot where the video is replaced corresponds to a task. If the dragging and sorting replaces the videos in 5 slots, 5 effect loading tasks will be generated and added to 5 task managers accordingly, and then executed in parallel.
[0089] To avoid file loss when a task exits abnormally, you can edit the task in the Loading Effect Task Manager. After dragging and adjusting the order to generate the effect loading task, the task information is recorded in the local database. After the slot effect loading is completed or canceled, the task record of the slot is cleared. During the loading process, the user can exit the application and then re-enter the template. The local database will be read to see if the template has recorded any asynchronous tasks that have not been loaded. If so, the asynchronous task will be automatically called up and re-executed to load the effect. Among them, the task information may include information such as the template ID, the slot ID in the template, the special effect display effect corresponding to the slot, and the path of the material corresponding to the slot.
[0090] In the video template editing scenario, this embodiment improves user editing efficiency through non-blocking drag sorting, and records and restores loading tasks, reducing the risk of effect loss due to user exiting the application due to long loading time, thereby optimizing the video template usage experience.
[0091] Figure 7 This is a structural block diagram of a video editing device provided by an embodiment of the present disclosure, which can execute the video editing method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Figure 7 As shown, the device specifically includes: a material adjustment sequence determination module 710, a special effect editing task generation module 720 and a special effect task progress display module 730, wherein:
[0092] An initial draft display module 710, for generating an initial draft file based on the import slot and video template information of each imported material in response to the material import operation in the video editing interface, and displaying the initial draft file in the video editing interface;
[0093] A material slot adjustment module 720, configured to determine a target adjustment slot of each of the imported materials in response to a slot adjustment operation on a target material, wherein the target material is one or more materials in the imported materials;
[0094] The target draft display module 730 is used to generate a target draft file based on the target adjustment slot of each imported material and the video template information, and display the target draft file on the video editing interface.
[0095] The technical solution of the disclosed embodiment is as follows: in response to a material import operation in a video editing interface, an initial draft file is generated based on the import slots and video template information of each imported material, and the initial draft file is displayed in the video editing interface; in response to a slot adjustment operation on a target material, a target adjustment slot of each imported material is determined, wherein the target material is one or more materials in the imported material; a target draft file is generated based on the target adjustment slots and video template information of each imported material, and the target draft file is displayed in the video editing interface; after the material is imported, the target adjustment slot of each imported material is determined based on the slot adjustment operation, and a corresponding target draft file is generated for display, thereby realizing the adjustment of the order of the imported materials after the material is imported during video editing, and improving the flexibility and editing efficiency of video editing.
[0096] Based on the above technical solutions, the slot adjustment operation is triggered by dragging the target material, and the target material is selected by single-clicking, double-clicking and / or long-pressing.
[0097] Based on the above technical solutions, the target draft display module 730 is specifically used for:
[0098] Determine at least one material editing segment in the target draft file according to the track editing information in the target draft file, and edit the material editing segment based on the track editing information;
[0099] The editing result of the material editing segment is displayed on the video editing interface.
[0100] Based on the above technical solutions, the target draft display module 730 is specifically used for:
[0101] Each of the special effect editing tasks is sent to a corresponding task controller, and each of the task controllers is controlled to execute the corresponding special effect editing task respectively.
[0102] Based on the above technical solutions, the target draft display module 730 is specifically used for:
[0103] Determine an editing time period corresponding to the track editing information;
[0104] The video material corresponding to the editing time period in the target draft file is used as the material editing segment.
[0105] On the basis of the above technical solutions, the device further includes an editing information storage module for:
[0106] Storing the editing information of the material editing segment based on the template identifier corresponding to the video template information:
[0107] And, when a file selection operation is detected, a template identifier corresponding to the file selection operation is determined, and editing information corresponding to the template identifier is obtained for display.
[0108] On the basis of the above technical solutions, the task storage module is also used to:
[0109] When the editing of the material editing segment is completed, the stored editing information corresponding to the material editing segment is deleted.
[0110] On the basis of the above technical solutions, the device also includes a progress display module for:
[0111] Before the editing of the material editing segment is completed, the processing progress of the material editing segment is displayed.
[0112] On the basis of the above technical solutions, the device further includes a material processing module for:
[0113] In response to a material processing operation on the target material, the material processing operation is executed and displayed, wherein the material processing operation includes a material element editing operation and / or a playback attribute adjustment operation.
[0114] The video editing device provided in the embodiments of the present disclosure can execute the video editing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0115] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0116] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 8 , which shows an electronic device (eg, Figure 8 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0117] like Figure 8As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 806 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An edit / output (I / O) interface 805 is also connected to the bus 804.
[0118] Typically, the following devices may be connected to the I / O interface 805: editing devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication devices 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0119] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 806, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0120] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0121] The electronic device provided by the embodiment of the present disclosure and the video editing method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0122] The embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the video editing method provided by the above embodiment is implemented.
[0123] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0124] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0125] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0126] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0127] In response to a material import operation in a video editing interface, an initial draft file is generated based on the import slots of each imported material and video template information, and the initial draft file is displayed in the video editing interface;
[0128] In response to a slot adjustment operation on a target material, determining a target adjustment slot of each of the imported materials, wherein the target material is one or more materials among the imported materials;
[0129] A target draft file is generated based on the target adjustment slot of each of the imported materials and the video template information, and the target draft file is displayed on the video editing interface.
[0130] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0132] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0133] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0134] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0135] According to one or more embodiments of the present disclosure, [Example 1] provides a video editing method, the method comprising:
[0136] In response to a material import operation in a video editing interface, an initial draft file is generated based on the import slots of each imported material and video template information, and the initial draft file is displayed in the video editing interface;
[0137] In response to a slot adjustment operation on a target material, determining a target adjustment slot of each of the imported materials, wherein the target material is one or more materials among the imported materials;
[0138] A target draft file is generated based on the target adjustment slot of each of the imported materials and the video template information, and the target draft file is displayed on the video editing interface.
[0139] According to one or more embodiments of the present disclosure, [Example 2] provides a video editing method, further comprising:
[0140] The slot adjustment operation is triggered by dragging the target material, and the target material is selected by single-clicking, double-clicking, and / or long-pressing.
[0141] According to one or more embodiments of the present disclosure, [Example 3] provides a video editing method, further comprising:
[0142] Before the target draft file is displayed on the video editing interface, the following steps are also included:
[0143] Determine at least one material editing segment in the target draft file according to the track editing information in the target draft file, and edit the material editing segment based on the track editing information;
[0144] Accordingly, displaying the target draft file on the video editing interface includes:
[0145] The editing result of the material editing segment is displayed on the video editing interface.
[0146] According to one or more embodiments of the present disclosure, [Example 4] provides a video editing method, further comprising:
[0147] The step of determining the material editing segment in the target draft file according to the track editing information in the target draft file includes:
[0148] Determine an editing time period corresponding to the track editing information;
[0149] The video material corresponding to the editing time period in the target draft file is used as the material editing segment.
[0150] According to one or more embodiments of the present disclosure, [Example 5] provides a video editing method, further comprising:
[0151] Storing the editing information of the material editing segment based on the template identifier corresponding to the video template information:
[0152] And, when a file selection operation is detected, a template identifier corresponding to the file selection operation is determined, and editing information corresponding to the template identifier is obtained for display.
[0153] According to one or more embodiments of the present disclosure, [Example 6] provides a video editing method, further comprising:
[0154] When the editing of the material editing segment is completed, the stored editing information corresponding to the material editing segment is deleted.
[0155] According to one or more embodiments of the present disclosure, [Example 7] provides a video editing method, further comprising:
[0156] Before the editing of the material editing segment is completed, the processing progress of the material editing segment is displayed.
[0157] According to one or more embodiments of the present disclosure, [Example 8] provides a video editing method, further comprising:
[0158] In response to a material processing operation on the target material, the material processing operation is executed and displayed, wherein the material processing operation includes a material element editing operation and / or a playback attribute adjustment operation.
[0159] According to one or more embodiments of the present disclosure, [Example 9] provides a video editing device, including:
[0160] An initial draft display module, for responding to a material import operation in a video editing interface, generating an initial draft file based on the import slot of each imported material and video template information, and displaying the initial draft file in the video editing interface;
[0161] A material slot adjustment module, configured to determine a target adjustment slot of each of the imported materials in response to a slot adjustment operation on a target material, wherein the target material is one or more materials among the imported materials;
[0162] A target draft display module is used to generate a target draft file based on the target adjustment slot of each imported material and the video template information, and display the target draft file in the video editing interface.
[0163] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0164] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0165] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video editing method, characterized in that: include: In response to a material import operation in a video editing interface, an initial draft file is generated based on the import slots of each imported material and video template information, and the initial draft file is displayed in the video editing interface; In response to a slot adjustment operation on a target material, determining a target adjustment slot of each of the imported materials, wherein the target material is one or more materials among the imported materials; A target draft file is generated based on the target adjustment slot of each of the imported materials and the video template information, and the target draft file is displayed on the video editing interface.
2. The method according to claim 1, characterized in that The slot adjustment operation is triggered by dragging the target material, and the target material is selected by single-clicking, double-clicking, and / or long-pressing.
3. The method according to claim 1, characterized in that Before the target draft file is displayed on the video editing interface, the following steps are also included: Determine at least one material editing segment in the target draft file according to the track editing information in the target draft file, and edit the material editing segment based on the track editing information; Accordingly, displaying the target draft file on the video editing interface includes: The editing result of the material editing segment is displayed on the video editing interface.
4. The method according to claim 3, characterized in that The step of determining the material editing segment in the target draft file according to the track editing information in the target draft file includes: Determine an editing time period corresponding to the track editing information; The video material corresponding to the editing time period in the target draft file is used as the material editing segment.
5. The method according to claim 3, characterized in that: Also includes: Storing the editing information of the material editing segment based on the template identifier corresponding to the video template information: And, when a file selection operation is detected, a template identifier corresponding to the file selection operation is determined, and editing information corresponding to the template identifier is obtained for display.
6. The method according to claim 5, characterized in that Also includes: When the editing of the material editing segment is completed, the stored editing information corresponding to the material editing segment is deleted.
7. The method according to claim 3, characterized in that Also includes: Before the editing of the material editing segment is completed, the processing progress of the material editing segment is displayed.
8. The method according to claim 1, characterized in that Also includes: In response to a material processing operation on the target material, the material processing operation is executed and displayed, wherein the material processing operation includes a material element editing operation and / or a playback attribute adjustment operation.
9. A video editing device, characterized in that: include: An initial draft display module, for responding to a material import operation in a video editing interface, generating an initial draft file based on the import slot of each imported material and video template information, and displaying the initial draft file in the video editing interface; A material slot adjustment module, configured to determine a target adjustment slot of each of the imported materials in response to a slot adjustment operation on a target material, wherein the target material is one or more materials among the imported materials; A target draft display module is used to generate a target draft file based on the target adjustment slot of each imported material and the video template information, and display the target draft file in the video editing interface.
10. An electronic device, characterized in that: The electronic device comprises: 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 as described in any one of claims 1-8.
11. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the video editing method according to any one of claims 1 to 8 when executed by a computer processor.