The invention discloses a method and
system for improving a high-definition video playing effect in a
virtual desktop, and relates to the field of desktop cloud. The method comprises the following steps: installing a GPU on a computing node
server running in an SPICE
server, so that the SPICE
server can call the GPU to perform
video encoding; running the SPICE server and monitoring a connection initiated by the SPICE
client; reporting, by the SPICE
client, a local
video decoding capability set to the SPICE server, selecting, by the SPICE server, an encoding mode and notifying the SPICE
client,and separately creating, by the SPICE client and the SPICE server, an
encoder and a decoder according to the encoding mode; playing a high-definition video in a
virtual machine, detecting, by the SPICE server, a video playing area of the high-definition video according to the
refresh rate and submitting the video playing area to the
encoder, calling, by the
encoder, the GPU of the SPICE server for
video encoding, and sending the same to the SPICE client; and calling, by the SPICE client, the decoder for decoding, restoring the code into image for displaying. By adoption of the method and
system, the load of the CPU of the SPICE server can be reduced, the occupied bandwidth can be significantly reduced, and the video playing effect can be improved.