Video editing method and device and terminal equipment

By allowing the terminal device to select a second video clip with a lower resolution and/or bitrate instead of the first video clip that takes longer to decode during the video editing process, the problems of wasted terminal device resources and video editing stuttering are solved, thereby improving resource utilization and video editing efficiency.

CN121194010APending Publication Date: 2025-12-23BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773974.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2025-12-23

AI Technical Summary

Technical Problem

In existing technologies, the use of video proxies for all video materials during video editing by terminal devices leads to resource waste, and the flexibility of video proxies is low.

Method used

The terminal device obtains a video editing draft, determines a first video clip whose decoding time is greater than or equal to a preset duration, and determines a second video clip based on its resolution and/or bitrate. The second video clip is then used to replace the first video clip for rendering, thereby improving resource utilization and video editing efficiency.

Benefits of technology

By accurately selecting video materials for proxying, terminal device resources can be saved, video editing lag can be avoided, and the efficiency and smoothness of video editing can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121194010A_ABST
    Figure CN121194010A_ABST
Patent Text Reader

Abstract

The invention provides a video editing method and device and terminal equipment, and the method comprises the steps: obtaining a video editing draft which comprises at least one video material; determining a first video material in the at least one video material, the first video material being a video material whose decoding time is longer than or equal to a preset duration; determining a second video material according to the first video material, the resolution and / or code rate of the second video material being smaller than that of the first video material; and when the draft is previewed, replacing the first video material with the second video material for rendering. The accuracy and flexibility of video proxy are improved, and resources of terminal equipment are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of video editing technology, and in particular to a video editing method, apparatus, and terminal device. Background Technology

[0002] In the field of video editing, video proxies are created by copying or transcoding original high-definition video footage to obtain a proxy file with a lower resolution than the original video file. Editing this proxy file can improve the efficiency of video editing.

[0003] Currently, terminal devices can perform video proxying on video footage based on user selection. For example, during video editing, if the user selects to use a proxy file for this video edit, the terminal device can perform video proxying on all video footage involved in this edit. However, in the above method, video proxying requires user activation, and the terminal device performs video proxying on all video footage, resulting in a waste of terminal device resources. Summary of the Invention

[0004] This disclosure provides a video editing method, apparatus, and terminal device to solve the technical problem of resource waste in existing terminal devices.

[0005] Firstly, this disclosure provides a video editing method, which includes:

[0006] Obtain a draft for video editing, wherein the draft for video editing includes at least one video clip;

[0007] Among the at least one video material, a first video material is determined, wherein the first video material is a video material whose decoding time is greater than or equal to a preset duration;

[0008] Based on the first video material, a second video material is determined, wherein the resolution and / or bitrate of the second video material is less than that of the first video material;

[0009] When previewing the draft, the second video footage is used instead of the first video footage for rendering.

[0010] Secondly, this disclosure provides a video editing apparatus, which includes...

[0011] The module comprises an acquisition module, a first determination module, a second determination module, and a replacement module, wherein:

[0012] The acquisition module is used to acquire a draft of the video editing, wherein the draft of the video editing includes at least one video material;

[0013] The first determining module is used to determine a first video material among the at least one video material, wherein the first video material is a video material whose decoding time is greater than or equal to a preset duration;

[0014] The second determining module is used to determine a second video material based on the first video material, wherein the resolution and / or bitrate of the second video material is less than that of the first video material;

[0015] The substitution module is used to render the draft by replacing the first video material with the second video material.

[0016] Thirdly, embodiments of this disclosure provide a terminal device including: a processor and a memory;

[0017] The memory stores computer-executed instructions;

[0018] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the video editing methods described in the first aspect above and various possible aspects of the first aspect.

[0019] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the video editing methods described in the first aspect and various possible aspects thereof.

[0020] This disclosure provides a video editing method, apparatus, and terminal device. The terminal device can acquire a draft for video editing, wherein the draft may include at least one video clip. The terminal device can determine a first video clip from the at least one video clip, wherein the first video clip has a decoding time greater than or equal to a preset duration. The terminal device can determine a second video clip based on the first video clip, wherein the resolution and / or bitrate of the second video clip is lower than that of the first video clip. The terminal device can use the second video clip instead of the first video clip for rendering when previewing the draft. In the above method, since the terminal device can perform video proxying on the first video clip with a longer decoding time in the video editing draft, that is, obtain the second video clip with a lower resolution and / or bitrate corresponding to the first video clip, the terminal device can accurately perform video proxying on the video clips in the draft, improving the resource utilization of the terminal device and saving terminal device resources. Furthermore, when the terminal device previews the draft, it uses the second video clip to proxy the first video clip for rendering, thereby avoiding video editing stuttering and improving the efficiency and smoothness of video editing. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0023] Figure 2 A flowchart illustrating a video editing method provided in an embodiment of this disclosure;

[0024] Figure 3 This is a schematic diagram illustrating a process of dividing multiple interval segments according to an embodiment of the present disclosure;

[0025] Figure 4 This is a schematic diagram illustrating a process for determining a first video clip, provided in an embodiment of the present disclosure.

[0026] Figure 5 This is a schematic diagram of a video proxy method provided in an embodiment of the present disclosure;

[0027] Figure 6 This is a schematic diagram illustrating a process for stopping a video proxy, provided as an embodiment of the present disclosure.

[0028] Figure 7 This is a schematic diagram illustrating a method for determining a second video material according to an embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram of an architecture for implementing a video editing method provided in this disclosure embodiment;

[0030] Figure 9 This is a schematic diagram illustrating a video editing method provided in an embodiment of the present disclosure;

[0031] Figure 10 This is a schematic diagram of the structure of a video editing device provided in an embodiment of the present disclosure;

[0032] Figure 11 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Detailed Implementation

[0033] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0034] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0035] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the terminal device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0036] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the terminal device.

[0037] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0038] For ease of understanding, the concepts involved in the embodiments of this disclosure will be explained below.

[0039] Terminal equipment: A device with wireless transceiver capabilities. Terminal equipment can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted. The terminal equipment can be a mobile phone, tablet, computer with wireless transceiver capabilities, virtual reality (VR) terminal equipment, augmented reality (AR) terminal equipment, wireless terminals in industrial control, vehicle-mounted terminal equipment, wireless terminals in self-driving vehicles, wireless terminal equipment in remote medical care, wireless terminal equipment in smart grids, wireless terminal equipment in transportation safety, wireless terminal equipment in smart cities, wireless terminal equipment in smart homes, wearable terminal equipment, etc. The terminal equipment involved in the embodiments of this disclosure can also be referred to as a terminal, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile device, UE terminal equipment, wireless communication equipment, UE agent, or UE device, etc. Terminal devices can be fixed or mobile.

[0040] In related technologies, video proxying involves replicating or transcoding original high-definition video footage to obtain proxy files. These proxy files are smaller in size and have lower resolution than the original video files, allowing users to edit the video smoothly. Currently, terminal devices can apply video proxies to video footage based on user selection. For example, a terminal device can provide a video proxy selection window; if the user selects a video proxy during video editing, the device can apply it to all video footage. However, video proxying requires user activation, and the terminal device can only apply it to all video footage, leading to wasted device resources and limited flexibility.

[0041] To address the technical problems in related technologies, this disclosure provides a video editing method. A terminal device can acquire a draft of the video editing, and within the draft's video material, identify a first video material whose decoding time is greater than or equal to a preset duration. The terminal device can acquire the resolution of the first video material and, based on its resolution, determine its video proxy priority. The terminal device can then perform video proxying on the first video material according to the proxy priority to obtain a second video material corresponding to the first video material. The resolution and / or bitrate of the second video material is lower than that of the first video material. When the terminal device previews the draft, it uses the second video material instead of the first video material for rendering. In the above method, since the terminal device can perform video proxying on the first video material with a long decoding time in the video editing draft, the terminal device can accurately perform video proxying on the video material in the draft, improving the resource utilization of the terminal device and saving terminal device resources. Furthermore, since the terminal device can perform video proxying on multiple first video materials according to the video proxy priority, the flexibility of video proxying can be improved. Moreover, the terminal device uses the second video material to proxy the first video material for rendering, thereby avoiding video editing stuttering and improving the efficiency and smoothness of video editing.

[0042] Below, in conjunction with Figure 1 The application scenarios of the embodiments of this disclosure will be described.

[0043] Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure. Please refer to [link / reference]. Figure 1 This includes Track 1 and Track 2, where Track 1 and Track 2 are video tracks in the video editing page. Track 1 includes video footage A and video footage B, and Track 2 includes video footage C. Video footage A, video footage B, and video footage C are all video footage from the draft video editing file. If the terminal device ( Figure 1 (Not shown) If the decoding time of video material C is determined to be greater than a preset duration, the terminal device can perform video proxying on video material C to obtain video material D. The video content of video material D is the same as that of video material C, but the resolution of video material D is lower than that of video material C, and the bitrate of video material D is lower than that of video material C. The terminal device can then replace video material C in track 2 with video material D. This improves the accuracy and flexibility of video proxying and increases the efficiency of video editing.

[0044] It should be noted that, Figure 1 This is merely an example of an application scenario for the embodiments of this disclosure, and is not intended to limit the application scenarios of the embodiments of this disclosure.

[0045] The technical solutions of this disclosure and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this disclosure will now be described with reference to the accompanying drawings.

[0046] Figure 2 This is a flowchart illustrating a video editing method provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 2 The method may include:

[0047] S201. Obtain a draft for video editing, which includes at least one video clip.

[0048] The execution entity of this disclosure can be a terminal device or a video editing device installed in the terminal device. The video editing device can be implemented based on software, or it can be implemented based on a combination of software and hardware; this disclosure does not limit this approach.

[0049] Drafts can be preliminary or incomplete versions during the video editing process. For example, a draft can be a temporary stage in the video editing process, used to record the current progress of video editing and the user's editing operations on multimedia materials (such as video and audio materials) in the draft.

[0050] The video editing draft may include at least one video clip. For example, the video editing draft may include one video clip or multiple video clips; this disclosure does not limit this. For example, the video clip may be an unedited video file or a video file that has undergone preliminary editing; this disclosure does not limit this.

[0051] Optionally, the terminal device can retrieve video editing drafts from its memory. For example, the video editing application's page may include a draft display area, which can include multiple drafts (multiple drafts pre-stored in memory). In response to a user's click on any draft, the terminal device can identify the clicked draft as the video editing draft. For instance, after a user clicks on a draft, the terminal device can navigate to the video editing page and load the clicked draft, allowing the user to continue video editing on that draft within the video editing page.

[0052] It should be noted that the terminal device can also obtain the video editing draft according to any other feasible implementation method (e.g., the terminal device can receive the video editing draft sent by the server), and this disclosure embodiment does not limit this.

[0053] S202. Among at least one video material, determine the first video material.

[0054] The first video material is a video material whose decoding time is greater than or equal to a preset duration. For example, the first video material can also be a video material with decoding performance problems. For example, decoding performance problems may include problems such as long decoding time, video material playback stuttering, and video material playback frame dropping, which are not limited in this embodiment.

[0055] Optionally, the terminal device may include a performance information acquisition module, which can determine the first video clip. For example, the performance information acquisition module can collect and analyze each video clip, media resource information (media resource format, etc.), decoding performance information (decoding capability, etc.), and decoding pressure (e.g., high-resolution video has high decoding pressure) in the current timeline playback scenario. In this way, the performance information acquisition module can identify the first video clip in the draft that has decoding performance problems, and the performance information acquisition module can report the first video clip. The terminal device can also obtain the first video clip from the performance information acquisition module.

[0056] Optionally, the terminal device may determine the first video material from at least one video material according to the following feasible implementation method: dividing the video editing draft into multiple intervals, determining the target interval where decoding frame loss occurs among the multiple intervals, and determining the first video material based on the video material fragments in the target interval.

[0057] Each segment can include at least one clip of video footage. For example, a terminal device can divide a video editing draft into segment 1, segment 2, and segment 3. Segment 1 can include a clip of video footage A, segment 2 can include clips of both video footage A and video footage B, and segment 3 can include a clip of video footage B.

[0058] Specifically, the terminal device divides the video editing draft into multiple segments. This can be done by: loading the draft in the video editing page, which includes a timeline; determining the division points in the timeline; and dividing the video editing draft into multiple segments at the division points.

[0059] Once the draft is loaded on the video editing page, the timeline of the video editing page can include the video footage from the draft and the video editing footage. Users can then edit the draft video on the video editing page.

[0060] Dividing points can be used to divide a video editing draft into multiple segments. For example, a dividing point can be a point on the timeline, which can be used to divide the draft into multiple segments of different time periods.

[0061] Optionally, the terminal device can determine the points where video clips change along the timeline as segmentation points. For example, on the timeline, if time point 1-time point 2 includes a segment of video clip A, time point 2-time point 3 includes a segment of video clip A and a segment of video clip B, and time point 3-time point 4 includes a segment of video clip A, then the terminal device can determine time points 2 and 3 as segmentation points and divide the draft into three segments based on time points 2 and 3.

[0062] Below, in conjunction with Figure 3 The process of dividing the data into multiple intervals is explained.

[0063] Figure 3 This is a schematic diagram illustrating a process of dividing multiple interval segments according to an embodiment of this disclosure. Please refer to... Figure 3 This includes a timeline. The timeline contains video footage A, video footage B, video footage C, and video footage D. Video footage A, B, C, and D are all video footage from the video editing draft. Terminal device ( Figure 3 (Not shown) You can determine the split point 1, split point 2, split point 3 and split point 4 on the time axis.

[0064] Please see Figure 3 The left side of split point 1 includes a segment of video footage A, and the right side of split point 1 includes a segment of video footage A and a segment of video footage B. The left side of split point 2 includes a segment of video footage A and a segment of video footage B, and the right side of split point 2 includes a segment of video footage B and a segment of video footage C.

[0065] Please see Figure 3 The left side of split point 3 includes segments of video footage B and video footage C, while the right side includes segments of video footage B, video footage C, and video footage D. The left side of split point 4 includes segments of video footage B, video footage C, and video footage D, while the right side includes segments of video footage C and video footage D.

[0066] Please see Figure 3The terminal device can divide the draft into segments a, b, c, d, and e based on segmentation points 1, 2, 3, and 4. Segment a includes a segment of video footage A. Segment b includes segments of both video footage A and video footage B.

[0067] Please see Figure 3 Interval c includes segments of video footage B and video footage C. Interval d includes segments of video footage B, video footage C, and video footage D. Interval e includes segments of video footage C and video footage D. In this way, the terminal device can divide the draft into multiple intervals based on the changes of the video footage along the timeline, improving the accuracy of the intervals and thus improving the accuracy of identifying the first video footage.

[0068] The target interval can be an interval where decoding frame drops occur. Optionally, the terminal device can determine the target interval according to the following feasible implementation method: preview the draft of the video editing, and for any interval, if any video material segment in the interval drops frames during playback, then the interval is determined as the target interval.

[0069] For example, a segment may include at least one video clip. If a video clip experiences frame drops, the terminal device can designate that segment as the target segment. For example, a draft may include segment 1 and segment 2. During the user's preview of the draft, if any video clip in segment 1 experiences frame drops, while no video clip in segment 2 experiences frame drops, the terminal device can designate segment 1 as the target segment. For example, during the user's preview of the draft, after each segment is played, the terminal device can determine if there are any frame drops within that segment. If so, it indicates that the video clip within that segment needs video proxying, and the terminal device can mark that segment. This allows the terminal device to accurately identify the first video clip requiring video proxying, improving the accuracy of the first video clip's performance.

[0070] Optionally, the terminal device determines the first video material based on the video material segments in the target interval. Specifically, it can be done by: identifying the target segment among the video material segments in the target interval, and determining the video material corresponding to the target segment as the first video material.

[0071] The target segment has a resolution greater than or equal to a first threshold. For example, the target segment may include segments of video material 1, video material 2, and video material 3. If the resolution of the segment of video material 1 and the resolution of the segment of video material 2 are greater than or equal to the first threshold, the terminal device can identify the segment of video material 1 and the segment of video material 2 as the target segment.

[0072] Optionally, after determining the target segment, the terminal device can determine that the video material corresponding to the target segment has a higher resolution. Therefore, the terminal device can identify this video material as the first video material and perform video proxying on the first video material. For example, the target segment may include a segment of video material 1 and a segment of video material 2. If the target segment is a segment of video material 1, the terminal device can identify the first video material as video material 1; if the target segment is a segment of video material 2, the terminal device can identify the first video material as video material 2.

[0073] Below, in conjunction with Figure 4 The process of determining the first video material by the terminal device is explained.

[0074] Figure 4 This is a schematic diagram illustrating a process for determining first video material according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 4 This includes a timeline. The timeline contains video footage A, video footage B, video footage C, and video footage D. Video footage A, B, C, and D are all video footage from the video editing draft. Terminal device ( Figure 4 (Not shown) Intervals a, b, c, d, and e can be defined on the time axis.

[0075] Please see Figure 4 During the preview of the draft, frame drops occurred in segment d. Therefore, the terminal device can identify video clips B, C, and D within segment d as candidate clips. The terminal device determines that the resolution of video clip C is greater than a first threshold; therefore, it can identify video clip C as the target clip and designate video clip C as the first video clip. In this way, the terminal device can identify video clips with frame drops in the preview as the first video clip, improving the accuracy of the first video clip and thus improving the accuracy of the video proxy.

[0076] S203. Based on the first video material, determine the second video material.

[0077] The resolution and / or bitrate of the second video clip are lower than those of the first video clip. For example, the first and second video clips may have the same video content, but the resolution and bitrate of the second video clip are lower than those of the first video clip. For example, since the second video clip is a proxy for the first video clip, it maintains consistency with the first video clip. For example, the timestamp of the first video clip is the same as the videotamp of the second video clip; the start time of the audio and video playback of the first video clip is the same as the start time of the audio and video playback of the second video clip; the color space (e.g., RGB) of the first video clip is the same as the color space of the second video clip; the metadata of the first video clip is the same as the metadata of the second video clip; the end time of the audio and video playback of the first video clip is the same as the end time of the audio and video playback of the second video clip; the time base (used for timestamp calculation and conversion) of the first video clip is the same as the time base of the second video clip; the average frame rate of the first video clip is the same as the average frame rate of the second video clip; and the base frame rate of the first video clip is the same as the base frame rate of the second video clip.

[0078] Optionally, the terminal device may perform video proxying on the first video material according to the following feasible implementation method: obtain the video information of the first video material, determine the target proxy mode in the first proxy mode and the second proxy mode according to the video information, and perform video proxying on the first video material according to the target proxy mode.

[0079] The video information may include any information such as the complexity, compatibility, and video format of the first video material, and this embodiment does not limit this.

[0080] The first proxy mode can be a mode in which a hardware or software device proxies the first video material. For example, a terminal device can use a hardware device to proxy and forward the video stream of the first video material, improving the efficiency of video proxying. For example, the first proxy mode can focus on file transcoding capabilities. On the decoding and caching side, the first proxy mode can extract frames without relying on the requested timestamp. The first proxy mode can extract frames in the order of the video frames (i.e., frame by frame), thus ensuring that the timestamps of the video frames obtained by the terminal device are consistent with the timestamps of the video frames in the original video material.

[0081] The second proxy mode can be a mode that proxies the first video material via command line. For example, the terminal device can use ffmpeg (an open-source multimedia processing toolkit used for recording and converting videos) to perform transcoding and other operations on the first video material, thereby proxying the first video material.

[0082] Optionally, if the terminal device determines, based on the video information, that the first video material can be proxied by the first proxy mode (target proxy mode), then the terminal device can proximate the first video material using the first proxy mode. If the terminal device determines, based on the video information, that the first video material cannot be proxied by the first proxy mode, then the terminal device can proximate the first video material using the second proxy mode.

[0083] Optionally, when the terminal device performs video proxying on the first video material through the first proxy mode, if the terminal device fails to perform video proxying on the first video material through the first proxy mode, the terminal device can perform video proxying on the first video material through the second proxy mode.

[0084] Below, in conjunction with Figure 5 This paper explains the method of using a terminal device to perform video proxying on the first video material.

[0085] Figure 5 This is a schematic diagram illustrating a video proxy method provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 5 This includes: video information of the first video material and a proxy task selector. The proxy task selector can be used to determine the video proxy method based on the video information. Specifically, the proxy task selector can determine whether the video proxy method for the first video material is hardware or software proxy, or whether the video proxy method is command-line proxy. If the hardware or software fails to proxy the first video material, the terminal device ( Figure 5 (Not shown) The first video clip can be proxied via a command-line proxy.

[0086] Optionally, the video editing process can be the main process, and the video proxy process can be a child process. In this way, the video proxy task will not affect the main process of video editing, thereby improving the stability of the video proxy.

[0087] Optionally, when the terminal device performs video proxy on the first video material, the above video editing method further includes: obtaining the device resources required for performing video proxy on the first video material, and stopping the video proxy on the first video material when the device resources are greater than or equal to a second threshold.

[0088] The device resources can include the resources required for the terminal device to perform video proxying. For example, since the video proxying process consumes certain device resources, the terminal device can determine a second threshold for the device resources used by the video proxy. If the device resources used by the terminal device for video proxying exceed this second threshold, the terminal device can stop video proxying the first video material (e.g., suspend the video proxy task or delete the video proxy task). The device resources can include the central processing unit (CPU), memory, and graphics processing unit (GPU). This can avoid problems such as memory leaks, high CPU usage, and high GPU usage in video proxying that affect the main process of video editing, thereby improving the reliability of video proxying and enhancing the user experience.

[0089] Optionally, the terminal device may include a process resource monitoring module, which can monitor the device resources used by the video proxy. When the device resources are greater than or equal to a second threshold, the process resource monitoring module can send a prompt message to the proxy task scheduling module (used to manage video proxy tasks) in the terminal device. The proxy task scheduling module can stop video proxying of the first video material according to the prompt message.

[0090] Below, in conjunction with Figure 6 This section explains the process of stopping the video proxy for the first video material.

[0091] Figure 6 This is a schematic diagram illustrating a process for stopping a video proxy, provided as an embodiment of this disclosure. Please refer to [link / reference]. Figure 6 It includes a process resource monitoring module, a proxy task scheduling module, and video proxy tasks. The process resource monitoring module and the proxy task scheduling module are both terminal devices (…). Figure 6 (Not shown) The process resource monitoring module monitors the device resources used. When the used device resources exceed a second threshold, the process resource monitoring module sends a notification message to the proxy task scheduling module. Upon receiving the notification message, the proxy task scheduling module can stop the video proxy task. In this way, the terminal device, through the process resource monitoring module, can avoid the video proxy from affecting video editing, improve video editing efficiency, and enhance the user experience.

[0092] S204. When previewing the draft, render the second video footage instead of the first video footage.

[0093] When a terminal device previews a draft, it can use a second video clip instead of the first video clip for rendering, thus avoiding issues such as preview stuttering. For example, the first video clip in the draft may include video clip A and video clip B. The terminal device performs video proxy on video clip A to obtain video clip a (the second video clip), and performs video proxy on video clip B to obtain video clip b (the second video clip). When the terminal device previews the draft, it can replace video clip A with video clip a for rendering, and replace video clip B with video clip b for rendering.

[0094] This disclosure provides a video editing method. A terminal device can acquire a draft video for editing, divide the draft into multiple segments, and identify target segments with decoding frame drops within these segments. Within the target segments, the terminal device can identify target segments with resolutions greater than or equal to a first threshold, and designate the corresponding video material as the first video material. The terminal device can then perform video proxying on the first video material to obtain a second video material. When previewing the draft, the second video material is used instead of the first video material for rendering. This allows the terminal device to accurately identify the first video material requiring video proxying within the draft, improving the accuracy and flexibility of the first video material, saving terminal device resources, and improving video editing efficiency and preview smoothness by using the second video material instead of the first video material for rendering during draft preview.

[0095] exist Figure 2 Based on the embodiments shown, the following, in conjunction with Figure 7 The method for determining the second video material based on the first video material in the above video editing method will be explained in detail.

[0096] Figure 7 This is a schematic diagram illustrating a method for determining a second video clip according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 7 The method process includes:

[0097] S701, Obtain the resolution of the first video clip.

[0098] The terminal device may obtain the resolution of the first video material according to any feasible implementation method, and this embodiment does not limit this.

[0099] S702. Determine the video proxy priority of the first video material based on its resolution.

[0100] Optionally, if the number of first video materials is 1, the terminal device can perform video proxy on the first video material. If the number of first video materials is greater than 1, the terminal device can sort the multiple first video materials to obtain the order of video proxy, and then perform video proxy on the multiple first video materials according to the order of video proxy.

[0101] Optionally, the resolution of the first video clip is proportional to its video proxy priority. For example, the higher the resolution of the first video clip, the higher its video proxy priority; conversely, the lower the resolution of the first video clip, the lower its video proxy priority. For instance, if the resolution of first video clip 1 is lower than that of first video clip 2, the terminal device can determine that the video proxy priority of first video clip 1 is higher than that of first video clip 2.

[0102] S703. Based on the video proxy priority, perform video proxy on the first video material to obtain the second video material corresponding to the first video material.

[0103] Optionally, the terminal device can perform video proxying on multiple first video clips according to the video proxy priority of the first video clips to obtain the second video clip corresponding to each first video clip. For example, the higher the video proxy priority, the earlier the video proxying order; the lower the video proxy priority, the later the video proxying order. For example, if the video proxy priority of first video clip 1 is higher than that of first video clip 2, then when the terminal device performs video proxying on the first video clips, the terminal device can prioritize performing video proxying on first video clip 1, and only after the terminal device finishes performing video proxying on first video clip 1 will it perform video proxying on first video clip 2.

[0104] Optionally, after the terminal device determines the video proxy priorities of multiple first video materials, the terminal device can perform video proxying on the multiple first video materials according to the order of video proxy priorities. The terminal device can perform video proxying on the multiple first video materials according to the following feasible implementation method: obtain the editing mode corresponding to the video editing draft, and perform video proxying on the first video materials according to the editing mode.

[0105] The editing modes include proxy mode and non-proxy mode. For example, proxy mode allows the terminal device to proxy the first video clip, while non-proxy mode does not. For instance, proxy mode could be a performance mode, where the terminal device prioritizes ensuring smoothness during video editing. Non-proxy mode could be a quality mode, where the terminal device prioritizes maintaining image quality during editing; therefore, in quality mode, the terminal device will not actively proxy the first video clip to avoid degrading its image quality.

[0106] Optionally, the terminal device may determine the editing mode corresponding to the draft according to any feasible implementation method, and this embodiment of the disclosure does not limit this.

[0107] Specifically, the terminal device performs video proxying on the first video clip based on the editing mode. If the editing mode is proxy mode, then the first video clip is proxied; if the editing mode is non-proxy mode, then in response to the switching operation of the editing mode, the first video clip is proxied. This allows the terminal device to flexibly perform video proxying on the first video clip, improving the accuracy and flexibility of the proxying process.

[0108] Optionally, the terminal device may include a proxy task scheduling module and a proxy task execution module, wherein the proxy task scheduling module can be used to manage video proxy tasks, and the proxy task execution module can be used to execute video proxy tasks (e.g., Figure 5 The method of the illustrated embodiment performs video proxying. For example, the proxy task scheduling module can decide whether to perform video proxying on the first video material based on the editing mode configured in the draft. If the proxy task scheduling module determines to perform video proxying on the first video material, it can notify the proxy task execution module to perform video proxying on the first video material.

[0109] If the editing mode corresponding to the draft is proxy mode, the proxy task scheduling module can notify the proxy task execution module to perform video proxy on the first video material. After the video proxy ends, the terminal device can replace the first video material with the second video material corresponding to the first video material in the draft.

[0110] If the editing mode corresponding to the draft is non-agent mode, the terminal device can display an editing mode switching window and prompt the user that there is a decoding performance problem with the video material in the draft. If the user chooses to switch from non-agent mode to agent mode, the agent task scheduling module can notify the agent task execution module to perform video proxy on the first video material. If the editing mode is switched from non-agent mode to agent mode, the agent task scheduling module can obtain the video material in the counted interval and the video material in the uncounted interval from the performance information collection module. In this way, after determining the first video material, the agent task scheduling module can notify the agent task execution module to perform video proxy on the first video material.

[0111] It should be noted that if the user switches the editing mode of the draft from proxy mode to non-proxy mode, the terminal device can replace the second video material in the draft with the first video material corresponding to the second video material, thereby improving the image quality during the video editing process.

[0112] Optionally, the resolution of the second video clip can be 0.5 times that of the current full-screen window. This can reduce the impact of video proxy on image quality and improve the user experience.

[0113] This disclosure provides a method for determining a second video clip. The method involves obtaining the resolution of a first video clip, determining the video proxy priority of the first video clip based on its resolution, and then performing video proxying on the first video clip according to the video proxy priority to obtain the second video clip corresponding to the first video clip. In this way, the terminal device can prioritize video proxying of the higher-resolution first video clip, thereby improving the effectiveness of the video proxy. Furthermore, the terminal device can combine the draft-configured editing mode with video proxying of the first video clip, thereby increasing the flexibility of the video proxy.

[0114] Based on any of the above embodiments, the following, in conjunction with Figure 8 The implementation architecture of the above video editing methods will be explained in detail.

[0115] Figure 8 This is a schematic diagram illustrating the architecture of a video editing method provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 8 It includes a control layer and an implementation layer. The control layer includes a proxy task scheduling module, and the implementation layer includes decoding link 1, decoding link 2, ..., decoding link n, an information acquisition module, a proxy task execution module, and a process resource monitoring module. Each decoding link can decode one video clip, and the decoding process is driven by the engine.

[0116] Please see Figure 8The information acquisition module can obtain decoding information for each decoding link and identify the first video clip with decoding performance issues. The information acquisition module can report the first video clip to the proxy task scheduling module; optionally, the proxy task scheduling module can also proactively obtain the first video clip from the information acquisition module.

[0117] Please see Figure 8 The proxy task scheduling module can control the video proxy tasks to perform inter-process communication (IPC), thereby enabling the proxy task execution module to perform video proxying on the first video clip. The process resource monitoring module can monitor the device resources used by the proxy task execution module during video proxying. If the device resources are excessive, the process resource monitoring module can send a prompt message to the proxy task scheduling module, causing the proxy task execution module to stop video proxying on the first video clip.

[0118] Based on any of the above embodiments, the following, in conjunction with Figure 9 The process of the above video editing method will be explained.

[0119] Figure 9 This is a schematic diagram illustrating a video editing method provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 9 This includes: a timeline. The timeline includes video footage from the draft, specifically video footage A, video footage B, video footage C, and video footage D. Terminal device ( Figure 9 (Not shown) You can determine the split point 1, split point 2, split point 3 and split point 4 on the time axis.

[0120] Please see Figure 9 The terminal device can divide the draft into segments a, b, c, d, and e based on segmentation points 1, 2, 3, and 4. Segment a includes a segment of video footage A. Segment b includes segments of video footage A and video footage B. Segment c includes segments of video footage B and video footage C. Segment d includes segments of video footage B, video footage C, and video footage D. Segment e includes segments of video footage C and video footage D.

[0121] Please see Figure 9During the preview of the draft, if frame drops occur in segment d, the terminal device can identify segments of video material B, video material C, and video material D within segment d as candidate segments. The terminal device determines that the resolution of video material C is greater than a first threshold; therefore, the terminal device can perform video proxying on video material C to obtain video material E.

[0122] Please see Figure 9 The terminal device can replace video clip C with video clip E. This way, when previewing the draft, video clip E has a lower resolution, ensuring a smooth preview for the user. Furthermore, since the terminal device can accurately and flexibly determine the first video clip to be proxied, the accuracy and flexibility of the video proxy can be improved, and device resources for the video proxy can be saved.

[0123] Figure 10 This is a schematic diagram of a video editing device provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 10 The video editing device 1000 includes an acquisition module 1001, a first determination module 1002, a second determination module 1003, and a substitution module 1004, wherein:

[0124] The acquisition module 1001 is used to acquire a draft of video editing, wherein the draft of video editing includes at least one video material;

[0125] The first determining module 1002 is used to determine a first video material among the at least one video material, wherein the first video material is a video material whose decoding time is greater than or equal to a preset duration;

[0126] The second determining module 1003 is used to determine a second video material based on the first video material, wherein the resolution and / or bitrate of the second video material is less than that of the first video material;

[0127] The substitution module 1004 is used to render the first video material instead of the second video material when previewing the draft.

[0128] According to one or more embodiments of this disclosure, the first determining module 1002 is specifically used for:

[0129] The video editing draft is divided into multiple segments, each segment including at least one video clip.

[0130] Among the multiple intervals, a target interval segment with decoded frame loss is identified;

[0131] The first video material is determined based on the video material segments within the target interval.

[0132] According to one or more embodiments of this disclosure, the first determining module 1002 is specifically used for:

[0133] The draft is loaded into a video editing page, which includes a timeline;

[0134] Determine the division points in the time axis;

[0135] At the specified dividing point, the draft of the video editing is divided into multiple segments.

[0136] According to one or more embodiments of this disclosure, the first determining module 1002 is specifically used for:

[0137] The points where the segments of the video material change along the time axis are determined as the segmentation points.

[0138] According to one or more embodiments of this disclosure, the first determining module 1002 is specifically used for:

[0139] Preview the draft of the video edit;

[0140] For any given interval, if any segment of video material within that interval loses a frame during playback, then that interval is designated as the target interval.

[0141] According to one or more embodiments of this disclosure, the first determining module 1002 is specifically used for:

[0142] Among the video clips in the target interval, a target segment is determined, wherein the resolution of the target segment is greater than or equal to a first threshold.

[0143] The video material corresponding to the target segment is determined as the first video material.

[0144] According to one or more embodiments of this disclosure, the second determining module 1003 is specifically used for:

[0145] Obtain the resolution of the first video clip;

[0146] Based on the resolution of the first video clip, determine the video proxy priority of the first video clip;

[0147] Based on the video proxy priority, the first video material is proxied to obtain the second video material corresponding to the first video material.

[0148] According to one or more embodiments of this disclosure, the second determining module 1003 is specifically used for:

[0149] Obtain the editing mode corresponding to the draft of the video edit, wherein the editing mode includes proxy mode and non-proxy mode;

[0150] According to the editing mode, the first video material is proxied.

[0151] According to one or more embodiments of this disclosure, the second determining module 1003 is specifically used for:

[0152] If the editing mode is proxy mode, then the first video material is proxied;

[0153] If the editing mode is non-proxy mode, then in response to the editing mode switching operation, the first video material is proxied.

[0154] According to one or more embodiments of this disclosure, the second determining module 1003 is further configured to:

[0155] Obtain the device resources required to perform video proxying on the first video material;

[0156] When the device resources are greater than or equal to the second threshold, video proxying of the first video material is stopped.

[0157] The video editing apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be repeated here.

[0158] Figure 11 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 11 The diagram illustrates a structural schematic suitable for implementing the terminal device 1100 of the embodiments of the present disclosure. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 11 The terminal device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0159] like Figure 11As shown, the terminal device 1100 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1102 or a program loaded from storage device 1108 into random access memory (RAM) 1103. The RAM 1103 also stores various programs and data required for the operation of the terminal device 1100. The processing unit 1101, ROM 1102, and RAM 1103 are interconnected via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0160] Typically, the following devices can be connected to I / O interface 1105: input devices 1106 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1109. Communication device 1109 allows terminal device 1100 to exchange data via wireless or wired communication with other devices. Although Figure 11 A terminal device 1100 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0161] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1109, or installed from storage device 1108, or installed from ROM 1102. When the computer program is executed by processing device 1101, it performs the functions defined in the methods of embodiments of this disclosure.

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

[0163] The aforementioned computer-readable medium may be included in the aforementioned terminal device; or it may exist independently and not assembled into the terminal device.

[0164] The aforementioned computer-readable medium carries one or more programs, which, when executed by the terminal device, cause the terminal device to perform the method shown in the above embodiments.

[0165] This disclosure provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements various methods that may be involved in the above embodiments.

[0166] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements various methods that may be involved in the above embodiments.

[0167] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0168] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0169] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0170] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

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

[0172] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0173] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0174] It is understood that the data involved in this technical solution (including but not limited to the data itself, its acquisition, or its use) shall comply with the requirements of relevant laws, regulations, and provisions. Data may include information, parameters, and messages, such as flow control instructions.

[0175] In a first aspect, embodiments of this disclosure provide a video editing method, the video editing method comprising:

[0176] Obtain a draft for video editing, wherein the draft for video editing includes at least one video clip;

[0177] Among the at least one video material, a first video material is determined, wherein the first video material is a video material whose decoding time is greater than or equal to a preset duration;

[0178] Based on the first video material, a second video material is determined, wherein the resolution and / or bitrate of the second video material is less than that of the first video material;

[0179] When previewing the draft, the second video footage is used instead of the first video footage for rendering.

[0180] According to one or more embodiments of this disclosure, determining a first video material among the at least one video material includes:

[0181] The video editing draft is divided into multiple segments, each segment including at least one video clip.

[0182] Among the multiple intervals, a target interval segment with decoded frame loss is identified;

[0183] The first video material is determined based on the video material segments within the target interval.

[0184] According to one or more embodiments of this disclosure, the draft of the video editing is divided into multiple segments, including:

[0185] The draft is loaded into a video editing page, which includes a timeline;

[0186] Determine the division points in the time axis;

[0187] At the specified dividing point, the draft of the video editing is divided into multiple segments.

[0188] According to one or more embodiments of this disclosure, determining a segmentation point in the time axis includes:

[0189] The points where the segments of the video material change along the time axis are determined as the segmentation points.

[0190] According to one or more embodiments of this disclosure, among the plurality of interval segments, determining a target interval segment where decoding frame loss occurs includes:

[0191] Preview the draft of the video edit;

[0192] For any given interval, if any segment of video material within that interval loses a frame during playback, then that interval is designated as the target interval.

[0193] According to one or more embodiments of this disclosure, determining the first video material based on segments of video material within the target interval segment includes:

[0194] Among the video clips in the target interval, a target segment is determined, wherein the resolution of the target segment is greater than or equal to a first threshold.

[0195] The video material corresponding to the target segment is determined as the first video material.

[0196] According to one or more embodiments of this disclosure, determining a second video material based on the first video material includes:

[0197] Obtain the resolution of the first video clip;

[0198] Based on the resolution of the first video clip, determine the video proxy priority of the first video clip;

[0199] Based on the video proxy priority, the first video material is proxied to obtain the second video material corresponding to the first video material.

[0200] According to one or more embodiments of this disclosure, video proxying of the first video material includes:

[0201] Obtain the editing mode corresponding to the draft of the video edit, wherein the editing mode includes proxy mode and non-proxy mode;

[0202] According to the editing mode, the first video material is proxied.

[0203] According to one or more embodiments of this disclosure, video proxying of the first video material according to the editing mode includes:

[0204] If the editing mode is proxy mode, then the first video material is proxied;

[0205] If the editing mode is non-proxy mode, then in response to the editing mode switching operation, the first video material is proxied.

[0206] According to one or more embodiments of this disclosure, when performing video proxying on the first video material, the method further includes:

[0207] Obtain the device resources required to perform video proxying on the first video material;

[0208] When the device resources are greater than or equal to the second threshold, video proxying of the first video material is stopped.

[0209] Secondly, this disclosure provides a video editing apparatus, which includes an acquisition module, a determination module, a processing module, and a replacement module, wherein:

[0210] The acquisition module is used to acquire a draft of the video editing, wherein the draft of the video editing includes at least one video material;

[0211] The first determining module is used to determine a first video material among the at least one video material, wherein the first video material is a video material whose decoding time is greater than or equal to a preset duration;

[0212] The second determining module is used to determine a second video material based on the first video material, wherein the resolution and / or bitrate of the second video material is less than that of the first video material;

[0213] The substitution module is used to render the draft by replacing the first video material with the second video material.

[0214] According to one or more embodiments of this disclosure, the first determining module is specifically used for:

[0215] The video editing draft is divided into multiple segments, each segment including at least one video clip.

[0216] Among the multiple intervals, a target interval segment with decoded frame loss is identified;

[0217] The first video material is determined based on the video material segments within the target interval.

[0218] According to one or more embodiments of this disclosure, the first determining module is specifically used for:

[0219] The draft is loaded into a video editing page, which includes a timeline;

[0220] Determine the division points in the time axis;

[0221] At the specified dividing point, the draft of the video editing is divided into multiple segments.

[0222] According to one or more embodiments of this disclosure, the first determining module is specifically used for:

[0223] The points where the segments of the video material change along the time axis are determined as the segmentation points.

[0224] According to one or more embodiments of this disclosure, the first determining module is specifically used for:

[0225] Preview the draft of the video edit;

[0226] For any given interval, if any segment of video material within that interval loses a frame during playback, then that interval is designated as the target interval.

[0227] According to one or more embodiments of this disclosure, the first determining module is specifically used for:

[0228] Among the video clips in the target interval, a target segment is determined, wherein the resolution of the target segment is greater than or equal to a first threshold.

[0229] The video material corresponding to the target segment is determined as the first video material.

[0230] According to one or more embodiments of this disclosure, the second determining module is specifically used for:

[0231] Obtain the resolution of the first video clip;

[0232] Based on the resolution of the first video clip, determine the video proxy priority of the first video clip;

[0233] Based on the video proxy priority, the first video material is proxied to obtain the second video material corresponding to the first video material.

[0234] According to one or more embodiments of this disclosure, the second determining module is specifically used for:

[0235] Obtain the editing mode corresponding to the draft of the video edit, wherein the editing mode includes proxy mode and non-proxy mode;

[0236] According to the editing mode, the first video material is proxied.

[0237] According to one or more embodiments of this disclosure, the second determining module is specifically used for:

[0238] If the editing mode is proxy mode, then the first video material is proxied;

[0239] If the editing mode is non-proxy mode, then in response to the editing mode switching operation, the first video material is proxied.

[0240] According to one or more embodiments of this disclosure, the second determining module is further configured to:

[0241] Obtain the device resources required to perform video proxying on the first video material;

[0242] When the device resources are greater than or equal to the second threshold, video proxying of the first video material is stopped.

[0243] Thirdly, embodiments of this disclosure provide a terminal device including: a processor and a memory;

[0244] The memory stores computer-executed instructions;

[0245] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the video editing methods described in the first aspect above and various possible aspects of the first aspect.

[0246] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the video editing methods described in the first aspect and various possible aspects thereof.

[0247] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0248] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments. Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely exemplary forms of implementing the claims.

Claims

1. A video editing method, characterized in that, include: Obtain a draft for video editing, wherein the draft for video editing includes at least one video clip; Among the at least one video material, a first video material is determined, wherein the first video material is a video material whose decoding time is greater than or equal to a preset duration; Based on the first video material, a second video material is determined, wherein the resolution and / or bitrate of the second video material is less than that of the first video material; When previewing the draft, the second video footage is used instead of the first video footage for rendering.

2. The method according to claim 1, characterized in that, Determining the first video material from the at least one video material includes: The video editing draft is divided into multiple segments, each segment including at least one video clip. Among the multiple intervals, a target interval segment with decoded frame loss is identified; The first video material is determined based on the video material segments within the target interval.

3. The method according to claim 2, characterized in that, The draft of the video editing is divided into multiple segments, including: The draft is loaded into a video editing page, which includes a timeline; Determine the division points in the time axis; At the specified dividing point, the draft of the video editing is divided into multiple segments.

4. The method according to claim 3, characterized in that, Determining the division points in the time axis includes: The points where video clips change along the timeline are defined as the segmentation points.

5. The method according to any one of claims 2-4, characterized in that, Among the multiple intervals, the target intervals where decoding frame loss occurs are identified, including: Preview the draft of the video edit; For any given interval, if any segment of video material within that interval loses a frame during playback, then that interval is designated as the target interval.

6. The method according to claim 2, characterized in that, The first video material is determined based on video clips within the target interval, including: Among the video clips in the target interval, a target segment is determined, wherein the resolution of the target segment is greater than or equal to a first threshold. The video material corresponding to the target segment is determined as the first video material.

7. The method according to any one of claims 1-4, characterized in that, Based on the first video material, the second video material is determined, including: Obtain the resolution of the first video clip; Based on the resolution of the first video clip, determine the video proxy priority of the first video clip; Based on the video proxy priority, the first video material is proxied to obtain the second video material corresponding to the first video material.

8. The method according to claim 7, characterized in that, Performing video proxying on the first video material includes: Obtain the editing mode corresponding to the draft of the video edit, wherein the editing mode includes proxy mode and non-proxy mode; According to the editing mode, the first video material is proxied.

9. The method according to claim 8, characterized in that, According to the editing mode, the first video material is proxied, including: If the editing mode is proxy mode, then the first video material is proxied; If the editing mode is non-proxy mode, then in response to the editing mode switching operation, the first video material is proxied.

10. The method according to any one of claims 1-4, characterized in that, When performing video proxying on the first video material, the method further includes: Obtain the device resources required to perform video proxying on the first video material; When the device resources are greater than or equal to the second threshold, video proxying of the first video material is stopped.

11. A video editing device, characterized in that, It includes an acquisition module, a first determination module, a second determination module, and a replacement module, wherein: The acquisition module is used to acquire a draft of the video editing, wherein the draft of the video editing includes at least one video material; The first determining module is used to determine a first video material among the at least one video material, wherein the first video material is a video material whose decoding time is greater than or equal to a preset duration; The second determining module is used to determine a second video material based on the first video material, wherein the resolution and / or bitrate of the second video material is less than that of the first video material; The substitution module is used to render the draft by replacing the first video material with the second video material.

12. A terminal device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the video editing method as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the video editing method as described in any one of claims 1-10.