A video exporting method, device, apparatus and storage medium

CN116366879BActive Publication Date: 2026-09-22LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211527935.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2026-09-22
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

而视频导出时间往往比较长,造成了工作效率比较低

Benefits of technology

[0008]本申请实施例中,通过将待导出的第一目标视频与已导出的第一视频进行

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366879B_ABST
    Figure CN116366879B_ABST
Patent Text Reader

Abstract

The application discloses a video export method, device, equipment and storage medium, the method comprises: obtaining a first target video export instruction, the first target video applies a first processing parameter to at least one segment of a reference video;Determine if there is a first video, the first video applies a second processing parameter to at least one segment of the reference video;If it is determined that there is a segment with the same processing parameter in the first target video as the first video, the same segment in the first video is copied, and the first processing parameter is applied to the segment different from the first video processing parameter in the first target video to obtain the first target video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of video processing technology, and to, but is not limited to, a video export method, apparatus, device, and storage medium. Background Technology

[0002] In related technologies, during video editing and effects processing using video editing software, it is often necessary to repeatedly modify parameters and export the same video repeatedly. Sometimes only a few parameters need to be modified, or multiple samples with different parameters need to be exported from the same video. Video export time is often quite long, resulting in low work efficiency. Summary of the Invention

[0003] In view of this, embodiments of this application provide a video export method, apparatus, device, and storage medium.

[0004] In a first aspect, embodiments of this application provide a video export method, the method comprising: obtaining a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of a reference video; determining that a first video exists, wherein the first video applies a second processing parameter to at least one segment of the reference video; if it is determined that there is a segment in the first target video with the same processing parameter as the first video, copying the same segment in the first video, and applying the first processing parameter to the segments in the first target video with different processing parameters than the first video, thereby obtaining the first target video.

[0005] Secondly, embodiments of this application provide a video export apparatus, comprising: a first acquisition module, configured to acquire a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of a reference video; a first determination module, configured to determine the existence of a first video, wherein the first video applies a second processing parameter to at least one segment of the reference video; and a first processing module, configured to, if it is determined that there is a segment in the first target video with the same processing parameter as the first video, copy the same segment in the first video, and apply the first processing parameter to segments in the first target video with different processing parameters than the first video, thereby obtaining the first target video.

[0006] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements the steps in the video export method described in embodiments of this application.

[0007] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the video export method described in embodiments of this application.

[0008] In this embodiment of the application, the first target video to be exported is compared with the first exported video.

[0009] By comparing the two, segments in the first video with the same processing parameters as the first target video can be directly copied, and segments in the first target video with different processing parameters can be processed using the first processing parameters, thereby improving the export speed of the first target video. Attached Figure Description

[0010] Figure 1 This is a flowchart illustrating a video export method according to an embodiment of this application;

[0011] Figure 2 This is a flowchart illustrating another video export method according to an embodiment of this application;

[0012] Figure 3 This is a flowchart illustrating another video export method according to an embodiment of this application;

[0013] Figure 4 This is a flowchart illustrating a method for repeatedly exporting video according to an embodiment of this application;

[0014] Figure 5 This is a flowchart illustrating another video export method according to an embodiment of this application;

[0015] Figure 6 This is a flowchart illustrating a method for simultaneously exporting video according to an embodiment of this application;

[0016] Figure 7 This is a schematic diagram of the composition structure of a video exporting device according to an embodiment of this application;

[0017] Figure 8 This is a schematic diagram of the hardware entity of an electronic device according to an embodiment of this application. Detailed Implementation

[0018] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and embodiments.

[0019] Figure 1 This is a flowchart illustrating a video export method according to an embodiment of this application, as shown below. Figure 1 As shown, the method includes the following steps:

[0020] Step 102: Obtain a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of the reference video;

[0021] Wherein, the first target video export instruction is used to export the first target video, the reference video can be a video source file, the first processing parameters can include at least one type of processing parameters, the first processing parameters can be editing parameters used when editing the video source file, such as filter parameters, speed parameters, contrast parameters, audio parameters, etc., the first processing parameters can also be export parameters used when exporting the edited video source file to obtain the first target video, such as the video format (e.g., MP4, MOV) and resolution (e.g., 720P, 1080P, 4K) of the exported first target video, etc.; the same or different first processing parameters can be applied to different segments of the reference video to obtain the first target video.

[0022] When the at least one segment includes a first segment, a second segment, a third segment, and a fourth segment, and the first processing parameters include parameters X1, X2, and X3, the first target video can be obtained by applying parameter X1 to the first segment of the reference video, applying parameter X2 to the second and fourth segments, and applying parameters X2 and X3 to the third segment.

[0023] Step 104: Determine the existence of a first video, wherein the first video applies a second processing parameter to at least one segment of the reference video;

[0024] The first video can be an exported video file, meaning it is exported after applying the second processing parameters to at least one segment of a video source file; the video source file corresponds to the reference video. Similar to the first processing parameters, the second processing parameters can include at least one type of processing parameters. The first and second processing parameters can be at least partially the same or different. The second processing parameters can be editing parameters used when editing the video source file, or export parameters used when exporting the edited video source file to obtain the first video. The same or different second processing parameters can be applied to different segments of the reference video to obtain the first video.

[0025] Step 106: If it is determined that there is a segment in the first target video with the same processing parameters as the first video, copy the same segment in the first video, and apply the first processing parameters to the segments in the first target video with different processing parameters than the first video to obtain the first target video.

[0026] Specifically, the first target video and the first video can be compared along the same timeline. If the processing parameters of the time-corresponding segments of the first target video and the first video are the same, then the same segment in the first video is copied. If the processing parameters of the time-corresponding segments of the first target video and the first video are different, then the first processing parameters are applied to the segments in the first target video with different processing parameters than those in the first video to obtain the first target video. The time-corresponding segments refer to the segments in the first video and the first video whose start and end times are both corresponding to the video frames.

[0027] For example, if the first target video includes a first segment, a second segment, and a third segment, and the first video includes a fourth segment, a fifth segment, and a sixth segment, and the first segment and the fourth segment are time-corresponding, the second segment and the fifth segment are time-corresponding, and the third segment and the sixth segment are time-corresponding, then when applying parameter X1 to the first segment, parameter X2 to the second segment, parameter X3 to the third segment, parameter Y1 to the first segment, parameter Y2 to the second segment, and parameter Y3 to the third segment, if the parameters X1 and Y1 of the time-corresponding first and fourth segments are the same, the parameters X3 and Y3 of the time-corresponding third and sixth segments are the same, and the parameters X2 and Y2 of the time-corresponding second and fifth segments are different, then the fourth and sixth segments of the first video can be directly copied, and parameter X2 can be applied to the second segment of the first target video to obtain the first target video.

[0028] In this embodiment of the application, by comparing the first target video to be exported with the first video that has already been exported, the segments in the first video with the same processing parameters as the first target video can be directly copied, and the first processing parameters can be applied to the segments in the first target video with different processing parameters than the first video, thereby improving the export speed of the first target video.

[0029] Figure 2 This is a flowchart illustrating another video export method according to an embodiment of this application, as shown below. Figure 2 As shown, the method includes the following steps:

[0030] Step 202: Obtain a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of the reference video;

[0031] Step 204: Determine that there are i videos in the cache, and apply the j-th processing parameter to at least one segment of the reference video in the j-th video, where j is an integer greater than or equal to 2 and less than or equal to i;

[0032] Step 206: Compare the first target video with each of the i videos;

[0033] Step 208: If it is determined that the first target video and the i videos have the same processing parameters, copy the same segment from the i videos, and apply the first processing parameters to the segments in the first target video that have different processing parameters from the i videos to obtain the first target video.

[0034] Similar to the method of comparing the first target video and the first video in step 106, for example, for the j-th video among i videos, the first target video and the j-th video can be compared along the same timeline. If the processing parameters of the time-corresponding segments of the first target video and the j-th video are the same, then the same segment in the j-th video is copied; if the processing parameters of the time-corresponding segments of the first target video and the j-th video are different, then the first processing parameters are applied to the segments in the first target video with different processing parameters than those in the j-th video. The time-corresponding segments refer to the segments in the first video and the j-th video where both the start and end times of the video frames are corresponding.

[0035] In this embodiment, by comparing the first target video to be exported with multiple videos on the same timeline that have applied processing parameters, the segments in the i videos that have the same processing parameters as the first target video can be directly copied. The first processing parameters are applied to the segments in the first target video that have different processing parameters from the i videos. This can minimize the amount of material that needs to be repeatedly edited, and only the changed parts are encoded and decoded for export, thereby improving the export speed of the first target video.

[0036] In some embodiments, such as Figure 3 As shown, after step 208, the method further includes:

[0037] Step 210: Export the first target video;

[0038] Step 212: Store the first target video as the (i+1)th video in the cache;

[0039] Step 214: When obtaining the second target video export instruction, compare the second target video with each of the i+1 videos.

[0040] Similar to the method of comparing the first target video with each of the i videos, if it is determined that the first target video and the i+1 videos have segments with the same processing parameters, the same segments in the i+1 videos are copied, and the first processing parameters are applied to the segments in the first target video that have different processing parameters from the i+1 videos to obtain the first target video.

[0041] like Figure 4 As shown, assuming that the first target video needs to apply at least one first processing parameter to the first segment of the reference video, the first segment includes at least the first sub-segment P1, the second sub-segment P2, the third sub-segment P3, the fourth sub-segment P4, the fifth sub-segment P5, the sixth sub-segment P6, the seventh sub-segment P7, and the eighth sub-segment P8 to apply the first processing parameter, and the i videos include the reference video and the exported first video, second video, and third video.

[0042] Assuming that segment Q1 of the reference video corresponds to the third sub-segment P3 in timing and has the same processing parameters, segment Q2 of the reference video corresponds to the seventh sub-segment P7 and has the same processing parameters; segment Q3 of the first video corresponds to the first sub-segment P1 and has the same processing parameters, segment Q4 of the first video corresponds to the sixth sub-segment P6 and has the same processing parameters; segment Q5 of the second video corresponds to the second sub-segment P2 and has the same processing parameters, segment Q6 of the second video corresponds to the fourth sub-segment P4 and has the same processing parameters; and segment Q7 of the third video corresponds to the fifth sub-segment P5 and has the same processing parameters, then segments Q3, Q5, Q1, Q6, Q7, Q4, and Q2 are copied, and the first processing parameters are applied to segment P8 in the first target video that has different processing parameters from the i-th video to obtain the first target video.

[0043] The reference video can be the original video clip material (also known as the original video clip source file script). The first video can be the first hidden copy of the original video clip material, the second video can be the second hidden copy of the original video clip material, and the third video can be the third hidden copy of the original video clip material. When it is necessary to repeatedly export video files with different processing parameters, the previously exported video file can be cached in memory and used as a hidden copy of the original video clip material. For the same project file, the video cache exported each time is used as a hidden copy, so there can be multiple editable original materials. When exporting again, the different versions of the hidden copies are compared on the same timeline. For materials in the hidden copies that use the same format and parameters as the video to be exported, they can be directly copied. For materials with modified parameters, real-time video encoding and export can be performed. The cached videos can be reused, which can minimize the materials that need to be repeatedly edited. Only the changed parts are encoded and decoded for export, thereby improving the export speed of the video to be exported. In addition, by caching the exported videos and comparing and switching between different hidden copies, the cached videos can be reused and updated.

[0044] Figure 5 This is a flowchart illustrating another video export method according to an embodiment of this application, as shown below. Figure 5 As shown, the method includes the following steps:

[0045] Step 502: Obtain a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of the reference video; the first target video export instruction is used to export N target videos;

[0046] Step 504: Determine the existence of a first video, wherein the first video applies a second processing parameter to at least one segment of the reference video;

[0047] Step 506: If it is determined that there is a segment in the first target video with the same processing parameters as the first video, copy the same segment in the first video, and apply the first processing parameters to the segments in the first target video with different processing parameters than the first video to obtain the first target video;

[0048] Step 508: Based on the export order of the N target videos, export the m-th target video according to a preset time interval; m is an integer greater than or equal to 2 and less than or equal to N; wherein, when the export order is 1, the first video is the reference video; when the export order is m, the first video includes the reference video and video segments of the exported portions of the target videos with export orders from 1 to m-1.

[0049] When exporting target videos with N processing parameters simultaneously, the target videos can be exported at preset time intervals. When exporting the first target video, it can be compared with the reference video. If it is determined that there is a segment in the first target video with the same processing parameters as the reference video, the same segment in the reference video is copied, and the first processing parameters are applied to the segments in the first target video with different processing parameters from the reference video to obtain the first target video. When exporting the fourth target video, it can be compared with the reference video and the video segments already exported from the first to the third target videos. If it is determined that there is a segment in the fourth target video with the same processing parameters as the reference video and the first to the third target videos, the same segment in the reference video and the first to the third target videos is copied, and the first processing parameters are applied to the segments in the first target video with different processing parameters from the reference video and the first to the third target videos to obtain the fourth target video.

[0050] In some embodiments, the preset time interval can be represented as t. Then, after the first target video is exported at time t, the export of the second target video can begin. At this time, the second target video can directly copy the segments with the same format and parameters as the exported portions of the reference video and the exported portions of the first target video. After the second target video is exported at time t, the export of the third target video can begin. At this time, the third target video can directly copy the segments with the same format and parameters as the exported portions of the reference video, the exported portions of the first target video, and the exported portions of the second target video.

[0051] like Figure 6 As shown, when exporting videos with different parameters simultaneously, video encoding / decoding can be performed sequentially with a fixed time difference. When a later video is exported, it is compared with the already exported video segments of an earlier video. At time t1, when the first target video is exported, it can be compared with the first already exported segment of the reference video. At time t2, when the second target video is exported, it can be compared with the first and second already exported segments of the reference video, as well as the third segment of the first target video. This allows for the simultaneous export of multiple video files with different parameters, exporting two different video files within approximately one video export time.

[0052] In this embodiment, by exporting videos sequentially at preset time intervals, and by comparing the exported portions of later videos with the exported portions of earlier videos, multiple videos with different processing parameters can be exported simultaneously, further accelerating the export speed of videos with different processing parameters from the same source material.

[0053] In some embodiments, prior to step 508, the method further includes:

[0054] Step 507: Determine the export order of the corresponding target videos based on the number of types of the first processing parameters corresponding to each of the N target videos;

[0055] The more types of the first processing parameters there are, the later the target video is exported.

[0056] In this embodiment, videos with a large number of different types of processing parameters can be exported later, while videos with a small number of different types of processing parameters can be exported first. Videos with a large number of different types of parameters exported later can copy the parts with the same parameters from videos with a small number of different types of parameters exported earlier, thereby further improving the video export speed.

[0057] In some embodiments, prior to step 507, the method further includes: obtaining the number of bytes of the first target video and / or the number of types of the first processing parameters;

[0058] If the number of bytes in the first target video is less than or equal to a first preset threshold, and / or the number of types of the first processing parameters is less than or equal to a second preset threshold, the first processing parameters are applied to at least one segment of the first target video to obtain the first target video.

[0059] In this embodiment of the application, if the number of bytes in the first target video is small, or the number of processing parameters is small, the first processing parameter can be directly applied to at least one segment of the first target video without comparing it with other exported videos, thereby increasing the flexibility of video export.

[0060] In some embodiments, the method includes the following steps:

[0061] Step S702: Obtain a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of the reference video; the first target video export instruction is used to export N target videos;

[0062] Step S704: For the first to nth target videos, export them according to the first method; for the (n+1)th to Nth target videos, export them according to the second method, where n is greater than or equal to 2 and less than N.

[0063] The first method / second method includes step S7041: determining that there are i videos in the cache, and applying the j-th processing parameter to at least one segment of the reference video in the j-th video; comparing the first target video with each of the i videos; if it is determined that the first target video and the i videos have segments with the same processing parameters, copying the same segments in the i videos, and applying the first processing parameter to the segments in the first target video that have different processing parameters from the i videos, to obtain the first target video;

[0064] The second method / first method includes step S7042: determining that a first video exists, the first video applying a second processing parameter to at least one segment of the reference video; exporting the m-th target video according to a preset time interval based on the export order of the N target videos; wherein, when the export order is 1, the first video is the reference video; when the export order is m, the first video includes the reference video and video segments of the exported portions of the target videos with export orders from 1 to m-1.

[0065] In the case where the first method includes step S7041 and the second method includes step S7042, that is, for the 1st to nth target videos, export according to step S7041, and for the (n+1)th to Nth target videos, export according to step S7042.

[0066] When the first method includes step S7042 and the second method includes step S7041, that is, for the 1st to nth target videos, export according to step S7042, and for the (n+1)th to Nth target videos, export according to step S7041.

[0067] In this embodiment, a combination of two export methods can also be used to export the video, further improving the flexibility and efficiency of video export.

[0068] It should be noted that, in the embodiments of this application, if the above-described video export method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a mobile phone, tablet computer, desktop computer, personal digital assistant, navigator, digital phone, video phone, television, sensor device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0069] Figure 7 This is a schematic diagram of the composition structure of a video exporting device according to an embodiment of this application, as shown below. Figure 7 As shown, the device 700 includes: a first acquisition module 701, a first determination module 702, and a first processing module 703.

[0070] in:

[0071] The first acquisition module 701 is used to acquire a first target video export instruction, wherein the first target video 5 applies a first processing parameter to at least one segment of the reference video.

[0072] The first determining module 702 is used to determine the existence of a first video, wherein the first video applies a second processing parameter to at least one segment of the reference video;

[0073] The first processing module 703 is configured to, if it is determined that there is a segment in the first target video with the same processing parameters as the first video, copy the same segment in the first video, and apply the first processing parameters to the segments in the first target video with different processing parameters than the first video, to obtain the first target video.

[0074] In some embodiments, the apparatus further includes: a second determining module, configured to determine that there are i videos in the cache, wherein the j-th video applies a j-th processing parameter to at least one segment of the reference video, where j is an integer greater than or equal to 2 and less than or equal to i; and a first comparing module, configured to compare the first target video with...

[0075] The first processing module compares each of the i videos; if it is determined that the first target video and the i videos have the same processing parameters, it copies the same segment from the i videos and applies the first processing parameters to the segments in the first target video that have different processing parameters from the i videos to obtain the first target video.

[0076] In some embodiments, the apparatus further includes: a first export module for exporting the first target video; a storage module for storing the first target video as the (i+1)th video in the cache; and a second comparison module for comparing the second target video with each of the (i+1)th videos when a second target video export instruction is obtained.

[0077] In some embodiments, the first target video export instruction is used to export N target videos; the device further includes: a second export module, used to export the m-th target video according to a preset time interval based on the export order of the N target videos; m is an integer greater than or equal to 2 and less than or equal to N;

[0078] Wherein, when the export order is 1, the first video is the reference video; when the export order is m, the first video includes the reference video and video segments of the exported portions of the target videos with export orders from 1 to m-1.

[0079] In some embodiments, the apparatus further includes: a third determining module, configured to determine the export order of the corresponding target videos based on the number of types of the first processing parameters corresponding to each of the N target videos; wherein, the more types of the first processing parameters there are, the later the export order of the target videos is.

[0080] In some embodiments, the first target video export instruction is used to export N target videos; the apparatus further includes: a third export module, used to export the 1st to nth target videos according to a first method, and the (n+1)th to Nth target videos according to a second method, where n is greater than or equal to 2 and less than N; the first method / second method includes: determining that there are i videos in the cache, applying the jth processing parameter to at least one segment of the reference video in the jth video; comparing the first target video with each of the i videos; if it is determined that the first target video and the i videos have segments with the same processing parameters, copying the same segments in the i videos, and applying the first processing parameter to segments in the first target video that have different processing parameters from the i videos, to obtain the first target video; the second method / first method includes: exporting the mth target video according to a preset time interval based on the export order of the N target videos; wherein, when the export order is 1, the first video is the reference video; when the export order is m, the first video includes the reference video and video segments of the exported portions of the target videos with export orders from 1 to m-1.

[0081] In some embodiments, the apparatus further includes: a second acquisition module, configured to acquire the number of bytes of the first target video and / or the number of types of the first processing parameters; and a third processing module, configured to apply the first processing parameters to at least one segment of the first target video to obtain the first target video when the number of bytes of the first target video is less than or equal to a first preset threshold and / or the number of types of the first processing parameters is less than or equal to a second preset threshold.

[0082] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0083] Correspondingly, embodiments of this application provide an electronic device, Figure 8 This is a schematic diagram of a hardware entity of an electronic device according to an embodiment of this application, such as... Figure 8 As shown, the hardware entity of the device 800 includes a memory 801 and a processor 802. The memory 801 stores a computer program that can run on the processor 802. When the processor 802 executes the program, it implements the steps in the video export method in the above embodiments.

[0084] The memory 801 is configured to store instructions and applications executable by the processor 802, and can also cache data to be processed or already processed by the processor 802 and the various modules in the device 800 (e.g., image data, audio data, voice communication data and video communication data), which can be implemented by flash memory or random access memory (RAM).

[0085] Correspondingly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the video export method provided in the above embodiments.

[0086] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects as the device embodiments. For technical details not disclosed in the storage medium and method embodiments of this application, please refer to the descriptions of the device embodiments of this application for understanding.

[0087] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0088] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0089] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0090] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this application may all be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in hardware or in a combination of hardware and software functional units.

[0091] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks. Alternatively, if the integrated units of this application are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application are essentially or

[0092] The contribution to the relevant technology can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a mobile phone, tablet computer, desktop computer, personal digital assistant, navigator, digital phone, video phone, television, sensor device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.

[0093] The methods disclosed in the several method embodiments provided in this application may be used without conflict.

[0094] New method embodiments can be obtained through arbitrary combinations. The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments. Similarly, the features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0095] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto.

[0096] Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the stated claims.

Claims

1. A video export method, the method comprising: Obtain a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of the reference video; The existence of a first video is determined, and the first video applies a second processing parameter to at least one segment of the reference video; If the first target video and the first video are compared along the same timeline, and it is determined that there is a segment in the first target video with the same processing parameters as the first video, the same segment in the first video is copied, and the first processing parameters are applied to the segments in the first target video with different processing parameters than the first video to obtain the first target video. The processing parameters include: editing parameters and export parameters; Export the first target video; The first target video is stored in the cache as the (i+1)th video; the cache already contains i videos; When obtaining the second target video export instruction, the second target video is compared with each of the i+1 videos.

2. The method according to claim 1, wherein, The method further includes: It is determined that there are i videos in the cache, and the j-th video applies the j-th processing parameter to at least one segment of the reference video, where j is an integer greater than or equal to 2 and less than or equal to i; Compare the first target video with each of the i videos; If it is determined that the first target video has a segment with the same processing parameters as the i videos, the same segment in the i videos is copied, and the first processing parameters are applied to the segments in the first target video that have different processing parameters from the i videos to obtain the first target video.

3. The method according to claim 1, wherein, The first target video export command is used to export N target videos; The method further includes: Based on the export order of the N target videos, the m-th target video is exported according to a preset time interval; m is an integer greater than or equal to 2 and less than or equal to N; Wherein, when the export order is 1, the first video is the reference video; when the export order is m, the first video includes the reference video and video segments of the exported portions of the target videos with export orders from 1 to m-1.

4. The method according to claim 3, wherein, The method further includes: The export order of the corresponding target videos is determined based on the number of types of the first processing parameters corresponding to each of the N target videos. The more types of the first processing parameters there are, the later the target video is exported.

5. The method according to claim 1, wherein, The first target video export command is used to export N target videos; The method further includes: For the first to nth target videos, export using the first method; for the (n+1)th to Nth target videos, export using the second method, where n is greater than or equal to 2 and less than N. The first method / second method includes: determining that there are i videos in the cache, and applying a j-th processing parameter to at least one segment of the reference video in the j-th video; comparing the first target video with each of the i videos; if it is determined that the first target video and the i videos have segments with the same processing parameters, copying the same segments from the i videos, and applying the first processing parameter to segments in the first target video that have different processing parameters from all the i videos, to obtain the first target video; The second method / first method includes: exporting the m-th target video according to a preset time interval based on the export order of the N target videos; wherein, when the export order is 1, the first video is the reference video; when the export order is m, the first video includes the reference video and video segments of the exported portions of the target videos with export orders from 1 to m-1.

6. The method according to any one of claims 1 to 5, wherein, The method further includes: obtaining the number of bytes in the first target video and / or the number of types of the first processing parameters; If the number of bytes in the first target video is less than or equal to a first preset threshold, and / or the number of types of the first processing parameters is less than or equal to a second preset threshold, the first processing parameters are applied to at least one segment of the first target video to obtain the first target video.

7. A video exporting apparatus, the apparatus comprising: The first acquisition module is used to acquire a first target video export instruction, wherein the first target video applies a first processing parameter to at least one segment of the reference video; A first determining module is configured to determine the existence of a first video, wherein the first video applies a second processing parameter to at least one segment of the reference video; The first processing module is used to compare the first target video and the first video along the same timeline. If it is determined that there is a segment in the first target video with the same processing parameters as the first video, the same segment in the first video is copied, and the first processing parameters are applied to the segments in the first target video with different processing parameters than the first video to obtain the first target video. The processing parameters include: editing parameters and export parameters; The first export module is used to export the first target video; The storage module is used to store the first target video as the (i+1)th video in the cache; the cache already contains i videos; The second comparison module is used to compare the second target video with each of the i+1 videos when the second target video export instruction is obtained.

8. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the video export method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the video export method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Change-dependent pre-export for video editing projects

    US11495265B1

  • Animated video backup method and apparatus therefor, and animated video management method and apparatus therefor

    WO2022083236A1