A processing method, device, equipment, medium and product of a video derivation
By identifying the device's operating system and error codes, providing a failure message page, and guiding users to execute preprocessing strategies, the problem of a single solution for video export failures is solved, improving the stability of video export and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-11-29
- Publication Date
- 2026-05-29
AI Technical Summary
Existing video editing applications only prompt for a retry when exporting fails, but many problems cannot be solved by retrying, resulting in insufficient stability and increased negative feedback in the video export process.
By detecting the device's operating system and export error codes, the system identifies the export failure type and displays a failure prompt page containing processing operation controls based on the type, guiding the user to execute the corresponding preprocessing strategy.
The stability of the video export function has been improved, negative feedback has been reduced, and users can resolve export failure issues themselves.
Smart Images

Figure CN122120532A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of video editing technology, and in particular to a video export processing method, apparatus, device, medium and product. Background Technology
[0002] In video editing scenarios, users typically export the video after editing, but exporting may fail. Current video editing applications only prompt users to retry when an export failure is detected. However, many problems causing export failures cannot be resolved through retries, thus increasing negative feedback in the video export process. Summary of the Invention
[0003] This invention provides a video export processing method, apparatus, device, medium, and product to address the problem of limited solutions for video export failures, improve the stability of the video export function, and reduce negative feedback in video export.
[0004] In a first aspect, embodiments of the present invention provide a video export processing method, the method comprising:
[0005] During the export of a video editing draft, in response to the detection of an export failure event, the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event are determined;
[0006] Based on the device operating system and the export error code, determine the export failure type of the export failure event;
[0007] Obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy;
[0008] The failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy.
[0009] Secondly, embodiments of the present invention also provide a video export processing apparatus, the apparatus comprising:
[0010] The export error code determination module is used to determine the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event in response to the detection of an export failure event during the export process of the video editing draft.
[0011] The export failure type determination module is used to determine the export failure type of the export failure event based on the device operating system and the export error code.
[0012] The failure prompt page display module is used to obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy;
[0013] The failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy.
[0014] Thirdly, embodiments of the present invention also provide an electronic device, the electronic device comprising:
[0015] At least one processor; and
[0016] A memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the video export processing method according to any embodiment of the present invention.
[0018] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute the video export processing method described in any embodiment of the present invention.
[0019] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the video export processing method described in any embodiment of the present invention.
[0020] The technical solution of this invention, in response to the detection of an export failure event during the export process of a video editing draft, determines the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event, thereby identifying the export failure type. Based on the export preprocessing strategy corresponding to the export failure type, a failure prompt page is displayed. This failure prompt page includes prompt operation controls for performing processing operations corresponding to the export preprocessing strategy. This guides users to resolve export failure events themselves through the prompt operation controls, solving the problem of a single solution for video export failures, improving the stability of the video export function, and reducing negative feedback during video export. Attached Figure Description
[0021] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0022] Figure 1 A flowchart illustrating a video export processing method provided in one embodiment of the present invention;
[0023] Figure 2 This is a schematic diagram of a failure prompt page generated according to a return-to-edit-page strategy, provided as an embodiment of the present invention.
[0024] Figure 3 This is a schematic diagram of a failure prompt page generated according to a return entry page strategy, provided as an embodiment of the present invention;
[0025] Figure 4 This is a schematic diagram of a failure prompt page generated according to a device restart strategy, provided as an embodiment of the present invention;
[0026] Figure 5 A flowchart illustrating another video export processing method provided in one embodiment of the present invention;
[0027] Figure 6 This is a schematic diagram of a failure prompt page generated according to a cache clearing strategy, provided as an embodiment of the present invention;
[0028] Figure 7 This is a schematic diagram of a failure prompt page generated according to a recycle bin cleanup strategy, provided as an embodiment of the present invention.
[0029] Figure 8 This is a schematic diagram of a failure prompt page generated according to a system space cleanup strategy, provided as an embodiment of the present invention.
[0030] Figure 9 This is a schematic diagram of the structure of a video export processing device provided in one embodiment of the present invention;
[0031] Figure 10 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0032] Embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. While some embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the invention. It should be understood that the accompanying drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the invention.
[0033] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0034] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0035] It should be noted that the concepts of "first" and "second" mentioned in this invention are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0036] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0037] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0038] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0039] 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 electronic device, application program, server, or storage medium executing the operation of this invention, based on the prompt message.
[0040] 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 electronic device.
[0041] It is understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation on the implementation of the present invention. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present invention.
[0042] Figure 1 This is a flowchart illustrating a video export processing method according to an embodiment of the present invention. This embodiment is applicable to exporting video editing drafts from video editing applications, and is particularly suitable for situations where export failure occurs during the export process. The method can be executed by a video export processing device, which can be implemented in hardware and / or software. This video export processing device can be configured in an electronic device, typically a mobile terminal or tablet computer. Figure 1 As shown, the method includes:
[0043] S110. During the export of the video editing draft, in response to the detection of an export failure event, determine the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event.
[0044] Specifically, a video editing draft represents the video content that a user edits and creates within a video editing application. The application provides an export function for these drafts, converting them into video files of a specified format. An export failure event indicates that the export process for the video editing draft has been interrupted.
[0045] In an optional embodiment, the method further includes: during the export process of the video editing draft, monitoring whether there are any abnormalities in the preset export indicators; if an abnormality is found, interrupting the export process of the video editing draft and generating an export failure event. For example, the monitoring of preset export indicators includes, but is not limited to, monitoring whether the values of parameters such as video output format, video resolution, and video frame rate are consistent with the project settings; monitoring whether the video export path is correct; monitoring whether the filename and extension of the video file are valid; monitoring whether the disk has sufficient storage space for storing the video file; and monitoring whether there are any plugin incompatibilities, etc. The detection method for the export failure event is not limited here; it can be customized according to actual needs.
[0046] A device operating system is a program that manages computer hardware and software resources. It runs directly on the computer's hardware, and any other software must run with the support of the device operating system. The device operating system is the interface between the user and the computer, as well as the interface between the computer hardware and other software. Its main functions include managing the computer system's hardware, software, and data resources; controlling program execution; improving the human-computer interface; and providing support for other application software, so that all computer system resources can be used to their maximum potential.
[0047] In one specific embodiment, when the device to which the video editing application belongs is a computer terminal, the device operating system is a desktop operating system; when the device to which the video editing application belongs is a mobile terminal, the device operating system is a mobile operating system. For example, desktop operating systems include, but are not limited to, Windows, macOS, Linux, and Zorin, etc., while mobile operating systems include, but are not limited to, Android, iOS, and Harmony, etc.
[0048] Specifically, the export error code represents the code used by the device's operating system to identify and record the reason for the export failure event. For example, the export error code can be obtained from the video export log.
[0049] S120. Determine the export failure type of the export failure event based on the device operating system and the export error code.
[0050] Specifically, the export failure type indicates the reason for the export failure event. Different device operating systems may set one or more export error codes for the same export failure type. In an optional embodiment, determining the export failure type of the export failure event based on the device operating system and the export error code includes: obtaining a list of export error codes corresponding to the device operating system; wherein the list of export error codes contains at least one error code sequence corresponding to at least one preset failure type, and the error code sequence contains at least one preset error code; and searching for the export failure type of the export failure event from the list of export error codes based on the export error code.
[0051] Specifically, the preset failure type represents the category to which the failure reason corresponding to each preset error code in the error code sequence belongs. In an optional embodiment, the exported error list includes at least one preset failure type among disk space alarm, draft file exception, decoder exception, and encoder exception.
[0052] For example, when the device operating system is iOS, the error code sequence corresponding to the disk space alarm includes 3302, 3305, -3000, -113, -241, -1001, and -11807, etc.; when the device operating system is Android, the error code sequence corresponding to the disk space alarm includes -113. When the device operating system is iOS, the error code sequence corresponding to the draft file exception includes -142; when the device operating system is Android, the error code sequence corresponding to the draft file exception includes -142, -328, and -109499529. When the device operating system is iOS, the error code sequence corresponding to the decoder exception includes -13 and -12912; when the device operating system is Android, the error code sequence corresponding to the decoder exception includes -312, -330, and 4390. When the device operating system is iOS, the error code sequence corresponding to encoder exceptions includes -12912, -12907 and -12915.
[0053] This embodiment does not limit the error code sequences corresponding to different device operating systems and different preset failure types. The error code sequences can be customized based on the failure reasons represented by other currently known preset error codes and future preset error codes. Similarly, this embodiment does not limit the preset failure types corresponding to different device operating systems. This embodiment only uses several preset failure types such as disk space alarm, draft file anomaly, decoder anomaly, and encoder anomaly as examples for illustration. The preset failure types can be customized and categorized based on the failure reasons represented by other currently known preset error codes and future preset error codes.
[0054] S130. Obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy.
[0055] In this embodiment, the failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy. Specifically, the export preprocessing strategy represents a solution set for different export failure types.
[0056] In one optional embodiment, the prompt control is provided with control prompt text. For example, the control prompt text can be the name of the export preprocessing strategy, or it can be a custom description related to the export preprocessing strategy.
[0057] Based on the above embodiments, optionally, the failure prompt page may further include failure prompt information, which includes the export failure type and / or a strategy description content corresponding to the export preprocessing strategy.
[0058] The benefit of setting control tooltips and / or failure messages is that it helps users understand export failure events and export preprocessing strategies, and provides a reference for users to choose whether to trigger the tooltips.
[0059] Optionally, based on the above embodiments, the failure message page may further include a status display control, which is used to display the video export page corresponding to the export failure event. Specifically, in the video export page corresponding to the export failure event, the displayed export progress is greater than or equal to 0% and less than 100%.
[0060] Typically, users can choose to trigger either the prompt operation control or the status display control on the failure prompt page. Triggering the status display control indicates that the user has chosen not to perform the processing operation corresponding to the export preprocessing strategy.
[0061] The advantage of setting up a status display control is that it enriches the variety of options the user can choose to perform next when an export failure event occurs, thereby further reducing the negative feedback of video export.
[0062] In one optional embodiment, obtaining the export preprocessing strategy corresponding to the export failure type includes: when the export failure type is a draft file exception, using the return to the editing page strategy as the export preprocessing strategy; wherein, the return to the editing page strategy represents displaying the video editing page.
[0063] For example, the failure reasons corresponding to the Android system, such as "-142" indicating no audio or video segments, "-328" indicating no image file, "-109499529" indicating abnormal file data, and "-142" corresponding to the iOS system indicating empty draft resources, all belong to the draft file abnormality.
[0064] Specifically, the video editing page represents the page where users edit and create video drafts. For example, the video editing page includes a video preview area, an editing function navigation area, and a track editing area. The video preview area contains a video preview window, the editing function navigation area contains at least one editing function control, and the track editing area includes a video track, a timeline, and a timeline ruler, etc.
[0065] In an optional embodiment, the video preview window on the video editing page displays preview frames related to the export failure event. These preview frames represent the video frames in the video editing draft that caused the export failure event, and can also represent black screen video frames. Specifically, black screen video frames are applicable to cases where the export error code is "-142".
[0066] For example, at least one preview frame corresponding to the export failure event is obtained from the video export log, and any one of the at least one preview frame is used as the preview frame related to the export failure event. Based on the preview frame related to the export failure event, the video editing page is displayed.
[0067] Based on the above embodiments, optionally, the failure message on the failure message page corresponding to the return to the editing page strategy is "Draft file is abnormal, please check if the xx seconds of footage is normal" or "Draft file is abnormal, please check the xx seconds of footage". Here, "xx seconds of footage" represents the preview frame related to the export failure event, and "xx seconds" represents the location time of the video frame related to the export failure event in the video editing draft.
[0068] Figure 2 This is a schematic diagram of a failure message page generated according to a return-to-edit-page strategy, provided as an embodiment of the present invention. Specifically, Figure 2 The message "Export failed, draft file is abnormal. Please check if the footage of xx seconds is normal" indicates a failure message. The diagonal pattern below the failure message represents the cover image in the video editing draft. The "Go to Check" control is a prompt operation control, and the "Done" control is a status display control.
[0069] In another optional embodiment, obtaining the export preprocessing strategy corresponding to the export failure type includes: when the export failure type is a decoder exception, using the return entry page strategy as the export preprocessing strategy; wherein, the return entry page strategy represents displaying the entry page of the video editing application.
[0070] For example, the error messages "-12912" for iOS systems (meaning codec module exception), "-312" for Android systems (meaning inability to create image decoder), "-330" (meaning image not supported for decoding), and "4390" (meaning failure to create decoder) all fall under the category of decoder exceptions.
[0071] Based on the above embodiments, optionally, the failure message on the failure message page corresponding to the return entry page strategy can be "Please exit this draft and try exporting again".
[0072] Figure 3This is a schematic diagram of a failure message page generated according to a return entry page strategy, provided as an embodiment of the present invention. Specifically, Figure 3 The message "Export failed, decoder error, please exit this draft and try exporting again" indicates a failure message. The slash pattern below the failure message represents the cover image in the video editing draft. The "Exit Draft" control is a prompt control, and the "Done" control is a status display control.
[0073] In another optional embodiment, obtaining the export preprocessing strategy corresponding to the export failure type includes: when the export failure type is encoder exception, using the device restart strategy corresponding to the device operating system as the export preprocessing strategy; wherein, the device restart strategy corresponding to the iOS system indicates displaying the video editing page, or the device restart strategy corresponding to the Android system indicates performing a restart operation on the device to which the video editing application belongs.
[0074] For example, the failure reasons corresponding to the iOS system, such as "-12912" indicating an error in the encoding / decoding module, "-12907" indicating the inability to create a virtualization instance, and "-12915" indicating a failure in the encoding module, all belong to encoder errors.
[0075] Based on the above embodiments, optionally, the failure message corresponding to the device restart strategy on the failure message page can be "Please restart your phone and try again".
[0076] Figure 4 This is a schematic diagram illustrating a failure message page generated according to a device restart strategy, as provided in one embodiment of the present invention. Specifically, Figure 4 The message "Export failed, encoder error, please restart your phone and try again" indicates a failure message. The diagonal pattern below the failure message represents the cover image in the video editing draft. The "OK" control represents a prompt control generated according to the device restart policy corresponding to the iOS system, and the "Done" control represents a status display control. Figure 4 Based on the example, the prompt operation control generated according to the device restart policy of the Android system can be a "Restart Phone" control.
[0077] The technical solution of this embodiment, in response to the detection of an export failure event during the export process of a video editing draft, determines the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event, thereby recognizing the export failure type. Based on the export preprocessing strategy corresponding to the export failure type, a failure prompt page is displayed. The failure prompt page includes prompt operation controls for performing processing operations corresponding to the export preprocessing strategy, thus guiding the user to resolve the export failure event themselves through the prompt operation controls. This solves the problem of a single solution for video export failures, improves the stability of the video export function, and reduces negative feedback in video export.
[0078] Figure 5 This is a flowchart illustrating another video export processing method according to an embodiment of the present invention. This embodiment further refines the "obtaining the export preprocessing strategy corresponding to the export failure type" in the above embodiment. In this embodiment, obtaining the export preprocessing strategy corresponding to the export failure type includes: when the export failure type is a disk space alarm, obtaining the estimated export usage of the video editing draft and the cache space size of the video editing application; if the estimated export usage is less than or equal to the cache space size, using a cache cleanup strategy as the export preprocessing strategy. Figure 5 As shown, the method includes:
[0079] S210. During the export of the video editing draft, in response to the detection of an export failure event, determine the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event.
[0080] S220. Determine the export failure type of the export failure event based on the device operating system and the export error code.
[0081] S210-S220 in this embodiment are the same as those in the above embodiment. Figure 1 The S110-S120 shown are the same or similar, and will not be described again in this embodiment.
[0082] S230. When the export failure type is a disk space alarm, obtain the estimated export usage of the video editing draft and the cache space size of the video editing application.
[0083] Specifically, the estimated export space usage represents the file space occupied by the video editing draft when exported as a video file, while the cache space size represents the storage capacity of the video editing application's cache space.
[0084] In one alternative embodiment, the estimated export occupancy of the video editing draft is obtained by dividing the product of the bitrate of the video editing draft and the video duration by 8.
[0085] S240. If the estimated export usage is less than or equal to the cache space size, the cache cleanup strategy shall be used as the export preprocessing strategy.
[0086] In one alternative embodiment, the cache cleanup strategy at least represents the cleanup of the video editing application's cache space to make the cache space usage zero, or to make the remaining cache space capacity greater than or equal to the estimated export usage.
[0087] In an optional embodiment, obtaining the export preprocessing strategy corresponding to the export failure type further includes: if the estimated export usage is greater than the cache space size, using the return to edit page strategy as the export preprocessing strategy.
[0088] Specifically, the strategy of returning to the editing page allows users to delete, replace, or change video parameters in the video editing draft, thereby reducing the estimated export size.
[0089] In another optional embodiment, obtaining the export preprocessing strategy corresponding to the export failure type further includes: if the estimated export usage is greater than the cache space size, obtaining the recycle bin space size of the video editing application; if the estimated export usage is less than or equal to the recycle bin space size, then using the recycle bin cleanup strategy as the export preprocessing strategy.
[0090] Specifically, the recycle bin size represents the storage capacity of the video editing application's recycle bin. In one alternative embodiment, the recycle bin cleanup strategy at least represents cleaning up the video editing application's recycle bin to make the recycle bin's space occupancy zero, or to make the remaining capacity of the recycle bin greater than or equal to the estimated export occupancy.
[0091] Based on the above embodiments, optionally, obtaining the export preprocessing strategy corresponding to the export failure type further includes: if the estimated export occupancy is greater than the recycle bin space size, using the return to edit page strategy as the export preprocessing strategy.
[0092] In another optional embodiment, obtaining the export preprocessing strategy corresponding to the export failure type further includes: if the estimated export usage is greater than the recycle bin space size, obtaining the system storage space size of the device to which the video editing application belongs; if the estimated export usage is less than or equal to the system storage space size, then using the system space cleanup strategy corresponding to the device operating system as the export preprocessing strategy.
[0093] Based on the above embodiments, optionally, obtaining the export preprocessing strategy corresponding to the export failure type further includes: if the estimated export usage is greater than the system storage space size, using the return to edit page strategy as the export preprocessing strategy.
[0094] S250. Display a failure message page according to the export preprocessing strategy.
[0095] In one optional embodiment, when the export preprocessing strategy is a cache cleanup strategy, the failure message on the failure message page is "Disk space warning, it is recommended to clean up the cache before exporting"; when the export preprocessing strategy is a recycle bin cleanup strategy, the failure message on the failure message page is "Disk space warning, it is recommended to clean up the recycle bin before exporting"; when the export preprocessing strategy is a system space cleanup strategy, the failure message on the failure message page is "Disk space warning, it is recommended to clean up system space before exporting".
[0096] In one optional embodiment, when the export failure type is disk space alarm and the export preprocessing strategy is return to the editing page strategy, the failure message on the failure message page is "Disk space alarm, please delete the draft material".
[0097] Based on the above embodiments, optionally, after displaying the failure prompt page according to the export preprocessing strategy, the method further includes: when the export preprocessing strategy is a cache clearing strategy, in response to the trigger operation input to the prompt operation control, performing a cache clearing operation on the cache space of the video editing application, and after the clearing operation is completed, performing an export operation on the video editing draft and displaying the video export page.
[0098] Based on the above embodiments, optionally, after displaying the failure prompt page according to the export preprocessing strategy, the method further includes: when the export preprocessing strategy is a cleanup recycle bin strategy, in response to the trigger operation input to the prompt operation control, performing a cleanup operation on the recycle bin of the video editing application, and after the cleanup operation is completed, performing an export operation on the video editing draft and displaying the video export page.
[0099] In this embodiment, the cache clearing policy and the recycle bin clearing policy also represent automatically performing the export operation of the video editing draft and displaying the video export page.
[0100] In one optional embodiment, during the cleanup operation on the cache space or the recycle bin, a cleanup prompt message is displayed on the failure message page. For example, the cleanup prompt message could be "Cleanup in progress...". This setting allows users to easily understand the execution status of the cache cleanup or recycle bin cleanup strategy in real time.
[0101] Figure 6 This is a schematic diagram of a failure message page generated according to a cache clearing strategy, provided as an embodiment of the present invention. Specifically, Figure 6 The message "Export failed, disk space warning, it is recommended to clear the cache before exporting" indicates a failure message. The diagonal pattern below the failure message represents the cover image in the video editing draft. The "Clean and Export" control is a prompt control, and the "Done" control is a status display control.
[0102] Figure 7 This is a schematic diagram of a failure message page generated based on a recycle bin cleanup strategy, provided as an embodiment of the present invention. Specifically, Figure 7 The message "Export failed, disk space warning, it is recommended to clean up the recycle bin before exporting" indicates a failure message. The diagonal pattern below the failure message represents the cover image in the video editing draft. The "Clean and Export" control is a prompt control, and the "Done" control is a status display control.
[0103] Based on the above embodiments, optionally, after displaying the failure prompt page according to the export preprocessing strategy, the method further includes: when the export preprocessing strategy is a system space cleanup strategy corresponding to the iOS system, in response to the trigger operation input to the prompt operation control, replacing the prompt operation control with an export retry control, and displaying cleanup prompt information on the failure prompt page; wherein, the cleanup prompt information is used to prompt the user to open the system space management page to clean up space.
[0104] Based on the above embodiments, optionally, after displaying the failure prompt page according to the export preprocessing strategy, the method further includes: when the export preprocessing strategy is a system space cleanup strategy corresponding to the Android system, in response to the trigger operation input to the prompt operation control, jumping to displaying the system space management page, and in response to detecting the application switchback operation, performing an export operation on the video editing draft, and displaying the video export page.
[0105] Specifically, the export retry control is used to perform an export operation on the video editing draft and display the video export page, while the application switchback operation indicates that the user switches back from the settings application on the system management page to the video editing application.
[0106] Figure 8 This is a schematic diagram of a failure message page generated according to a system space cleanup strategy, provided as an embodiment of the present invention. Figure 8 Let's take the system space cleanup strategy corresponding to the iOS system as an example. Specifically, Figure 8 The left-hand page displays the failure message before the system space cleanup strategy is executed. Figure 8 The right-hand page in the image displays a failure message during the execution of the system space cleanup policy. Figure 8 The message "Export failed, disk space warning, it is recommended to clean up system space before exporting" indicates a failure message. The diagonal pattern below the failure message represents the cover image in the video editing draft. The "Done" control represents the status display control.
[0107] On the left side of the page, the "Clean up system space" control indicates a prompt for action. On the right side of the page, "Open System Settings - General - Storage, Manually clean up system storage space" displays a cleanup prompt message, while the "Export Retry" control indicates an export retry mechanism.
[0108] The technical solution of this embodiment, when the export failure type is disk space alarm, compares the estimated export usage of the video editing draft with the cache space size, recycle bin size and system storage space size in sequence, and sets corresponding cache clearing strategy, recycle bin clearing strategy and system space clearing strategy. This solves the problem of the single solution for disk space alarm, further improves the stability of video export function, and further reduces the negative feedback of video export.
[0109] Based on the above embodiments, optionally, the method further includes: during the export process of the video editing draft, obtaining the video export weight corresponding to the video editing draft; determining the progress correction ratio according to the video export weight and the post-processing weight corresponding to the export post-processing process; using the product of the current export progress of the video editing draft and the progress correction ratio as the corrected export progress, and displaying the corrected export progress on the video export page.
[0110] Specifically, the video export weight represents the weight value corresponding to the export process of exporting video editing drafts as video files.
[0111] In one optional embodiment, obtaining the video export weight corresponding to the video editing draft includes: using the product between the estimated export occupancy of the video editing draft and a preset ratio value as the video export weight of the video editing draft.
[0112] In another optional embodiment, obtaining the video export weight corresponding to the video editing draft includes: when the current export progress is a preset export progress, obtaining the reference export time corresponding to the current export progress, and using the ratio of the reference export time to the preset export progress as the estimated total export time corresponding to the video editing draft; and using the ratio of the estimated total export time to the estimated export occupancy of the video editing draft as the video export weight of the video editing draft.
[0113] For example, the preset export progress can be 20%. There is no limit to the preset export progress here. The specific setting can be customized according to actual needs.
[0114] The actual export progress of a video editing draft is not only related to the estimated export time, but also affected by complex factors such as the application version of the video editing application, system resource settings, video file format, resolution, encoder algorithm, and decoder algorithm. This embodiment uses the actual export time corresponding to the preset export progress as a reference export time to determine the video export weight of the video editing draft. This improves the accuracy of the video export weight, thereby further ensuring the accuracy of correcting the export progress.
[0115] Specifically, the export post-processing workflow represents the post-processing operations performed by the user on the video file after the video editing draft is exported as a video file. For example, the export post-processing workflow includes, but is not limited to, saving to a photo album, publishing to a video platform, importing into a video editing application, etc. This example does not limit the export post-processing workflow, and correspondingly, this embodiment does not limit the post-processing weights; they can be customized according to actual needs.
[0116] For example, the schedule adjustment ratio satisfies the following formula:
[0117]
[0118] Where a represents the video export weight and b represents the post-processing weight.
[0119] In this embodiment, if the current export progress is less than or equal to the preset export progress, the video export page displays the current export progress; if the current export progress is greater than the preset export progress, the video export page displays the corrected export progress.
[0120] The post-export processing flow is a step closely linked to the export flow. This flow also has its own time consumption, but the current video export page only displays the encoding / decoding progress of the video editing draft, failing to provide feedback on the post-export processing progress. This embodiment corrects the export progress based on video export weight and post-processing weight, ensuring that the export progress displayed on the video export page represents both the encoding / decoding progress of the video editing draft and the post-processing progress of the post-export processing flow, thereby improving the completeness and accuracy of the export progress.
[0121] The following are embodiments of the video export processing apparatus provided in this invention. This apparatus and the video export processing method described above belong to the same inventive concept. For details not described in detail in the embodiments of the video export processing apparatus, please refer to the content of the video export processing method in the above embodiments.
[0122] Figure 9 This is a schematic diagram of a video export processing apparatus provided in one embodiment of the present invention. Figure 9 As shown, the device includes: an export error code determination module 310, an export failure type determination module 320, and a failure prompt page display module 330.
[0123] Among them, the export error code determination module 310 is used to determine the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event in response to the detection of an export failure event during the export process of the video editing draft.
[0124] The export failure type determination module 320 is used to determine the export failure type of the export failure event based on the device operating system and the export error code.
[0125] The failure prompt page display module 330 is used to obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy;
[0126] The failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy.
[0127] The technical solution of this embodiment, in response to the detection of an export failure event during the export process of a video editing draft, determines the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event, thereby recognizing the export failure type. Based on the export preprocessing strategy corresponding to the export failure type, a failure prompt page is displayed. The failure prompt page includes prompt operation controls for performing processing operations corresponding to the export preprocessing strategy, thus guiding the user to resolve the export failure event themselves through the prompt operation controls. This solves the problem of a single solution for video export failures, improves the stability of the video export function, and reduces negative feedback in video export.
[0128] In an optional embodiment, the failure message page display module 330 includes:
[0129] The first export preprocessing strategy determination unit is used to obtain the estimated export usage of the video editing draft and the cache space size of the video editing application when the export failure type is a disk space alarm.
[0130] If the estimated export usage is less than or equal to the cache space size, the cache cleanup strategy will be used as the export preprocessing strategy.
[0131] In an optional embodiment, the device further includes:
[0132] The cache clearing strategy execution module is used to perform a cache clearing operation on the video editing application in response to a trigger operation input to the prompt operation control after displaying a failure prompt page according to the export preprocessing strategy, and to perform an export operation on the video editing draft and display a video export page after the clearing operation is completed.
[0133] In an optional embodiment, the failure message page display module 330 further includes:
[0134] The second export preprocessing strategy determination unit is used to obtain the recycle bin space size of the video editing application when the estimated export usage is greater than the cache space size.
[0135] If the estimated export occupancy is less than or equal to the recycle bin space size, then the recycle bin cleanup strategy will be used as the export preprocessing strategy.
[0136] In an optional embodiment, the device further includes:
[0137] The recycle bin cleanup strategy execution module is used to perform a cleanup operation on the recycle bin of the video editing application in response to the trigger operation input of the prompt operation control, and after the cleanup operation is completed, perform an export operation on the video editing draft and display the video export page.
[0138] In an optional embodiment, the failure message page display module 330 further includes:
[0139] The third export preprocessing strategy determination unit is used to obtain the system storage space size of the device to which the video editing application belongs when the estimated export occupancy is greater than the size of the recycle bin space.
[0140] If the estimated export usage is less than or equal to the system storage space size, then the system space cleanup strategy corresponding to the device operating system will be used as the export preprocessing strategy.
[0141] In an optional embodiment, the device further includes:
[0142] The first system space cleanup strategy execution module is used to, after displaying a failure prompt page according to the export preprocessing strategy, when the export preprocessing strategy is a system space cleanup strategy corresponding to the iOS system, in response to the trigger operation input of the prompt operation control, replace the prompt operation control with an export retry control, and display cleanup prompt information on the failure prompt page; wherein, the cleanup prompt information is used to prompt the user to open the system space management page to clean up space.
[0143] In an optional embodiment, the device further includes:
[0144] The second system space cleanup strategy execution module is used to, after displaying a failure prompt page according to the export preprocessing strategy, when the export preprocessing strategy is a system space cleanup strategy corresponding to the Android system, in response to the trigger operation input of the prompt operation control, jump to display the system space management page, and in response to detecting the application switchback operation, perform the export operation on the video editing draft and display the video export page.
[0145] In an optional embodiment, the failure message page display module 330 includes:
[0146] The fourth export preprocessing strategy determination unit is used to determine the export preprocessing strategy when the export failure type is draft file exception; wherein, the return to the editing page strategy represents displaying the video editing page;
[0147] When the export failure type is decoder exception, the return to entry page strategy will be used as the export preprocessing strategy; wherein, the return to entry page strategy represents displaying the entry page of the video editing application;
[0148] When the export failure type is encoder exception, the device restart strategy corresponding to the device operating system will be used as the export preprocessing strategy.
[0149] Specifically, the device restart policy corresponding to the iOS system indicates that the video editing page is displayed, or the device restart policy corresponding to the Android system indicates that a restart operation is performed on the device to which the video editing application belongs.
[0150] In an optional embodiment, the failure type determination module 320 is specifically used for:
[0151] Obtain the exported error code list corresponding to the device operating system; wherein, the exported error code list contains at least one error code sequence corresponding to at least one preset failure type, and the error code sequence contains at least one preset error code;
[0152] Based on the export error code, find the export failure type of the export failure event from the export error code list.
[0153] In an optional embodiment, the failure message page further includes failure message information, which includes the export failure type and / or a strategy description corresponding to the export preprocessing strategy.
[0154] In an optional embodiment, the device further includes:
[0155] The export progress display module has been modified to obtain the video export weight corresponding to the video editing draft during the export process.
[0156] The progress correction ratio is determined based on the video export weight and the post-processing weight corresponding to the export post-processing process.
[0157] The corrected export progress is obtained by multiplying the current export progress of the video editing draft by the progress correction ratio, and the corrected export progress is displayed on the video export page.
[0158] In an optional embodiment, the export progress display module is modified to specifically:
[0159] When the current export progress is the preset export progress, obtain the reference export time corresponding to the current export progress, and use the ratio of the reference export time to the preset export progress as the estimated total export time corresponding to the video editing draft;
[0160] The ratio of the estimated total export time to the estimated export time of the video editing draft is used as the video export weight of the video editing draft.
[0161] The video export processing apparatus provided in this embodiment of the invention can execute the video export processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0162] The following is for reference. Figure 10 The diagram illustrates a structural schematic of an electronic device (e.g., a terminal device or a server) 400 suitable for implementing embodiments of the present invention. The terminal device in the embodiments of the present invention may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 10 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0163] like Figure 10 As shown, electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 401, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 402 or a program loaded from storage device 406 into random access memory (RAM) 403. RAM 403 also stores various programs and data required for the operation of electronic device 400. Processing device 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.
[0164] Typically, the following devices can be connected to I / O interface 405: input devices 406 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 406 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows electronic device 400 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 10 An electronic device 400 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.
[0165] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory 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 a communication device 409, or installed from a storage device 406, or installed from a ROM 402. When the computer program is executed by the processing device 401, it performs the functions defined in the methods of the embodiments of the present invention.
[0166] It should be noted that the computer-readable medium described above in this invention can be a computer-readable signal medium, 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 invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, 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.
[0167] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0168] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0169] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire at least two Internet Protocol (IP) addresses; send a node evaluation request including the at least two IP addresses to a node evaluation device, wherein the node evaluation device selects an IP address from the at least two IP addresses and returns it; and receive the IP address returned by the node evaluation device; wherein the acquired IP address indicates an edge node in a content delivery network.
[0170] Alternatively, the aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receive a node evaluation request including at least two Internet Protocol (IP) addresses; select an IP address from the at least two IP addresses; and return the selected IP address; wherein the received IP address indicates an edge node in the content delivery network.
[0171] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as 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).
[0172] 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 the present invention. 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.
[0173] The units described in the embodiments of the present invention 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".
[0174] 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.
[0175] In the context of this invention, 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. Machine-readable media can include, but are 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 fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0176] According to one or more embodiments of the present invention, Example 1 provides a video export processing method, including:
[0177] During the export of a video editing draft, in response to the detection of an export failure event, the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event are determined;
[0178] Based on the device operating system and the export error code, determine the export failure type of the export failure event;
[0179] Obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy;
[0180] The failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy.
[0181] According to one or more embodiments of the present invention, Example 2, based on the method described in Example 1, includes obtaining the export preprocessing strategy corresponding to the export failure type, comprising:
[0182] When the export failure type is a disk space alarm, obtain the estimated export usage of the video editing draft and the cache space size of the video editing application;
[0183] If the estimated export usage is less than or equal to the cache space size, the cache cleanup strategy will be used as the export preprocessing strategy.
[0184] According to one or more embodiments of the present invention, Example 3, based on the method of Example 2, further includes, after displaying a failure prompt page according to the export preprocessing strategy:
[0185] In response to a trigger operation for input to the prompt operation control, a cleanup operation is performed on the cache space of the video editing application, and after the cleanup operation is completed, an export operation is performed on the video editing draft, and the video export page is displayed.
[0186] According to one or more embodiments of the present invention, Example 4, based on the method described in Example 2, further includes obtaining the export preprocessing strategy corresponding to the export failure type:
[0187] If the estimated export usage is greater than the cache space size, obtain the recycle bin space size of the video editing application;
[0188] If the estimated export occupancy is less than or equal to the recycle bin space size, then the recycle bin cleanup strategy will be used as the export preprocessing strategy.
[0189] According to one or more embodiments of the present invention, Example 5, based on the method of Example 4, further includes, after displaying a failure prompt page according to the export preprocessing strategy:
[0190] In response to a trigger operation input to the prompt operation control, a cleanup operation is performed on the recycle bin of the video editing application, and after the cleanup operation is completed, an export operation is performed on the video editing draft, and the video export page is displayed.
[0191] According to one or more embodiments of the present invention, Example 6, based on the method described in Example 4, further includes obtaining the export preprocessing strategy corresponding to the export failure type:
[0192] If the estimated export usage is greater than the size of the recycle bin, obtain the system storage space size of the device to which the video editing application belongs;
[0193] If the estimated export usage is less than or equal to the system storage space size, then the system space cleanup strategy corresponding to the device operating system will be used as the export preprocessing strategy.
[0194] According to one or more embodiments of the present invention, Example 7, based on the method of Example 6, further includes, after displaying a failure message page according to the export preprocessing strategy:
[0195] When the export preprocessing strategy is a system space cleanup strategy corresponding to the iOS system, in response to the trigger operation input of the prompt operation control, the prompt operation control is replaced with an export retry control, and a cleanup prompt message is displayed on the failure prompt page; wherein, the cleanup prompt message is used to prompt the user to open the system space management page to clean up space.
[0196] According to one or more embodiments of the present invention, Example 8, based on the method of Example 6, further includes, after displaying a failure prompt page according to the export preprocessing strategy:
[0197] When the export preprocessing strategy is a system space cleanup strategy corresponding to the Android system, in response to the trigger operation input of the prompt operation control, the system space management page is displayed, and in response to the detection of the application switch-back operation, the video editing draft is exported, and the video export page is displayed.
[0198] According to one or more embodiments of the present invention, Example 9, based on the method described in Example 1, includes obtaining the export preprocessing strategy corresponding to the export failure type, comprising:
[0199] When the export failure type is a draft file exception, the strategy of returning to the editing page will be used as the export preprocessing strategy; wherein, the strategy of returning to the editing page indicates that the video editing page is displayed;
[0200] When the export failure type is decoder exception, the return to entry page strategy will be used as the export preprocessing strategy; wherein, the return to entry page strategy represents displaying the entry page of the video editing application;
[0201] When the export failure type is encoder exception, the device restart strategy corresponding to the device operating system will be used as the export preprocessing strategy.
[0202] Specifically, the device restart policy corresponding to the iOS system indicates that the video editing page is displayed, or the device restart policy corresponding to the Android system indicates that a restart operation is performed on the device to which the video editing application belongs.
[0203] According to one or more embodiments of the present invention, Example 10, based on the method of Example 1, the step of determining the export failure type of the export failure event based on the device operating system and the export error code includes:
[0204] Obtain the exported error code list corresponding to the device operating system; wherein, the exported error code list contains at least one error code sequence corresponding to at least one preset failure type, and the error code sequence contains at least one preset error code;
[0205] Based on the export error code, find the export failure type of the export failure event from the export error code list.
[0206] According to one or more embodiments of the present invention, Example 11, based on the method described in Example 1, further includes failure message information in the failure message page, the failure message information including the export failure type and / or strategy description content corresponding to the export preprocessing strategy.
[0207] According to one or more embodiments of the present invention, Example 12 describes the method according to any one of Examples 1-11, the method further comprising:
[0208] During the export process of the video editing draft, the video export weight corresponding to the video editing draft is obtained;
[0209] The progress correction ratio is determined based on the video export weight and the post-processing weight corresponding to the export post-processing process.
[0210] The corrected export progress is obtained by multiplying the current export progress of the video editing draft by the progress correction ratio, and the corrected export progress is displayed on the video export page.
[0211] According to one or more embodiments of the present invention, Example 13, based on the method described in Example 12, includes obtaining the video export weight corresponding to the video editing draft, comprising:
[0212] When the current export progress is the preset export progress, obtain the reference export time corresponding to the current export progress, and use the ratio of the reference export time to the preset export progress as the estimated total export time corresponding to the video editing draft;
[0213] The ratio of the estimated total export time to the estimated export time of the video editing draft is used as the video export weight of the video editing draft.
[0214] According to one or more embodiments of the present invention, Example 14 provides a video export processing apparatus, comprising:
[0215] The export error code determination module is used to determine the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event in response to the detection of an export failure event during the export process of the video editing draft.
[0216] The export failure type determination module is used to determine the export failure type of the export failure event based on the device operating system and the export error code.
[0217] The failure prompt page display module is used to obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy;
[0218] The failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy.
[0219] According to one or more embodiments of the present invention, Example 15 provides an electronic device, comprising:
[0220] At least one processor; and
[0221] A memory communicatively connected to the at least one processor; wherein,
[0222] The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the video export processing method described in any one of Examples 1-13.
[0223] According to one or more embodiments of the present invention, Example 16 provides a computer-readable storage medium storing computer instructions for causing a processor to execute and implement the video export processing method described in any one of Examples 1-13.
[0224] According to one or more embodiments of the present invention, Example 17 provides a computer program product including a computer program that, when executed by a processor, implements a video export processing method according to any one of Examples 1-13.
[0225] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention 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 with similar functions disclosed in this invention.
[0226] 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 sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the invention. 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.
[0227] 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 illustrative examples of implementing the claims.
Claims
1. A method for exporting video, characterized in that, include: During the export of a video editing draft, in response to the detection of an export failure event, the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event are determined; Based on the device operating system and the export error code, determine the export failure type of the export failure event; Obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy; The failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy.
2. The method according to claim 1, characterized in that, The step of obtaining the export preprocessing strategy corresponding to the export failure type includes: When the export failure type is a disk space alarm, obtain the estimated export usage of the video editing draft and the cache space size of the video editing application; If the estimated export usage is less than or equal to the cache space size, the cache cleanup strategy will be used as the export preprocessing strategy.
3. The method according to claim 2, characterized in that, After displaying a failure message page according to the export preprocessing strategy, the method further includes: In response to a trigger operation for input to the prompt operation control, a cleanup operation is performed on the cache space of the video editing application, and after the cleanup operation is completed, an export operation is performed on the video editing draft, and the video export page is displayed.
4. The method according to claim 2, characterized in that, The step of obtaining the export preprocessing strategy corresponding to the export failure type further includes: If the estimated export usage is greater than the cache space size, obtain the recycle bin space size of the video editing application; If the estimated export occupancy is less than or equal to the recycle bin space size, then the recycle bin cleanup strategy will be used as the export preprocessing strategy.
5. The method according to claim 4, characterized in that, After displaying a failure message page according to the export preprocessing strategy, the method further includes: In response to a trigger operation input to the prompt operation control, a cleanup operation is performed on the recycle bin of the video editing application, and after the cleanup operation is completed, an export operation is performed on the video editing draft, and the video export page is displayed.
6. The method according to claim 4, characterized in that, The step of obtaining the export preprocessing strategy corresponding to the export failure type further includes: If the estimated export usage is greater than the size of the recycle bin, obtain the system storage space size of the device to which the video editing application belongs; If the estimated export usage is less than or equal to the system storage space size, then the system space cleanup strategy corresponding to the device operating system will be used as the export preprocessing strategy.
7. The method according to claim 6, characterized in that, After displaying a failure message page according to the export preprocessing strategy, the method further includes: When the export preprocessing strategy is a system space cleanup strategy corresponding to the iOS system, in response to the trigger operation input of the prompt operation control, the prompt operation control is replaced with an export retry control, and a cleanup prompt message is displayed on the failure prompt page; wherein, the cleanup prompt message is used to prompt the user to open the system space management page to clean up space.
8. The method according to claim 6, characterized in that, After displaying a failure message page according to the export preprocessing strategy, the method further includes: When the export preprocessing strategy is a system space cleanup strategy corresponding to the Android system, in response to the trigger operation input of the prompt operation control, the system space management page is displayed, and in response to the detection of the application switch-back operation, the video editing draft is exported, and the video export page is displayed.
9. The method according to claim 1, characterized in that, The step of obtaining the export preprocessing strategy corresponding to the export failure type includes: When the export failure type is a draft file exception, the strategy of returning to the editing page will be used as the export preprocessing strategy; wherein, the strategy of returning to the editing page indicates that the video editing page is displayed; When the export failure type is decoder exception, the return to entry page strategy will be used as the export preprocessing strategy; wherein, the return to entry page strategy represents displaying the entry page of the video editing application; When the export failure type is encoder exception, the device restart strategy corresponding to the device operating system will be used as the export preprocessing strategy. Specifically, the device restart policy corresponding to the iOS system indicates that the video editing page is displayed, or the device restart policy corresponding to the Android system indicates that a restart operation is performed on the device to which the video editing application belongs.
10. The method according to claim 1, characterized in that, The step of determining the export failure type of the export failure event based on the device operating system and the export error code includes: Obtain the exported error code list corresponding to the device operating system; wherein, the exported error code list contains at least one error code sequence corresponding to at least one preset failure type, and the error code sequence contains at least one preset error code; Based on the export error code, find the export failure type of the export failure event from the export error code list.
11. The method according to claim 1, characterized in that, The failure message page also includes failure message information, which includes the export failure type and / or a strategy description corresponding to the export preprocessing strategy.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: During the export process of the video editing draft, the video export weight corresponding to the video editing draft is obtained; The progress correction ratio is determined based on the video export weight and the post-processing weight corresponding to the export post-processing process. The corrected export progress is obtained by multiplying the current export progress of the video editing draft by the progress correction ratio, and the corrected export progress is displayed on the video export page.
13. The method according to claim 12, characterized in that, The step of obtaining the video export weight corresponding to the video editing draft includes: When the current export progress is the preset export progress, obtain the reference export time corresponding to the current export progress, and use the ratio of the reference export time to the preset export progress as the estimated total export time corresponding to the video editing draft; The ratio of the estimated total export time to the estimated export time of the video editing draft is used as the video export weight of the video editing draft.
14. A video export processing apparatus, characterized in that, include: The export error code determination module is used to determine the device operating system of the device to which the video editing application belongs and the export error code corresponding to the export failure event in response to the detection of an export failure event during the export process of the video editing draft. The export failure type determination module is used to determine the export failure type of the export failure event based on the device operating system and the export error code. The failure prompt page display module is used to obtain the export preprocessing strategy corresponding to the export failure type, and display the failure prompt page according to the export preprocessing strategy; The failure message page includes a prompt operation control, which is used to perform processing operations corresponding to the export preprocessing strategy.
15. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the video export processing method according to any one of claims 1-13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the video export processing method according to any one of claims 1-13.
17. A computer program product comprising a computer program that, when executed by a processor, implements the video export processing method according to any one of claims 1-13.