Video processing method and related equipment
By identifying business scenarios and network status, and dynamically adjusting the jitter delay and processing strategy of video frames, the problem of unsmooth video playback and insufficient real-time performance of the cloud desktop system in different scenarios is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202311061487.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2023-08-22
- Publication Date
- 2024-08-23
AI Technical Summary
Existing cloud desktop systems are difficult to meet users' simultaneous requirements for real-time and smooth video playback when faced with different business scenarios. The jitter control method of the jitter buffer is insufficient to meet users' experience needs in different scenarios.
By identifying the user's business scenario and network status, the jitter delay and frame processing strategy of the video frame are dynamically adjusted to ensure that video playback meets the requirements of smoothness and real-time performance in different scenarios, including frame discarding, frame copying, frame generation, and frame processing. Processing operations such as sorting and frame playback duration adjustment.
It improves the user experience of accessing the cloud desktop, balances the real-time and smoothness of video playback in different business scenarios, and meets users' performance requirements for responsive video.
Smart Images

Figure CN118540541A
Abstract
Description
[0001] This application claims priority to a 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 in this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a video processing method, a video processing device, a computing device cluster, a computer-readable storage medium, and a computer program product. Background Art
[0003] The cloud desktop system is used to provide virtual desktop services, which usually include a server deployed on a cloud desktop server and a cloud desktop client deployed on a terminal device. In the cloud desktop system, users can access the virtual desktop environment deployed on the cloud desktop server through a terminal to achieve the effect of performing business operations as if they were on a local desktop system on their personal device. Cloud desktop technology can meet the needs of users to work anytime and anywhere, and has low terminal configuration requirements and high availability.
[0004] The cloud desktop system provides virtual desktop services by outputting videos. Users send operation instructions to the cloud desktop server through the cloud desktop client, and then the cloud desktop server executes the operation instruction and feeds back the execution result to the cloud desktop client in the form of video. Finally, the cloud desktop client responds to the user's operation instruction by playing the video to the user.
[0005] Due to network fluctuations during video transmission, the cloud desktop client will experience jitter in the delay time of receiving the video frames from the cloud desktop server. If the cloud desktop client directly plays the video frames after decoding them, the video playback will be unsmooth. In order to compensate for the jitter, the cloud desktop client usually sets a jitter buffer to store the decoded video frames, and distribute the video frames to the rendering area for playback after waiting for a certain period of time to eliminate the impact of the 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 increases, the waiting time of the video frame in the jitter buffer will be increased so that the video can finally play smoothly.
[0006] However, with the development of cloud desktop services, the types of user business scenarios have increased rapidly, and the existing jitter control method of the jitter buffer is difficult to meet the user's real-time requirements in some scenarios. Therefore, how to perform jitter control that takes into account user scenario switching to meet the user's experience requirements in different business scenarios has become a technical problem that needs to be solved urgently. Summary of the invention
[0007] The present application provides a video processing method, which can control the jitter of the cloud desktop response video according to the network status and business scenario by identifying the business scenario when the user uses the cloud desktop, so that the final playback performance of the response video meets the user's requirements for fluency and real-time performance in the current business scenario, and improves the user's experience when accessing the cloud desktop. The present application also provides a corresponding video processing device, a computing device cluster, a computer-readable storage medium, and a computer program product.
[0008] 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:
[0009] 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;
[0010] The cloud desktop client decodes the video data packet to obtain a first video, where the first video includes at least one video frame;
[0011] The cloud desktop client determines the jitter delay of the at least one video frame according to the network status 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;
[0012] The cloud desktop client plays the first video according to the jitter delay of the at least one video frame.
[0013] In one possible implementation, the video processing method provided by the present application also includes: the cloud desktop client determines a frame processing strategy for the first video based on the network status and business scenario, and the above frame processing strategy is used to indicate at least one of the following processing operations on the first video: frame discard, frame copy, frame generation, frame sorting, and frame playback time adjustment.
[0014] 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.
[0015] In a possible implementation, the cloud desktop client determines a frame processing strategy for the first video based on a network status and a business scenario, including: the cloud desktop client determines a frame processing strategy for the first video based on a network status, a business scenario, and a priority of at least one of the above-mentioned video frames.
[0016] In one possible implementation, the video processing method provided by 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.
[0017] In a 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 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 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.
[0018] In one possible implementation, the cloud desktop client determines the jitter delay of the at least one video frame according to the network status and the business scenario, specifically including: the cloud desktop client inputs the network status and the business scenario into the video processing decision model to obtain the jitter delay of the at least one video frame.
[0019] In a second aspect, the present application provides a video processing device, which is deployed in a cloud desktop system, and the cloud desktop system includes a cloud desktop server and a cloud desktop client. The above-mentioned video processing device specifically includes:
[0020] A receiving module, used 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;
[0021] A decoding module, used for decoding a video data packet to obtain a first video, wherein the first video includes at least one video frame;
[0022] a jitter delay determination module, configured to determine the jitter delay of the at least one video frame according to 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;
[0023] The playback control module is used to play the first video according to the jitter delay of the at least one video frame.
[0024] In one possible implementation, the video processing device provided by 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 copy, frame generation, frame sorting, and frame playback duration adjustment.
[0025] In a possible implementation, the playback control module is used to play the first video according to the jitter delay of the at least one video frame, specifically including:
[0026] The playback control module processes the first video according to the frame processing strategy to obtain a second video;
[0027] The playback control module uses the second video for playback according to the jitter delay of the at least one video frame.
[0028] In a possible implementation, 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, specifically including:
[0029] 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.
[0030] In one possible implementation, 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 according to 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.
[0031] 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 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 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.
[0032] 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 according to 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.
[0033] In a third aspect, the present application provides a computing device cluster. 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. The at least one processor and the at least one memory can communicate with each other. The at least one processor is used to execute instructions stored in the at least one memory, so that the computing device or the computing device cluster performs the video processing method as described in the first aspect or any one of the implementations of the first aspect.
[0034] 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.
[0035] 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 above-mentioned first aspect or any one of the implementations of the first aspect.
[0036] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 The figure is a schematic diagram of the architecture of a media transmission network of a cloud desktop system.
[0038] Figure 2 A schematic diagram of the structure of a traditional jitter buffer.
[0039] Figure 3 The figure is a schematic diagram of an implementation process of a traditional jitter buffer to control jitter of an example video segment 001.
[0040] Figure 4 A schematic diagram of the architecture of a cloud desktop system provided in an embodiment of the present application.
[0041] Figure 5 A flowchart of a video processing method provided in an embodiment of the present application.
[0042] Figure 6 An example scenario for applying a video processing method provided in an embodiment of the present application.
[0043] Figure 7 Another example scenario for applying a video processing method provided in an embodiment of the present application.
[0044] Figure 8 A schematic diagram of the structure of a video processing device provided in an embodiment of the present application.
[0045] Fig. 9 It is a schematic diagram of a computing device provided in an embodiment of the present application.
[0046] Fig.10 It is a schematic diagram of a computing device cluster provided in an embodiment of the present application.
[0047] Fig.11 It is a schematic diagram of an implementation method of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0049] First, the application scenarios involved in the embodiments of the present 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.
[0050] The cloud desktop system usually includes 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 to perform 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.
[0051] Specifically, the cloud desktop system provides cloud desktop services by outputting videos. The process of the cloud desktop system 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, then the cloud desktop server executes the operation instruction and records the execution result as a response video, then the cloud desktop server transmits the response video to the cloud desktop client through the network, and finally the cloud desktop client displays the execution result to the user by playing the response video.
[0052] Figure 1A schematic diagram of the architecture of a media transmission network of a cloud desktop system is given, and the media transmission network logically includes a scheduling layer, a transport layer, a codec layer, and a playback control layer. Among them, the scheduling layer is used for resource scheduling, and specifically can implement resource scheduling based on cost, bandwidth, traffic, and experience among multiple terminals connected to the cloud desktop server to ensure the reasonable allocation of cloud resources. The transport layer is used for data transmission, and can implement congestion control, automatic retransmission request (ARQ), forward error correction (FEC), and bandwidth detection during data transmission to improve the transmission efficiency and transmission reliability of the response video of the cloud desktop service. The codec layer is used to encode and decode the video, and specifically can implement adaptive encoding, decoding, and frame loss compensation to achieve video compression and decompression, which is convenient for the transmission of video data (such as video data packets) and video playback. The playback control layer is used to control the playback of the video, 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 may be collectively referred to as 3A audio processing.
[0053] Due to network fluctuations during video transmission, the delay time for the cloud desktop client to receive the video frame from the cloud desktop server will be jittery. If the cloud desktop client directly plays the video frame after decoding it, the video playback will be unsmooth. Figure 1 As shown, 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 the present 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.
[0054] See also Figure 2A structural schematic diagram of a jitter buffer is shown, and the jitter buffer is 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 state by parsing the header part. On the one hand, the pre-decoding buffer will send the sorted group of pictures (group of picture, GOP) in the video to the decoder for decoding, and the decoder will store the decoded video frame in the decoded buffer. On the other hand, the delay decision submodule will determine the jitter delay according to the network jitter value given by the jitter measurement submodule, so that the cloud desktop client will forward the decoded video frame from the decoded buffer to the renderer for playback according to the jitter delay.
[0055] The following further Figure 3 Taking the video segment 001 including video frame A, video frame B, video frame C, and video frame D as an example, the general implementation process of jitter control by the jitter buffer in the prior art to make the video segment play smoothly is described. Figure 3 As shown, the expected playback time of each video frame is 30ms. The cloud desktop server sends out video frames A, B, C, and D at 30ms, 60ms, 90ms, and 120ms at a time interval of 30ms. Due to network fluctuations, the delay time of video frames A, B, C, and D in the network transmission is 20ms, 30ms, 20ms, and 20ms, respectively. Therefore, video frames A, B, C, and D arrive at the decoded buffer of the cloud desktop client at 50ms, 90ms, 110ms, and 140ms, respectively. Assuming that the jitter control module determines that the jitter delays of video frames A, B, C, and D are 10ms, 0ms, 10ms, and 10ms, respectively, based on the network status, 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. This will enable Figure 3 The video segments in the video are played at 30ms per frame to achieve smooth playback.
[0056] With the rapid development of cloud computing technology, the types of services provided by cloud desktop systems are gradually increasing, and the number of business scenarios included in one type of service is also gradually increasing. When users access cloud desktops, they have different experience requirements in different business scenarios, and accordingly, the performance requirements for the cloud desktop client to play response videos are also different. For example, when users are in video scenarios such as online meetings, users have higher requirements for the smoothness of the playback of response videos, while when users scroll up and down, zoom in and out, select or move materials in model design services, users hope that the cloud desktop can respond quickly to complete the position change of pages or materials, so 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 used for playback as soon as possible after reaching the decoded buffer, that is, the jitter delay cannot be too large, so that the end-to-end delay of the response video will not be too large, thereby meeting the user's real-time requirements.
[0057] However, in the prior art, the jitter buffer can only adjust the jitter control scheme according to the network status to meet the user's requirements for smoothness under different network conditions. When the network status does not change or does not change significantly, the jitter buffer cannot adjust the jitter control scheme according to the changes in the business scenario to meet the user's experience requirements in different business scenarios. For example, when the network jitter is large, the existing jitter buffer will increase the jitter delay to compensate for the jitter and make the response video playback smooth, but the jitter delay at this time may be too high. When the network status does not change and the user switches to a business scenario with high real-time requirements, the jitter delay at this time will be difficult to meet the user's real-time requirements.
[0058] 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 a cloud desktop 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 is deployed with a cloud desktop server application (referred to as a cloud desktop server), and a cloud desktop client application (referred to as a cloud desktop client) is deployed on the terminal. The terminal can run the cloud desktop client to interact with the cloud desktop server running on the cloud desktop server, thereby accessing the virtual desktop service deployed on the cloud desktop server.
[0059] 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 according to the network status and the business scenario of the user. The jitter delay indicates when the 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.
[0060] 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 for video playback performance (such as fluency and real-time) requirements, for example, balancing the real-time and fluency of video playback, thereby improving the user's experience of accessing the cloud desktop.
[0061] In order to make the technical solution of the present application clearer and easier to understand, the architecture of the cloud desktop system that can implement the video processing method provided by the present application is first introduced below.
[0062] See also Figure 4 The schematic diagram of the architecture of a cloud desktop system is shown, wherein 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.
[0063] The video generation module 102 is used to generate a response video, which records the execution 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 data packet encoded by the response video to the cloud desktop client 200 through the network.
[0064] 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 network connection quality, such as a jitter value of the network.
[0065] The scene recognition module 110 is used to identify the business scene of the user in the cloud desktop. The business scene 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 scene by responding to the attribute information of the video frame in the video and the operation information of the user in the cloud desktop client 200. Among them, the attribute information of the video frame may include one or more of resolution, frame rate, frame size, and encoding method; the operation information of the user in the cloud desktop client 200 may include one or more of the identification of the business scene in which the user is located and the characteristics of the interactive operation performed by the user.
[0066] 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 business scenario of the user in the cloud desktop, so that the playback performance of the decoded video meets the user's current business scenario. Experience requirements for smoothness or real-time performance.
[0067] 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 the jitter delay and the corresponding frame processing strategy according to the network status of the cloud desktop client 200 and the business scenario of the user in the cloud desktop; the frame processing submodule 1124 may process the video frames of the decoded video according to the frame processing strategy for playback. Specifically, the frame processing strategy may include at least one of frame discarding, frame copying, frame generation, frame sorting, and frame playback duration adjustment.
[0068] 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.
[0069] In some possible implementations, the cloud desktop client 200 further includes a priority determination module 109, which is used to determine the priority of the video frame in the decoded video. At this time, the video processing module 112 can further consider the priority of the video frame in the decoded video to determine the frame processing strategy so that the processing of the video frame in the decoded video is more targeted, and the important information in the current business scenario can be retained in the final played video.
[0070] The video processing method of the present application is described in detail below with reference to embodiments. Figure 5A flowchart of a video processing method provided by the present application is given. The method can be Figure 4 The cloud desktop system 10 shown in the figure performs the method, which specifically includes the following steps S402 to S414:
[0071] S402: The user sends instructions in the business scenario to the cloud desktop server 100 through the cloud desktop client 200.
[0072] An instruction can be a description of an element of an executable program, and an instruction is usually used to instruct the device that executes the instruction to implement a specific function. For example, when a user is in an office scene in a cloud desktop, the user can send a file creation instruction, a file opening instruction, an application running instruction, etc. to the cloud desktop server 100 through the cloud desktop client 200. Among them, the file creation instruction is used to instruct the cloud desktop client to create a file, the file opening instruction is used to instruct the cloud desktop client to open a file, and the application running instruction is used to instruct the cloud desktop client to run an application.
[0073] The cloud desktop client 200 can generate instructions corresponding to the trigger operation in response to the user's trigger operation. Among them, 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.
[0074] 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.
[0075] Specifically, the cloud desktop server 100 can execute the instruction sent by the cloud desktop client 200 and record the execution result as a video. In the embodiment of the present application, the video containing the instruction execution result generated by the cloud desktop server 100 is also called a response video.
[0076] 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.
[0077] 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, texts), 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 execution of the instruction, and generate a second video frame based on the desktop content before the execution of the instruction and the identifier of the new file, and then generate a response video based on the first video frame and the second video frame.
[0078] S406: The cloud desktop server 100 sends a video data packet of a response video to the cloud desktop client 200.
[0079] In actual applications, in order 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 a possible embodiment, the cloud desktop server 100 can generate a video data packet of the response video based on a real-time transport protocol (RTP).
[0080] 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.
[0081] 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.
[0082] S410: The cloud desktop client 200 determines the network status and the business scenario of the user.
[0083] In the embodiment of the present application, the network state includes the fluctuation state of the network used when the cloud desktop server 100 sends a video data packet to the cloud desktop client 200. The network state generally reflects the network transmission performance or the network connection quality, which can be represented by one or more indicators of network delay, network jitter value, and packet loss rate. Specifically, the cloud desktop client 200 can determine the network fluctuation state by obtaining the network jitter value.
[0084] 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.
[0085] In some possible embodiments, the cloud desktop client 200 can obtain the value of at least one indicator such as network delay, network jitter value or packet loss rate by parsing the header part of the received video data packet, thereby determining the network status. When a user uses a cloud desktop, the business is processed through a computer program on the cloud desktop, such as an application. Furthermore, depending on the different trigger operations input by the user, a business can specifically include different business scenarios when it is processed. For example, when a user uses a cloud conference application on a cloud desktop to process business, the business scenario in which the user is located may include entering a meeting scenario, attending a meeting scenario, speaking scenario, viewing meeting content scenario, etc. For example, if a user triggers an operation to enter a meeting, the business scenario will be determined as an entry meeting scenario; if a user triggers an operation to unmute, the business scenario will be determined as a speaking scenario.
[0086] Taking into account 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.
[0087] 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. Among them, 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.
[0088] In some possible embodiments, the identifier of the business scenario in which the user is located can uniquely indicate the business that the user is processing on the cloud desktop, and can be composed of a business provider identifier (registered application provider identifier, RID) and an identifier extension (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 business scenario in which the user is located. For example, when the user uses the cloud desktop for word editing, the user will open the office application; and when the user uses the cloud desktop for 3D model design, the user will open the model design software.
[0089] 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 of times 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.
[0090] Since the frequency of interactive operations performed by the user on the cloud desktop client 200 is different in different business scenarios, the characteristics of the screens required to be presented by the response video generated by the cloud desktop server 100 will also be different accordingly, so the cloud desktop client 200 can determine the business scenario according to 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 is an explanation in conjunction with a specific business scenario example.
[0091] For example, when a user drags a model in a 3D model design business, the interactive operation performed by the user will be characterized by frequent operations, such as a long duration of mouse clicks and a large range of mouse pointer movement on the cloud desktop. At the same time, due to the movement of the model, the characteristics of the picture presented by the response video will be characterized by a dramatic change, such as a large video frame size. When a user is participating in a video conference, the interactive operation performed by the user will be characterized by infrequent operations, such as the user does not click the mouse or keyboard. At the same time, due to the continuous playback of the conference screen, the characteristics of the picture presented by the response video will be characterized by a dramatic change, such as a high frame rate of the video.
[0092] 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 larger 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, such as 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.
[0093] 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 scene 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 a 3D model design software, and then further determine that the business scene the user is in is a model dragging scene in 3D model design based on the frequent mouse operations of the user (e.g., the duration of clicking the mouse is long and the range of movement of the mouse pointer is large).
[0094] 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.
[0095] 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 the present 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.
[0096] 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 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 of video playback according to 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 business scenarios. 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.
[0097] 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 objective according to the network status and business scenario during optimization, thereby providing a jitter delay that can meet the user's experience requirements in different business scenarios while compensating for network jitter.
[0098] The video processing method provided in the present 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 the 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.
[0099] by Figure 3Taking the video segment 001 shown as an example, the prior art only considers the network status for jitter control, so as long as the network status does not change, no matter the video is the response result of the cloud desktop in the office scene or the response result in the video conference scene, the prior art will use the video segment 001 for playback according to the jitter delay of video frames A, B, C, and D being 10ms, 0ms, 10ms, and 10ms respectively, and such a jitter control scheme will not meet the user's requirements for the real-time response of the cloud desktop in the office scene. Different from the prior art, under the same network state, the video processing method provided by the present application can adjust the jitter control scheme accordingly to meet the user's requirements for real-time performance in the office scene when the business scene where the user is located is changed from the video conference scene to the office scene. For example, when the business scene corresponding to the video segment 001 is changed from the video conference scene to the office scene, the jitter delay of the 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 requirements in the office scene than in the video conference scene. It should be noted that the specific values of the jitter delay in the two service scenarios in the above embodiments 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.
[0100] 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.
[0101] 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.
[0102] 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 directly distributes the video frames cached in the decoded buffer 106 to the playback control area (e.g., 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 played after being rendered.
[0103] In some possible embodiments, when the business scenario in which the user is located has high requirements for real-time performance, 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 copy, frame generation, frame sorting, and frame playback time adjustment.
[0104] In order to better understand how to improve the smoothness of the final video playback through the above frame processing operations, the following is still based on Figure 3 The video segment 001 shown is used 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 scenario, 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 scenario than in the video conferencing scenario. 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, which 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 overlap. Therefore, in order to improve the smoothness of video playback, video segment 001 can be frame processed, and several processing examples are introduced below. In some possible embodiments, the processing of the video segment 001 includes adjusting the frame playing time, specifically, increasing the playing time of the video frame A to 35ms, and reducing the playing time of the video frame B to 25ms. In some possible embodiments, the processing of the video segment 001 includes frame duplication and frame discarding, specifically, the original video frame A in the video segment 001 can be duplicated to obtain a video frame A-1 frame, and the video frame B can be discarded. After the original video frame A is played for 30ms, the video frame A-1 is played for 30ms, and after the video frame A-1 is played, the video frame C is played instead. In some possible embodiments, the 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 previous associated video frames to fill the content gap, and the newly generated video frame N and other original video frames are arranged in a play order. The final play mode is as follows: after playing video frame A for 30ms, video frame N is played for 30ms, and after playing video frame N, video frame C is played. In addition, in some possible embodiments, frame sorting also includes reordering the original video frames for correct play when the arrival order of video frames is wrong due to large network fluctuations.
[0105] It should be noted that the several combinations of processing operations included in the processing scheme of the above video segment 001 are only used as examples to illustrate the meaning of several frame processing operations, and should not be regarded as limiting the specific implementation of the present application. For example, in some other possible embodiments, the processing method for video segment 001 can be: discarding video frame B, while increasing the playback time of video frame A to 60ms, and then playing video frame C after video frame A is finished. At this time, the processing of video segment 001 includes frame playback time adjustment and frame discarding.
[0106] 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.
[0107] 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 according to the network status and the 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 the label of the training data for 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.
[0108] 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 network status and business scenarios, the video processing decision model can balance real-time and smoothness while considering the processing costs corresponding to the frame processing strategies under different jitter delays (such as processing difficulty, computing power resources required for processing operations, and other processing costs), and ultimately determine a jitter control solution that meets user experience requirements while reducing processing costs.
[0109] 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 frame in the first video, thereby determining the frame processing strategy of the first video according to the priority of the video frame.
[0110] 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 consider the priority of the video frame to process the first video so that the final played video does not lose important information. For example, when it is necessary to copy the frames of the first video to improve the smoothness, the cloud desktop client 200 can give priority to copying video frames with high priority, so that the cloud desktop responds better; when it is necessary to discard the frames of the first video to improve the smoothness, the cloud desktop client 200 can give priority to discarding video frames with low priority, so as to retain video frames containing important information.
[0111] In some possible implementations, the priority of the video frame can be determined by the frame type and / or frame status. Specifically, the cloud desktop client 200 can parse the video frame of the first video, determine the frame type and / or frame status of the video frame in the first video, and then determine the priority of the video frame in the first video according to the frame type and / or frame status of the video frame in the first video. Among them, the frame type is used to identify the video frame as a key frame or a non-key frame, and the frame status is used to identify the video frame as a still frame or a motion frame.
[0112] The frame type is determined by the compression of the video frame during the encoding process, and the frame type may specifically include an intra picture (I frame), a predictive-frame (P frame), and a bi-directional interpolated prediction frame (B frame). In some possible embodiments, an I frame may be referred to as a key frame, which is usually the first frame of each GOP in a video. Since an I frame is an intra-frame coded frame, only the data of the I frame may be used to reconstruct a complete image during decoding; accordingly, a P frame and a B frame may be referred to as a non-key frame.
[0113] 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, 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 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 other video frames are video frames in the same video scene, but the difference between the current video frame and 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 performs a model design service, the first video corresponding to the user's operation process of moving materials includes 10 video frames. Since the user will have a short pause after finishing the operation of moving materials, the difference between the 11th video frame and the 10th video frame of the first video will be small.
[0114] The cloud desktop client 200 can determine the frame state based on the inter-frame difference. Specifically, the cloud desktop client 200 can parse the video frame of the first video, determine the inter-frame difference of the video frame in the first video, and then encode the inter-frame difference, thereby determining the frame state of the video frame in the first video according to the encoding result of the inter-frame difference.
[0115] The inter-frame difference of the video frames in the first video may include the inter-frame difference of the video frame relative to the reference frame or the intra-frame difference of different blocks of the video frame. The reference frame may be a video frame adjacent to the current video frame, or may be a new video frame generated based on the original 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.
[0116] In some possible embodiments, after the cloud desktop client 200 encodes the inter-frame difference to obtain the encoding result, if the encoding result is less than the set threshold, it indicates that the frame difference is small, that is, the difference between the current video frame and other video frames is small, so that 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 other video frames is large, so that the frame state of the current video frame is determined to be a moving frame. Among them, the video scene switching threshold is a coding threshold used to characterize whether the current video frame and 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 other video frames do not belong to the same video scene.
[0117] Further, the cloud desktop client 200 may determine the priority of the video frame in the first video based on the frame type and / or frame state. In some possible embodiments, the cloud desktop client 200 may only consider the frame type to determine the priority of the video frame, specifically, the priority of the key frame is higher than that of the non-key frame. In some possible embodiments, the cloud desktop client 200 may only consider the frame state to determine the priority of the video frame, specifically, the priority of the still frame is higher than that of the motion frame. In some possible embodiments, the cloud desktop client 200 may comprehensively consider the frame type and the frame state to prioritize the video frame, and since the complete image can be reconstructed using the data of the key frame, the priority of the frame type is higher than that of the frame state. For example, a video frame that is both a key frame and a still frame is at the first level, a video frame that is both a key frame and a motion frame is at the second level, a video frame that is both a non-key frame and a still frame is at the third level, and a video frame that is both a non-key frame and a motion frame is at the fourth level, wherein the priorities of the first level, the second level, the third level, and the fourth level are successively reduced.
[0118] By determining the frame processing strategy according to the priority of the video frame, 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.
[0119] 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.
[0120] See also Figure 6 In an example scenario shown, 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 first video playback also changes from a high fluency requirement to a high real-time requirement. Figure 6 As shown, the cloud desktop client 200 can identify the change of the business scene from the video conference scene to the office scene through the change of the frame attributes of the first video (for example, the frame rate and frame size of the video frame in the first video are reduced) and the change of the user operation information (for example, the interaction frequency between the mouse or keyboard and the cloud desktop client 200 increases, and the movement range of the mouse pointer on the cloud desktop increases), and change the jitter control scheme that prioritizes smoothness to the jitter control scheme that prioritizes delay in combination with the network status of the cloud desktop client 200. In this way, when the business executed by the cloud desktop client 200 changes, the user experience of accessing the cloud desktop is ensured.
[0121] See also Figure 7 In an example scenario shown, when the cloud desktop client 200 is executing a model design service, the user's operation in the service 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. Figure 7 As shown, the cloud desktop client 200 can identify the change of the business scenario from the graphical display of the model to the video display of the dynamic effect through the change of the frame attribute 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 the change of the 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 jitter control scheme with delay priority is changed to the jitter control scheme with smoothness priority. In this way, when the specific operation of the user changes in the business executed by the cloud desktop client 200, the user experience of accessing the cloud desktop is ensured.
[0122] 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.
[0123] The present application also provides a Figure 8 The video processing device shown is deployed in a cloud desktop system and includes:
[0124] A receiving module, used 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;
[0125] A decoding module, used for decoding a video data packet to obtain a first video, wherein the first video includes at least one video frame;
[0126] a jitter delay determination module, configured to determine the jitter delay of the at least one video frame according to 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;
[0127] The playback control module is used to play the first video according to the jitter delay of the at least one video frame.
[0128] In some possible embodiments, the video processing device provided by 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 copy, frame generation, frame sorting, and frame playback time adjustment.
[0129] In some possible embodiments, the playback control module is used to play the first video according to the jitter delay of the at least one video frame, specifically including:
[0130] The playback control module processes the first video according to the frame processing strategy to obtain a second video;
[0131] The playback control module uses the second video for playback according to the jitter delay of the at least one video frame.
[0132] 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.
[0133] 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 according to 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.
[0134] In some possible embodiments, the video processing device provided by the present application also includes: a scene recognition module, 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 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 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.
[0135] In some possible embodiments, the video processing device provided by the present application further includes a network status determination module, which is used to determine the network status according to the network jitter value.
[0136] 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 according to 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.
[0137] Specifically, the specific implementation of the various operations of the video processing method performed by the video processing device can refer to the description of the relevant contents in the above method embodiment, which will not be repeated here.
[0138] 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.
[0139] 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 a data center or multiple data centers with close geographical locations. Generally, a region may include multiple AZs.
[0140] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same VPC or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway must be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0141] When implemented by hardware, the jitter delay determination module may include at least one computing device, such as a server, etc. Alternatively, the jitter delay determination module may also be a device implemented by ASIC or PLD, etc. The PLD may be implemented by CPLD, FPGA, GAL or any combination thereof.
[0142] 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 computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0143] 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. The full functions of the video processing device can be realized by implementing different steps in the video processing method through various modules.
[0144] The present application also provides a computing device 900. Fig. 9As shown, the computing device 900 includes: a bus 902, a processor 904, a memory 906, and a communication interface 908. The processor 904, the memory 906, and the communication interface 908 communicate through the bus 902. The computing device 900 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 900.
[0145] The bus 902 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 The bus 904 is represented by only one line, but does not mean that there is only one bus or one type of bus. The bus 904 may include a path for transmitting information between various components of the computing device 900 (eg, the memory 906, the processor 904, and the communication interface 908).
[0146] The processor 904 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0147] 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.
[0148] 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.
[0149] The embodiment of the present application also provides 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 smart phone.
[0150] like Fig.10 As shown, 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 device for executing instructions of the video processing method.
[0151] In some possible implementations, one or more computing devices 900 in the computing device cluster may also be used to execute part of the instructions of the video processing device 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 device for executing the video processing method.
[0152] It should be noted that the memory 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.
[0153] Fig.11 A possible implementation is shown. Fig.11 As shown, two computing devices 900A and 900B are connected via a communication interface 908. The memory in the 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 the 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 the computing devices 900A and 900B jointly store instructions for the video processing apparatus to execute the video processing method.
[0154] It should be understood that Fig.11 The functions of the computing device 900A shown in FIG. 9A may also be completed by multiple computing devices 900. Similarly, the functions of the computing device 900B may also be completed by multiple computing devices 900.
[0155] The embodiment of 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-mentioned video processing method.
[0156] 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 the computing device or a data storage device such as a data center containing 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 hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned video processing device for executing the video processing method.
[0157] 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 cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the 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
Cited By
Bluetooth sound box synchronous playing method and system
CN119653475A
Data processing method and device, communication device, storage medium and program product
CN122891561A
