[Spice-devel] How to use spice-streaming-agent properly?

ole-krutov at yandex.ru ole-krutov at yandex.ru
Sat Jan 25 12:58:11 UTC 2020


Hello dear devs,

our host has libspice-server1 0.14.2, qemu-kvm 4.1, libvirt 5.0.0 with "ramfb" option for mediated devices enabled,  NVIDIA GRID GPU. We'd like to stream GPU-accelerated video from Linux guests. spice-streaming-agent+gst-plugin is built and sends video encoded to H.264 by NVENC codec from guest. Quality of video is very good, bitrate and presets can be set by cmdline parameters.
Guest's video config consists of hostdev mediated device which corresponds to NVIDIA vGPU and second "none", which is needed because of libvirt 5.0 does not allow guests with only mediated device set.
There are two showstoppers: 

1) when enabled, the video stream creates a new window in remote-viewer (versions 6.0-8.0) instead of replace old one. Old SPICE traffic is sent along with H264 stream, consuming network and client CPU significantly. When this "old main" trafficis is disabled in remote-viewer, video streaming stops too. Remmina (all new builds including 2020.01.08) does not show this window at all.
2) No mouse or keyboard control is available in window with video stream, so it can be used just like some "TV set" but all actions should be done in old window. Guest logs say about some mouse activity on unknown display when mouse buttons are pressed on tthis window.

Can that be fixed? Can spice-streaming-agent replace main display channel?

Thanks in advance!


More information about the Spice-devel mailing list