Video editing method and device
By saving the editing results of the footage in the cache and rendering them directly during spatial transformation operations, the problem of time-consuming spatial transformation operations in video editing is solved, thus improving editing efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, reapplying editing effects to footage after spatial transformation operations during video editing is time-consuming and affects editing efficiency.
The editing results of the materials are stored in the cache, and the editing results are read and rendered directly from the cache during spatial transformation operations to avoid duplicate processing.
By reducing repetitive editing of materials, the efficiency of video editing is improved.
Smart Images

Figure CN121644908A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of video editing technology, and in particular to a video editing method and apparatus. Background Technology
[0002] 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.
[0003] In video editing, there are often scenarios where, after applying beauty or body-shaping effects to footage, it's necessary to perform spatial transformations such as moving, scaling, and rotating without altering the content. In related technologies, video editing equipment typically performs the spatial transformation on the original footage first, and then reapplies the editing effects to the transformed footage. However, this process of reapplying editing effects to the transformed footage is extremely time-consuming and significantly impacts video editing efficiency. Summary of the Invention
[0004] In view of this, embodiments of this application provide a video editing method and apparatus for reducing or avoiding the time spent applying editing effects to materials during spatial transformation operations, thereby improving video editing efficiency.
[0005] To achieve the above objectives, the technical solutions provided in this application are as follows:
[0006] In a first aspect, embodiments of this application provide a video editing method, including:
[0007] The system receives a first editing operation from a user on a target material that has been subjected to at least one editing effect. The first editing operation is used to change the target material from a first display position to a second display position on the video editing canvas.
[0008] Determine whether the first editing result is stored in the cache, wherein the first editing result is the editing result obtained by applying the at least one editing effect to the target material;
[0009] If the first editing result is stored in the cache, read the first editing result from the cache;
[0010] The first editing result is rendered at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0011] As an optional implementation of this application, the method further includes:
[0012] If the first editing result is not saved in the cache, obtain the target material;
[0013] Apply at least one of the editing effects to the target material to obtain the first editing result;
[0014] The first editing result is rendered at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0015] As an optional implementation of this application, the method further includes:
[0016] After applying at least one of the editing effects to the target material to obtain the first editing result, the first editing result is saved to the cache.
[0017] As an optional implementation of this application, the method further includes:
[0018] The system receives a second editing operation input by the user on the target material. The second editing operation is used to apply a first editing effect to the target material. The first editing effect is not one of the at least one editing effects.
[0019] Read the first edit result from the cache;
[0020] Apply the first editing effect to the first editing result to obtain the second editing effect.
[0021] As an optional implementation of this application, the method further includes:
[0022] After applying the first editing effect to the first editing result to obtain the second editing effect, the second editing effect is saved to the cache.
[0023] As an optional implementation of this application, the method further includes:
[0024] The system receives a third editing operation input from the user on the target material, the third editing operation being used to cancel the application of the second editing effect among the at least one editing effects on the target material;
[0025] Obtain the target material;
[0026] Apply at least one of the editing effects other than the second editing effect to the target material to obtain a third editing effect.
[0027] As an optional implementation of this application, the method further includes:
[0028] After applying at least one editing effect other than the second editing effect to the target material to obtain a third editing effect, the third editing effect is saved to the cache.
[0029] As an optional implementation of this application, the method further includes:
[0030] After saving the second or third editing effect to the cache, the first editing result is deleted from the cache.
[0031] Secondly, embodiments of this application provide a video editing apparatus, including:
[0032] The user input unit is used to receive a first editing operation from a user on a target material that has been subjected to at least one editing effect. The first editing operation is used to change the target material from a first display position on the video editing canvas to a second display position.
[0033] The processing unit is configured to determine whether a first editing result is stored in the cache, wherein the first editing result is an editing result obtained by applying the at least one editing effect to the target material;
[0034] The read / write unit is used to read the first edit result from the cache if the first edit result is stored in the cache;
[0035] An editing unit is configured to render the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0036] As an optional implementation of this application, the processing unit is further configured to acquire the target material if the first editing result is not saved in the cache;
[0037] The editing unit is further configured to apply at least one editing effect to the target material to obtain the first editing result; and to render the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0038] As an optional implementation of this application, the read / write unit is further configured to save the first editing result to a cache after applying the at least one editing effect to the target material to obtain the first editing result.
[0039] As an optional implementation of this application, the user input unit is further configured to receive a second editing operation input by the user on the target material, the second editing operation being used to apply a first editing effect to the target material, the first editing effect not being one of the at least one editing effects;
[0040] The read / write unit is also used to read the first editing result from the cache;
[0041] The editing unit is further configured to apply the first editing effect to the first editing result to obtain a second editing effect.
[0042] As an optional implementation of this application, the read / write unit is further configured to save the second editing effect to a cache after applying the first editing effect to the first editing result to obtain the second editing effect.
[0043] As an optional implementation of this application, the user input unit is further configured to receive a third editing operation input by the user on the target material, the third editing operation being used to cancel the application of the second editing effect among the at least one editing effects on the target material;
[0044] The processing unit is also used to acquire the target material;
[0045] The editing unit is also used to apply other editing effects besides the second editing effect to the target material to obtain a third editing effect.
[0046] As an optional implementation of this application, the read / write unit is further configured to save the third editing effect to the cache after applying at least one editing effect other than the second editing effect to the target material to obtain the third editing effect.
[0047] As an optional implementation of this application, the read / write unit is further configured to delete the first editing result from the cache after saving the second editing effect or the third editing effect to the cache.
[0048] Thirdly, embodiments of this application 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.
[0049] Fourthly, embodiments of this application 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.
[0050] Fifthly, embodiments of this application provide 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.
[0051] The video editing method provided in this application, upon receiving a user's first editing operation on target material using at least one editing effect, first determines whether a first editing result obtained by applying the at least one editing effect to the target material is stored in a cache. If the first editing result is stored in the cache, the method reads the first editing result from the cache and renders the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas. Since the first editing operation is an operation that transforms the target material from the first display position to the second display position on the video editing canvas, it does not change the first editing result. Therefore, upon receiving a user's spatial transformation operation on the target material and the first editing result is stored in the cache, directly reading the first editing result from the cache and rendering the first editing result at the second display position can avoid repeatedly applying the at least one editing effect to the target material, thereby reducing or avoiding the time consumption caused by processing the target material using the at least one editing effect, and thus improving the video editing efficiency. Attached Figure Description
[0052] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0053] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings that need to be called in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 This is one of the flowcharts of the video editing method provided in the embodiments of this application;
[0055] Figure 2 One of the schematic diagrams of spatial transformation operations provided in the embodiments of this application;
[0056] Figure 3 A second schematic diagram illustrating spatial transformation operations provided in an embodiment of this application;
[0057] Figure 4 The second flowchart of the video editing method provided in the embodiments of this application;
[0058] Figure 5 A flowchart illustrating the steps of the method for obtaining the first editing result provided in this application embodiment;
[0059] Figure 6 The third step of the video editing method provided in this application embodiment;
[0060] Figure 7 The fourth step of the video editing method provided in the embodiments of this application;
[0061] Figure 8 This is a schematic diagram of the structure of the video editing device provided in the embodiments of this application;
[0062] Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0063] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0064] Many specific details are set forth in the following description in order to provide a full understanding of this application, but this application may also be implemented in other ways different from those described herein. Obviously, the embodiments in the specification are only some embodiments of this application, and not all embodiments.
[0065] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. 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 the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0066] This application provides a video editing method, referring to... Figure 1 As shown, this video editing method includes the following steps:
[0067] S101: Receive the user's first editing operation on the target material that has been treated with at least one editing effect.
[0068] The first editing operation is used to change the target material from a first display position to a second display position on the video editing canvas.
[0069] The first editing operation in this embodiment can be any editing operation that only changes the display position of the target material without changing its content. The first editing operation may include one or more of the following operations: move, rotate, and scale.
[0070] For example, refer to Figure 2 As shown, the original position coordinates of the target material 200 are (x1, y1). If a movement operation is received to drag the target material 200 from the original position coordinates (x1, y1) to the target position coordinates (x2, y2), it is determined that the first editing operation on the target material input has been received.
[0071] For example, refer to Figure 3 As shown, the original direction of the target material 200 is α. If a rotation operation is received that rotates the target material 200 from the original direction α to the target direction β, it is determined that the first editing operation on the target material input has been received.
[0072] In some embodiments, the at least one editing effect may include: beauty editing effect, body editing effect, filter editing effect, etc.
[0073] S102. Determine whether the first edit result is saved in the cache.
[0074] The first editing result is the editing result obtained by applying the at least one editing effect to the target material.
[0075] In some embodiments, the latest editing effect of the target material can be stored in a specified cache location. Determining whether the first editing result is stored in the cache can be done by checking whether the specified cache location is empty. If it is not empty, then it is determined that the first editing result is stored in the cache.
[0076] In some embodiments, the identification information of the editing effect can be generated based on the identification information of the material and the identification information of the editing effect applied to the material, and the identification information of the editing effect and the editing effect can be saved through a mapping relationship; determining whether the first editing result is saved in the cache can be: checking whether the cache saves a mapping relationship that matches the identification information of the editing effect generated based on the identification information of the target material and the identification information of the at least one editing effect, and if so, determining that the first editing result is saved in the cache.
[0077] In step S102 above, if the first editing result is stored in the cache, then steps S103 and S104 are executed as follows:
[0078] S103. Read the first editing result from the cache.
[0079] That is, the processing result obtained by applying the at least one editing effect to the target material is read from the cache.
[0080] S104. Render the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0081] In some embodiments, rendering the first editing result at the second display position includes: periodically acquiring the display position corresponding to the first editing operation with a preset duration, and rendering the first editing result to the display position acquired in the current period.
[0082] The video editing method provided in this application, upon receiving a user's first editing operation on target material using at least one editing effect, first determines whether a first editing result obtained by applying the at least one editing effect to the target material is stored in a cache. If the first editing result is stored in the cache, the method reads the first editing result from the cache and renders the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas. Since the first editing operation is an operation that transforms the target material from the first display position to the second display position on the video editing canvas, it does not change the first editing result. Therefore, upon receiving a user's spatial transformation operation on the target material and the first editing result is stored in the cache, directly reading the first editing result from the cache and rendering the first editing result at the second display position can avoid repeatedly applying the at least one editing effect to the target material, thereby reducing or avoiding the time consumption caused by processing the target material using the at least one editing effect, and thus improving the video editing efficiency.
[0083] As an extension and refinement of the above embodiments, this application provides another video editing method, referring to... Figure 4 As shown, this video editing method includes the following steps:
[0084] S401: Receive the user's first editing operation on the target material that has been treated with at least one editing effect.
[0085] The first editing operation is used to change the target material from a first display position to a second display position on the video editing canvas.
[0086] S402. Determine whether the first edit result is saved in the cache.
[0087] The first editing result is the editing result obtained by applying the at least one editing effect to the target material.
[0088] In step S402 above, if the first editing result is not saved in the cache, then steps S403 and S404 are executed as follows:
[0089] S403. Obtain the target material.
[0090] That is, to obtain the original target material without using any editing effects.
[0091] S404. Apply the at least one editing effect to the target material to obtain the first editing result.
[0092] In step S402 above, if the first editing result is stored in the cache, then step S405 is executed as follows:
[0093] S405. Read the first editing result from the cache.
[0094] After obtaining the first editing result through the above steps S404 or S405, continue to execute the following step S406:
[0095] S406. Render the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0096] In the above embodiments, even if the first editing result is not saved in the cache, the target material can be obtained, and at least one editing effect can be applied to the target material to obtain the first editing result. Therefore, the above embodiments can ensure the normal execution of the first editing operation even if the first editing result is not saved in the cache.
[0097] In some embodiments, the video editing method provided above further includes: after applying the at least one editing effect to the target material to obtain the first editing result, saving the first editing result to a cache.
[0098] After obtaining the first editing result by applying the at least one editing effect to the target material, saving the first editing result to the cache allows the first editing result to be read directly from the cache when performing spatial transformation operations on the target material next time. This avoids the time-consuming process of processing the target material through the at least one editing effect, thereby improving the efficiency of video editing.
[0099] 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 the WASM (Web Assembly, a new binary format) method. Figure 5 As shown, obtaining the first editing result can include the following steps:
[0100] S51. The business layer sends a request to the browser to request the first edit result.
[0101] S52, The browser converts the request information from JavaScript to WASM.
[0102] S53, The browser sends the converted request information to the underlying layer.
[0103] S54. The underlying layer determines whether the first editing result is stored in the cache.
[0104] In step S54 above, if the first editing result is stored in the cache, then step S55 is executed as follows:
[0105] S55, The underlying layer reads the first editing result from the cache.
[0106] In step S54 above, if the first editing result is not saved in the cache, then steps S56 and S57 are executed as follows:
[0107] S56. Obtain the target material and at least one editing effect from the bottom layer.
[0108] S57. The bottom layer applies at least one of the editing effects to the target material to obtain the first editing result.
[0109] After obtaining the first editing result through the above steps S55 or S57, the following steps are further performed:
[0110] S58. The underlying layer sends the first editing result to the browser.
[0111] S59. The browser converts the first edit result from WASM to JavaScript.
[0112] S510: The browser sends the first edited result after conversion to the business layer.
[0113] Reference Figure 6 As shown, in Figure 4 Based on the illustrated embodiments, the video editing method provided in this application further includes the following steps:
[0114] S601, Receive the second editing operation input by the user on the target material.
[0115] The second editing operation is used to apply a first editing effect to the target material, and the first editing effect is not one of the at least one editing effects.
[0116] For example, if the at least one editing effect includes editing effect A, editing effect B, and editing effect C, then the second editing operation can be an operation to apply editing effect D to the target material.
[0117] S602. Read the first editing result from the cache.
[0118] S603. Apply the first editing effect to the first editing result to obtain the second editing effect.
[0119] S604. Save the second editing effect to the cache.
[0120] In some embodiments, the video encoding method further includes: after saving the second editing effect to the cache, deleting the first editing result from the cache.
[0121] After saving the second editing effect to the cache, deleting the first editing result from the cache allows the cache to only store the latest editing effect of the target material, thereby reducing the cache space usage.
[0122] In some embodiments, the first editing result and the second editing effect can be saved in the cache at the same time, so that they can be read directly from the cache when the first editing result or the second editing effect is needed.
[0123] Reference Figure 7 As shown, in Figure 4 Based on the illustrated embodiments, the video editing method provided in this application further includes the following steps:
[0124] S701. Receive the third editing operation input by the user on the target material.
[0125] The third editing operation is used to cancel the application of the second editing effect among the at least one editing effects to the target material.
[0126] For example, if the at least one editing effect includes editing effect A, editing effect B, and editing effect C, then the second editing operation can be to cancel the editing operation of editing effect B on the target material.
[0127] S702. Obtain the target material.
[0128] S703. Apply one of the at least one editing effects other than the second editing effect to the target material to obtain a third editing effect.
[0129] As described in the example above, when the second editing operation is to cancel the editing operation of applying editing effect B to the target material, then editing effect A and editing effect B are applied to the target material to obtain the third editing effect.
[0130] S704. Save the third editing effect to the cache.
[0131] In some embodiments, the video encoding method further includes: after saving the third editing effect to the cache, deleting the first editing result from the cache.
[0132] After saving the third editing effect to the cache, deleting the first editing result from the cache allows the cache to only store the latest editing effect of the target material, thereby reducing the cache space usage.
[0133] In some embodiments, the first editing result and the third editing effect can be saved in the cache at the same time, so that they can be read directly from the cache when the first editing result or the third editing effect is needed.
[0134] Based on the same inventive concept, as an implementation of the above method, this application also provides a video editing device. This embodiment 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.
[0135] This application provides a video editing device. Figure 8 This is a schematic diagram of the video editing device, as shown below. Figure 8 As shown, the video editing device 800 includes:
[0136] User input unit 81 is used to receive a first editing operation by a user on a target material that has used at least one editing effect. The first editing operation is used to change the target material from a first display position on the video editing canvas to a second display position.
[0137] Processing unit 82 is used to determine whether a first editing result is stored in the cache, wherein the first editing result is an editing result obtained by applying the at least one editing effect to the target material;
[0138] The read / write unit 83 is used to read the first edit result from the cache when the first edit result is stored in the cache;
[0139] The editing unit 84 is used to render the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0140] As an optional implementation of this application, the processing unit 82 is further configured to obtain the target material when the first editing result is not saved in the cache;
[0141] The editing unit 84 is further configured to apply at least one editing effect to the target material to obtain the first editing result; and to render the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas.
[0142] As an optional implementation of this application, the read / write unit 83 is further configured to save the first editing result to a cache after applying the at least one editing effect to the target material to obtain the first editing result.
[0143] As an optional implementation of this application, the user input unit 83 is further configured to receive a second editing operation input by the user on the target material, the second editing operation being used to apply a first editing effect to the target material, the first editing effect not being one of the at least one editing effect;
[0144] The read / write unit 83 is also used to read the first editing result from the cache;
[0145] The editing unit 84 is further configured to apply the first editing effect to the first editing result to obtain a second editing effect.
[0146] As an optional implementation of this application, the read / write unit 83 is further configured to save the second editing effect to a cache after applying the first editing effect to the first editing result to obtain the second editing effect.
[0147] As an optional implementation of this application, the user input unit 81 is further configured to receive a third editing operation input by the user on the target material, the third editing operation being used to cancel the application of the second editing effect among the at least one editing effects on the target material;
[0148] The processing unit 82 is also used to acquire the target material;
[0149] The editing unit 84 is further configured to apply other editing effects besides the second editing effect to the target material to obtain a third editing effect.
[0150] As an optional implementation of this application, the read / write unit 83 is further configured to save the third editing effect to the cache after applying at least one editing effect other than the second editing effect to the target material to obtain the third editing effect.
[0151] As an optional implementation of this application, the read / write unit 83 is further configured to delete the first editing result from the cache after saving the second editing effect or the third editing effect to the cache.
[0152] The video editing device provided in this application embodiment can execute the video editing method provided in any of the above embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0153] Based on the same inventive concept, embodiments of this application also provide an electronic device. Figure 9 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application, such as... Figure 9 As shown, the electronic device provided in this embodiment includes a memory 901 and a processor 902. The memory 901 is used to store computer programs, and the processor 902 is used to execute the video editing method provided in the above embodiment when executing the computer programs.
[0154] Based on the same inventive concept, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the computing device to implement the video editing method provided in the above embodiments.
[0155] Based on the same inventive concept, this application 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.
[0156] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0157] 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.
[0158] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0159] 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 do not include transient computer-readable media, such as modulated data signals and carrier waves.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some or all of the technical features. 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 application.
Claims
1. A video editing method characterized by, The method comprises: receiving a first editing operation of a user on a target material using at least one editing effect, the first editing operation being used to transform the target material from a first display position to a second display position of a video editing canvas; determining whether the first editing result is saved in the cache, the first editing result being an editing result obtained by using the at least one editing effect on the target material; in a case where the first editing result is saved in the cache, reading the first editing result from the cache; rendering the first editing result at the second display position to present an editing result of the first editing operation on the video editing canvas.
2. The method of claim 1, wherein, The method further comprises: in a case where the first editing result is not saved in the cache, obtaining the target material; using the at least one editing effect on the target material to obtain the first editing result; rendering the first editing result at the second display position to present an editing result of the first editing operation on the video editing canvas.
3. The method of claim 2, wherein, The method further comprises: after using the at least one editing effect on the target material to obtain the first editing result, saving the first editing result into the cache.
4. The method of claim 3, wherein, The method further comprises: receiving a second editing operation input by the user on the target material, the second editing operation being used to use a first editing effect on the target material, the first editing effect not belonging to the at least one editing effect; reading the first editing result from the cache; using the first editing effect on the first editing result to obtain a second editing effect.
5. The method of claim 4, wherein, The method further comprises: after using the first editing effect on the first editing result to obtain a second editing effect, saving the second editing effect into the cache.
6. The method of claim 3, wherein, The method further comprises: receiving a third editing operation input by the user on the target material, the third editing operation being used to cancel using a second editing effect of the at least one editing effect on the target material; obtaining the target material; using other editing effects of the at least one editing effect except the second editing effect on the target material to obtain a third editing effect.
7. The method of claim 6, wherein, The method further comprises: after using other editing effects of the at least one editing effect except the second editing effect on the target material to obtain a third editing effect, saving the third editing effect into the cache.
8. The method according to claim 5 or 7, characterized in that, The method further comprises: after saving the second editing effect or the third editing effect into the cache, deleting the first editing result from the cache.
9. A video editing apparatus characterized by comprising: The method comprises: a user input unit configured to receive a first editing operation of a user on a target material using at least one editing effect, the first editing operation being used to transform the target material from a first display position to a second display position of a video editing canvas; a processing unit configured to determine whether a first editing result is saved in a cache, the first editing result being an editing result obtained by using the at least one editing effect on the target material; A reading and writing unit, configured to read the first editing result from the cache if the first editing result is stored in the cache; An editing unit, configured to render the first editing result at the second display position to present the editing result of the first editing operation on the video editing canvas.
10. An electronic device, comprising: Comprise: A memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program, so that the electronic device implements the video editing method in any one of claims 1-8.
11. A computer readable storage medium, characterized in that, The computer readable storage medium has a computer program stored thereon, and when the computer program is executed by a computing device, the computing device implements the video editing method in any one of claims 1-8.
12. A computer program product, characterised in that, When the computer program product runs on the computer, the computer implements the video editing method in any one of claims 1-8.