VLC fails to enable VA-API acceleration in Ubuntu 17.10

Bug #1716800 reported by Huixiu
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
vlc (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I configured VLC to "VA-API video decoder via DRM". Playing some movies I got:
  libva info: VA-API version 0.40.0
  libva info: va_getDriverName() returns 1
  libva error: va_getDriverName() failed with operation
  failed,driver_name=i965
  [00007f8cd40f9c68] vaapi_drm generic error: Failed to initialize the
  VAAPI device

After set up "export LIBVA_DRIVER_NAME=i965", I got:
  libva info: VA-API version 0.40.0
  libva info: va_getDriverName() returns -1
  libva info: User requested driver 'i965'
  libva info: Trying to open /usr/lib/x86_64-linux-
   gnu/dri/i965_drv_video.so
  libva info: Found init function __vaDriverInit_0_40
  libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init
     failed
  libva info: va_openDriver() returns -1
  vaInitialize failed with error code -1 (unknown libva error),exit

$ vainfo
libva info: VA-API version 0.40.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_40
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.40 (libva )
vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 1.8.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

So, I can not get video acceleration in VLC enabled.

vlc version: 2.2.6-4build1, libva: 1.8.3-1.

Thanks a lot.

Tags: artful
Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

Missing vlc -vvv output.

Changed in vlc (Ubuntu):
status: New → Incomplete
Revision history for this message
Huixiu (huixiu) wrote :

vlc -vvv as attachment

Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

Sorry, we'd need the vlc -vvv output when you try to play the move.

Huixiu (huixiu)
Changed in vlc (Ubuntu):
status: Incomplete → New
Revision history for this message
Huixiu (huixiu) wrote :

vlc -vvv as attachment

Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

Which Intel CPU do you have?

Revision history for this message
Huixiu (huixiu) wrote :

# cat /proc/cpuinfo | grep 'name'| uniq
model name : Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
# lspci -v|grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07) (prog-if 00 [VGA controller])

summary: - VLC failed to enable Video accelerationI in Artful Beta 1
+ VLC fails to enable VA-API acceleration in Ubuntu 17.10
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vlc (Ubuntu):
status: New → Confirmed
Huixiu (huixiu)
description: updated
Revision history for this message
antgel (antgel) wrote :

I also see this on `Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz`. Parole plays the same file with almost no CPU impact. `vlc -vvv` log attached.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

tags: added: artful
Changed in vlc (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for vlc (Ubuntu) because there has been no activity for 60 days.]

Changed in vlc (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.