[Bug 774811] New: gstreamer-vaapi fails in a headless environment.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 21 20:01:10 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=774811

            Bug ID: 774811
           Summary: gstreamer-vaapi fails in a headless environment.
    Classification: Platform
           Product: GStreamer
           Version: 1.10.0
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer-vaapi
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: swestrup at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
                CC: bsreerenj at gmail.com, vjaquez at igalia.com
     GNOME version: ---

We are trying to use gstreamer-vaapi on a headless server to accelerate
operations on a remote video display. We have configured libva 1.7.3 for
headless operation (--disable-glx --disable-x11 --disable-egl
--disable-wayland) and recompiled it, and it works fine:

# vainfo
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.3)
vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 1.7.2
vainfo: Supported profile and entrypoints
     VAProfileMPEG2Simple            :    VAEntrypointVLD
     VAProfileMPEG2Simple            :    VAEntrypointEncSlice
     VAProfileMPEG2Main              :    VAEntrypointVLD
     VAProfileMPEG2Main              :    VAEntrypointEncSlice
     VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
     VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
     VAProfileH264ConstrainedBaseline:    VAEntrypointEncSliceLP
     VAProfileH264Main               :    VAEntrypointVLD
     VAProfileH264Main               :    VAEntrypointEncSlice
     VAProfileH264Main               :    VAEntrypointEncSliceLP
     VAProfileH264High               :    VAEntrypointVLD
     VAProfileH264High               :    VAEntrypointEncSlice
     VAProfileH264High               :    VAEntrypointEncSliceLP
     VAProfileH264MultiviewHigh      :    VAEntrypointVLD
     VAProfileH264MultiviewHigh      :    VAEntrypointEncSlice
     VAProfileH264StereoHigh         :    VAEntrypointVLD
     VAProfileH264StereoHigh         :    VAEntrypointEncSlice
     VAProfileVC1Simple              :    VAEntrypointVLD
     VAProfileVC1Main                :    VAEntrypointVLD
     VAProfileVC1Advanced            :    VAEntrypointVLD
     VAProfileNone                   :    VAEntrypointVideoProc
     VAProfileJPEGBaseline           :    VAEntrypointVLD
     VAProfileJPEGBaseline           :    VAEntrypointEncPicture
     VAProfileVP8Version0_3          :    VAEntrypointVLD
     VAProfileVP8Version0_3          :    VAEntrypointEncSlice
     VAProfileHEVCMain               :    VAEntrypointVLD
     VAProfileHEVCMain               :    VAEntrypointEncSlice

However, when we try to use gstreamer-vaapi it fails to initialize libva:

$ gst-inspect-1.0 | grep vaapi
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva
error,driver_name=(null)
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva
error,driver_name=(null)

If we manually patch the function gst_vaapi_display_drm_new in
gstvaapidisplay_drm.c to use a hardcoded device_path of /dev/dri/card0 then it
works, but clearly this is a poor workaround and not a real fix.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list