Hi,
On Tue, Apr 21, 2020 at 11:45:34AM +0200, Gianluca Cecchi wrote:
On Tue, Apr 21, 2020 at 11:10 AM Victor Toso
<victortoso(a)redhat.com> wrote:
[snip]
> For mjpeg encoding, you don't need to change anything. For
> x264/vp8 with GStreamer, spice must be built with GStreamer
> option enabled. You can check if that's the case for your spice
> server library by running ldd in the .so file, e.g:
>
> spice (master 717ed19a) $ ldd ~/dev/lib64/libspice-server.so | grep -i gst
> libgstreamer-1.0.so.0 => /lib64/libgstreamer-1.0.so.0
> (0x00007f393b57d000)
> libgstapp-1.0.so.0 => /lib64/libgstapp-1.0.so.0 (0x00007f393b568000)
> libgstbase-1.0.so.0 => /lib64/libgstbase-1.0.so.0 (0x00007f393b0df000)
>
>
Just for reference,
- on latest 4.3.9 ovirt node ng
[root@ovirt ~]# ldd /usr/lib64/libspice-server.so.1.12.4 | grep -i gst
[root@ovirt ~]#
- on latest 4.4 beta4 ovirt node ng
[root@novirt2 ~]# ldd /usr/lib64/libspice-server.so.1.13.0 | grep -i gst
libgstapp-1.0.so.0 => /lib64/libgstapp-1.0.so.0 (0x00007f8b7845f000)
libgstvideo-1.0.so.0 => /lib64/libgstvideo-1.0.so.0 (0x00007f8b781c3000)
libgstbase-1.0.so.0 => /lib64/libgstbase-1.0.so.0 (0x00007f8b77f4c000)
libgstreamer-1.0.so.0 => /lib64/libgstreamer-1.0.so.0 (0x00007f8b77c0c000)
[root@novirt2 ~]#
Cool,
Plus, you need the plugins for encoding in your host.
>
In term of? Packages? How to check?
Gianluca
In terms of packages, that can vary a bit due license/patent
code but as quick check, spice's autotools does checks the
following:
https://gitlab.freedesktop.org/spice/spice/-/blob/master/configure.ac#L93
x264enc element is in gst-plugins-ugly while vp8enc and vp9enc in
gst-plugins-good. You can check if you have each of those in the
path by running gst-inspect-1.0, eg:
$ gst-inspect-1.0 vp8enc | head
Factory Details:
Rank primary (256)
Long-name On2 VP8 Encoder
Klass Codec/Encoder/Video
Description Encode VP8 video streams
Author David Schleef <ds(a)entropywave.com>, Sebastian Dröge
<sebastian.droege(a)collabora.co.uk>
Plugin Details:
Name vpx
Description VP8 plugin
Cheers,
Victor