Cloud application screen processing method and device, electronic device and storage medium
By calculating the delay adjustment coefficient and the number of video frames in the decoding cache in the cloud application technology, a reasonable delay time is determined, which solves the problem of the video frame push interval of the decoder when the network jitters or performance is insufficient, and reduces the cloud application screen It reduces the lag and improves the stability of picture playback.
Patent Information
- Application Number
- CN202411035403.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-31
AI Technical Summary
In existing cloud application technology, the decoder fails to effectively control the push interval of video frames when the network jitters or the performance is insufficient, resulting in cloud application screen freezes.
The decoder determines the delay adjustment coefficient and the number of video frames in the decoding buffer, and calculates a reasonable delay time, so as to obtain the cloud application picture in the receiving buffer of the receiving module and put it into the decoding buffer to smooth the output of the decoder.
It reduces lags in cloud application screens, optimizes decoding lags caused by network jitter and insufficient performance, and improves the stability of cloud application screen playback.
Smart Images

Figure CN118573928B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud applications, and in particular to a cloud application screen processing method and device, electronic equipment and storage medium. Background Art
[0002] With the development of cloud application technology (such as cloud gaming), this application operation mode with low performance consumption of user terminals is increasingly accepted by application companies, platforms and users. In the existing solution, the decoder reads a video frame from the receiving buffer FrameBuffer of the network receiving module each time and pushes this video frame to the input buffer of the decoder. However, since this process does not control the interval of pushing input data to the decoder, when the network jitter is serious within a certain period of time, a large number of video frames will be received in a short period of time, or when the decoder performance is insufficient due to factors such as CPU and memory, too many undecoded video frames will accumulate in the decoder input buffer, causing the cloud application screen to freeze.
[0003] Therefore, how to provide a cloud application screen processing solution to reduce the freeze of cloud application screens has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of the technical problems existing in the prior art, the embodiments of the present application provide a cloud application screen processing method and device, an electronic device and a storage medium.
[0005] In a first aspect, an embodiment of the present application provides a cloud application screen processing method, which is applied to a terminal, comprising:
[0006] The decoder determines a delay adjustment coefficient, and calculates a delay time according to the delay adjustment coefficient and the number of cloud application screens in a decoding buffer of the decoder;
[0007] After waiting for the delay time, the decoder obtains a frame of the cloud application screen from the receiving buffer of the receiving module, and puts the obtained cloud application screen into the decoding buffer.
[0008] In a second aspect, an embodiment of the present application further provides a cloud application screen processing device, which is applied to a terminal, comprising:
[0009] Decoder for:
[0010] Determine a delay adjustment coefficient, and calculate the delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoder buffer of the decoder; and
[0011] After waiting for the delay time, a frame of cloud application screen is obtained from the receiving buffer of the receiving module, and the obtained cloud application screen is placed in the decoding buffer.
[0012] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the cloud application screen processing method described in the first aspect are executed.
[0013] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the cloud application screen processing method described in the first aspect.
[0014] In summary, the cloud application screen processing method and device, electronic device and storage medium provided by the embodiments of the present application, the decoder calculates the delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoding cache of the decoder, and delays the time to obtain the cloud application screen from the receiving cache of the receiving module by the delay time. Compared with the prior art that does not control the interval for pushing input data to the decoder, the present scheme can determine the reasonable time interval for pushing data to the decoder according to the adjustment coefficient and the number of cloud application screens in the decoding cache of the decoder to push the cloud application screen, thereby reducing the freeze of the cloud application screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of an embodiment of a cloud application screen processing method provided in an embodiment of the present application;
[0016] Figure 2 A schematic diagram of the structure of an embodiment of a cloud application screen processing device provided in an embodiment of the present application;
[0017] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0019] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0020] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0021] Reference Figure 1 FIG. 1 is a flow chart of a cloud application screen processing method provided in an embodiment of the present application. The cloud application screen processing method is applied to a terminal and includes:
[0022] S10, the decoder determines a delay adjustment coefficient, and calculates a delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoder's decoding buffer;
[0023] In the present embodiment, it should be noted that each time before the decoder obtains the cloud application screen from the receiving cache of the receiving module, it determines the delay adjustment coefficient, calculates the delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoding cache of the current decoder, and then delays the delay time and obtains a frame of cloud application screen from the receiving cache of the receiving module. In other words, the time interval for inputting cloud application screen data into the decoder is determined according to the current decoding capability of the decoder, so that the decoding capability of the decoder matches the input data, so that the cloud application screen output by the decoder can be smoothed, thereby reducing the freeze of the cloud application screen.
[0024] S11. After waiting for a delay time, the decoder obtains a frame of the cloud application screen from the receiving buffer of the receiving module, and puts the obtained cloud application screen into the decoding buffer.
[0025] The cloud application screen processing method provided in the embodiment of the present application, the decoder calculates the delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoding cache of the decoder, and delays the time of obtaining the cloud application screen from the receiving cache of the receiving module by the delay time. Compared with the prior art that does not control the interval of pushing input data to the decoder, the present scheme can determine the reasonable time interval for pushing data to the decoder according to the adjustment coefficient and the number of cloud application screens in the decoding cache of the decoder to push the cloud application screen, thereby reducing the freeze of the cloud application screen.
[0026] Based on the foregoing method embodiment, the decoder determines the delay adjustment coefficient, which may include:
[0027] The decoder obtains the prediction parameters X from the receiving module k , and according to the prediction parameter X k Determine the delay adjustment coefficient smooth_slope, where smooth_slope=1 / X k .
[0028] In this embodiment, it should be noted that the receiving module calculates a prediction parameter once each time it receives a frame of a cloud application screen sent by the cloud server, that is, the prediction parameter X k Before the decoder obtains the cloud application screen from the receiving buffer of the receiving module, the decoder obtains the latest prediction parameters from the receiving module.
[0029] Based on the above method embodiment, the decoder obtains the prediction parameter X from the receiving module k Before, the method may further include:
[0030] The receiving module calculates the prediction parameter X using the prediction equation and update equation every time it receives a frame of the cloud application screen. k , where the prediction equation includes: X k =X k-1 and P k =P k-1 +w,X k Indicates the prediction parameter to be calculated currently, X k-1 Represents the prediction parameter calculated last time, P k Represents the variance of the entire estimation process to be calculated, P k-1 represents the variance of the entire estimation process calculated last time, and w represents the variance of the system noise;
[0031] The update equation includes: X k =X k +K×(Y k -C×X k ), K=P k / (P k +v), P k = (1-K × C) × P k , K represents the filter coefficient, v represents the variance of the measurement noise, Y k It represents the number of cloud application pictures in the decoding cache of the decoder when the receiving module receives the previous frame of cloud application picture, and C represents the observation equation parameter.
[0032] In this embodiment, it should be noted that, according to experience, the value of w can be 0.1, and the value of v can be 0.6. k-1The initial value of P can be 1 / 30, k-1 The initial value of can be 25, and the value of C can be the cloud application picture encoding frame rate of the encoding module in the cloud server / 1000. The prediction equation can be used to calculate X k The initial value of X can be calculated by updating the equation k The final value of .
[0033] Based on the foregoing method embodiment, the delay time=delay adjustment coefficient×the number of cloud application screens in the decoding cache of the decoder.
[0034] Reference Figure 2 FIG. 1 is a schematic diagram of a cloud application screen processing device provided in an embodiment of the present application, and the device is applied to a terminal, including:
[0035] The decoder 20 is used for:
[0036] Determine a delay adjustment coefficient, and calculate the delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoder buffer of the decoder; and
[0037] After waiting for the delay time, a frame of cloud application screen is obtained from the receiving buffer of the receiving module, and the obtained cloud application screen is placed in the decoding buffer.
[0038] In the cloud application screen processing device provided in the embodiment of the present application, the decoder calculates the delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoding cache of the decoder, and delays the time of obtaining the cloud application screen from the receiving cache of the receiving module by the delay time. Compared with the prior art that does not control the interval for pushing input data to the decoder, the present scheme can determine the reasonable time interval for pushing data to the decoder according to the adjustment coefficient and the number of cloud application screens in the decoding cache of the decoder to push the cloud application screen, thereby reducing the freeze of the cloud application screen.
[0039] Based on the above device embodiment, the decoder can be specifically used for:
[0040] The decoder obtains the prediction parameters X from the receiving module k , and according to the prediction parameter X k Determine the delay adjustment coefficient smooth_slope, where smooth_slope=1 / X k .
[0041] Based on the above device embodiment, the device may further include:
[0042] The receiving module is used to calculate the prediction parameter X using the prediction equation and the update equation every time a frame of the cloud application screen is received. k , where the prediction equation includes: X k =Xk-1 and P k =P k-1 +w,X k Indicates the prediction parameter to be calculated currently, X k-1 Represents the prediction parameter calculated last time, P k Represents the variance of the entire estimation process to be calculated, P k-1 represents the variance of the entire estimation process calculated last time, and w represents the variance of the system noise;
[0043] The update equation includes: X k =X k +K×(Y k -C×X k ), K=P k / (P k +v), P k = (1-K × C) × P k , K represents the filter coefficient, v represents the variance of the measurement noise, Y k It represents the number of cloud application pictures in the decoding cache of the decoder when the receiving module receives the previous frame of cloud application picture, and C represents the observation equation parameter.
[0044] Based on the aforementioned device embodiment, the delay time=delay adjustment coefficient×the number of cloud application screens in the decoding cache of the decoder.
[0045] The cloud application screen processing device provided in the embodiment of the present application has an implementation process that is consistent with the cloud application screen processing method provided in the embodiment of the present application, and the effect that can be achieved is also the same as the cloud application screen processing method provided in the embodiment of the present application, which will not be repeated here.
[0046] Through the above solution, while the existing cloud application terminal's video frame network reception + decoding + rendering mode remains unchanged, a dynamic delay is added between network reception and decoding to smooth the decoding interval between the previous and next frames. This can optimize the decoding jams caused by the instantaneous reception of a large number of video frames due to network jitter and the decoding jams caused by insufficient terminal performance in a certain period of time, thereby optimizing the cloud application screen playback jams.
[0047] like Figure 3 As shown, an electronic device provided by an embodiment of the present application includes: a processor 30, a memory 31 and a bus 32, wherein the memory 31 stores machine-readable instructions executable by the processor 30, and when the electronic device is running, the processor 30 communicates with the memory 31 through the bus 32, and the processor 30 executes the machine-readable instructions to perform the steps of the above-mentioned cloud application screen processing method.
[0048] Specifically, the above-mentioned memory 31 and processor 30 can be general-purpose memory and processor, which are not specifically limited here. When the processor 30 runs the computer program stored in the memory 31, the above-mentioned cloud application screen processing method can be executed.
[0049] Corresponding to the above-mentioned cloud application screen processing method, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned cloud application screen processing method are executed.
[0050] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A cloud application screen processing method, applied to a terminal, characterized in that: include: The decoder determines a delay adjustment coefficient, and calculates a delay time according to the delay adjustment coefficient and the number of cloud application screens in a decoding buffer of the decoder; After waiting for the delay time, the decoder obtains a frame of the cloud application screen from the receiving buffer of the receiving module, and puts the obtained cloud application screen into the decoding buffer; The decoder determines the delay adjustment coefficient, including: The decoder obtains the prediction parameters X from the receiving module k , and according to the prediction parameter X k Determine the delay adjustment coefficient smooth_slope, where smooth_slope=1 / X k ; The decoder obtains the prediction parameters X from the receiving module k Previously, it also included: The receiving module calculates the prediction parameter X using the prediction equation and update equation every time it receives a frame of the cloud application screen. k ; Delay time = delay adjustment coefficient × the number of cloud application screens in the decoding cache of the decoder; each time before the decoder obtains the cloud application screen from the receiving cache of the receiving module, the delay adjustment coefficient will be determined; according to the current decoding capability of the decoder, the time interval for inputting the cloud application screen data into the decoder is determined to match the decoding capability of the decoder with the input data, and the cloud application screen output by the decoder is smoothed.
2. The method according to claim 1, characterized in that The prediction equation includes: X k =X k-1 and P k =P k-1 +w,X k Indicates the prediction parameter to be calculated currently, X k-1 Represents the prediction parameter calculated last time, P k Indicates the variance of the entire estimation process to be calculated, P k-1 represents the variance of the entire estimation process calculated last time, and w represents the variance of the system noise; The update equation includes: X k =X k +K×(Y k -C×X k ), K=P k / (P k +v), P k = (1-K × C) × P k , K represents the filter coefficient, v represents the variance of the measurement noise, Y k It represents the number of cloud application pictures in the decoding cache of the decoder when the receiving module receives the previous frame of cloud application picture, and C represents the observation equation parameter.
3. A cloud application screen processing device, applied to a terminal, characterized in that: include: Decoder for: Determine a delay adjustment coefficient, and calculate the delay time according to the delay adjustment coefficient and the number of cloud application screens in the decoder buffer of the decoder; as well as After waiting for a delay time, a frame of cloud application screen is obtained from the receiving buffer of the receiving module, and the obtained cloud application screen is placed in the decoding buffer; The decoder is specifically used for: The decoder obtains the prediction parameters X from the receiving module k , and according to the prediction parameter X k Determine the delay adjustment coefficient smooth_slope, where smooth_slope=1 / X k ; The device also includes: The receiving module is used to calculate the prediction parameter X using the prediction equation and the update equation every time a frame of the cloud application screen is received. k ; Delay time = delay adjustment coefficient × the number of cloud application screens in the decoding cache of the decoder; each time before the decoder obtains the cloud application screen from the receiving cache of the receiving module, the delay adjustment coefficient will be determined; according to the current decoding capability of the decoder, the time interval for inputting the cloud application screen data into the decoder is determined to match the decoding capability of the decoder with the input data, and the cloud application screen output by the decoder is smoothed.
4. The device according to claim 3, characterized in that The prediction equation includes: X k =X k-1 and P k =P k-1 +w,X k Indicates the prediction parameter to be calculated currently, X k-1 Represents the prediction parameter calculated last time, P k Indicates the variance of the entire estimation process to be calculated, P k-1 represents the variance of the entire estimation process calculated last time, and w represents the variance of the system noise; The update equation includes: X k =X k +K×(Y k -C×X k ), K=P k / (P k +v), P k = (1-K × C) × P k , K represents the filter coefficient, v represents the variance of the measurement noise, Y k It represents the number of cloud application pictures in the decoding cache of the decoder when the receiving module receives the previous frame of cloud application picture, and C represents the observation equation parameter.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cloud application screen processing method according to any one of claims 1 to 2 are executed.
6. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the cloud application screen processing method as described in any one of claims 1 to 2.
