[Spice-devel] Trouble with lossy compression

Adriano Moura adriano.lols at gmail.com
Mon Jul 11 02:00:46 UTC 2016


I've been trying to use a virtual machine over wi-fi but I'm having trouble
activating the lossy compression method in spice. I can reach about 50mbps
but that does not cut with lossless compression while playing a video. I've
tried all command switches for qemu related to spice compression methods,
but no such luck. Here is an excerpt of the machine's xml config:

  <graphics type='spice' autoport='yes' listen='0.0.0.0'>
    <listen type='address' address='0.0.0.0'/>
  </graphics>
[...]
  <qemu:commandline>
    <qemu:arg value='-spice'/>
    <qemu:arg
value='image-compression=auto-glz,streaming-video=all,jpeg-wan-compression=always,zlib-glz-wan-compression=auto,playback-compression=on'/>
  </qemu:commandline>

Tried different values and checked if qemu's process is carrying those
arguments. (it did)

Very occasionally the spice connection will start with lossy compression
enabled (as if it's actually honoring my settings), but as soon as I
reconnect, it falls back to lossless.

I'm running an updated ArchLinux install. Here are some packages that may
be of interest:

community/libvirt-glib 0.2.3-1
extra/spice 0.12.7-1
extra/spice-protocol 0.12.11-1
community/spice-glib 0.32-1
community/spice-gtk3 0.32-2
extra/qemu 2.6.0-1
core/linux 4.6.3-1

Tried with multiple clients: spicy, remote-viewer, aSPICE (android) and
vinagre

The VM was generated with virt-viewer/libvirtd

Any tip would be welcome!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160710/908a7c60/attachment.html>


More information about the Spice-devel mailing list