Video editing method and apparatus

By caching the layout information of the target material and reading it directly from the cache, the problem of increased rendering time during video editing is solved, resulting in a smoother video editing experience.

WO2026046396A1PCT designated stage Publication Date: 2026-03-05BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/118240
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-30
Filing Date
2025-09-01
Publication Date
2026-03-05

AI Technical Summary

Technical Problem

Existing technologies increase the time required to render the material operation box when quickly switching editing windows during video editing, leading to stuttering.

Method used

By caching the layout information of the target material, operation boxes can be added directly from the cache, reducing the time required to obtain layout information.

Benefits of technology

It reduces the time required to obtain material layout information and avoids stuttering during video editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025118240_05032026_PF_FP_ABST
    Figure CN2025118240_05032026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to the technical field of video editing, and provide a video editing method and apparatus. The method comprises: receiving a first editing operation input by a user, the first editing operation being used for switching a video frame displayed in an editing window to a first video frame; determining whether the first video frame comprises a target material, the target material being a material currently selected by the user; when the first video frame comprises the target material, determining whether layout information of the target material is stored in a cache; when the layout information of the target material is stored in the cache, reading the layout information of the target material from the cache; and displaying the first video frame in the editing window, and adding an operation box of the target material to the first video frame on the basis of the layout information of the target material. By means of the embodiments of the present disclosure, the time consumed for acquiring layout information of materials is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Video editing methods and devices

[0001] Cross-reference to related applications

[0002] This application claims priority to Chinese Patent Application No. 202411215175.4, filed on August 30, 2024, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0003] This application relates to a video editing method and apparatus. Background Technology

[0004] With the development of digitalization and networking, video has become an important way for people to obtain information, entertainment and communication, which makes the application of video editing in today's society increasingly widespread and important.

[0005] During video editing, to facilitate user operations, once a user selects a clip to add to a video frame displayed in the editing window, the clip's operation box will appear on the video frame. Furthermore, when switching to other video frames containing the same clip in the editing window, the operation box will still appear on the new video frame. Currently, the technical solution for maintaining the clip's operation box when switching between video frames in the editing window involves obtaining the clip's position, size, and other layout information based on the editing information of the video frame to be displayed. Then, the operation box for that clip is rendered on the video frame to be displayed based on this layout information and displayed in the editing window. While obtaining the clip's layout information from the editing information of the video frame to be displayed achieves the goal of displaying the operation box while other video frames are shown in the editing window, this method adds the time spent obtaining the layout information to the video frame's rendering time. In scenarios involving rapid switching between video frames in the editing window, such as playback preview or dragging the progress bar, this may cause stuttering. Summary of the Invention

[0006] In view of this, the present disclosure provides a video editing method and apparatus to reduce the time spent acquiring material layout information.

[0007] To achieve the above objectives, the present disclosure provides the following technical solutions:

[0008] In a first aspect, embodiments of this disclosure provide a video editing method, including:

[0009] The system receives a first editing operation input from the user, which is used to switch the video frame displayed in the editing window to the first video frame.

[0010] Determine whether the first video frame includes the target material, wherein the target material is the material currently selected by the user;

[0011] If the target material is included in the first video frame, determine whether the layout information of the target material is stored in the cache;

[0012] If the layout information of the target material is stored in the cache, the layout information of the target material is read from the cache;

[0013] The first video frame is displayed in the editing window, and an operation box for the target material is added to the first video frame according to the layout information of the target material.

[0014] As an optional implementation of this disclosure, the method further includes:

[0015] If the layout information of the target material is not saved in the cache, the layout information of the target material is obtained based on the editing information of the first video frame.

[0016] As an optional implementation of this disclosure, the method further includes:

[0017] After obtaining the layout information of the target material based on the editing information of the first video frame, the layout information of the target material is saved to the cache.

[0018] As an optional implementation of this disclosure, after saving the layout information of the target material to the cache, the method further includes:

[0019] The system receives a second editing operation from the user, which is used to switch the video frame displayed in the editing window to a second video frame.

[0020] Determine whether the target material is included in the second video frame;

[0021] If the target material is not included in the second video frame, the layout information of the target material is deleted from the cache.

[0022] As an optional implementation of this disclosure, the method further includes:

[0023] After adding the operation box of the target material to the first video frame according to the layout information of the target material, the user's third editing operation on the operation box of the target material is received;

[0024] The target material is edited according to the third editing operation, and the layout information of the target material is iteratively updated according to the third editing operation.

[0025] As an optional implementation of this disclosure, the method further includes:

[0026] After editing the target material according to the third editing operation and iteratively updating the layout information of the target material according to the third editing operation, the method further includes:

[0027] Remove the layout information of the target material from the cache.

[0028] As an optional implementation of this disclosure, the first editing operation of receiving user input includes:

[0029] It can receive user input for playback preview, or receive user dragging of the video timeline pointer, or receive user positioning of the video timeline pointer.

[0030] Secondly, embodiments of this disclosure provide a video editing apparatus, including:

[0031] The user input unit is used to receive a first editing operation input by the user, wherein the first editing operation is used to switch the video frame displayed in the editing window to the first video frame.

[0032] The processing unit is configured to determine whether the first video frame includes target material, wherein the target material is the material currently selected by the user;

[0033] The processing unit is further configured to determine whether the layout information of the target material is stored in the cache when the first video frame includes the target material;

[0034] The acquisition unit is used to read the layout information of the target material from the cache when the layout information of the target material is stored in the cache;

[0035] An editing unit is used to display the first video frame in the editing window and add an operation box for the target material in the first video frame according to the layout information of the target material.

[0036] As an optional implementation of this disclosure, the acquisition unit is further configured to acquire the layout information of the target material based on the editing information of the first video frame when the layout information of the target material is not saved in the cache.

[0037] As an optional implementation of this disclosure, the processing unit is further configured to save the layout information of the target material to a cache after obtaining the layout information of the target material based on the editing information of the first video frame.

[0038] As an optional implementation of this disclosure, the user input unit is further configured to receive a second editing operation input by the user after saving the layout information of the target material to the cache, the second editing operation being used to switch the video frame displayed in the editing window to a second video frame;

[0039] The processing unit is further configured to determine whether the target material is included in the second video frame, and if the target material is not included in the second video frame, to delete the layout information of the target material from the cache.

[0040] As an optional implementation of this disclosure, the user input unit is further configured to receive a third editing operation of the user on the operation box of the target material after adding the operation box of the target material in the first video frame according to the layout information of the target material;

[0041] The editing unit is also used to edit the target material according to the third editing operation, and to iteratively update the layout information of the target material according to the third editing operation.

[0042] As an optional implementation of this disclosure, the processing unit is further configured to delete the layout information of the target material from the cache after editing the target material according to the third editing operation and iteratively updating the layout information of the target material according to the third editing operation.

[0043] As an optional implementation of this disclosure, the user input unit is specifically used to receive user input of playback preview operations, or to receive user drag operations on the position pointer of the video timeline, or to receive user positioning operations on the position pointer of the video timeline.

[0044] Thirdly, embodiments of this disclosure provide an electronic device, including: a memory and a processor, wherein the memory is used to store a computer program and the processor is used to cause the electronic device to implement the video editing method described in any of the above embodiments when executing the computer program.

[0045] Fourthly, embodiments of this disclosure provide a computer-readable storage medium that, when executed by a computing device, causes the computing device to implement the video editing method described in any of the above embodiments.

[0046] Fifthly, this disclosure provides a computer program product that, when run on a computer, enables the computer to implement the video editing method described in any of the above embodiments. Attached Figure Description

[0047] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0048] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.

[0049] Figure 1 is a flowchart of one of the steps of the video editing method provided in an embodiment of this disclosure;

[0050] Figure 2 is a schematic diagram of one of the video editing interfaces provided in the embodiments of this disclosure;

[0051] Figure 3 is a second schematic diagram of the video editing interface provided in the embodiments of this disclosure;

[0052] Figure 4 is a second flowchart of the video editing method provided in this embodiment of the present disclosure;

[0053] Figure 5 is a flowchart of the layout information acquisition method provided in an embodiment of this disclosure;

[0054] Figure 6 is a schematic diagram of the material operation box provided in the embodiment of this disclosure;

[0055] Figure 7 is a schematic diagram of the video editing device provided in an embodiment of this disclosure;

[0056] Figure 8 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0057] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0058] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein. Obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0059] In this disclosure, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in this disclosure should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. Furthermore, in the description of embodiments in this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0060] This disclosure provides a video editing method. Referring to FIG1, the video editing method includes the following steps:

[0061] S101, Receive the first editing operation input by the user.

[0062] The first editing operation is used to switch the video frame displayed in the editing window to the first video frame.

[0063] In some embodiments, receiving a first editing operation from user input includes receiving a playback preview operation from user input.

[0064] When the first editing operation is a playback preview operation, the first video frame is the next video frame after the currently displayed video frame in the editing window.

[0065] For example, referring to FIG2, the video editing interface 200 includes a playback preview control 21 for triggering playback preview of the video. When a user's operation on the playback preview control 21 is received, the video editing device determines that an operation has been received to switch the video frame displayed in the editing window 22 to the next video frame of the currently displayed video frame.

[0066] In some embodiments, receiving a first editing operation from user input includes receiving a drag operation by the user on the position pointer of the video timeline.

[0067] When the first editing operation is a drag operation on the position pointer of the video timeline, the first video frame is the video frame adjacent to the currently displayed video frame in the editing window in the drag direction. When the user drags the position pointer backward, the first video frame is the next video frame after the currently displayed video frame in the editing window; when the user drags the position pointer forward, the first video frame is the previous video frame of the currently displayed video frame in the editing window.

[0068] For example, referring to FIG3, the video editing interface 200 includes a video timeline 300; the video timeline 300 is provided with a position pointer 31 indicating the position information of the video frames displayed in the editing window 22. When a user drags the position pointer 31, the video editing device determines that it has received a video frame that is adjacent to the currently displayed video frame in the editing window 22 in the drag direction of the position pointer 31.

[0069] In some embodiments, receiving a first editing operation from user input includes: receiving a positioning operation by the user on the position pointer of the video timeline.

[0070] When the first editing operation is a positioning operation of the position pointer of the video timeline, the first video frame is the video frame indicated by the positioned position pointer.

[0071] In some embodiments, a user can position the location pointer to the click location by inputting a click action on the video timeline.

[0072] S102. Determine whether the first video frame includes the target material.

[0073] The target material is the material currently selected by the user.

[0074] During video editing, footage may be inserted into a continuous sequence of video frames. When a user selects a piece of footage in the current video frame, they may want to see how that footage is inserted in other video frames and make further edits. Therefore, if a user selects a piece of footage to be added to a video frame in the editing window, the editing window should still display the operation box for that piece of footage when switching to other video frames containing that footage so that the user can make further edits.

[0075] In step S102 above, if the first video frame includes the target material, then step S103 is executed as follows:

[0076] S103. Determine whether the layout information of the target material is stored in the cache.

[0077] In some embodiments, the layout information of the target material may include at least one of the following: the position coordinates of the target material, the size of the target material, and the orientation of the target material.

[0078] In some embodiments, the layout information of the material can be stored in a specified location in the cache. Determining whether the layout information of the target material is stored in the cache includes: determining whether the layout information of the target material is stored in a specified location in the cache.

[0079] In some embodiments, the layout information of the material can be stored in the cache through a correspondence with the material identifier. Determining whether the layout information of the target material is stored in the cache includes: determining whether the cache contains a correspondence including the identifier of the target material.

[0080] In step S103 above, if the layout information of the target material is stored in the cache, then steps S104 and S105 are executed as follows:

[0081] S104. Read the layout information of the target material from the cache.

[0082] Compared to obtaining the layout information of the target material through the editing information of the first video frame, directly reading the layout information of the target material from the cache can reduce the time spent obtaining the layout information of the target material.

[0083] S105. Display the first video frame in the editing window, and add the operation box of the target material in the first video frame according to the layout information of the target material.

[0084] In some embodiments, displaying the first video frame in the editing window and adding the operation box of the target material in the first video frame according to the layout information of the target material includes: first rendering the first video frame on the rendering canvas of the editing window, and then rendering the operation box of the target material on the rendering canvas of the editing window according to the layout information of the target material.

[0085] The video editing method provided in this embodiment, upon receiving a user's first editing operation to switch the video frame displayed in the editing window to a first video frame, first determines whether the first video frame includes the target material currently selected by the user. If the first video frame includes the target material, it determines whether the layout information of the target material is stored in the cache. If the layout information of the target material is stored in the cache, it reads the layout information of the target material from the cache, then displays the first video frame in the editing window, and adds an operation box for the target material to the first video frame according to the layout information of the target material. Compared to obtaining the layout information of the target material based on the editing information of the first video frame, since the video editing method provided in this embodiment directly reads the layout information of the target material from the cache when the first video frame includes the target material currently selected by the user and the layout information of the target material is stored in the cache, the video editing method provided in this embodiment can reduce the time spent obtaining the material layout information.

[0086] As an extension and refinement of the above embodiments, this disclosure provides another video editing method. Referring to FIG4, the video editing method includes the following steps:

[0087] S401, Receive the first editing operation input by the user.

[0088] The first editing operation is used to switch the video frame displayed in the editing window to the first video frame.

[0089] S402. Determine whether the first video frame includes the target material.

[0090] The target material is the material currently selected by the user.

[0091] In step S402 above, if the first video frame includes the target material, then step S403 is executed as follows:

[0092] S403. Determine whether the layout information of the target material is stored in the cache.

[0093] In step S403 above, if the layout information of the target material is stored in the cache, then step S404 is executed as follows:

[0094] S404. Read the layout information of the target material from the cache.

[0095] In step S403 above, if the layout information of the target material is not saved in the cache, then the following steps S405 and S406 are executed:

[0096] S405. Obtain the layout information of the target material based on the editing information of the first video frame.

[0097] In some embodiments, the video editing software used for video editing is software developed based on web technology, and the business layer uses JavaScript to implement interaction and function expansion. The underlying software development kit (SDK) adopts WASM (Web Assembly, a new binary format). Referring to Figure 5, the above step S405 (obtaining the layout information of the target material based on the editing information of the first video frame) can be as follows:

[0098] S51. The business layer sends a request to the browser to request the layout information of the target material.

[0099] S52, The browser converts the request information from JavaScript to WASM.

[0100] S53, The browser sends the converted request information to the underlying layer.

[0101] S54. The underlying layer performs an SDK query based on the request information to obtain the layout information of the target material.

[0102] S55, The underlying layer sends the layout information of the target material to the browser.

[0103] S56. The browser converts the layout information of the target material from WASM to JavaScript.

[0104] S57. The browser sends the layout information of the converted target material to the business layer.

[0105] S406. Save the layout information of the target material to the cache.

[0106] Since the above embodiments also save the layout information of the target material to the cache, the above embodiments can directly read the layout information of the target material from the cache when switching to display video frames including the target material, thereby reducing the time spent obtaining the layout information of the target material.

[0107] After obtaining the layout information of the target material through the above steps S404 or S405, the following step S407 is further executed:

[0108] S407. Display the first video frame in the editing window, and add the operation box of the target material in the first video frame according to the layout information of the target material.

[0109] In some embodiments, after step S406 (saving the layout information of the target material to the cache) described above, the video editing method further includes the following steps a to c:

[0110] Step a: Receive the second editing operation input from the user.

[0111] The second editing operation is used to switch the video frame displayed in the editing window to the second video frame.

[0112] In some embodiments, the second editing operation of receiving user input includes:

[0113] It can receive user input for playback preview, or receive user dragging of the video timeline pointer, or receive user positioning of the video timeline pointer.

[0114] Step b: Determine whether the target material is included in the second video frame.

[0115] In step b above, if the target material is not included in the second video frame, then step c is performed as follows:

[0116] Step c: Delete the layout information of the target material from the cache.

[0117] Since the target material is only added to consecutive video frames, if the target material is not included in the second video frame, it will not be included in subsequent video frames either. Therefore, the layout information of the target material can be deleted from the cache, thereby releasing the cache occupied by the layout information of the target material.

[0118] In step b above, if the first video frame does not include the target material, the situation is the same as in the embodiment shown in Figure 1 (the video frame includes the target material, and the layout information of the target material is stored in the cache). Therefore, the layout information of the target material is read from the cache; the second video frame is displayed in the editing window, and the operation box of the target material is added to the second video frame according to the layout information of the target material.

[0119] In some embodiments, after step S105 (adding the operation box of the target material in the first video frame according to the layout information of the target material), the video editing method further includes the following steps 1 to 3:

[0120] Step 1: Receive the user's third editing operation on the target material's operation box.

[0121] Referring to Figure 6, the operation box 600 for the target material includes: a first control point 61 located at the upper left corner, a second control point 62 located at the lower left corner, a third control point 63 located at the upper right corner, and a fourth control point 64 located at the lower right corner. Dragging the first control point 61 adjusts the position of the target material without changing its size; dragging the second control point 62 scales the target material without changing its upper right corner position; dragging the third control point 63 scales the target material without changing its lower left corner position; and dragging the fourth control point 64 scales the target material without changing its upper left corner position. The third editing operation can be an operation on at least one of the first control point 61, the second control point 62, the third control point 63, and the fourth control point 64.

[0122] Step 2: Edit the target material according to the third editing operation, and iteratively update the layout information of the target material according to the third editing operation.

[0123] Step 3: Delete the layout information of the target material from the cache.

[0124] Since the layout information of the target material has changed, the layout information of the target material stored in the cache has become invalid. Therefore, the layout information of the target material is deleted from the cache, thereby releasing the cache occupied by the layout information of the target material.

[0125] Based on the same inventive concept, as an implementation of the above method, this disclosure also provides a video editing device, which corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the video editing device in this embodiment can implement all the contents of the aforementioned method embodiment.

[0126] This disclosure provides a video editing device. Figure 7 is a schematic diagram of the structure of the video editing device. As shown in Figure 7, the video editing device 700 includes:

[0127] User input unit 71 is used to receive a first editing operation input by the user, the first editing operation being used to switch the video frame displayed in the editing window to the first video frame;

[0128] Processing unit 72 is used to determine whether the first video frame includes target material, wherein the target material is the material currently selected by the user;

[0129] The processing unit 72 is further configured to determine whether the layout information of the target material is stored in the cache when the first video frame includes the target material;

[0130] The acquisition unit 73 is used to read the layout information of the target material from the cache when the layout information of the target material is stored in the cache;

[0131] The editing unit 74 is used to display the first video frame in the editing window and add the operation box of the target material in the first video frame according to the layout information of the target material.

[0132] As an optional implementation of this disclosure, the acquisition unit 73 is further configured to acquire the layout information of the target material based on the editing information of the first video frame when the layout information of the target material is not saved in the cache.

[0133] As an optional implementation of this disclosure, the processing unit 72 is further configured to save the layout information of the target material to a cache after obtaining the layout information of the target material based on the editing information of the first video frame.

[0134] As an optional implementation of this disclosure, the user input unit 71 is further configured to receive a second editing operation input by the user after saving the layout information of the target material to the cache. The second editing operation is configured to switch the video frame displayed in the editing window to a second video frame.

[0135] The processing unit 72 is further configured to determine whether the second video frame includes the target material, and if the second video frame does not include the target material, to delete the layout information of the target material from the cache.

[0136] As an optional implementation of this disclosure, the user input unit 71 is further configured to receive a third editing operation of the user on the operation box of the target material after adding the operation box of the target material in the first video frame according to the layout information of the target material;

[0137] The editing unit 74 is further configured to edit the target material according to the third editing operation, and to iteratively update the layout information of the target material according to the third editing operation.

[0138] As an optional implementation of this disclosure, the processing unit 72 is further configured to delete the layout information of the target material from the cache after editing the target material according to the third editing operation and iteratively updating the layout information of the target material according to the third editing operation.

[0139] As an optional implementation of this disclosure, the user input unit 71 is specifically used to receive user input for playback preview, or to receive user dragging operation of the video timeline position pointer, or to receive user positioning operation of the video timeline position pointer.

[0140] The video editing apparatus provided in this disclosure can execute the video editing method provided in any of the above embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0141] Based on the same inventive concept, this disclosure also provides an electronic device. Figure 8 is a schematic diagram of the structure of the electronic device provided in this disclosure. As shown in Figure 8, the electronic device provided in this embodiment includes: a memory 801 and a processor 802. The memory 801 is used to store a computer program, and the processor 802 is used to execute the video editing method provided in the above embodiment when executing the computer program.

[0142] Based on the same inventive concept, this disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, enables the computing device to implement the video editing method provided in the above embodiments.

[0143] Based on the same inventive concept, this disclosure also provides a computer program product that, when run on a computer, enables the computing device to implement the video editing method provided in the above embodiments.

[0144] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media containing computer-usable program code.

[0145] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0146] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0147] Computer-readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media can store information using any method or technology; the information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit it. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure.

Claims

1. A video editing method, comprising: The system receives a first editing operation input from the user, which is used to switch the video frame displayed in the editing window to the first video frame. Determine whether the first video frame includes the target material, wherein the target material is the material currently selected by the user; If the target material is included in the first video frame, determine whether the layout information of the target material is stored in the cache; If the layout information of the target material is stored in the cache, the layout information of the target material is read from the cache; The first video frame is displayed in the editing window, and an operation box for the target material is added to the first video frame according to the layout information of the target material.

2. The method according to claim 1, further comprising: If the layout information of the target material is not saved in the cache, the layout information of the target material is obtained based on the editing information of the first video frame.

3. The method according to claim 2, further comprising: After obtaining the layout information of the target material based on the editing information of the first video frame, the layout information of the target material is saved to the cache.

4. The method according to claim 2, wherein, After saving the layout information of the target material to the cache, the method further includes: The system receives a second editing operation from the user, which is used to switch the video frame displayed in the editing window to a second video frame. Determine whether the target material is included in the second video frame; If the target material is not included in the second video frame, the layout information of the target material is deleted from the cache.

5. The method according to claim 1, further comprising: After adding the operation box of the target material to the first video frame according to the layout information of the target material, the user's third editing operation on the operation box of the target material is received; The target material is edited according to the third editing operation, and the layout information of the target material is iteratively updated according to the third editing operation.

6. The method according to claim 5, further comprising: After editing the target material according to the third editing operation and iteratively updating the layout information of the target material according to the third editing operation, the method further includes: Remove the layout information of the target material from the cache.

7. The method according to any one of claims 1-6, wherein, The first editing operation of receiving user input includes: It can receive user input for playback preview, or receive user dragging of the video timeline pointer, or receive user positioning of the video timeline pointer.

8. A video editing device, comprising: The user input unit is configured to receive a first editing operation from user input, the first editing operation being used to switch the video frame displayed in the editing window to a first video frame; The processing unit is configured to determine whether the first video frame includes target material, wherein the target material is the material currently selected by the user; The processing unit is further configured to determine whether the layout information of the target material is stored in the cache when the first video frame includes the target material. The acquisition unit is configured to read the layout information of the target material from the cache when the layout information of the target material is stored in the cache; The editing unit is configured to display the first video frame in the editing window and add an operation box for the target material in the first video frame according to the layout information of the target material.

9. An electronic device, comprising: A memory and a processor, wherein the memory is configured to store a computer program, and the processor is configured to, when executing the computer program, cause the electronic device to implement the video editing method according to any one of claims 1-7.

10. A computer-readable storage medium storing a computer program that, when executed by a computing device, causes the computing device to implement the video editing method according to any one of claims 1-7.

11. A computer program product, wherein, When the computer program product is run on a computer, the computer enables the computer to implement the video editing method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Video processing system and method

    CN106804002A

  • Video preview method and device

    CN111356012A

  • Video processing method and electronic equipment

    CN116095413A

  • Processing method and electronic equipment

    CN117135405A

  • Content generation system, program, and recording medium

    JP2006048465A