Video synthesis progress processing method and device and computing equipment

By dynamically updating the simulated synthesis progress and obtaining the real synthesis progress, combined with background sub-thread loading resources and timer monitoring, the problem of video synthesis progress showing no progress is solved, improving user experience and system efficiency.

CN118646922APending Publication Date: 2024-09-13SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884243.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

During the video synthesis process of existing video platforms, the video synthesis progress is displayed as no progress during the loading of system resources, resulting in poor user experience, especially in low-end models and high material resolutions, causing lags to users. Feel.

Method used

After receiving video synthesis instructions, the simulation synthesis progress is dynamically updated, and the real synthesis progress is obtained when specific conditions are met. The simulation synthesis progress is adjusted to render the video synthesis progress display element to avoid excessive load on the main thread, and background sub-threads are used to load system resources. , monitor the timer status to simplify the determination of progress switching conditions.

Benefits of technology

It solves the problem that the video synthesis progress is displayed as no progress, and presents the user with the effect of starting to synthesize the video after clicking the synthesis button, improving the user experience, ensuring that the video synthesis progress is displayed continuously and accurately, avoiding the feeling of lag, and improving the loading speed of system resources. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646922A
    Figure CN118646922A
Patent Text Reader

Abstract

The invention discloses a video synthesis progress processing method and device and computing equipment, and the method comprises the steps: receiving a video synthesis instruction, and skipping to display a video release page; rendering a video synthesis progress display element in the video release page according to the first simulation synthesis progress; wherein the first simulation synthesis progress is dynamically updated along with the change of time; when it is monitored that the progress switching condition is met, the real synthesis progress of video synthesis processing is obtained; and determining a second simulation synthesis progress according to the real synthesis progress, and rendering the video synthesis progress display element in the video release page according to the second simulation synthesis progress. Through the scheme of the invention, the problem that the video synthesis progress display is no progress in the system resource loading process in the prior art is solved, the effect that the video synthesis is started after the synthesis button is clicked is presented for the user, the feeling of lagging in the video synthesis process is avoided for the user, and thus the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a video synthesis progress processing method, device, computing equipment, computer storage medium and computer program product. Background Art

[0002] At present, video platforms have become multifunctional platforms for people to obtain information, entertain, learn, and socialize. Video platforms provide the function of synthesizing videos, which can synthesize various materials provided by users into one video. At the same time, in order to let users know the progress of video synthesis processing, the progress of video synthesis processing will be displayed on the page.

[0003] In the prior art, the video platform will display the actual progress of the video synthesis processing. However, before performing the video synthesis processing, the system resources required for the video synthesis processing need to be loaded. During the loading of the system resources, the video synthesis progress will always be displayed as no progress. In low-end models and when the material resolution is high, the time displayed as no progress will be longer, which will cause users to feel that the video synthesis process is stuck, thereby affecting the user experience. Summary of the invention

[0004] In view of the above problems, the present application is proposed to provide a video synthesis progress processing method, apparatus, computing device, computer storage medium and computer program product that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present application, a video synthesis progress processing method is provided, including:

[0006] Receive video synthesis instructions and jump to the video publishing page;

[0007] Rendering a video synthesis progress display element in a video publishing page according to the first simulated synthesis progress; wherein the first simulated synthesis progress is dynamically updated with time;

[0008] When the progress switching condition is detected, the real synthesis progress of the video synthesis processing is obtained;

[0009] A second simulated synthesis progress is determined according to the actual synthesis progress, and a video synthesis progress display element in the video publishing page is rendered according to the second simulated synthesis progress.

[0010] Optionally, when it is detected that a progress switching condition is met, the method further includes:

[0011] Stop updating the first simulation synthesis progress;

[0012] Determining the second simulated synthesis progress according to the real synthesis progress further includes:

[0013] The second simulated synthesis progress is calculated according to the first simulated synthesis progress and the real synthesis progress when the updating is stopped.

[0014] Optionally, before obtaining the real synthesis progress of the video synthesis process, the method further includes:

[0015] Monitoring the loading progress of system resources and the progress of the first simulation synthesis;

[0016] If it is monitored that the system resources have been loaded completely, or if it is monitored that the first simulation synthesis progress has reached a preset progress threshold, it is determined that the progress switching condition is met.

[0017] Optionally, after receiving the video synthesis instruction, the method further includes: starting a background sub-thread for loading system resources.

[0018] Optionally, after receiving the video synthesis instruction, the method further includes:

[0019] Create a timer, and calculate the first simulation synthesis progress according to the time information of the timer;

[0020] If it is detected that the system resource loading is complete or the timer time is reached, the timer is destroyed; if it is detected that the timer is destroyed, it is determined that the progress switching condition is met.

[0021] Optionally, the video synthesis progress display element is used to display a progress value and / or a progress animation.

[0022] Optionally, determining the second simulated synthesis progress according to the real synthesis progress further includes:

[0023] If the real synthesis progress is a progress indicating that the video synthesis process has been completed, the second simulated synthesis progress is set to be consistent with the real synthesis progress.

[0024] Optionally, calculating the second simulated synthesis progress according to the first simulated synthesis progress and the real synthesis progress when the updating is stopped further includes:

[0025] The actual synthesis progress is multiplied by the preset ratio, the product obtained by the multiplication is added to the first simulated synthesis progress when the updating is stopped, and the sum obtained by the addition is determined as the second simulated synthesis progress.

[0026] According to another aspect of the present application, a video synthesis progress processing device is provided, comprising:

[0027] A receiving module, adapted to receive a video synthesis instruction;

[0028] Jump module, suitable for jumping to and displaying the video publishing page;

[0029] A rendering module, adapted to render a video synthesis progress display element in a video publishing page according to a first simulated synthesis progress; wherein the first simulated synthesis progress is dynamically updated with time;

[0030] The processing module is adapted to obtain the real synthesis progress of the video synthesis processing when the progress switching condition is satisfied; and determine the second simulated synthesis progress according to the real synthesis progress;

[0031] The rendering module is further adapted to render a video synthesis progress display element in the video publishing page according to the second simulated synthesis progress.

[0032] Optionally, the processing module is further adapted to: stop updating the first simulated synthesis progress when monitoring that a progress switching condition is met; and calculate the second simulated synthesis progress according to the first simulated synthesis progress when updating is stopped and the real synthesis progress.

[0033] Optionally, the device further comprises:

[0034] A monitoring module, adapted to monitor the loading progress of system resources and the progress of the first simulation synthesis;

[0035] If it is monitored that the system resources have been loaded completely, or if it is monitored that the first simulation synthesis progress has reached a preset progress threshold, it is determined that the progress switching condition is met.

[0036] Optionally, the device further comprises: an opening module, adapted to open a background sub-thread for loading system resources after receiving the video synthesis instruction.

[0037] Optionally, the processing module is further adapted to: after receiving the video synthesis instruction, create a timer, and calculate the first simulation synthesis progress according to the time information of the timer;

[0038] If it is detected that the system resource loading is complete or the timer time is reached, the timer is destroyed; if it is detected that the timer is destroyed, it is determined that the progress switching condition is met.

[0039] Optionally, the video synthesis progress display element is used to display a progress value and / or a progress animation.

[0040] Optionally, the processing module is further adapted to: if the actual synthesis progress is a progress indicating that the video synthesis process has been completed, set the second simulated synthesis progress to be consistent with the actual synthesis progress.

[0041] Optionally, the processing module is further adapted to: multiply the actual synthesis progress by a preset ratio, add the product obtained by the multiplication to the first simulated synthesis progress when the updating is stopped, and determine the sum obtained by the addition as the second simulated synthesis progress.

[0042] According to another aspect of the present application, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0043] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned video synthesis progress processing method.

[0044] According to another aspect of the present application, a computer storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned video synthesis progress processing method.

[0045] According to another aspect of the present application, a computer program product is provided, comprising at least one executable instruction, wherein the executable instruction enables a processor to perform operations corresponding to the above-mentioned video synthesis progress processing method.

[0046] According to the video synthesis progress processing method, device, computing device, computer storage medium and computer program product provided by the embodiment of the present application, the method includes: receiving a video synthesis instruction, jumping to display the video publishing page; rendering the video synthesis progress display element in the video publishing page according to the first simulated synthesis progress; wherein the first simulated synthesis progress is dynamically updated with the change of time; when monitoring that the progress switching condition is met, obtaining the real synthesis progress of the video synthesis processing; determining the second simulated synthesis progress according to the real synthesis progress, and rendering the video synthesis progress display element in the video publishing page according to the second simulated synthesis progress. Through the above method, after jumping to the video publishing page, a simulated synthesis progress that is dynamically updated with time is immediately generated for rendering the video synthesis progress display element, and the video synthesis progress display element is rendered according to the real synthesis progress when certain conditions are met, which solves the problem of the prior art that the video synthesis progress is displayed as no progress during the system resource loading process, and presents the effect of starting to synthesize the video after clicking the synthesis button to the user, avoiding the feeling of freeze in the video synthesis process to the user, thereby improving the user experience.

[0047] Furthermore, when the first simulated synthesis progress reaches a preset progress threshold, the updating of the first simulated synthesis progress is stopped, and the video synthesis progress display element is switched to be rendered according to the second simulated synthesis progress, so as to avoid the situation where the displayed video synthesis progress indicates that the video synthesis processing has been completed but in fact the video synthesis processing has not been completed.

[0048] Furthermore, when it is monitored that the system resources have been loaded, the updating of the first simulated synthesis progress is stopped, and the real synthesis progress is obtained at the same time, the second simulated synthesis progress is determined according to the first simulated synthesis progress and the real synthesis progress when the updating is stopped, and the video synthesis progress display element is rendered according to the second simulated synthesis progress, so as to ensure that the video synthesis progress displayed on the video publishing page is continuous, avoid the problem that the video synthesis progress displayed on the video publishing page jumps to a smaller progress, and ensure that when the video publishing page displays that the video synthesis processing has been completed, the video synthesis processing has actually been completed.

[0049] Furthermore, by starting a background sub-thread for loading system resources, the problem of excessive load on the main thread and slow processing speed caused by loading system resources in the main thread is avoided.

[0050] Furthermore, by monitoring the state of the timer to determine whether the progress switching condition is met, the monitoring process can be simplified.

[0051] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0053] Figure 1 A flowchart of a video synthesis progress processing method provided by an embodiment of the present application is shown;

[0054] Figure 2 A flowchart of a video synthesis progress processing method provided by another embodiment of the present application is shown;

[0055] Figure 3 A schematic diagram of a video publishing page provided by another embodiment of the present application is shown;

[0056] Figure 4 A schematic diagram showing a flow chart of a method for processing video synthesis progress provided by another embodiment of the present application;

[0057] Figure 5 A functional structure diagram of a video synthesis progress processing device provided in an embodiment of the present application is shown;

[0058] Figure 6A schematic diagram of the structure of a computing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0059] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0060] First, the terms involved in one or more embodiments of the present application are explained.

[0061] Video synthesis: refers to the process of combining video clips, images, graphics, text, special effects and other elements to create a single, coherent video content.

[0062] Thread: It is the smallest unit that the operating system can schedule operations. It is contained in the process and is the actual operation unit in the process. A thread refers to a single sequential control flow in the process. Multiple threads can run concurrently in a process, and each thread executes different tasks in parallel.

[0063] Display elements: They are the basic components of web page content. They work together to present the final interface that users see in the browser.

[0064] Timer: focuses on the timing function, that is, setting a specific time in advance and triggering an event or operation when it arrives.

[0065] UI thread: User Interface Thread, also commonly known as Main Thread, plays a vital role in graphical interface applications. Its main responsibilities include drawing and updating the interface, event handling, cross-thread communication, etc.

[0066] Figure 1 FIG. 1 is a flowchart of a method for processing video synthesis progress provided by an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0067] Step S110, receiving a video synthesis instruction and jumping to display the video publishing page.

[0068] Among them, the video synthesis instruction is triggered in response to the operation performed by the user for synthesizing the video. For example, after the user has uploaded all the materials to be synthesized, he clicks the synthesis button in the video platform, and the video synthesis instruction is triggered in response to the operation of clicking the synthesis button.

[0069] After receiving the video synthesis instruction, the front end jumps to display the video publishing page, which contains editing options, function controls, video synthesis progress display elements, etc. At the same time, related tasks involved in video synthesis processing will be started.

[0070] Step S120, rendering a video synthesis progress display element in the video publishing page according to the first simulated synthesis progress.

[0071] Among them, the first simulated synthesis progress is dynamically updated with the change of time, that is, the first simulated synthesis progress is a variable that gradually increases with the increase of time. The first simulated synthesis progress is updated from 0 and is always less than the progress indicating that the video synthesis processing has been completed. The first simulated synthesis progress can be in the form of a percentage.

[0072] The video publishing page includes a video synthesis progress display element for displaying the video synthesis progress, and the video synthesis progress can be displayed in one or more forms. For example, the video synthesis progress display element includes a character display element for displaying a specific progress value, and the progress value is in the form of a percentage. When 0% is displayed, it means that there is no progress in the video synthesis process (that is, the video synthesis process has not started), and when 100% is displayed, it means that the video synthesis process has been completed. For another example, the video synthesis progress display element includes an animation display element for displaying a progress animation, such as a progress bar animation, by changing the appearance of the progress bar to match the progress to be displayed, for example, changing the length of the progress bar to indicate different video synthesis process progress.

[0073] This step is executed under the trigger of the update event of the first simulation synthesis progress, that is, whenever a new first simulation synthesis progress is generated, the progress value displayed in the video publishing page is updated to the new first simulation synthesis progress, or the progress bar is updated to the style corresponding to the new first simulation synthesis progress.

[0074] It should be noted that after receiving the video synthesis instruction, the relevant system resources required for the video synthesis processing need to be loaded first. The video synthesis processing can only be performed after the system resources are loaded. During the system resource loading process, since the video synthesis processing has not yet started, the existing video platform usually displays the video synthesis progress as 0% or does not display the video synthesis progress. After the system resources are loaded, the real video synthesis progress is obtained for display. In the method of this embodiment, after receiving the video synthesis instruction, a gradually increasing simulated synthesis progress is displayed to indicate that the video synthesis processing is always in progress, so as to avoid giving the user the feeling of a freeze in the video synthesis process.

[0075] Step S130, when it is monitored that the progress switching condition is met, the real synthesis progress of the video synthesis processing is obtained.

[0076] For example, if it is monitored that the video synthesis process has started or the first simulation synthesis progress has increased to a specified value, it is determined that the progress switching condition is met.

[0077] After the progress switching condition is met, the video synthesis progress display element is no longer rendered according to the first simulated synthesis progress, but a second simulated synthesis progress is calculated according to the real synthesis progress of the video synthesis process, and the video synthesis progress display element is rendered according to the second simulated synthesis progress. Wherein, both the real synthesis progress and the second simulated synthesis progress can be in percentage form.

[0078] Step S140, determining a second simulated synthesis progress according to the actual synthesis progress, and rendering a video synthesis progress display element in the video publishing page according to the second simulated synthesis progress.

[0079] The real synthesis progress is directly determined as the second simulated synthesis progress, or the second simulated synthesis progress is calculated according to the real synthesis progress and other factors, and the video synthesis progress display element in the video publishing page is rendered according to the second simulated synthesis progress. Specifically, the second simulated synthesis progress, i.e., the progress percentage, is rendered in a character display element, and / or a progress bar animation element is rendered according to the second simulated synthesis progress.

[0080] In summary, according to the video synthesis progress processing method provided by this embodiment, a video synthesis instruction is received, and a video publishing page is jumped to display; a video synthesis progress display element in the video publishing page is rendered according to a first simulated synthesis progress; wherein the first simulated synthesis progress is dynamically updated with time; when it is monitored that a progress switching condition is met, the real synthesis progress of the video synthesis processing is obtained; a second simulated synthesis progress is determined according to the real synthesis progress, and the video synthesis progress display element in the video publishing page is rendered according to the second simulated synthesis progress. In the above manner, after jumping to the video publishing page, a simulated synthesis progress that is dynamically updated with time is immediately generated for rendering the video synthesis progress display element, and the video synthesis progress display element is rendered according to the real synthesis progress when certain conditions are met, which solves the problem of the prior art that the video synthesis progress is displayed as no progress during the system resource loading process, and presents the user with the effect of starting to synthesize the video after clicking the synthesis button, avoiding the user's feeling of freeze during the video synthesis process, thereby improving the user experience.

[0081] Figure 2 A flowchart of a video synthesis progress processing method provided by another embodiment of the present application is shown.

[0082] like Figure 2 As shown, the method comprises the following steps:

[0083] Step S210, receiving a video synthesis instruction, jumping to a video publishing page, and starting a background sub-thread for loading system resources.

[0084] After the user finishes editing the video, he clicks a synthesis button on the editing interface, and in response to the user's click operation on the synthesis button, a video synthesis instruction is generated.

[0085] After receiving the video synthesis instruction, the video publishing page is jumped through the main thread (ie, the UI thread), that is, the video publishing page is jumped normally on the UI.

[0086] At the same time, a background sub-thread is started to load system resources, including resources required by the synthesis engine, etc. The synthesis engine is used to perform video synthesis processing, and the background sub-thread will not block the UI thread. In the prior art, the loading of system resources is realized through the main thread, which increases the load of the main thread. In this embodiment, by starting the background sub-thread to load system resources, it is possible to avoid blocking the main thread, thereby speeding up the loading speed of system resources.

[0087] Step S220: Rendering a video synthesis progress display element in the video publishing page according to the first simulated synthesis progress, wherein the first simulated synthesis progress is dynamically updated with time.

[0088] In an optional manner, the timing starts from when the video synthesis instruction is received, and the first simulation synthesis progress is updated at a constant rate as time increases. For example, the first simulation synthesis progress increases by 1% every time the time increases by 0.1 second.

[0089] Step S230, monitoring whether the progress switching condition is met.

[0090] After the system resources are loaded, the video synthesis processing is performed, and the real synthesis progress of the video synthesis processing can be obtained. Therefore, the real synthesis progress of the video synthesis processing can be introduced after the system resources are loaded.

[0091] Specifically, the loading progress of the system resources is monitored to determine whether the progress switching condition is met. If the system resources are monitored to be loaded, the progress switching condition is determined to be met. The loading progress of the loading task in the background sub-thread is monitored. If the system resources are loaded, the progress switching condition is determined to be met; if the system resources are not loaded, the progress switching condition is determined not to be met.

[0092] Since the first simulation synthesis progress gradually increases with time, if the system resources are not loaded when the first simulation synthesis progress reaches 100%, the video synthesis progress displayed in the video publishing page indicates that the video synthesis process has been completed, but in fact the video synthesis process has not started.

[0093] In order to avoid the above problems, it is necessary to monitor the progress of the first simulation synthesis at the same time. If it is monitored that the progress of the first simulation synthesis reaches a preset progress threshold, and the preset progress threshold is less than the progress indicating that the video synthesis process has been completed (i.e., 100%), the video synthesis progress display element is no longer rendered according to the progress of the first simulation synthesis. That is, by monitoring the progress of the first simulation synthesis, it is used to determine whether the progress switching condition is met. If it is monitored that the progress of the first simulation synthesis reaches the preset progress threshold, it is determined that the progress switching condition is met.

[0094] In an optional manner, after receiving a video synthesis instruction, a timer is created, and the first simulation synthesis progress is calculated based on the time information of the timer; wherein, if it is detected that the system resources have been loaded or the timer timing has been reached, the timer is destroyed. Accordingly, monitoring whether the progress switching condition is met is specifically: monitoring whether the timer is destroyed, and if the timer is destroyed, it is determined that the progress switching condition is met. In this manner, when the timer expires or when it is detected that the system resources have been loaded, an instruction to destroy the timer is triggered to destroy the timer. Since the first simulation synthesis progress is updated according to the length of time recorded by the timer, the first simulation synthesis progress is no longer updated after the timer is destroyed.

[0095] Among them, a timer can be implemented in the main thread, and the main thread can determine whether the progress switching condition is met by monitoring the state of the timer. In addition, when the background sub-thread completes the loading of system resources, it sends a notification message to the main thread to notify the main thread that the system resources have been loaded.

[0096] Step S240, when it is monitored that the progress switching condition is met, the updating of the first simulated synthesis progress is stopped, and the real synthesis progress of the video synthesis processing is obtained.

[0097] When it is monitored that the progress switching condition is met, the updating of the first simulated synthesis progress is stopped, and the real synthesis progress of the video synthesis processing is started to be obtained to calculate the second simulated synthesis progress.

[0098] In an optional method, the actual synthesis progress of the video synthesis processing is determined as follows: decomposing the video synthesis task into multiple subtasks; estimating the processing time for each subtask, and revising the estimated processing time of each subtask in real time according to the consumption of system resources; calculating the actual synthesis progress based on the consumed time and the estimated processing time of each subtask.

[0099] Step S250, calculating a second simulated synthesis progress according to the first simulated synthesis progress and the real synthesis progress when the updating is stopped.

[0100] When the progress switching conditions are met, the video synthesis progress displayed on the video publishing page is the first simulated synthesis progress when the update is stopped. Afterwards, if the video synthesis progress display element is rendered directly according to the real synthesis progress, the displayed video synthesis progress will jump from the first simulated synthesis progress when the update is stopped to 0%, and then gradually increase, resulting in discontinuous video synthesis progress display. In addition, since some preparation work (including resource calculation, etc.) still needs to be done during the video synthesis process, the video synthesis progress displayed during the preparation work is still 0%, resulting in the video synthesis progress being displayed as 0% for a long period of time.

[0101] Based on this, in the method of this embodiment, the real synthesis progress of the video synthesis processing is obtained, and according to the first simulated synthesis progress when the update is stopped and the real synthesis progress, a second simulated synthesis progress is calculated for rendering the video synthesis progress display element.

[0102] Specifically, the real synthesis progress is multiplied by the preset ratio, the product obtained by the multiplication is added to the first simulated synthesis progress when the update is stopped, and the sum obtained by the addition is determined as the second simulated synthesis progress, and the preset ratio is greater than 0. In this way, the video synthesis progress displayed in the video publishing page is always continuous.

[0103] In actual use, users will decide the next action based on the video synthesis progress displayed on the video publishing page. For example, if the video synthesis progress displayed on the video publishing page indicates that the video synthesis process has been completed, the user wants to publish the synthesized video or save it to the draft box. Therefore, it is necessary to ensure that when the displayed video synthesis progress indicates that the video synthesis process has been completed, the actual video synthesis process has also been completed.

[0104] Specifically, if the real synthesis progress is the progress indicating that the video synthesis process has been completed, the second simulated synthesis progress is set to be consistent with the real synthesis progress. That is, when the real progress of the video synthesis process reaches 100%, the second simulated synthesis progress is also set to 100%, thereby ensuring that when the displayed video synthesis progress indicates that the video synthesis process has been completed, the actual video synthesis process has also been completed.

[0105] In an optional manner, the second simulation synthesis progress is calculated in the following manner:

[0106] progress_c=progress_a+progress_b*(1-progress_a)

[0107] Among them, progress_c represents the second simulated synthesis progress, progress_a represents the first simulated synthesis progress when the update is stopped, and progress_b represents the real synthesis progress, wherein (1-progress_a) is the above-mentioned preset ratio. In this way, when progress_b=100%, progress_c=100%, that is, when the video synthesis progress displayed on the video publishing page is 100%, the video synthesis process is also completed.

[0108] Step S260: Rendering a video synthesis progress display element in the video publishing page according to the second simulated synthesis progress.

[0109] The second simulation synthesis progress, that is, the progress percentage, is rendered in a character display element, and / or a progress bar animation element is rendered according to the second simulation synthesis progress.

[0110] Figure 3 A schematic diagram of a video publishing page provided by another embodiment of the present application is shown. Figure 3 As shown, the character display element 31 is used to display the progress value, the animation display element 32 is used to display the progress bar, and a plurality of function controls are also displayed in the video publishing page for operating the target video obtained by the video synthesis processing. For example, the first operation control 33 is used to store the target video in the draft box, and the second operation control 34 is used to publish the target video online.

[0111] In an optional manner, if the actual synthesis progress indicates that the video synthesis processing is not completed, the above-mentioned function control for operating the target video is set to a disabled state, and does not respond to the user's operation in the disabled state; or, if the actual synthesis progress indicates that the video synthesis processing is not completed, in response to the user's triggering operation on the function control, a prompt message that the video synthesis is not completed is displayed; if the actual synthesis progress indicates that the video synthesis processing is completed, the above-mentioned function control is set to an enabled state, and responds to the user's operation in the enabled state.

[0112] In summary, according to the video synthesis progress processing method provided by the present embodiment, on the one hand, after jumping to the video publishing page, a simulated synthesis progress that is dynamically updated with time is immediately generated for rendering the video synthesis progress display element, and the video synthesis progress display element is rendered according to the real synthesis progress when certain conditions are met, thereby solving the problem of the prior art that the video synthesis progress is displayed as no progress during the system resource loading process, and presenting the effect that the video synthesis starts after clicking the synthesis button to the user, thereby avoiding the feeling of freeze in the video synthesis process to the user, thereby improving the user experience; on the other hand, when the first simulated synthesis progress reaches the preset progress threshold, the first simulated synthesis progress is stopped from being updated, and the video synthesis progress display element is switched to be rendered according to the second simulated synthesis progress, thereby avoiding the displayed video synthesis progress indicating that the video synthesis processing has been completed but the actual video On the other hand, when it is monitored that the system resources have been loaded, the updating of the first simulated synthesis progress is stopped, and the real synthesis progress is obtained at the same time, and the second simulated synthesis progress is determined according to the first simulated synthesis progress and the real synthesis progress when the updating is stopped, and the video synthesis progress display element is rendered according to the second simulated synthesis progress to ensure that the video synthesis progress displayed on the video publishing page is continuous, avoid the problem that the video synthesis progress displayed on the video publishing page jumps to a smaller progress, and ensure that the video synthesis processing is actually completed when the video publishing page displays that the video synthesis processing is completed; on the other hand, by starting a background sub-thread for loading system resources, the problem of excessive main thread load and slow processing speed caused by loading system resources in the main thread is avoided; on the other hand, by monitoring the status of the timer to determine whether the progress switching conditions are met, the monitoring process can be simplified.

[0113] Figure 4 FIG. 2 shows a flow chart of a method for processing video synthesis progress according to another embodiment of the present application. Figure 4 As shown, the method comprises the following steps:

[0114] Step S401, receiving a video synthesis instruction. After completing video editing, the user clicks a synthesis control in the page, thereby triggering the video synthesis instruction.

[0115] After receiving the video synthesis instruction, step S402 and step S407 are executed in parallel.

[0116] Step S402, page jump, that is, the main thread jumps to the video publishing page normally.

[0117] Step S403, create a timer. After jumping to the video publishing page, create a timer.

[0118] Step S404, monitoring whether the timing time is reached; if so, executing step S405; if not, continuing to monitor whether the timing time is reached, and executing step S406;

[0119] Step S405, destroy the timer.

[0120] Step S406: Rendering a video synthesis progress display element according to the first simulated synthesis progress.

[0121] After the timer is created, it is continuously monitored whether the timer's timing is reached. If it is not reached, the video synthesis progress display element is rendered according to the first simulation synthesis progress; if it is reached, the timer is destroyed.

[0122] Step S407, start a background sub-thread, the background sub-thread is used to load the synthesis engine.

[0123] Step S408, monitor whether the synthesis engine is loaded; if so, execute step S405; if not, continue to monitor whether the synthesis engine is loaded.

[0124] After starting the background child thread, continuously monitor whether the synthesis engine has been loaded, and destroy the timer when the synthesis engine has been loaded.

[0125] Step S409: Rendering a video synthesis progress display element according to the second simulated synthesis progress.

[0126] After the timer is destroyed, the second simulation synthesis progress is calculated, and the video synthesis progress display element is rendered according to the second simulation synthesis progress.

[0127] Figure 5 The functional structure diagram of the video synthesis progress processing device provided by the embodiment of the present application is shown. Figure 5 As shown, the device comprises:

[0128] A receiving module 51, adapted to receive a video synthesis instruction;

[0129] A jump module 52, adapted to jump to a video publishing page;

[0130] A rendering module 53, adapted to render a video synthesis progress display element in a video publishing page according to the first simulated synthesis progress; wherein the first simulated synthesis progress is dynamically updated with time;

[0131] The processing module 54 is adapted to obtain the real synthesis progress of the video synthesis processing when the progress switching condition is satisfied; and determine the second simulated synthesis progress according to the real synthesis progress;

[0132] The rendering module 53 is further adapted to render a video synthesis progress display element in the video publishing page according to the second simulated synthesis progress.

[0133] In an optional manner, the processing module 54 is further adapted to: stop updating the first simulation synthesis progress when monitoring that the progress switching condition is met; and calculate the second simulation synthesis progress according to the first simulation synthesis progress when the updating is stopped and the real synthesis progress.

[0134] In an optional manner, the device further comprises:

[0135] A monitoring module, adapted to monitor the loading progress of system resources and the progress of the first simulation synthesis;

[0136] If it is monitored that the system resources have been loaded completely, or if it is monitored that the first simulation synthesis progress has reached a preset progress threshold, it is determined that the progress switching condition is met.

[0137] In an optional manner, the device further includes: an enabling module, adapted to enable a background sub-thread for loading system resources after receiving the video synthesis instruction.

[0138] In an optional manner, the processing module 54 is further adapted to: after receiving the video synthesis instruction, create a timer, and calculate the first simulation synthesis progress according to the time information of the timer;

[0139] If it is detected that the system resource loading is complete or the timer time is reached, the timer is destroyed; if it is detected that the timer is destroyed, it is determined that the progress switching condition is met.

[0140] In an optional manner, the video synthesis progress display element is used to display a progress value and / or a progress animation.

[0141] In an optional manner, the processing module 54 is further adapted to: if the actual synthesis progress is a progress indicating that the video synthesis process has been completed, setting the second simulated synthesis progress to be consistent with the actual synthesis progress.

[0142] In an optional manner, the processing module 54 is further adapted to: multiply the actual synthesis progress by a preset ratio, add the product obtained by the multiplication to the first simulated synthesis progress when the updating is stopped, and determine the sum obtained by the addition as the second simulated synthesis progress.

[0143] To sum up, according to the video synthesis progress processing device provided by this embodiment, after jumping to the video publishing page, a simulated synthesis progress that is dynamically updated with time is immediately generated for rendering the video synthesis progress display element. When certain conditions are met, the video synthesis progress display element is rendered according to the real synthesis progress. This solves the problem of the prior art that the video synthesis progress is displayed as no progress during the system resource loading process, and presents the user with the effect of starting to synthesize the video after clicking the synthesis button, avoiding the user's feeling of freeze during the video synthesis process, thereby improving the user experience.

[0144] An embodiment of the present application provides a non-volatile computer storage medium, which stores at least one executable instruction or computer program, and the executable instruction or computer program can enable a processor to perform operations corresponding to the video synthesis progress processing method in any of the above method embodiments.

[0145] An embodiment of the present application provides a computer program product, which includes at least one executable instruction or computer program, and the executable instruction or computer program can enable a processor to perform operations corresponding to the video synthesis progress processing method in any of the above method embodiments.

[0146] Figure 6 A schematic diagram of the structure of an embodiment of a computing device of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the computing device.

[0147] like Figure 6 As shown, the computing device may include: a processor (processor) 602 , a communications interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .

[0148] The processor 602, the communication interface 604, and the memory 606 communicate with each other via a communication bus 608. The communication interface 604 is used to communicate with other devices such as a client or other server network elements. The processor 602 is used to execute a program 610, which can specifically execute the relevant steps in the above-mentioned video synthesis progress processing method embodiment for a computing device.

[0149] Specifically, the program 610 may include program codes, which include computer operation instructions.

[0150] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0151] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0152] Program 610 can be specifically used to enable processor 602 to execute the video synthesis progress processing method in any of the above method embodiments. The specific implementation of each step in program 610 can refer to the corresponding description in the corresponding steps and units in the video synthesis progress processing embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.

[0153] The algorithm or display provided here are not inherently related to any specific computer, virtual system or other equipment. Various general systems can also be used together with the teaching based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present application described here, and the above description of specific languages ​​is to disclose the best mode of implementation of the present application.

[0154] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0155] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed application requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present application.

[0156] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0157] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

[0158] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to the embodiments of the present application. The application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0159] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A video synthesis progress processing method, comprising: Receive video synthesis instructions and jump to the video publishing page; Rendering a video synthesis progress display element in the video publishing page according to the first simulated synthesis progress; wherein the first simulated synthesis progress is dynamically updated with time; When the progress switching condition is detected, the real synthesis progress of the video synthesis processing is obtained; A second simulated synthesis progress is determined according to the actual synthesis progress, and a video synthesis progress display element in the video publishing page is rendered according to the second simulated synthesis progress.

2. The method according to claim 1, wherein: When it is detected that the progress switching condition is met, the method further includes: Stop updating the first simulation synthesis progress; Determining the second simulated synthesis progress according to the real synthesis progress further includes: The second simulated synthesis progress is calculated according to the first simulated synthesis progress when the updating is stopped and the real synthesis progress.

3. The method according to claim 1, wherein: Before obtaining the real synthesis progress of the video synthesis process, the method further includes: Monitoring the loading progress of system resources and the progress of the first simulation synthesis; If it is monitored that the system resources have been loaded completely, or if it is monitored that the first simulation synthesis progress has reached a preset progress threshold, it is determined that the progress switching condition is met.

4. The method according to claim 3, wherein: After receiving the video synthesis instruction, the method further includes: starting a background sub-thread for loading the system resources.

5. The method according to any one of claims 1 to 4, wherein: After receiving the video synthesis instruction, the method further comprises: Creating a timer, and calculating the first simulation synthesis progress according to the time information of the timer; If it is monitored that the system resource loading is completed or the timer time is reached, the timer is destroyed; if it is monitored that the timer is destroyed, it is determined that the progress switching condition is met.

6. The method according to any one of claims 1 to 5, wherein: The video synthesis progress display element is used to display a progress value and / or a progress animation.

7. The method according to claim 1 or 2, wherein: Determining the second simulated synthesis progress according to the real synthesis progress further includes: If the real synthesis progress is a progress indicating that the video synthesis process has been completed, the second simulated synthesis progress is set to be consistent with the real synthesis progress.

8. The method according to claim 7, wherein: The calculating the second simulation synthesis progress according to the first simulation synthesis progress when the updating is stopped and the real synthesis progress further comprises: The actual synthesis progress is multiplied by a preset ratio, the product obtained by the multiplication is added to the first simulated synthesis progress when the updating is stopped, and the sum obtained by the addition is determined as the second simulated synthesis progress.

9. A video synthesis progress processing device, comprising: A receiving module, adapted to receive a video synthesis instruction; Jump module, suitable for jumping to and displaying the video publishing page; A rendering module, adapted to render a video synthesis progress display element in the video publishing page according to the first simulated synthesis progress; The first simulation synthesis progress is dynamically updated with time changes; A processing module, adapted to obtain a real synthesis progress of the video synthesis process when a progress switching condition is detected, and determine a second simulated synthesis progress according to the real synthesis progress; The rendering module is further adapted to render a video synthesis progress display element in the video publishing page according to the second simulation synthesis progress.

10. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the video synthesis progress processing method as described in any one of claims 1-8.

11. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and wherein the executable instruction enables a processor to execute operations corresponding to the video synthesis progress processing method as described in any one of claims 1 to 8.

12. A computer program product, comprising at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the video synthesis progress processing method according to any one of claims 1 to 8.