Ubuntu

failed to open VA API with NVIDIA VDPAU backend

Reported by harald kragh on 2010-09-19
176
This bug affects 35 people
Affects Status Importance Assigned to Milestone
libva (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: vlc

lsb_release -rd
Description: Ubuntu maverick (development branch)
Release: 10.10

VLC 1.1.4
Libva 1.0.1-3

when running VLC, trying to use VAAPI, I get this error:
libva: libva version 0.31.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva: va_openDriver() returns -1
[0x1fdfd50] avcodec decoder warning: Failed to open VA API

The result is that VLC is running, but HD-content is shown in a very bad quality (missing frames)

Using vainfo I get this report:
libva: libva version 0.31.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva: va_openDriver() returns -1

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: vlc 1.1.4-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.32-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Sep 19 17:56:53 2010
InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901)
ProcEnviron:
 LANG=en_DK.utf8
 SHELL=/bin/bash
SourcePackage: vlc

Rémi Denis-Courmont (rdenis) wrote :

Not a VLC problem.

affects: vlc (Ubuntu) → libva (Ubuntu)
msznapka (bigmartin) wrote :

I have exactly same problem on Ubuntu 10.10
I installed nvidia-current, vlc and vdpau-va-driver
In vlc I checked "Use GPU acceleration" under menu "Inputs & Codecs"
Now I run $vlc -vvv some1080p.mkv

Result:
libva: libva version 0.31.0
[0x14a4e80] pulse audio output debug: Pulse mainloop started
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva: va_openDriver() returns 0

and video IS NOT accelerated.

If I run $mplayer -vo vdpau -vc ffvc1vdpau,ffh264vdpau,ffmpeg12vdpau some1080p.mkv

and video IS accelerated.

my graphic card: integrated geforce 8200

Nicola Ferralis (feranick) wrote :

This is a libva issue, not vlc. You can get a similar error by simply typing:

vainfo

In my case (maverick release, Libva 1.0.1-3, vdpau-va-driver 0.6.3-1) I get a segmentation fault:

Blocked: call to setenv("_PX_CONFIG_ORDER", "", 1)
libva: libva version 0.31.1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
Segmentation fault (core dumped).

Nicola Ferralis (feranick) wrote :

msznapka:

How do you know the output is accelerated (with mplayer?). Please post the output.

Tony T (tonytovar) wrote :

The first problem is that there is no compatible version of 'xvba-video' included with Ubuntu 10.10, and the 'official' version from splitted-desktop is incompatible with Ubuntu's version of 'libva1'. So you have to overwrite the built-in version with the matching file from splitted-desktop.
__________

The initial goal here is to get the 'vainfo' diag to report a list of supported codecs, e.g.

> vainfo
libva: libva version 0.31.1-sds1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.31
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.7
vainfo: Supported profile and entrypoints
      VAProfileH264High : VAEntrypointVLD
      VAProfileVC1Advanced : VAEntrypointVLD

NOTE - in this example there are only 2 codecs listed; there should be more?!
____________

Unfortunately, even if you get vainfo to work 'properly' you'll still likely have problems getting apps like VLC or XBMC to work properly. Even when run in full-debug ("--verbose 2") VLC only reports:

libva: va_getDriverName() returns -1
avcodec decoder warning: Failed to open VA API

So, is there a symbolic link missing somewhere? I've followed about a dozen How-To's and everything seems to be setup correctly... it just doesn't work like they say!
_____________

One clue: different versions of the xvba-video driver result in different supported codecs be listed in vainfo. So maybe the (secondary) problems are all caused by instability in it's code?

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in libva (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
AlexAD (alex-ad) wrote :

Effecting me to with

$aticonfig --lsa
* 0. 01:05.0 ATI Mobility Radeon HD 4200 Series

* - Default adapter

$vainfo
libva: libva version 0.31.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Daniel Letzeisen (dtl131) wrote :

After you install the libva(-dev) from Splitted Desktop Systems (SDS), you have to rebuild VLC to get it working. I've created a PPA where this is already done: https://launchpad.net/~dtl131/+archive/catalysthacks
Currently, this PPA only has packages for Maverick. I will do Natty uploads when Natty gets closer to release. Note that the libva found in my PPA is actually the 0.31.x versions found on the SDS site. I simply reversioned it to supersede the default libva version number.

Zivago Lee (z-ziff) wrote :

Is the vdpau-video the new package name for the vdpau-va-driver package?

meven (meven29) wrote :

Also affects me, really annoying not to be able ti use VLC

My out put is :
libva: libva version 0.31.1
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0

GPU : ATI HD 5770 (Everest)

Pauldb (polichinel8) wrote :

Same here "vainfo" :

pauldb@pauldb-laptop:~$ vainfo
libva: libva version 0.31.1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
Erreur de segmentation (core dumped)

VLC : 1.1.9
Asus EeePC with nVidia ION.
Ubuntu Natty 11.04 beta.

Before upgrading to Natty it worked very fine with 10.10. So I suppose that something happened when I upgrade.

On 04/16/2011 06:52 AM, Pauldb wrote:
> Same here "vainfo" :
>
> pauldb@pauldb-laptop:~$ vainfo
> libva: libva version 0.31.1
> Xlib: extension "XFree86-DRI" missing on display ":0.0".
> libva: va_getDriverName() returns 0
> libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
> Erreur de segmentation (core dumped)
>
> VLC : 1.1.9
> Asus EeePC with nVidia ION.
> Ubuntu Natty 11.04 beta.
>
> Before upgrading to Natty it worked very fine with 10.10. So I suppose
> that something happened when I upgrade.
>
I'm still working on vdpau-video for Natty (proof:
http://ubuntuforums.org/showthread.php?t=1730641 ). It hasn't been
successfully built yet, so the version of vdpau-video you're using is
probably the stock Ubuntu one, built against their libva.

I have coffee in hand, and I know why it isn't building, so hopefully,
it will be finished today.

in Natty still same problem :-(

running $vlc -vvv some1080p.mkv

libva: libva version 0.31.1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
[0x1240000] pulse audio output debug: 6 audio channels
[0x1240000] pulse audio output debug: Pulse mainloop started
Segmentation fault

flandolt (landolt-f) wrote :

same here

Ubuntu 11.04 Natty 32bit

---------------------------------------------------------------
Installed:

libvdpau 10.4.1-2ubuntu1
vdpau-va-driver 0.6.3-1
libva-x11-1 1.0.8-3
libva1 1.0.8-3

--------------------------------------------------------------
output:

VLC and vainfo:
libva: libva version 0.31.1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
Segmentation fault

dmesg:
vlc[2364]: segfault at 8c ip 01727c49 sp b5576ca0 error 4 in libvdpau.so.1.0.0[1727000+2000]
vainfo[2370]: segfault at 8c ip 00a78c49 sp bfce62d0 error 4 in libvdpau.so.1.0.0[a78000+2000]

Daniel Letzeisen (dtl131) wrote :

I believe this is fixed in Oneiric...

Vistaus (djmusic121) wrote :

Nope, it is not. And also not in 12.04:

libva: VA-API version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva: va_openDriver() returns -1
libva: VA-API version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva: va_openDriver() returns -1
Failed to play the file: couldn't get state.
Segmentation error (memory dump made)

(this is the output wen Shotwell crashes 'cause of libva)

Karl Hegbloom (karl.hegbloom) wrote :

I confirm that this bug exists in 12.04.

vainfo
libva: VA-API version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva error: /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so init failed
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Exit Status: [3]

Daniel Letzeisen (dtl131) wrote :

Vitaus and Karl, search your system for nvidia_drv_video.so file. If you find it, create a /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so symlink that points there. Does that help?

Bob Bib (bobbib) wrote :

No problems with this system configuration:
Ubuntu 12.04 LTS / amd64
nvidia-current 295.40-0ubuntu1
vdpau-va-driver 0.7.3-1ubuntu1
vainfo 1.0.15-4
---
$ vainfo
libva: VA-API version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.3
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple : VAEntrypointVLD
      VAProfileMPEG2Main : VAEntrypointVLD
      VAProfileH264Main : VAEntrypointVLD
      VAProfileH264High : VAEntrypointVLD
      VAProfileVC1Simple : VAEntrypointVLD
      VAProfileVC1Main : VAEntrypointVLD
      VAProfileVC1Advanced : VAEntrypointVLD

summary: - failed to open VA API
+ failed to open VA API with NVIDIA VDPAU backend
tolostoi (tolostoi) wrote :
Download full text (5.2 KiB)

It seems to work in Ubuntu 12.10, but not "out of the box" VDPAU works fine:

vdpauinfo
display: :1 screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library 304.51 Tue Sep 18 18:02:11 PDT 2012

Video surface:

name width height types
-------------------------------------------
420 4096 4096 NV12 YV12
422 4096 4096 UYVY YUYV

Decoder capabilities:

name level macbs width height
-------------------------------------------
MPEG1 0 8192 2048 2048
MPEG2_SIMPLE 3 8192 2048 2048
MPEG2_MAIN 3 8192 2048 2048
H264_MAIN 41 8192 2048 2048
H264_HIGH 41 8192 2048 2048
VC1_SIMPLE 1 8190 2048 2048
VC1_MAIN 2 8190 2048 2048
VC1_ADVANCED 4 8190 2048 2048

Output surface:

name width height nat types
----------------------------------------------------
B8G8R8A8 8192 8192 y Y8U8V8A8 V8U8Y8A8
R10G10B10A2 8192 8192 y Y8U8V8A8 V8U8Y8A8

Bitmap surface:

name width height
------------------------------
B8G8R8A8 8192 8192
R8G8B8A8 8192 8192
R10G10B10A2 8192 8192
B10G10R10A2 8192 8192
A8 8192 8192

Video mixer:

feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL y
INVERSE_TELECINE y
NOISE_REDUCTION y
SHARPNESS y
LUMA_KEY y
HIGH QUALITY SCALING - L1 -
HIGH QUALITY SCALING - L2 -
HIGH QUALITY SCALING - L3 -
HIGH QUALITY SCALING - L4 -
HIGH QUALITY SCALING - L5 -
HIGH QUALITY SCALING - L6 -
HIGH QUALITY SCALING - L7 -
HIGH QUALITY SCALING - L8 -
HIGH QUALITY SCALING - L9 -

parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 1 4096
VIDEO_SURFACE_HEIGHT y 1 4096
CHROMA_TYPE y
LAYERS y 0 4

attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y

VAAPI don't

:~$ vainfo
libva: VA-API version 0.33.0
Xlib: extension "XFree86-DRI" missing on display ":1".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

So, creating symlink do the job.

:~$ locate nvidia_drv_video.so
/usr/lib/i386-linux-gnu/dri/nvidia_drv_video.so

:~$ sudo ln -s /usr/lib/i386-linux-gnu/dri/nvidia_drv_video.so /usr/lib/dri/

:~$ ls -la /usr/lib/dri/
общо 104
drwxr-xr-x 2 root root 4096 ное 3 14:22 .
drwxr-xr-x 248 root root 77824 ное 1 16:23 ..
-rw-r--r-- 1 root root 17...

Read more...

Tv (tv42) wrote :

For what it's worth, running 64-bit 13.10, here's what I needed to do to get the shared library loading:

sudo ln -s nvidia_drv_video.so /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so

(and then I realized nouveau doesn't do vdpau anyway currently, it seems..)

madbiologist (me-again) wrote :

VDPAU support for the GeForce 8 and 9 series is available in Ubuntu 13.10. VDPAU support for GeForce 400 and later hardware has been available since Ubuntu 13.04 but note that Ubuntu 13.04 is no longer officially supported - see https://wiki.ubuntu.com/Releases
VDPAU support for the GeForce 200, 300 series is available in Ubuntu 14.04. Note that in all cases you will also need to extract the firmware from the NVIDIA binary driver. See http://nouveau.freedesktop.org/wiki/VideoAcceleration/ for further details

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers