Video processing method and related device

By combining network status and business scene recognition in the cloud desktop client, the jitter delay and processing strategy of the video frame are dynamically adjusted, which solves the problem that the jitter buffer in the existing technology cannot meet the needs of different scenarios and improves the performance of the cloud desktop system. Video playback performance and user experience.

WO2024174523A1PCT designated stage expired Publication Date: 2024-08-29HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Patent Information

Application Number
PCT/CN2023/121308
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-22
Filing Date
2023-09-26
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

The existing jitter buffer is difficult to adjust jitter control according to user scenarios, and cannot meet the real-time and fluency requirements in different business scenarios. It is especially difficult to meet users' real-time requirements when network status changes.

Method used

By introducing a scene recognition module into the cloud desktop client and combining network status and business scenarios, the jitter delay and frame processing strategy of video frames are determined to optimize video playback performance and meet users' fluency and real-time needs in different business scenarios. .

Benefits of technology

It improves the video playback performance of the cloud desktop system in different business scenarios, improves the user experience, and can dynamically adjust the jitter control scheme according to business scenarios to meet the needs of smoothness and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023121308_29082024_PF_FP_ABST
    Figure CN2023121308_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application is a video processing method. The method is applied to a cloud desktop system, and comprises: a cloud desktop client receiving a video data packet, wherein the video data packet records an execution result of a cloud desktop server regarding an instruction in a service scenario, and the instruction in the service scenario is inputted by a user by means of the cloud desktop client; the cloud desktop client decoding the video data packet to obtain a first video, wherein the first video comprises at least one video frame; the cloud desktop client determining a jitter delay of the at least one video frame according to a network state and the service scenario, wherein the jitter delay of the at least one video frame indicates when the at least one video frame is played; and according to the jitter delay of the at least one video frame, the cloud desktop client playing the first video. By means of the method, jitter control can be performed on a cloud desktop response video on the basis of a service scenario, thereby satisfying the requirements for smoothness and timeliness in different service scenarios when a user uses a cloud desktop.
Need to check novelty before this filing date? Find Prior Art

Description

Video processing method and related equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 21, 2023, with application number 202310145868.X and invention name “A Cloud Desktop Jitter Buffer Control Method”, the entire contents of which are incorporated by reference into this application.

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on August 22, 2023, with application number 202311061487.X and invention name “A video processing method and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of computer technology, and in particular to a video processing method, a video processing apparatus, a computing device cluster, a computer-readable storage medium, and a computer program product. Background Art

[0004] Cloud desktop systems provide virtual desktop services and typically consist of a server deployed on a cloud desktop server and a cloud desktop client deployed on terminal devices. In a cloud desktop system, users can access the virtual desktop environment deployed on the cloud desktop server through their terminals, performing tasks as if they were working on a local desktop system on their personal devices. Cloud desktop technology meets users' needs for working anytime, anywhere, and has low terminal configuration requirements and high availability.

[0005] The cloud desktop system provides virtual desktop services by outputting videos. Users send commands to the cloud desktop server through the cloud desktop client. The cloud desktop server then executes the commands and sends the results back to the cloud desktop client in the form of a video. The cloud desktop client then responds to the user's commands by playing the video back to the user.

[0006] Due to network fluctuations during video transmission, the delay between the cloud desktop client receiving video frames from the cloud desktop server will experience jitter. If the cloud desktop client directly plays the video frames after decoding them from the cloud desktop server, the video playback will be choppy. To compensate for jitter, the cloud desktop client typically sets up a jitter buffer to store decoded video frames and wait for a certain period of time before distributing the video frames to the rendering area for playback, thereby eliminating the impact of jitter. At the same time, the jitter buffer can adjust the jitter control scheme based on the network status. For example, when network jitter increases, the waiting time of the video frame in the jitter buffer will be increased to ensure smooth video playback.

[0007] However, with the rapid development of cloud desktop services, the variety of user scenarios has increased rapidly. Existing jitter buffer jitter control methods struggle to meet users' real-time requirements in some scenarios. Therefore, how to implement jitter control that takes user scenario switching into account and meets user experience requirements across diverse scenarios has become a pressing technical challenge.

[0008] Summary of the Invention

[0009] This application provides a video processing method that, by identifying the business scenario in which a user uses a cloud desktop, can control the jitter of the cloud desktop's response video based on the network status and business scenario, ensuring that the final playback performance of the response video meets the user's requirements for smoothness and real-time performance in the current business scenario, thereby improving the user's experience when accessing the cloud desktop. This application also provides a corresponding video processing device, a computing device cluster, a computer-readable storage medium, and a computer program product.

[0010] In a first aspect, the present application provides a video processing method, which is applied to a cloud desktop system, wherein the cloud desktop system includes a cloud desktop client and a cloud desktop server, and the method specifically includes:

[0011] The cloud desktop client receives a video data packet, wherein the video data packet records the result of the cloud desktop server executing the instruction in the business scenario, wherein the instruction in the business scenario is input by the user through the cloud desktop client;

[0012] The cloud desktop client decodes the video data packet to obtain a first video, where the first video includes at least one video frame;

[0013] The cloud desktop client determines a jitter delay of the at least one video frame according to a network state and a service scenario, where the jitter delay of the at least one video frame indicates when the at least one video frame is used for playback;

[0014] The cloud desktop client plays the first video according to the jitter delay of the at least one video frame.

[0015] In one possible implementation, the video processing method provided in the present application also includes: the cloud desktop client determines the frame processing strategy of the first video based on the network status and business scenario, and the above-mentioned frame processing strategy is used to indicate at least one of the following processing operations on the first video: frame discard, frame copying, frame generation, frame sorting, and frame playback time adjustment.

[0016] In one possible implementation, the cloud desktop client uses the first video for playback according to the jitter delay of the at least one video frame, specifically including: the cloud desktop client processes the first video according to the frame processing strategy to obtain the second video; the cloud desktop client uses the second video for playback according to the jitter delay of the at least one video frame.

[0017] In one possible implementation, the cloud desktop client determines a frame processing strategy for the first video based on the network status and business scenario, including: the cloud desktop client determines a frame processing strategy for the first video based on the network status, business scenario, and the priority of the at least one video frame.

[0018] In one possible implementation, the video processing method provided in the present application also includes: the cloud desktop client determines the priority of the at least one video frame based on the frame type and / or frame status of the at least one video frame, wherein the frame type includes key frames and non-key frames, and the frame status includes still frames and motion frames.

[0019] In one possible implementation, the video processing method provided by the present application also includes: the cloud desktop client determines the business scenario based on the user's operation information on the cloud desktop client and / or the attribute information of the above-mentioned at least one video frame, wherein the user's operation information on the cloud desktop client includes the identifier of the business scenario in which the user is located and / or the characteristics of the interactive operation performed by the user, and the attribute information of the above-mentioned at least one video frame includes one or more of the following information: the resolution of the above-mentioned at least one video frame, the frame rate of the above-mentioned first video, the size of the above-mentioned at least one video frame, and the encoding method of the above-mentioned at least one video frame.

[0020] In one possible implementation, the cloud desktop client determines the jitter delay of the at least one video frame based on the network status and the business scenario, specifically including: the cloud desktop client inputs the network status and the business scenario into a video processing decision model to obtain the jitter delay of the at least one video frame.

[0021] In a second aspect, the present application provides a video processing device, which is deployed in a cloud desktop system, wherein the cloud desktop system includes a cloud desktop server and a cloud desktop client. The video processing device specifically includes:

[0022] A receiving module, configured to receive a video data packet, wherein the video data packet records the result of the cloud desktop server executing instructions in the business scenario, wherein the instructions in the business scenario are input by the user through the cloud desktop client;

[0023] A decoding module, configured to decode a video data packet to obtain a first video, wherein the first video includes at least one video frame;

[0024] a jitter delay determination module, configured to determine a jitter delay of the at least one video frame based on a network state and a service scenario, wherein the jitter delay of the at least one video frame indicates when the at least one video frame is used for playback;

[0025] The playback control module is used to play the first video according to the jitter delay of the at least one video frame.

[0026] In one possible implementation, the video processing device provided in the present application also includes: a frame processing strategy determination module, which is used to determine the frame processing strategy of the first video based on the network status and business scenario, and the above-mentioned frame processing strategy is used to indicate at least one of the following processing operations on the first video: frame discard, frame copying, frame generation, frame sorting, and frame playback time adjustment.

[0027] In a possible implementation, the playback control module is configured to play the first video according to the jitter delay of the at least one video frame, specifically including:

[0028] The playback control module processes the first video according to the frame processing strategy to obtain a second video;

[0029] The playback control module plays the second video according to the jitter delay of the at least one video frame.

[0030] In one possible implementation, the frame processing strategy determination module is configured to determine a frame processing strategy for the first video based on a network state and a service scenario, specifically including:

[0031] The frame processing strategy determination module determines a frame processing strategy for the first video according to a network state, a service scenario, and a priority of the at least one video frame.

[0032] In one possible implementation, the video processing device provided in the present application also includes: a priority determination module, used to determine the priority of the at least one video frame based on the frame type and / or frame status of the at least one video frame, wherein the frame type includes key frames and non-key frames, and the frame status includes still frames and motion frames.

[0033] In one possible implementation, the video processing device provided by the present application also includes: a scene recognition module, which is used to determine the business scene based on the user's operation information on the cloud desktop client and / or the attribute information of the above-mentioned at least one video frame, wherein the user's operation information on the cloud desktop client includes the identification of the business scene in which the user is located and / or the characteristics of the interactive operation performed by the user, and the attribute information of the above-mentioned at least one video frame includes one or more of the following information: the resolution of the above-mentioned at least one video frame, the frame rate of the above-mentioned first video, the size of the above-mentioned at least one video frame, and the encoding method of the above-mentioned at least one video frame.

[0034] In one possible implementation, the jitter delay determination module is used to determine the jitter delay of the above-mentioned at least one video frame based on the network status and business scenario, specifically including: the jitter delay determination module inputs the network status and business scenario into the video processing decision model to obtain the jitter delay of the above-mentioned at least one video frame.

[0035] In a third aspect, the present application provides a computing device cluster. The computing device cluster includes at least one computing device, each of which includes at least one processor and at least one memory. The at least one processor and the at least one memory can communicate with each other. The at least one processor is configured to execute instructions stored in the at least one memory, causing the computing device or computing device cluster to perform the video processing method described in the first aspect or any implementation of the first aspect.

[0036] In a fourth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computing device or a computing device cluster, enables the computing device or the computing device cluster to execute the video processing method described in the first aspect or any one of the implementations of the first aspect.

[0037] In a fifth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and the instructions instruct a computing device or a computing device cluster to execute the video processing method described in the first aspect or any one of the implementations of the first aspect.

[0038] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] FIG1 is a schematic diagram of the architecture of a media transmission network of a cloud desktop system;

[0040] FIG2 is a schematic diagram of the structure of a traditional jitter buffer;

[0041] FIG3 is a schematic diagram of an implementation process of jitter control of an example video segment 001 using a conventional jitter buffer;

[0042] FIG4 is a schematic diagram of the architecture of a cloud desktop system provided in an embodiment of the present application;

[0043] FIG5 is a flow chart of a video processing method provided in an embodiment of the present application;

[0044] FIG6 is an example scenario of applying a video processing method provided by an embodiment of the present application;

[0045] FIG7 is another example scenario of applying a video processing method provided by an embodiment of the present application;

[0046] FIG8 is a schematic structural diagram of a video processing device provided in an embodiment of the present application;

[0047] FIG9 is a schematic diagram of a computing device provided in an embodiment of the present application;

[0048] FIG10 is a schematic diagram of a computing device cluster provided in an embodiment of the present application;

[0049] FIG11 is a schematic diagram of an implementation method of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The terms "first" and "second" in the embodiments of this application are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of the features.

[0051] First, the application scenarios involved in the embodiments of this application are introduced. A cloud desktop system is a desktop system based on cloud computing (including edge computing). A cloud desktop system can provide a desktop system to users in the form of a cloud service, which is also called a cloud desktop service. Compared with the desktop system of a traditional personal computer (PC), the desktop system supports the rapid creation, deployment, unified management and operation and maintenance of a virtual desktop environment, and can meet the user's mobile office needs at a lower cost, and is therefore widely used.

[0052] A cloud desktop system typically consists of a cloud desktop server deployed on a server and a cloud desktop client deployed on a terminal. Users can access the virtual desktop environment deployed on the cloud desktop server through the terminal, performing business operations (such as opening files and running applications from the desktop) as if they were on a local desktop system on their personal device.

[0053] Specifically, the cloud desktop system provides cloud desktop services by outputting videos. The process of providing cloud desktop services is roughly as follows: First, the user sends an operation instruction to the cloud desktop server through the cloud desktop client. The cloud desktop server then executes the operation instruction and records the execution result as a response video. The cloud desktop server then transmits the response video to the cloud desktop client via the network. Finally, the cloud desktop client displays the execution result to the user by playing the response video.

[0054] Figure 1 shows a schematic diagram of the architecture of a media transmission network for a cloud desktop system. The media transmission network logically includes a scheduling layer, a transport layer, a codec layer, and a playback control layer. The scheduling layer is used for resource scheduling. Specifically, it can implement resource scheduling based on cost, bandwidth, traffic, and experience among multiple terminals connected to the cloud desktop server to ensure the rational allocation of cloud resources. The transport layer is used for data transmission. During the data transmission process, it can implement congestion control, automatic retransmission request (ARQ), forward error correction (FEC), and bandwidth detection to improve the transmission efficiency and reliability of the response video of the cloud desktop service. The codec layer is used to encode and decode the video. Specifically, it can implement adaptive encoding, decoding, and frame loss compensation to achieve video compression and decompression, facilitating the transmission of video data (such as video data packets) and video playback. The playback control layer is used to control video playback, including but not limited to video post-processing, audio processing, audio and video synchronization, rendering, or streaming. Among them, audio processing may include acoustic echo cancellation (AEC), automatic noise suppression (ANS) or automatic gain control (AGC). The above three audio processing operations can be collectively referred to as 3A audio processing.

[0055] Due to network fluctuations during video transmission, there will be jitter in the delay time when the cloud desktop client receives the video frame from the cloud desktop server. If the cloud desktop client directly uses the decoded video frame from the cloud desktop server for playback, the video playback will be unsmooth. As shown in Figure 1, in order to compensate for jitter, the cloud desktop client usually sets a jitter buffer (JB) as an important module connecting the transport layer and the codec layer. The jitter buffer can store the decoded video frames and distribute the video frames to the playback control area for playback after waiting for a certain period of time to eliminate the impact of jitter. At the same time, the jitter buffer can adjust the jitter control scheme according to the network status. For example, when the network jitter becomes larger, the waiting time of the video frame in the jitter buffer will be increased so that the video can finally be played smoothly. In this application, the above-mentioned waiting time set by the jitter buffer for the decoded video frame to compensate for network jitter is called jitter delay, and the jitter delay is used to indicate when the decoded video frame is used for playback.

[0056] Referring to the structural diagram of a jitter buffer shown in FIG2 , the jitter buffer will be described in detail below. The jitter buffer includes a pre-decoding buffer (pre-decoding buffer), a post-decoding buffer (post-decoding buffer) and a jitter control module, wherein the jitter control module specifically includes a jitter measurement submodule and a delay decision submodule. The data packet of the video generated by the cloud desktop server (for example, a data packet of the video generated based on the real-time transport protocol (RTP)) includes a header part and a body part, wherein the video content of the body part will be stored in the pre-decoding buffer, and the header part will be passed to the jitter measurement submodule, and the jitter measurement submodule can obtain the network jitter value representing the network status by parsing the header part. On the one hand, the pre-decoding buffer will send the sorted group of pictures (GOP) in the video to the decoder for decoding, and the decoder will store the decoded video frame in the post-decoding buffer. On the other hand, the delay decision submodule determines the jitter delay according to the network jitter value provided by the jitter measurement submodule, so that the cloud desktop client forwards the decoded video frame from the decoded buffer to the renderer for playback according to the jitter delay.

[0057] The following further illustrates the general implementation process of jitter control in a jitter buffer in the prior art to ensure smooth playback of a video segment, using video segment 001 shown in Figure 3, which includes video frames A, B, C, and D. As shown in Figure 3, the expected playback duration of each video frame is 30ms. The cloud desktop server sends video frames A, B, C, and D at 30ms, 60ms, 90ms, and 120ms, respectively, at 30ms intervals. Due to network fluctuations, the transmission delay of video frames A, B, C, and D on the network is 20ms, 30ms, 20ms, and 20ms, respectively. As a result, video frames A, B, C, and D arrive at the decoded buffer of the cloud desktop client at 50ms, 90ms, 110ms, and 140ms, respectively. Assume that the jitter control module determines the jitter delays of video frames A, B, C, and D to be 10ms, 0ms, 10ms, and 10ms, respectively, based on the network status. Then, the decoded video frames A, B, C, and D will be forwarded from the decoded buffer to the renderer for playback at 60ms, 90ms, 120ms, and 150ms, respectively. In this way, the video segment in Figure 3 can be played smoothly at 30ms per frame.

[0058] With the rapid development of cloud computing technology, the types of services provided by cloud desktop systems are gradually increasing, and the business scenarios covered by each service category are also gradually increasing. When users access cloud desktops, different business scenarios have different experience requirements, and accordingly, the performance requirements for the cloud desktop client's response video playback also vary. For example, when users are in video scenarios such as online meetings, they have higher requirements for smooth response video playback. However, when users scroll up and down, zoom in and out, select or move materials in model design, they prefer the cloud desktop to respond quickly to the changes in page or material position. Therefore, users have higher requirements for the real-time performance of response video playback. Therefore, in business scenarios with high real-time requirements, users hope that the response video can be played as soon as it arrives in the decoded buffer. In other words, the jitter delay should not be too large to ensure that the end-to-end delay of the response video is not too large, thus meeting the user's real-time requirements.

[0059] However, existing technologies only adjust jitter control schemes based on network conditions to meet user requirements for smoothness under different network conditions. When the network condition remains unchanged or does not change significantly, the jitter buffer cannot adjust the jitter control scheme based on changes in service scenarios to meet user experience requirements in different service scenarios. For example, when network jitter is high, existing jitter buffers will increase jitter delay to compensate for jitter and ensure smooth video playback. However, this jitter delay may be too high. If the network condition remains unchanged and the user switches to a service scenario with high real-time requirements, the jitter delay will not be able to meet the user's real-time requirements.

[0060] In view of this, the present application provides a video processing method, which can be executed by a cloud desktop system, and the cloud desktop system includes a cloud desktop server and a terminal. Among them, the cloud desktop server can be a server for providing cloud desktops in a cloud environment, and the cloud environment refers to a computing device cluster provided by a cloud vendor for providing computing, storage, and network resources. The cloud desktop server can be one or more servers in the above computing device cluster, such as a cloud server. The terminal can be a personal computing device such as a desktop, a laptop, a tablet computer, or a smart phone. Furthermore, a cloud desktop server application (referred to as the cloud desktop server) is deployed on the cloud desktop server, and a cloud desktop client application (referred to as the cloud desktop client) is deployed on the terminal. The terminal can run the cloud desktop client to interact with the cloud desktop server run by the cloud desktop server, thereby accessing the virtual desktop service deployed on the cloud desktop server.

[0061] Specifically, after the user inputs an instruction in a certain business scenario through the cloud desktop client, the cloud desktop server generates a video containing the execution result of the instruction and sends the video data packet to the cloud desktop client through the network. The cloud desktop client then decodes the received video data packet to obtain a decoded video, and at the same time determines the jitter delay of at least one video frame in the decoded video based on the network status and the business scenario in which the user is located. The above jitter delay indicates when the above at least one video frame is used for playback, and then the cloud desktop client uses the decoded video for playback according to the determined jitter delay of at least one video frame.

[0062] In this method, the cloud desktop client can identify the user's current business scenario and process the video in combination with the network status and business scenario when the user uses the cloud desktop, so that the processed video meets the user's current business scenario requirements for video playback performance (such as smoothness and real-time performance). For example, it balances the real-time and smoothness of video playback, thereby improving the user experience of accessing the cloud desktop.

[0063] In order to make the technical solution of this application clearer and easier to understand, the architecture of the cloud desktop system that can implement the video processing method provided by this application is first introduced below.

[0064] Referring to the architectural diagram of a cloud desktop system shown in Figure 4, the cloud desktop system 10 includes a cloud desktop server 100 and a cloud desktop client 200, wherein the cloud desktop server 100 includes a video generation module 102, and the cloud desktop client includes a network status determination module 108, a scene recognition module 110 and a video processing module 112.

[0065] The video generation module 102 is used to generate a response video, which records the result of the cloud desktop server 100 executing the instruction sent by the cloud desktop client 200. The video generation module 102 is also used to send the encoded data packet of the response video to the cloud desktop client 200 through the network.

[0066] The network status determination module 108 is used to determine the network status of the cloud desktop client 200. In some embodiments, the network status determination module 108 can determine the network status by obtaining an indicator representing network connection performance or quality, such as a network jitter value.

[0067] The scene recognition module 110 is used to identify the user's business scenario in the cloud desktop. The business scenario includes information such as the business category performed by the user and the type of operation triggered when performing the business. In some embodiments, the scene recognition module 110 can identify the business scenario by the attribute information of the video frame in the response video and the user's operation information on the cloud desktop client 200. The attribute information of the video frame may include one or more of resolution, frame rate, frame size, and encoding mode; the user's operation information on the cloud desktop client 200 may include one or more of the identification of the user's business scenario and the characteristics of the interactive operation performed by the user.

[0068] The video processing module 112 is used to perform jitter compensation processing on the video frames in the decoded video according to the network status of the cloud desktop client 200 and the user's business scenario in the cloud desktop, so that the playback performance of the decoded video meets the user's current business scenario for smoothness or real-time experience requirements.

[0069] In some possible implementations, the video processing module 112 may include a processing decision determination submodule 1122 and a frame processing submodule 1124. The processing decision determination submodule 1122 may determine jitter delay and a corresponding frame processing strategy based on the network status of the cloud desktop client 200 and the user's business scenario in the cloud desktop. The frame processing submodule 1124 may process the decoded video frames according to the frame processing strategy for playback. The frame processing strategy may specifically include at least one of frame discarding, frame duplication, frame generation, frame sorting, and frame playback duration adjustment.

[0070] Furthermore, the cloud desktop client 200 also includes a pre-decoding buffer 104, a decoder 105, and a decoded buffer 106. The pre-decoding buffer 104 is used to cache the response video data packets sent by the cloud desktop server 100 and send the sorted group of pictures (GOP) to the decoder 105 for decoding. The decoded buffer 106 is used to store the decoded video.

[0071] In some possible implementations, the cloud desktop client 200 further includes a priority determination module 109, which is configured to determine the priority of video frames in the decoded video. In this case, the video processing module 112 can further consider the priority of the video frames in the decoded video to determine a frame processing strategy, thereby making the processing of the video frames in the decoded video more targeted and preserving important information in the current business scenario in the final played video.

[0072] The video processing method of the present application is described in detail below with reference to an embodiment. FIG5 shows a flowchart of a video processing method provided by the present application, which can be executed by the cloud desktop system 10 shown in FIG4 , and specifically includes the following steps S402 to S414:

[0073] S402: The user sends instructions in the business scenario to the cloud desktop server 100 through the cloud desktop client 200.

[0074] An instruction can be a representation of an executable program element and is typically used to instruct the device executing the instruction to perform a specific function. For example, when a user is working in a cloud desktop, the user can use the cloud desktop client 200 to send a file creation instruction, a file open instruction, an application execution instruction, and the like to the cloud desktop server 100. A file creation instruction instructs the cloud desktop client to create a file, a file open instruction instructs the cloud desktop client to open a file, and an application execution instruction instructs the cloud desktop client to run an application.

[0075] The cloud desktop client 200 can generate instructions corresponding to the trigger operation in response to the user's trigger operation. The trigger operation can be an operation triggered by a mouse, keyboard (such as a keyboard shortcut) or voice. For example, the trigger operation can be an operation of opening a file by double-clicking the mouse. For example, when the terminal supports voice recognition, the trigger operation can be an operation of waking up the application by voice. In the cloud desktop system 10, the cloud desktop client 200 can use the resources of the cloud desktop server 100, such as computing resources (also called computing power resources) and storage resources to execute instructions. In this way, the computing power requirements and storage requirements for the cloud desktop client 200 can be reduced, and the lightweight cloud desktop client 200 can also meet business requirements.

[0076] S404: The cloud desktop server 100 executes the instruction sent by the cloud desktop client 200 and generates a response video including the execution result.

[0077] Specifically, the cloud desktop server 100 can execute the instructions sent by the cloud desktop client 200 and record the execution results as a video. In the embodiment of the present application, the video containing the instruction execution results generated by the cloud desktop server 100 is also called a response video.

[0078] In some possible embodiments, the cloud desktop server 100 can generate a response video based on the desktop content before executing the instruction and the execution result of the instruction. Different video frames in the response video respectively record the desktop content before executing the instruction and the desktop content after executing the instruction. The desktop content after executing the instruction includes the execution result of the instruction.

[0079] For ease of understanding, the following is explained with reference to specific examples. The cloud desktop server 100 can determine the cloud desktop (i.e., virtual desktop) corresponding to the user identifier based on the user identifier, and obtain the desktop content of the cloud desktop, such as application icons (including patterns, text), file identifiers (such as text file identifiers, table file identifiers) on the cloud desktop. When the cloud desktop server 100 receives an instruction sent by the cloud desktop client 200, such as a file creation instruction, the cloud desktop server 100 can execute the instruction, create a new file, and obtain the identifier of the new file. At the same time, the cloud desktop server 100 can generate a first video frame based on the desktop content before the instruction is executed, and generate a second video frame based on the desktop content before the instruction is executed and the identifier of the new file, and then generate a response video based on the first video frame and the second video frame.

[0080] S406: The cloud desktop server 100 sends a video data packet of a response video to the cloud desktop client 200.

[0081] In actual applications, to facilitate network transmission, the cloud desktop server 100 usually encodes the response video and sends it to the cloud desktop client 200 in the form of a video data packet. In one possible embodiment, the cloud desktop server 100 can generate the video data packet of the response video based on the real-time transport protocol (RTP).

[0082] S408: The cloud desktop client 200 decodes the received video data packet to obtain a first video, where the first video includes at least one video frame.

[0083] Specifically, the cloud desktop client 200 first stores the received video data packet in the pre-decoding buffer 104, and then the pre-decoding buffer 104 sends the sorted group of pictures (GOP) to the decoder 105 for decoding, and then the decoder 105 stores at least one decoded video frame in the decoded buffer 106.

[0084] S410: The cloud desktop client 200 determines the network status and the user's business scenario.

[0085] In the embodiment of the present application, the network status includes the fluctuation status of the network used when the cloud desktop server 100 sends video data packets to the cloud desktop client 200. The network status generally reflects the network transmission performance or network connection quality, and can be represented by one or more indicators such as network latency, network jitter value, and packet loss rate. Specifically, the cloud desktop client 200 can determine the network fluctuation status by obtaining the network jitter value.

[0086] In some possible embodiments, considering that when the network connection method between the cloud desktop client 200 and the cloud desktop server 100 changes (for example, from a dedicated line access method to a WiFi access method), the network status may also be affected, the cloud desktop client 200 can monitor the fluctuations of the network connected to the cloud desktop server 100 in real time to determine the network status.

[0087] In some possible embodiments, the cloud desktop client 200 can determine the network status by parsing the header portion of the received video data packet to obtain the value of at least one indicator such as network delay, network jitter value or packet loss rate. When the user uses the cloud desktop, the business is processed through the computer program on the cloud desktop, such as an application. Furthermore, depending on the different triggering operations input by the user, a business can specifically include different business scenarios when it is processed. For example, when the user uses the cloud conference application on the cloud desktop to process business, the business scenario of the user may include entering the meeting scene, attending the meeting scene, speaking scene, viewing the meeting content scene, etc. For example, if the user triggers the operation of entering the meeting, the business scenario will be determined as the entering the meeting scene; if the user triggers the operation of unmuting, the business scenario will be determined as the speaking scene.

[0088] Considering that the business scenario of the cloud desktop client 200 may change during the user's access to the cloud desktop, specifically, the business currently executed by the cloud desktop client 200 may change, or the specific operation of the cloud desktop client 200 when executing the same business may change. The scene recognition module 110 in the cloud desktop client 200 can identify the business scenario of the user.

[0089] In an embodiment of the present application, the cloud desktop client 200 can determine the business scenario based on the user's operation information on the cloud desktop client 200 and / or the attribute information of the video frame in the first video. The user's operation information on the cloud desktop client 200 includes one or more of the identification of the business scenario in which the user is located and the characteristics of the interactive operation performed by the user; the attribute information of the video frame in the first video includes one or more of the resolution of the video frame, the frame rate of the first video, the size of the video frame, and the encoding method of the video frame. Specifically, the user's operation information on the cloud desktop client 200 can be collected by the cloud desktop client 200 when running the cloud desktop; the attribute information of the video frame in the first video can be obtained by the cloud desktop client 200 when decoding the video data packet transmitted from the cloud desktop server 100.

[0090] In some possible embodiments, the identifier of the user's business scenario can uniquely indicate the business the user is processing on the cloud desktop, and can be composed of a registered application provider identifier (RID) and a proprietary application identifier extension (PIX). In some possible embodiments, the application opened by the user on the cloud desktop can be used as the identifier of the user's business scenario. For example, when a user uses the cloud desktop for word editing, the user will open the office application; and when a user uses the cloud desktop for 3D model design, the user will open the model design software.

[0091] In some possible embodiments, the characteristics of the interactive operations performed by the user may include one or more of the frequency of the user clicking the mouse, the range of changes in the position of the mouse pointer on the cloud desktop, the number or frequency of the user tapping the keyboard, the frequency of the user touching the screen, and the sliding range when the user touches the screen.

[0092] Because the frequency of user interaction on the cloud desktop client 200 varies in different business scenarios, the characteristics of the images required to be presented in the response video generated by the cloud desktop server 100 will also vary accordingly. Therefore, the cloud desktop client 200 can determine the business scenario based on the user's operation information on the cloud desktop client 200 and / or the attribute information of the video frame in the first video. For ease of understanding, the following description is based on specific business scenario examples.

[0093] For example, when a user drags a model in a 3D model design application, the interactive operations performed by the user will be characterized by frequent operations, such as long mouse clicks and a wide range of mouse pointer movement on the cloud desktop. Simultaneously, due to the model movement, the characteristics of the image presented in the corresponding video will show a dramatic change, such as a large video frame size. Conversely, when a user is participating in a video conference, the interactive operations performed by the user will be characterized by infrequent operations, such as no mouse clicks or keyboard operations. Simultaneously, due to the continuous playback of the conference screen, the characteristics of the image presented in the corresponding video will show a dramatic change, such as a consistently high video frame rate.

[0094] In some possible embodiments, the correspondence between the attribute information of the video frame in the first video and the picture characteristics includes: the frame rate of the video refers to the frequency of continuous appearance of images in frames. The higher the frame rate of the video, the more drastic the changes in the video picture; the resolution refers to the number of pixels included in the video frame. The higher the resolution, the more pixels included in the video frame, and the larger the frame size; the encoding method refers to the method of compressing the video frame. When the resolution is the same, the higher the compression rate of the encoding method, the smaller the frame size. For example, the size of the frame encoded by the video encoding standard H.265 will be smaller than the size of the frame encoded by the video encoding standard H.264; the size of the video frame refers to the number of bits of the video frame. When the resolution and encoding method are the same, the larger the size of the video frame in the video, the greater the difference in the number of bits between the video frames, and the more drastic the changes in the video picture; when the size of the video frame is the same, the higher the compression rate of the video frame or the lower the resolution, the more drastic the changes in the video picture.

[0095] In some possible embodiments, the cloud desktop client 200 may first determine the type of business performed by the user based on the user's operation information on the cloud desktop client 200 and / or the attribute information of the video frame in the first video, and then determine the specific business scenario from the scene set corresponding to the business type. For example, the cloud desktop client 200 may first determine that the user is processing a 3D model design business based on the fact that the application opened by the user on the cloud desktop is 3D model design software, and then further determine that the user's business scenario is a model dragging scene in 3D model design based on the user's frequent mouse operations (e.g., long mouse click durations and a large range of mouse pointer movement).

[0096] S412: The cloud desktop client 200 determines a jitter delay of at least one video frame in the first video according to the network status and the service scenario, where the jitter delay of the at least one video frame indicates when the at least one video frame is used for playback.

[0097] Specifically, the cloud desktop client 200 can obtain the jitter delay of at least one video frame in the first video by inputting the network status and business scenario into the video processing decision model. In an embodiment of the present application, the jitter delay of a video frame in the first video is the time interval from the cloud desktop client receiving the video frame to the time the video frame is used for playback. The above-mentioned video processing decision model can be obtained through supervised model training using machine learning, and this application does not limit the specific method of obtaining the model. For example, the network status and business scenario corresponding to the video can be used as training data, and the jitter delay of at least one video frame in the video can be used as a label of the training data, so as to obtain the video processing decision model by training with labeled training data.

[0098] For a specific network state, the determined jitter delay needs to compensate for network jitter to optimize the smoothness of video playback; for a specific business scenario, the determined jitter delay needs to meet the user's experience requirements for smoothness and real-time performance in the business scenario. Therefore, the video processing decision model can determine the jitter delay that takes into account both the smoothness and real-time performance of video playback based on the network state and business scenario. In some possible embodiments, the decision principle of the video processing decision model may be to minimize the end-to-end delay of the video frame while ensuring smoothness, so as to meet the user's real-time requirements in the business scenario. The end-to-end delay of the video frame may refer to the time interval from the cloud desktop server sending the video frame to the user seeing the video frame, or it may refer to the time interval from the user issuing the instruction in step S402 to the user seeing the video frame.

[0099] In some possible embodiments, the video processing decision model may be a model based on a multi-objective optimization algorithm. A multi-objective optimization algorithm refers to optimizing multiple objectives that need to be coordinated to achieve the overall optimality of multiple objectives. In an embodiment of the present application, the multiple objectives in the multi-objective optimization algorithm may include at least one indicator for improving the smoothness of video playback and at least one indicator for improving the real-time performance of video playback. The video processing decision model adjusts the weights of the two types of indicators corresponding to smoothness and real-time performance in the comprehensive objectives according to the network status and business scenarios during optimization, thereby providing a jitter delay that can meet the user's experience requirements in different business scenarios while compensating for network jitter.

[0100] The video processing method provided in this application identifies the business scenario in which the user uses the cloud desktop by adding a scene recognition module 110 to the jitter buffer, thereby comprehensively considering the network status and business scenario for jitter control, so that the final video playback performance can meet the user's experience requirements for smoothness and real-time performance in different business scenarios.

[0101] Taking video segment 001 shown in FIG3 as an example, the prior art only considers the network status for jitter control. Therefore, as long as the network status does not change, regardless of whether the video is the response result of the cloud desktop in an office scenario or the response result in a video conferencing scenario, the prior art will use the jitter delay of video frames A, B, C, and D to play video segment 001 according to 10ms, 0ms, 10ms, and 10ms, respectively. Such a jitter control scheme will not meet the user's requirement for real-time response of the cloud desktop in the office scenario. Unlike the prior art, under the same network state, the video processing method provided by the present application can adjust the jitter control scheme accordingly when the user's business scenario changes from a video conferencing scenario to an office scenario to meet the user's real-time requirement in the office scenario. For example, when the business scenario corresponding to video segment 001 changes from a video conferencing scenario to an office scenario, the jitter delay of video frames A, C, and D determined by the video processing method provided by the present application may be reduced to 5ms to meet the higher real-time requirement in the office scenario than in the video conferencing scenario. It should be noted that the specific values ​​of jitter delay in the two service scenarios in the above embodiment are only used to describe the technical effects of the solution and should not be understood as limiting the specific implementation methods of the solution.

[0102] It should be noted that the execution order of step S410 can be after step S408 or in parallel with step S406 or S408; correspondingly, the execution order of step S412 can be after step S408 or in parallel with step S406 or S408.

[0103] S414: The cloud desktop client 200 plays the first video according to the determined jitter delay of at least one video frame in the first video.

[0104] In some possible embodiments, after determining the jitter delay of at least one video frame in the first video, the cloud desktop client 200 does not need to further process the frames in the first video, and can directly distribute the video frames cached in the decoded buffer 106 to the playback control area (e.g., a renderer) for playback according to the waiting time interval indicated by the jitter delay. Specifically, the video frames in the first video can be distributed to the renderer in the playback control area and then played after being rendered.

[0105] In some possible embodiments, when the business scenario in which the user is located has high real-time requirements, the jitter delay can only be set to a smaller value, so that the network jitter cannot be fully compensated. At this time, in order to make the final played video have better smoothness, the cloud desktop client 200 can process the first video to obtain the second video, and then use the second video for playback. The above processing includes one or more of the following frame processing operations: frame discard, frame copying, frame generation, frame sorting, and frame playback time adjustment.

[0106] In order to better understand how to improve the smoothness of the final video playback through the above-mentioned frame processing operation, the following still uses the video segment 001 shown in Figure 3 as an example for explanation. As described in step S412, when the business scenario corresponding to video frames C and D is changed from a video conferencing scenario to an office scene, the jitter delay of video frames A, C, and D determined by the video processing method provided by this application may be reduced to 5ms to meet the higher real-time requirements in the office scene than in the video conferencing scene. If video segment 001 is not further processed, video frames A, B, C, and D will be used for playback at the 55th ms, 90th ms, 115th ms, and 145th ms, respectively, and the playback duration of each frame remains unchanged at 30ms. This will cause a 5ms interval between the end of video frame A and the start of video frame B, and the playback time of video frame B and video frame C will overlap. Therefore, in order to improve the smoothness of video playback, video segment 001 can be frame processed. Several examples of processing methods are introduced below. In some possible embodiments, processing video segment 001 includes adjusting the frame playback duration. Specifically, the playback duration of video frame A is increased to 35 ms, while the playback duration of video frame B is reduced to 25 ms. In some possible embodiments, processing video segment 001 includes frame duplication and frame discarding. Specifically, the original video frame A in video segment 001 may be duplicated to obtain a video frame A-1, while video frame B is discarded. After the original video frame A is played for 30 ms, video frame A-1 is played for 30 ms. After the playback of video frame A-1 is completed, video frame C is played. In some possible embodiments, processing of video segment 001 includes frame discarding, frame generation, and frame sorting. Specifically, while discarding video frame B, a new video frame N can be generated using video frame A and other previously associated video frames to fill the content gap. The newly generated video frame N and the other existing video frames are then arranged in a playback order. The final playback method is as follows: 30ms after video frame A plays, video frame N plays 30ms later, and after video frame N plays, video frame C plays. Furthermore, in some possible embodiments, frame sorting also includes reordering the existing video frames for correct playback if network fluctuations cause the video frames to arrive out of order.

[0107] It should be noted that the various combinations of processing operations included in the above-described processing scheme for video segment 001 are merely examples illustrating the meaning of the various frame processing operations and should not be construed as limiting the specific implementation of this application. For example, in other possible embodiments, the processing of video segment 001 could be as follows: discarding video frame B, increasing the playback duration of video frame A to 60ms, and then playing video frame C after video frame A finishes playing. In this case, the processing of video segment 001 includes both frame playback duration adjustment and frame discarding.

[0108] Before performing frame processing on the first video, the cloud desktop client 200 also needs to determine a frame processing strategy for the first video, which indicates performing one or more of the following processing operations on the first video: frame discarding, frame copying, frame generation, frame sorting, and frame playback duration adjustment.

[0109] In some possible embodiments, the frame processing strategy of the first video may be determined by the video processing decision model in step S412 when determining the jitter delay of at least one video frame in the first video based on the network status and business scenario. Accordingly, the video processing decision model in this case may be obtained by using the network status and business scenario corresponding to the video as training data and the comprehensive jitter control scheme of the video as a label for the training data to perform supervised model training, wherein the comprehensive jitter control scheme includes the jitter delay of at least one video frame in the video and the frame processing strategy corresponding to the jitter delay.

[0110] In some possible embodiments, when the video processing decision model needs to determine a comprehensive jitter control solution including jitter delay and frame processing strategy based on the network status and business scenario, the video processing decision model can balance real-time and smoothness while considering the processing costs corresponding to the frame processing strategy under different jitter delays (such as the processing difficulty, the computing power resources required for the processing operation, and other processing costs), and ultimately determine a jitter control solution that meets user experience requirements and has low processing costs.

[0111] In order to improve the quality and efficiency of processing the first video, the cloud desktop client 200 can also use the priority determination module 109 to determine the priority of the video frames in the first video, thereby determining the frame processing strategy of the first video according to the priority of the video frames.

[0112] The priority of a video frame can be used to characterize the importance of a video frame. A high priority of a video frame indicates that the image information included in the video frame is of high importance. Therefore, the cloud desktop client 200 can process the first video based on the priority of the video frame so that the final played video does not lose important information. For example, when it is necessary to copy frames of the first video to improve smoothness, the cloud desktop client 200 can give priority to copying video frames with high priority, thereby making the cloud desktop more responsive; when it is necessary to discard frames of the first video to improve smoothness, the cloud desktop client 200 can give priority to discarding video frames with low priority, thereby retaining video frames containing important information.

[0113] In some possible implementations, the priority of a video frame can be determined by frame type and / or frame status. Specifically, the cloud desktop client 200 can parse the video frames of the first video, determine the frame type and / or frame status of the video frames in the first video, and then determine the priority of the video frames in the first video based on the frame type and / or frame status of the video frames in the first video. The frame type is used to identify whether the video frame is a key frame or a non-key frame, and the frame status is used to identify whether the video frame is a still frame or a motion frame.

[0114] The frame type is determined by the compression of the video frame during the encoding process. Specifically, frame types may include intra-frame coded frames (I-frames), predictive-frame coded frames (P-frames), and bi-directional interpolated prediction frames (B-frames). In some possible embodiments, I-frames may be referred to as key frames, typically the first frame of each GOP in a video. Because I-frames are intra-coded frames, the complete image can be reconstructed using only the data of I-frames during decoding. Accordingly, P-frames and B-frames may be referred to as non-key frames.

[0115] In some possible embodiments, the frame state can be characterized by the difference between the current video frame and other video frames in the video. Among them, the other video frames may specifically include video frames located before the current video frame. For example, if the difference between the current video frame and the other video frames is not large, it indicates that the frame state of the current video frame is a still frame. If the current video frame and the other video frames are video frames in the same video scene, but the difference between the current video frame and the other video frames is large, it indicates that the frame state of the current video frame is a moving frame. For example, when the cloud desktop client 200 executes a model design business, the first video corresponding to the user's operation process of moving the material includes 10 video frames. Since the user will have a short pause after finishing the operation of moving the material, the difference between the 11th video frame and the 10th video frame of the first video will be small.

[0116] The cloud desktop client 200 may determine the frame state based on the inter-frame difference. Specifically, the cloud desktop client 200 may parse the video frames of the first video, determine the inter-frame difference of the video frames in the first video, and then encode the inter-frame difference, thereby determining the frame state of the video frames in the first video based on the encoding result of the inter-frame difference.

[0117] The inter-frame differences of the video frames in the first video may include inter-frame differences between the video frames and the reference frame or intra-frame differences between different blocks of the video frames. The reference frame may be a video frame adjacent to the current video frame, or may be a new video frame generated based on an existing video frame in the first video. The generated new video frame may be a video frame generated by the cloud desktop client 200 based on multiple adjacent video frames in the first video.

[0118] In some possible embodiments, after the cloud desktop client 200 encodes the inter-frame difference to obtain an encoding result, if the encoding result is less than a set threshold, it indicates that the frame difference is small, that is, the difference between the current video frame and the other video frames is small, and thus the frame state of the current video frame can be determined to be a still frame. If the encoding result is greater than the set threshold but less than the video scene switching threshold, it indicates that the frame difference is large, that is, the difference between the current video frame and the other video frames is large, and thus the frame state of the current video frame is determined to be a moving frame. The video scene switching threshold is an encoding threshold used to characterize whether the current video frame and the other video frames belong to the same video scene. If the encoding result is greater than the video scene switching threshold, it indicates that the current video frame and the other video frames do not belong to the same video scene.

[0119] Furthermore, the cloud desktop client 200 may determine the priority of the video frames in the first video based on the frame type and / or frame status. In some possible embodiments, the cloud desktop client 200 may only consider the frame type to determine the priority of the video frames. Specifically, key frames have a higher priority than non-key frames. In some possible embodiments, the cloud desktop client 200 may only consider the frame status to determine the priority of the video frames. Specifically, still frames have a higher priority than motion frames. In some possible embodiments, the cloud desktop client 200 may comprehensively consider the frame type and frame status to prioritize the video frames. At the same time, since the complete image can be reconstructed using the data of the key frames, the frame type has a higher priority than the frame status. For example, a video frame that is both a key frame and a still frame is ranked first, a video frame that is both a key frame and a motion frame is ranked second, a video frame that is both a non-key frame and a still frame is ranked third, and a video frame that is both a non-key frame and a motion frame is ranked fourth, wherein the priorities of the first, second, third, and fourth levels decrease in sequence.

[0120] By determining the frame processing strategy based on the priority of the video frames, more targeted processing of the first video can be achieved, so that the second video retains important information in the current business scenario, making the second video more representative and further improving the user experience of accessing the cloud desktop.

[0121] In the embodiment of the present application, when the cloud desktop client 200 executes different services or performs different operations under a certain service, the processing of the first video by the cloud desktop client 200 will change accordingly.

[0122] Referring to an example scenario shown in FIG6 , the business performed by the cloud desktop client 200 changes from a video conferencing business to an office business, and the user's demand for the playback of the first video also changes from a high fluency requirement to a high real-time requirement. As shown in FIG6 , the cloud desktop client 200 can identify that the business scenario has changed from a video conferencing scenario to an office scenario through changes in the frame attributes of the first video (for example, the frame rate and frame size of the video frame in the first video are both reduced) and changes in user operation information (for example, the frequency of interaction between the mouse or keyboard and the cloud desktop client 200 increases, and the range of movement of the mouse pointer on the cloud desktop increases). Combined with the network status of the cloud desktop client 200, the jitter control scheme that prioritizes fluency is changed to a jitter control scheme that prioritizes delay. In this way, when the business performed by the cloud desktop client 200 changes, the user experience of accessing the cloud desktop is ensured.

[0123] Referring to an example scenario shown in FIG7 , when the cloud desktop client 200 is executing a model design business, the user's operation in the business changes from moving materials to viewing rendering effects, and the user's demand for the first video playback also changes from high real-time requirements to high fluency requirements. As shown in FIG7 , the cloud desktop client 200 can identify the business scenario from a graphical display of the model to a video display of dynamic effects through changes in the frame attributes of the first video (for example, the frame size of the video frame in the first video changes from an unstable large bit rate to a stable medium bit rate) and changes in user operation information (for example, the interaction frequency between the mouse or keyboard and the cloud desktop client 200 changes from frequent to basically no interaction, and the movement range of the mouse pointer on the cloud desktop is reduced), and combined with the network status of the cloud desktop client 200, the delay-priority jitter control scheme is changed to a smoothness-priority jitter control scheme. In this way, when the user's specific operation changes in the business executed by the cloud desktop client 200, the user experience of accessing the cloud desktop is ensured.

[0124] By improving the jitter buffer in the cloud desktop client 200, the video processing method provided in the embodiment of the present application can adjust the jitter control scheme in combination with the business scenario in which the user uses the cloud desktop, thereby ensuring that the user has a good user experience in different business scenarios when accessing the cloud desktop.

[0125] The present application also provides a video processing device as shown in FIG8 , which is deployed in a cloud desktop system and includes:

[0126] A receiving module, configured to receive a video data packet, wherein the video data packet records the result of the cloud desktop server executing instructions in the business scenario, wherein the instructions in the business scenario are input by the user through the cloud desktop client;

[0127] A decoding module, configured to decode a video data packet to obtain a first video, wherein the first video includes at least one video frame;

[0128] a jitter delay determination module, configured to determine a jitter delay of the at least one video frame based on a network state and a service scenario, wherein the jitter delay of the at least one video frame indicates when the at least one video frame is used for playback;

[0129] The playback control module is used to play the first video according to the jitter delay of the at least one video frame.

[0130] In some possible embodiments, the video processing device provided by the present application also includes: a frame processing strategy determination module, used to determine the frame processing strategy of the first video based on the network status and business scenario, and the above-mentioned frame processing strategy is used to indicate at least one of the following processing operations on the first video: frame discard, frame copying, frame generation, frame sorting, and frame playback time adjustment.

[0131] In some possible embodiments, the playback control module is configured to play the first video according to the jitter delay of the at least one video frame, specifically including:

[0132] The playback control module processes the first video according to the frame processing strategy to obtain a second video;

[0133] The playback control module plays the second video according to the jitter delay of the at least one video frame.

[0134] In some possible embodiments, the frame processing strategy determination module is used to determine the frame processing strategy of the first video based on the network status and business scenario, specifically including: the frame processing strategy determination module determines the frame processing strategy of the first video based on the network status, business scenario, and the priority of at least one of the above-mentioned video frames.

[0135] In some possible embodiments, the video processing device provided by the present application also includes: a priority determination module, used to determine the priority of the at least one video frame based on the frame type and / or frame status of the at least one video frame, wherein the frame type includes key frames and non-key frames, and the frame status includes still frames and motion frames.

[0136] In some possible embodiments, the video processing device provided by the present application also includes: a scene recognition module, which is used to determine the business scene based on the user's operation information on the cloud desktop client and / or the attribute information of the above-mentioned at least one video frame, wherein the user's operation information on the cloud desktop client includes the identification of the business scene in which the user is located and / or the characteristics of the interactive operation performed by the user, and the attribute information of the above-mentioned at least one video frame includes one or more of the following information: the resolution of the above-mentioned at least one video frame, the frame rate of the above-mentioned first video, the size of the above-mentioned at least one video frame, and the encoding method of the above-mentioned at least one video frame.

[0137] In some possible embodiments, the video processing device provided by the present application further includes a network status determination module, configured to determine the network status according to a network jitter value.

[0138] In some possible embodiments, the jitter delay determination module is used to determine the jitter delay of the above-mentioned at least one video frame based on the network status and business scenario, specifically including: the jitter delay determination module inputs the network status and business scenario into the video processing decision model to obtain the jitter delay of the above-mentioned at least one video frame.

[0139] Specifically, the specific implementation of various operations of the video processing method performed by the video processing device can refer to the description of the relevant content in the above method embodiment, which will not be repeated here.

[0140] In the embodiment of the present application, each module in the above video processing device can be implemented by hardware or software. The following takes the jitter delay determination module as an example to introduce the specific implementation of each module.

[0141] When implemented by software, the jitter delay determination module may include code running on a computing instance. The computing instance may be at least one of a physical host (computing device), a virtual machine, a container, and other computing devices. Furthermore, the above-mentioned computing device may be one or more. For example, the jitter delay determination module may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the application may be distributed in the same region or in different regions. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same AZ or in different AZs, and each AZ includes one data center or multiple data centers with close geographical locations. Generally, a region may include multiple AZs.

[0142] Similarly, the multiple hosts / virtual machines / containers running the code can be distributed within the same VPC or across multiple VPCs. Typically, a VPC is located within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0143] When implemented in hardware, the jitter delay determination module may include at least one computing device, such as a server. Alternatively, the jitter delay determination module may be implemented using an ASIC or a PLD. The PLD may be implemented using a CPLD, FPGA, GAL, or any combination thereof.

[0144] The multiple computing devices included in the jitter delay determination module can be distributed in the same region or in different regions. The multiple computing devices included in the jitter delay determination module can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the jitter delay determination module can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0145] It should be noted that, in other embodiments, a module in the video processing device can be used to execute any step in the video processing method. Taking the jitter delay determination module as an example, the steps that the jitter delay determination module is responsible for implementing can be specified as needed, and the full functions of the video processing device can be realized by implementing different steps in the video processing method through each module.

[0146] This application also provides a computing device 900. As shown in Figure 9, computing device 900 includes a bus 902, a processor 904, a memory 906, and a communication interface 908. Processor 904, memory 906, and communication interface 908 communicate with each other via bus 902. Computing device 900 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 900.

[0147] Bus 902 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG9 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 904 may include a path for transmitting information between various components of computing device 900 (e.g., memory 906, processor 904, and communication interface 908).

[0148] The processor 904 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0149] The memory 906 may include a volatile memory, such as a random access memory (RAM). The processor 904 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD). The memory 906 stores executable program code, and the processor 904 executes the executable program code to implement the aforementioned video processing method. Specifically, the memory 906 stores instructions for the video processing device to execute the video processing method.

[0150] The communication interface 903 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 900 and other devices or a communication network.

[0151] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0152] As shown in Figure 10, the computing device cluster includes at least one computing device 900. The memory 906 in one or more computing devices 900 in the computing device cluster may store the same video processing apparatus for executing instructions of the video processing method.

[0153] In some possible implementations, one or more computing devices 900 in the computing device cluster may also be used to execute some of the instructions of the video processing apparatus for executing the video processing method. In other words, a combination of one or more computing devices 900 may jointly execute the instructions of the video processing apparatus for executing the video processing method.

[0154] It should be noted that the memories 906 in different computing devices 900 in the computing device cluster may store different instructions for executing part of the functions of the video processing apparatus.

[0155] FIG11 illustrates a possible implementation. As shown in FIG11 , two computing devices 900A and 900B are connected via a communication interface 908. The memory in computing device 900A stores instructions for executing the functions of a receiving module, a decoding module, a priority determination module, and a playback control module. The memory in computing device 900B stores instructions for executing the functions of a scene recognition module, a network status determination module, a jitter delay determination module, and a frame processing strategy determination module. In other words, the memories 906 of computing devices 900A and 900B jointly store instructions for the video processing apparatus to execute the video processing method.

[0156] It should be understood that the functionality of the computing device 900A shown in FIG11 may also be implemented by multiple computing devices 900. Similarly, the functionality of the computing device 900B may also be implemented by multiple computing devices 900.

[0157] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-described video processing method.

[0158] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned video processing method applied to the video processing device.

[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A video processing method, characterized in that: The method is applied to a cloud desktop client, and the cloud desktop system where the cloud desktop client is located also includes a cloud desktop server. The method includes: The cloud desktop client receives a video data packet, wherein the video data packet records the execution result of the cloud desktop server on the instruction in the business scenario, and the instruction in the business scenario is input by the user through the cloud desktop client; The cloud desktop client decodes the video data packet to obtain a first video, where the first video includes at least one video frame; The cloud desktop client determines the jitter delay of the at least one video frame according to the network state and the service scenario, and the jitter delay of the at least one video frame indicates when the at least one video frame is used for playback; The cloud desktop client plays the first video according to the jitter delay of the at least one video frame.

2. The method according to claim 1, characterized in that: The method further comprises: The cloud desktop client determines a frame processing strategy for the first video according to the network state and the business scenario, wherein the frame processing strategy is used to indicate that at least one of the following processing operations is performed on the first video: frame discarding, frame copying, frame generation, frame sorting, and frame playback duration adjustment; The cloud desktop client uses the first video for playback according to the jitter delay of the at least one video frame, including: The cloud desktop client processes the first video according to the frame processing strategy to obtain a second video; The cloud desktop client uses the second video for playback according to the jitter delay of the at least one video frame.

3. The method according to claim 2, characterized in that The cloud desktop client determines a frame processing strategy for the first video according to the network state and the business scenario, including: The cloud desktop client determines a frame processing strategy for the first video according to the network status, the service scenario, and a priority of the at least one video frame.

4. The method according to claim 3, characterized in that The method further comprises: The cloud desktop client determines the priority of the at least one video frame according to a frame type and / or a frame status of the at least one video frame, the frame type includes a key frame and a non-key frame, and the frame status includes a still frame and a motion frame.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The cloud desktop client determines the business scenario based on the user's operation information on the cloud desktop client and / or the attribute information of the at least one video frame, wherein the user's operation information on the cloud desktop client includes an identifier of the business scenario in which the user is located and / or characteristics of the interactive operation performed by the user, and the attribute information of the at least one video frame includes one or more of the following information: the resolution of the at least one video frame, the frame rate of the first video, the size of the at least one video frame, and the encoding method of the at least one video frame.

6. The method according to any one of claims 1 to 5, characterized in that The cloud desktop client determines the jitter delay of the at least one video frame according to the network state and the business scenario, including: The cloud desktop client inputs the network status and the business scenario into a video processing decision model to obtain the jitter delay of the at least one video frame.

7. A video processing device, characterized in that: The device is deployed in a cloud desktop system, the cloud desktop system includes a cloud desktop server and a cloud desktop client, and the device includes: A receiving module, configured to receive a video data packet, wherein the video data packet records the execution result of the cloud desktop server on the instruction in the business scenario, and the instruction in the business scenario is input by the user through the cloud desktop client; A decoding module, configured to decode the video data packet to obtain a first video, wherein the first video includes at least one video frame; a jitter delay determination module, configured to determine a jitter delay of the at least one video frame according to a network state and the service scenario, wherein the jitter delay of the at least one video frame indicates when the at least one video frame is used for playback; A playback control module is used to play the first video according to the jitter delay of the at least one video frame.

8. The device according to claim 7, characterized in that The device also includes: a frame processing strategy determination module, configured to determine a frame processing strategy for the first video according to the network state and the service scenario, wherein the frame processing strategy is used to indicate that at least one of the following processing operations is performed on the first video: frame discarding, frame copying, frame generation, frame sorting, and frame playback duration adjustment; The playback control module is used to play the first video according to the jitter delay of the at least one video frame, including: The playback control module processes the first video according to the frame processing strategy to obtain a second video; The playback control module uses the second video for playback according to the jitter delay of the at least one video frame.

9. The device according to claim 8, characterized in that The frame processing strategy determination module is used to determine the frame processing strategy of the first video according to the network state and the service scenario, including: The frame processing strategy determination module determines the frame processing strategy of the first video according to the network status, the service scenario, and the priority of the at least one video frame.

10. The device according to claim 9, characterized in that The device also includes: The priority determination module is used to determine the priority of the at least one video frame according to the frame type and / or frame status of the at least one video frame, the frame type includes a key frame and a non-key frame, and the frame status includes a still frame and a motion frame.

11. The device according to any one of claims 7 to 10, characterized in that The device also includes: A scene recognition module is used to determine the business scene based on the user's operation information on the cloud desktop client and / or the attribute information of the at least one video frame, wherein the user's operation information on the cloud desktop client includes an identifier of the business scene in which the user is located and / or characteristics of the interactive operation performed by the user, and the attribute information of the at least one video frame includes one or more of the following information: the resolution of the at least one video frame, the frame rate of the first video, the size of the at least one video frame, and the encoding method of the at least one video frame.

12. The device according to any one of claims 7 to 11, characterized in that The jitter delay determination module is used to determine the jitter delay of the at least one video frame according to the network state and the service scenario, including: The jitter delay determination module inputs the network status and the service scenario into a video processing decision model to obtain the jitter delay of the at least one video frame.

13. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions, and the at least one processor is used to execute the computer-readable instructions so that the computing device cluster executes the method as described in any one of claims 1 to 6.

14. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 6.

15. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, and when the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data processing method and device

    CN113490055A

  • Data transmission method and device based on cloud desktop, equipment and storage medium

    CN115150638A

  • Cloud service video display method, device, equipment, storage medium and system

    CN115643449A

  • Methods and systems for video processing

    US20190244029A1

Cited By

  • Picture display method and device based on cloud desktop, equipment and medium

    CN119576466A

  • Audio and video processing system and method supporting AI intelligent repair technology

    CN121126017A

  • Cloud mobile phone service quality scheduling method, device, equipment, medium and product

    CN121644355A