Question / Help FFMPEG VAAPI option not showing up - Ubuntu 16.04

pawelpredki

New Member
Hello everyone,

I was looking forward to the latest release hoping I could take advantage od the VAAPI support. However, this option is not available to me.

My CPU is Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz and, as far as I understand, it should support VAAPI:

Code:
vainfo
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
failed to open /usr/lib/x86_64-linux-gnu/dri/hybrid_drv_video.so
Failed to wrapper hybrid_drv_video.so
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.3
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

I'm not sure if I'm missing something. I don't like the 'failed to open' message about the hybrid_drv_video but as long as i965 is there I hoped I would be in the clear.

Any suggestions are appreciated!
 

Attachments

  • 2019-02-27 20-57-28.txt
    6.5 KB · Views: 17

Burator

New Member
obs in ubuntu ppa compiled with libavutil-ffmpeg54 but for vaapi support need
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(55, 27, 100)
 

pawelpredki

New Member
Thank you for your reply @Burator . I installed the latest version of libavutil but I still don't see the option in OBS.
Code:
dpkg -l | grep libav
ii  gstreamer1.0-libav:amd64                               1.8.3-1ubuntu0.2                                                            amd64        libav plugin for GStreamer
ii  libav-tools                                            7:2.8.15-0ubuntu0.16.04.1                                                   all          Compatibility links for libav-tools (transitional package)
ii  libavahi-client3:amd64                                 0.6.32~rc+dfsg-1ubuntu2.3                                                   amd64        Avahi client library
ii  libavahi-client3:i386                                  0.6.32~rc+dfsg-1ubuntu2.3                                                   i386         Avahi client library
ii  libavahi-common-data:amd64                             0.6.32~rc+dfsg-1ubuntu2.3                                                   amd64        Avahi common data files
ii  libavahi-common-data:i386                              0.6.32~rc+dfsg-1ubuntu2.3                                                   i386         Avahi common data files
ii  libavahi-common3:amd64                                 0.6.32~rc+dfsg-1ubuntu2.3                                                   amd64        Avahi common library
ii  libavahi-common3:i386                                  0.6.32~rc+dfsg-1ubuntu2.3                                                   i386         Avahi common library
ii  libavahi-core7:amd64                                   0.6.32~rc+dfsg-1ubuntu2.3                                                   amd64        Avahi's embeddable mDNS/DNS-SD library
ii  libavahi-glib1:amd64                                   0.6.32~rc+dfsg-1ubuntu2.3                                                   amd64        Avahi GLib integration library
ii  libavahi-ui-gtk3-0:amd64                               0.6.32~rc+dfsg-1ubuntu2.3                                                   amd64        Avahi GTK+ User interface library for GTK3
ii  libavc1394-0:amd64                                     0.5.4-4                                                                     amd64        control IEEE 1394 audio/video devices
ii  libavcodec-extra                                       7:2.8.15-0ubuntu0.16.04.1                                                   all          FFmpeg library with extra codecs (metapackage)
ii  libavcodec-ffmpeg-extra56:amd64                        7:2.8.15-0ubuntu0.16.04.1                                                   amd64        FFmpeg library with additional de/encoders for audio/video codecs
ii  libavdevice-ffmpeg56:amd64                             7:2.8.15-0ubuntu0.16.04.1                                                   amd64        FFmpeg library for handling input and output devices - runtime files
ii  libavfilter-ffmpeg5:amd64                              7:2.8.15-0ubuntu0.16.04.1                                                   amd64        FFmpeg library containing media filters - runtime files
ii  libavformat-ffmpeg56:amd64                             7:2.8.15-0ubuntu0.16.04.1                                                   amd64        FFmpeg library with (de)muxers for multimedia containers - runtime files
ii  libavresample-ffmpeg2:amd64                            7:2.8.15-0ubuntu0.16.04.1                                                   amd64        FFmpeg compatibility library for resampling - runtime files
ii  libavutil-dev:amd64                                    7:2.8.15-0ubuntu0.16.04.1                                                   amd64        FFmpeg library with functions for simplifying programming - development files
ii  libavutil-ffmpeg54:amd64                               7:2.8.15-0ubuntu0.16.04.1                                                   amd64        FFmpeg library with functions for simplifying programming - runtime files
 

Burator

New Member
you need upgrade libraries for example from this repository
and then you have 2 choise
1 - compile OBS from source
2 - download binaries compiled by me and install (backup current obs binaries)
obs - to /usr/bin
lib - to /usr/lib
obs-plugins - to /usr/lib/obs-plugins
obs-scripting - to /usr/lib/obs-scripting
obs.desktop - to desktop folder
 

pawelpredki

New Member
Thanks again. I will try compiling from source eventually but I don't understand how a version is distributed that doesn't support one of the features highlighted in it.
 

kfred

New Member
I am seeing the same issue. I installed from a snap on Ubuntu 18.04, and am running 23.1.0. vainfo shows:
libva info: VA-API version 1.5.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_5
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.5 (libva 2.5.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.4.0.pre1 (2.3.0-11-g881e67a)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
....

I don't see any encoder options other than software. I've not found any doc on how to configure this or how to make sure everything I have is the right level, but I'm pretty sure the answer isn't to download binaries posted by a "New Member". Any help appreciated.
 
Top