Video editing method and apparatus, electronic device and storage medium

By responding to material import and slot adjustment operations in video editing applications, and generating and displaying draft files, the problem of low order adjustment of video template materials in the prior art is solved, and a more flexible and efficient video editing process is achieved.

WO2025055962A1PCT designated stage expired Publication Date: 2025-03-20BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/118380
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-11
Filing Date
2024-09-11
Publication Date
2025-03-20

AI Technical Summary

Technical Problem

Existing video editing applications are inefficient when adjusting the sequence of materials in video templates, and need to re-import or replace fragments of a single slot, resulting in cumbersome operations.

Method used

Provide a video editing method, which generates an initial draft file and displays it on the interface by responding to the material import operation in the video editing interface; responding to the slot adjustment operation of the target material, determines the target adjustment slot of the imported material, generates the target draft file and displays it.

Benefits of technology

It realizes the order of importing materials after importing them during video editing, which improves the flexibility and editing efficiency of video editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024118380_20032025_PF_FP_ABST
    Figure CN2024118380_20032025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a video editing method and apparatus, an electronic device, and a storage medium. The method comprises: in response to a material import operation in a video editing interface, generating an initial draft file on the basis of an import slot of each imported material and video template information, and displaying the initial draft file in the video editing interface; in response to a slot adjustment operation on a target material, determining a target adjustment slot of each imported material, wherein the target material is one or more materials among the imported materials; and generating a target draft file on the basis of the target adjustment slot of each imported material and the video template information, and displaying the target draft file in the video editing interface. When materials are imported, a target adjustment slot of each imported material is determined on the basis of the slot adjustment operation, and a corresponding target draft file is generated for display, so that during video editing, when the materials are imported, the order of the imported materials is adjusted, and the flexibility and the editing efficiency of video editing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Video editing method, device, electronic device and storage medium

[0001] This application claims priority to the Chinese invention patent application entitled “A video editing method, device, electronic device and storage medium” and application number 2023111687933, filed on September 11, 2023. The entire contents of that application are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present disclosure relate to the field of video editing technology, and more particularly to a video editing method, device, electronic device, and storage medium. Background Art

[0003] 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 input the material.

[0004] Video templates usually require multiple video materials to be imported in sequence. When the order of one of the materials needs to be adjusted, you can only exit and re-import the material, or replace the clip in a single slot, which is very inefficient.

[0005] Summary of the Invention

[0006] The embodiments of the present disclosure provide a video editing method, apparatus, electronic device, and storage medium to achieve flexible editing of template videos and improve the editing efficiency of video editing.

[0007] In a first aspect, an embodiment of the present disclosure provides a video editing method, the method comprising: in response to a material import operation in a video editing interface, generating an initial draft file based on the import slot and video template information of each imported material, and displaying the initial draft file in the video editing interface; in response to a slot adjustment operation on a target material, determining a target adjustment slot for each of the imported materials, wherein the target material is one or more materials in the imported materials; generating a target draft file based on the target adjustment slot and the video template information of each of the imported materials, and displaying the target draft file in the video editing interface.

[0008] In a second aspect, an embodiment of the present disclosure also provides a video editing device, which includes: an initial draft display module, which is used to respond to a material import operation in a video editing interface, generate an initial draft file based on the import slot and video template information of each imported material, and display the initial draft file in the video editing interface; a material slot adjustment module, which is used to respond to a slot adjustment operation on a target material, determine the target adjustment slot of each imported material, wherein the target material is one or more materials in the imported material; a target draft display module, which 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.

[0009] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a video editing method as described in any one of the embodiments of the present disclosure.

[0010] In a fourth aspect, an embodiment of the present disclosure further provides 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. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0012] FIG1 is a flow chart of a video editing method provided by an embodiment of the present disclosure;

[0013] FIG2 is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure;

[0014] FIG3 is a schematic diagram of a slot adjustment result provided by an embodiment of the present disclosure;

[0015] FIG4 is a schematic diagram of another slot adjustment result provided by an embodiment of the present disclosure;

[0016] FIG5 is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure;

[0017] FIG6 is a flow chart of another video editing method provided by an embodiment of the present disclosure;

[0018] FIG7 is a structural block diagram of a video editing device provided by an embodiment of the present disclosure;

[0019] FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0021] 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.

[0022] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0023] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0024] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0025] Before introducing this technical solution, we can first provide an example of an application scenario. The disclosed technical solution can be applied to any interactive interface that requires display effects. For example, it can be applied during video shooting to display effects on the image or video corresponding to the user being filmed, such as in short video shooting or editing scenarios.

[0026] Figure 1 is a flow chart 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.

[0027] As shown in FIG1 , the method of this embodiment includes: S110 , in response to a material import operation in a video editing interface, generating an initial draft file based on the import slot and video template information of each imported material, and displaying the initial draft file in the video editing interface.

[0028] Among them, the device for executing the video editing method provided by the embodiment of the present disclosure can be integrated into the application software that supports the video editing function, and the software can be installed in the 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. The specific application software will not be described here one by one, as long as the editing and processing of the template video can be realized. It can also be a specially developed application to implement the software for editing the template video, or it can be integrated in the corresponding page. The user can implement the special effect adding processing through the page integrated in the PC.

[0029] When a user edits a video through a template, it is usually necessary to first select the required video template, and then import multiple materials in sequence. The video editing device corresponds the materials imported by the user in sequence to the slots of the video template to display a video editing interface including multiple materials arranged in sequence. Among them, the video template can be provided by the video editing device, or a template 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. Figure 2 is a schematic diagram of a video editing interface provided by an embodiment of the present disclosure. As shown in Figure 2, the video editing interface includes a video display area 210, a progress bar 220 and slot display areas 231, 232, and 233. Users can import or edit materials in the video editing interface as shown in Figure 2. Among them, 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. FIG2 illustrates the video editing interface by taking as an example the case where a user imports 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 may be displayed in slot display areas 231, 232, and 233, respectively.

[0030] It is understood that the video template includes information about the display parameters (such as display effect, display duration, etc.) of each slot. Therefore, after obtaining the imported material and determining the import slot for 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 on the video editing interface. Taking the video editing interface shown in Figure 2 as an example, the initial draft file can be displayed in the video display area 210.

[0031] 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 among the imported materials.

[0032] In this embodiment, to address the technical issues of difficulty and low efficiency in adjusting material slots in the prior art, a technical approach is provided for users to directly adjust material slots within the video editing interface. Users can directly operate on displayed imported materials within the video editing interface to adjust the corresponding slots of the materials. Upon detecting a user-initiated slot adjustment operation, the system determines the imported material whose slot has changed and the target slot for adjustment of the imported material.

[0033] It is understandable that since imported materials correspond one-to-one to slots, changing the slot of one imported material may affect the slots of other imported materials. Therefore, 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 that each imported material is associated with its corresponding target adjustment slot.

[0034] The target adjustment slot for the imported material is determined based on the slot adjustment operation and slot adjustment logic. Optionally, the slot adjustment logic can swap the slot-corresponding materials or move the slot-corresponding materials in a linked manner. When the slot adjustment logic swaps the slot-corresponding materials, the slot positions of the selected material and the material being dragged to the target slot change. When the slot adjustment logic adds the selected material before the material being dragged to the target slot, the slot positions of both the imported material and the imported material being dragged to the target slot change.

[0035] Taking the video editing interface shown in Figure 2 as an example of the display information of the initial draft file, 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 is a schematic diagram of a slot adjustment result provided by an embodiment of the present disclosure. As shown in Figure 3, 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 is a schematic diagram of another slot adjustment result provided by an embodiment of the present disclosure. As shown in Figure 4, when the slot adjustment logic is to add the selected material before the material to which the target slot is dragged, 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.

[0036] In one embodiment of the present disclosure, 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.

[0037] S130. 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; after determining the target adjustment slot corresponding to each imported material, generate a target draft file according to the slot information of the target adjustment slot of each imported material (determined according to the video template information), and generate a corresponding target display video for display.

[0038] 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.

[0039] It is understandable that before displaying the target draft file, a target display video corresponding to the target draft file needs to be generated. The video template may contain track editing information for the video template, such as displaying it by setting special effects (black and white effect, animation effect, reverse effect, etc.) during a certain time period. The above content is stored in the target draft file. Based on this, in order to display the video effect corresponding to the video template, the imported material needs to be edited according to the editing information in the target draft file.

[0040] In one embodiment of the present disclosure, before displaying the target draft file on the video editing interface, it also includes: determining at least one material editing segment in the target draft file according to the track editing information in the target draft file, and editing the material editing segment based on the track editing information; accordingly, displaying the target draft file on the video editing interface includes: displaying the editing result of the material editing segment on the video editing interface.

[0041] Optionally, the target draft file can be parsed to obtain track editing information in the target draft file, where the track editing information may include editing effects corresponding to each time period on the time track. Clips from the imported material are obtained based on the track editing information as material editing clips. Special effects editing is then performed on the material editing clips to obtain the special effects editing results of the material editing clips, which are then displayed as the target presentation video of the target draft file.

[0042] Optionally, determining the material editing segment in the target draft file based on the track editing information in the target draft file includes: determining the editing time period corresponding to the track editing information; and using the video material corresponding to the editing time period in the target draft file as the material editing segment.

[0043] It's important to note that the time period for special effects editing in the track editing information is random and may or may not correspond to the time of the video clip in the slot. Therefore, you only need to use the imported material corresponding to the editing time period as the material editing segment. The material editing segment can be one or more complete imported materials, or it can be a video segment composed of some or all clips from adjacent imported materials.

[0044] It's understandable that not all imported content has corresponding editing effects. Therefore, you only need to obtain one or more editing clips with editing effects and generate the corresponding special effects editing tasks. For example, if there are two editing clips, two corresponding special effects editing tasks can be generated. If there are multiple special effects editing tasks, they can be processed in parallel using different controllers to reduce the execution time of each special effects editing task and speed up the special effects editing time of the editing clips.

[0045] In another embodiment of the present disclosure, special effects editing can be performed on imported materials directly based on the special effects corresponding to the slots. In this case, considering that the slots corresponding to the imported materials have changed, it is possible that the duration of the imported materials will not match the duration of the target adjustment slot of the imported materials, 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 processed according to the slot duration of the target adjustment slot and the material duration of the imported material to obtain a duration-matched material, and then special effects editing can be performed based on the duration-matched material.

[0046] Optionally, the imported material is processed based on the slot duration of the target adjustment slot and the material duration of the imported material to obtain a duration-matched 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, slowing down the material duration to obtain a duration-matched material that matches the slot duration. For example, when the slot duration is 5 seconds and the material duration is 3 seconds, the target material can be slowed down to adjust the target material duration from 3 seconds to 5 seconds to obtain a duration-matched material.

[0047] Optionally, the imported material is processed based on the slot duration of the target adjustment slot and the material duration of the imported material to obtain a duration-matched material, including: when the slot duration is less than the material duration, cropping the target material based on the duration difference between the slot duration and the material duration to obtain a duration-matched material that matches the slot duration. Cropping the target material may include cropping the target material starting from the starting frame of the target material to obtain a duration-matched material with a cropped duration equal to the slot duration. Based on the above, if the user has cropped the target material, to ensure that the cropped material meets user requirements, the target material may be cropped starting from the starting frame of the user-cropped material to obtain a duration-matched material with a cropped duration equal to the slot duration. If the duration of the target material is still less than the slot duration after cropping to the last frame starting from the starting frame of the user-cropped material, the duration may be increased from the starting frame of the user-cropped material until the duration matches the slot duration, thereby obtaining the duration-matched material.

[0048] Based on the above scheme, it 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, determining the template identifier corresponding to the file selection operation, and obtaining the editing information corresponding to the template identifier for display.

[0049] In order to solve the technical problem of file loss when the special effects loading time is too long or the abnormal exit is 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.

[0050] Accordingly, the method further includes: deleting the stored editing information corresponding to the material editing segment after the editing of the material editing segment is completed. To avoid reading the completed video editing file and reduce memory pressure, after all special effects editing tasks are completed, the template identifier and editing information of the video template corresponding to the edit are deleted from the database.

[0051] In one embodiment of the present disclosure, it also includes: displaying the processing progress of the material editing segment before the editing of the material editing segment is completed. It is understandable that the special effects editing operation of the material editing segment 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, the target material can still be processed and edited simply, thereby improving the editing efficiency of the template video.

[0052] 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, 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, the processing progress bar is determined based on the processing progress, and the processing progress bar is displayed on the video editing interface. For example, 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. As shown in Figure 5, a processing progress bar 240 is set near the slot display area of ​​the video editing interface to display the special effects editing processing progress after the slot adjustment. 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.

[0053] Based on the above solution, the method further includes executing and displaying a material processing operation in response to a material processing operation on the target material, 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 effects editing. Users can still perform simple material processing operations, such as material element editing (adding / removing) operations and playback attribute adjustment operations, as long as they do not change the special effects processing portion of the material. Material element editing operations can include text editing and texture editing operations, while playback attribute adjustment operations can include video playback operations and volume adjustment operations. These operations do not require algorithm execution and can be performed directly based on device parameters or existing elements. Therefore, during the execution of special effects editing, when a user-initiated material processing operation on a target element is detected, the processing results of the material processing operation can still be displayed in real time. After the special effects editing is completed, the target editing results of the special effects editing can be displayed overlaid with the processing results of the material processing operation. This saves time and improves editing efficiency for template videos.

[0054] The technical solution of the embodiment of the present disclosure generates 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 displays the initial draft file in the video editing interface; determines the target adjustment slot of each imported material in response to the slot adjustment operation of the 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, and after the material is imported, determines the target adjustment slot of each imported material based on the slot adjustment operation, 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.

[0055] FIG6 is a flow chart of another video editing method provided by an embodiment of the present disclosure. FIG6 provides a preferred embodiment based on the above embodiment.

[0056] Overall, this embodiment provides a non-blocking solution for adjusting the order of clips after the user drags to adjust the order of clips. A non-blocking progress bar is provided after the user drags to adjust the order of clips, but the loading effect is placed in an asynchronous task manager in the background for loading, which improves the efficiency of editing template videos.

[0057] As shown in FIG6 , the video editing method provided in FIG6 includes: S210 , adjusting the order of materials. The user can long press a slot, select the material corresponding to the slot, and drag the material to adjust the order of the materials, and use the material with the changed order as the target material.

[0058] S220: Variable-speed cropping and replacement of materials. The slot duration in the video template is fixed. To improve the video presentation, the cropping duration of the target material will also be determined based on the slot changes. After dragging and sorting is completed and clicking OK, the length of the adjusted materials is checked to obtain a duration-matching material, ensuring that the material duration of the duration-matching material is consistent with the corresponding slot duration.

[0059] Optionally, duration-matched material can be generated through cropping or speed change. Specifically, when dragging a long video to a short slot, if the user has previously cropped the video, the original cropped position is retained as the start frame. If the duration from the previous start frame to the last frame is less than the duration of the new slot, the duration is increased from the start frame forward, the video is automatically cropped, and then filled into the new slot to generate duration-matched material. When dragging a short video to a long slot, the video duration is adjusted and automatically slowed down to generate duration-matched material.

[0060] S230. Add and execute an effect loading task. When the target video material is dragged to a slot with a special effect display, the material is automatically played, and corresponding tasks are generated for the slots that need to load the effects and loaded into the effect task manager. A progress bar is generated based on the execution status of the effect task manager and displayed in the video editing interface. The specific display location is not limited, for example, it can be displayed in the lower left corner of the video editing interface. Furthermore, the progress bar can be hidden after all effects are loaded.

[0061] 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 with a material, the asynchronous task of the slot will be canceled, and the other asynchronous tasks will not be affected.

[0062] Optionally, the loading effect task manager can be configured with functions such as adding, recording, executing, deleting, and restoring tasks. After dragging and reordering to generate effect loading tasks, each slot where a video was replaced corresponds to a task. For example, if dragging and reordering replaces videos in five slots, five effect loading tasks will be generated, added to five corresponding task managers, and then executed in parallel.

[0063] 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 the template ID, the slot ID in the template, the special effect display effect corresponding to the slot, the path of the material corresponding to the slot, and other information.

[0064] 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.

[0065] FIG7 is a block diagram of the structure 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 functional modules and beneficial effects corresponding to the execution method. As shown in FIG7 , the device specifically includes: a material adjustment order determination module 710, a special effect editing task generation module 720, and a special effect task progress display module 730, wherein: the initial draft display module 710 is used to generate 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 display the initial draft file on the video editing interface. The material slot adjustment module 720 is used to determine the target adjustment slot of each imported material in response to the slot adjustment operation of the target material, wherein the target material is one or more materials in the imported material. 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.

[0066] The technical solution of the embodiment of the present disclosure generates 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 displays the initial draft file in the video editing interface; determines the target adjustment slot of each imported material in response to the slot adjustment operation of the 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, and after the material is imported, determines the target adjustment slot of each imported material based on the slot adjustment operation, 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.

[0067] 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.

[0068] Based on the above technical solutions, the target draft display module 730 is specifically configured to: determine at least one material editing segment in the target draft file based on the track editing information in the target draft file, edit the material editing segment based on the track editing information, and display the editing results of the material editing segment on the video editing interface.

[0069] On the basis of the above technical solutions, the target draft display module 730 is specifically used to: send each of the special effect editing tasks to the corresponding task controller, and control each of the task controllers to respectively execute the corresponding special effect editing tasks.

[0070] Based on the above technical solutions, the target draft display module 730 is specifically configured to: determine the editing time period corresponding to the track editing information, and use the video material corresponding to the editing time period in the target draft file as the material editing segment.

[0071] Based on the above technical solutions, the device also includes an editing information storage module, which is used to: store 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, determine the template identifier corresponding to the file selection operation, and obtain the editing information corresponding to the template identifier for display.

[0072] On the basis of the above technical solutions, the task storage module is further used to: when the editing of the material editing segment is completed, delete the stored editing information corresponding to the material editing segment.

[0073] On the basis of the above technical solutions, the device further includes a progress display module, which is used to display the processing progress of the material editing segment before the editing of the material editing segment is completed.

[0074] Based on the above technical solutions, the device also includes a material processing module, which is used to: in response to a material processing operation on the target material, execute and display the material processing operation, wherein the material processing operation includes a material element editing operation and / or a playback attribute adjustment operation.

[0075] The video editing device provided by the embodiments of the present disclosure 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.

[0076] 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.

[0077] FIG8 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG8 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG8 ) 800 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG8 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0078] As shown in FIG8 , 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. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. 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.

[0079] Typically, the following devices may be connected to the I / O interface 805: an editing device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although FIG8 shows the electronic device 800 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0080] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 806, or installed from the 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 performed.

[0081] 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.

[0082] 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. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0083] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the video editing method provided by the above embodiment is implemented.

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

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

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

[0087] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: responds to the material import operation in the video editing interface, generates an initial draft file based on the import slot and video template information of each imported material, and displays the initial draft file on the video editing interface; responds to the slot adjustment operation of the target material, determines the target adjustment slot of each imported material, wherein the target material is one or more materials in the imported materials; generates a target draft file based on the target adjustment slot of each imported material and the video template information, and displays the target draft file on the video editing interface.

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

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

[0090] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

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

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

[0093] According to one or more embodiments of the present disclosure, [Example 1] provides a video editing method, which includes: in response to a material import operation in a video editing interface, generating an initial draft file based on the import slot and video template information of each imported material, and displaying the initial draft file in the video editing interface; in response to a slot adjustment operation on a target material, determining a target adjustment slot for each of the imported materials, wherein the target material is one or more materials in the imported materials; generating a target draft file based on the target adjustment slot and the video template information of each of the imported materials, and displaying the target draft file in the video editing interface.

[0094] According to one or more embodiments of the present disclosure, [Example 2] provides a video editing method, which also includes: the slot adjustment operation is triggered by dragging the target material, and the target material is determined by single-click selection, double-click selection and / or long press selection.

[0095] According to one or more embodiments of the present disclosure, [Example Three] provides a video editing method, which also includes: before displaying the target draft file on the video editing interface, it also includes: determining at least one material editing segment in the target draft file according to the track editing information in the target draft file, and editing the material editing segment based on the track editing information; accordingly, displaying the target draft file on the video editing interface includes: displaying the editing result of the material editing segment on the video editing interface.

[0096] According to one or more embodiments of the present disclosure, [Example 4] provides a video editing method, which also includes: determining the material editing segment in the target draft file based on the track editing information in the target draft file, including: determining the editing time period corresponding to the track editing information; and using the video material corresponding to the editing time period in the target draft file as the material editing segment.

[0097] According to one or more embodiments of the present disclosure, [Example Five] provides a video editing method, which 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, determining the template identifier corresponding to the file selection operation, and obtaining the editing information corresponding to the template identifier for display.

[0098] According to one or more embodiments of the present disclosure, [Example 6] provides a video editing method, further comprising: after the editing of the material editing segment is completed, deleting the stored editing information corresponding to the material editing segment.

[0099] According to one or more embodiments of the present disclosure, [Example 7] provides a video editing method, further comprising: displaying the processing progress of the material editing segment before the editing of the material editing segment is completed.

[0100] According to one or more embodiments of the present disclosure, [Example Eight] provides a video editing method, which also includes: in response to a material processing operation on the target material, executing and displaying the material processing operation, wherein the material processing operation includes a material element editing operation and / or a playback attribute adjustment operation.

[0101] According to one or more embodiments of the present disclosure, [Example Nine] provides a video editing device, including: an initial draft display module, for generating an initial draft file based on the import slot and video template information of each imported material in response to a material import operation in a video editing interface, and displaying the initial draft file in the video editing interface; a material slot adjustment module, for determining 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; a target draft display module, for generating a target draft file based on the target adjustment slot of each imported material and the video template information, and displaying the target draft file in the video editing interface.

[0102] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0103] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0104] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A video editing method, comprising: 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, wherein the slot adjustment operation is triggered by dragging the target material, and the target material is determined by single-clicking, double-clicking and / or long-pressing.

3. The method according to claim 1, wherein before displaying the target draft file on the video editing interface, it further comprises: 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, wherein determining the material editing segment in the target draft file according to the track editing information in the target draft file comprises: 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, further comprising: 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, further comprising: 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, further comprising: 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, further comprising: 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, comprising: 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, comprising: 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.

Citation Information

Patent Citations

  • Video generation method and device, electronic equipment and storage medium

    CN113055730A

  • Information display method and device, electronic equipment and storage medium

    CN113473204A

  • Video processing method and device, electronic equipment and computer readable storage medium

    CN116471451A

  • Video content automatic generation system

    JP2017063339A