Hello all! Sorry if this is a dumb question, but is there something I should’ve done while installing/configureting Qubes to have some kind of video decoding acceleration present in VMs?
As of right now, trying to play any kind of video in any kind of VM results for a choppy/laggy playback for me. Low bitrate 1080p/30 youtube/livestream videos are somewhat watchable, but anything more HQ, higher res, 60 fps etc and it just drops a ton of frames and distorts audio. Even the “”“acceptable”"" low bitrate videos put my 8x4.2+ Ghz used-to-be-top-of-the-line i7 at over 90% load for the whole duration of playback (no throttling from what I’ve seen). It still drops around 5% of the frames but feels somewhat “”“smooth enough”"" to watch, at the cost of the rest of the OS being very sluggish to the point of being barely usable (UI especially). The effect is the same no matter the guest os, video player/browser and ram/vcpu settings applied.
On a separate debian installation on this machine I’d get terrible performance with just KVM - visual slideshow and more crackling than the actual sound. I tried all possible gpu backends (to be honest thinking back I might’ve misconfigured QXL) and the only option that gave me comparable to Qubes video playback performance was -vga virtio
. I had to add -display gtk,gl=on
to achieve like-native video playback (audio was still garbled, but that’s for another topic). I remember on the guest side the video player finding and opening some library it wouldn’t use before, but I have no idea how does it work on the host side (qemu offloading simple math to real gpu vs qemu passing through instructions from guest directly to gpu?) so not sure if it’d be applicable in Qubes at all.
Of course on bare metal it works perfectly.
Main reason I expect some misconfiguration on my side is the lack of complaints about this issue on github and this forum. I’d suspect at least portion of Qubes’ userbase likes to have something playing in the background as I do and I can’t believe they’d all just put up with the choppy video and unresponsive UI.
Gpu is nvidia 10xx driven by nouveau (Version: 1.0.15 Release: 4.fc25). 64 GB of ram. SSD, but tried to play videos from the browser/straight from ram with same performance.
Any suggestions welcome