[RFC v1 0/2] spice: Add an option to forward the dmabuf directly to the encoder

Vivek Kasireddy posted 2 patches 1 year, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230111053707.781484-1-vivek.kasireddy@intel.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>
include/ui/spice-display.h |   2 +
qemu-options.hx            |  11 +++-
ui/spice-core.c            |  36 +++++++++++--
ui/spice-display.c         | 106 ++++++++++++++++++++++++++-----------
4 files changed, 120 insertions(+), 35 deletions(-)
[RFC v1 0/2] spice: Add an option to forward the dmabuf directly to the encoder
Posted by Vivek Kasireddy 1 year, 3 months ago
This patch series adds options to select a preferred codec and also
to forward a dmabuf directly to the encoder module that is part of
the Spice server. Currently, gstreamer:h264 is the only combination
tested but additional work is ongoing to test other combinations. 

Tested with: -device virtio-gpu-pci,max_outputs=1,blob=true,xres=1920,yres=1080
             -spice port=3001,gl=on,disable-ticketing=on,dmabuf-encode=on,
              preferred-codec=gstreamer:h264

and remote-viewer --spice-debug spice://x.x.x.x:3001 on the client side.

Associated Spice server patches can be found here:
https://lists.freedesktop.org/archives/spice-devel/2023-January/052927.html

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>

Vivek Kasireddy (2):
  spice: Add an option for users to provide a preferred codec
  spice: Add an option to forward the dmabuf directly to the encoder

 include/ui/spice-display.h |   2 +
 qemu-options.hx            |  11 +++-
 ui/spice-core.c            |  36 +++++++++++--
 ui/spice-display.c         | 106 ++++++++++++++++++++++++++-----------
 4 files changed, 120 insertions(+), 35 deletions(-)

-- 
2.37.2