You are not logged in.

#1 2012-06-18 12:10:43

tungsten
Member
Registered: 2012-02-22
Posts: 14

Xvba/VAAPI needs root to work.

I'm having problems using VAAPI as a normal user since yesterday:

$ vainfo
libva: VA-API version 0.33.0
libva: User requested driver 'xvba'
libva: Trying to open /usr/lib/dri//xvba_drv_video.so
libva: Found init function __vaDriverInit_0_32
libva error: /usr/lib/dri//xvba_drv_video.so init failed
libva: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit

It works as root:

$ sudo vainfo
libva: VA-API version 0.33.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: Found init function __vaDriverInit_0_32
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.33 (libva 1.1.0)
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
vainfo: Supported profile and entrypoints
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD

Same thing with mplayer, I can only get -vo vaapi working as root.

I'm not sure what could have broken it,  since I hadn't tried to use it recently.
Thanks.

Offline

#2 2012-06-18 20:16:17

windscape
Member
Registered: 2010-04-30
Posts: 69

Re: Xvba/VAAPI needs root to work.

Hi,

Is your user still a member of the video group?

Offline

#3 2012-06-19 12:40:45

tungsten
Member
Registered: 2012-02-22
Posts: 14

Re: Xvba/VAAPI needs root to work.

I was. I just removed myself from it, and the problem still stands.

Offline

#4 2012-06-22 21:19:23

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: Xvba/VAAPI needs root to work.

The error seems to be related to the lib with vainfo calls but not really your user.

Normal user:

libva error: /usr/lib/dri//xvba_drv_video.so init failed

Root:

libva: Trying to open /usr/lib/dri/fglrx_drv_video.so

Compare the search path of root and your standard user.
The hard approach would be a link to your fglrx_drv_video.so if you are unable to resolve the path issue. Also check out the file permissions of fglrx. May be group has no correct rights and xvba_drv is the fallback ?!?


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#5 2012-06-23 03:03:37

tungsten
Member
Registered: 2012-02-22
Posts: 14

Re: Xvba/VAAPI needs root to work.

I changed /etc/profile.d/xvba.sh, now vainfo returns

$ vainfo
libva: VA-API version 0.33.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: Found init function __vaDriverInit_0_32
libva error: /usr/lib/dri/fglrx_drv_video.so init failed
libva: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit

Furthermore, both files are identical, and changing ownership of that file to my user didn't help.

I also tried to use xvba-video-open. It works with vainfo, but mplayer crashes instantly.

Last edited by tungsten (2012-06-23 03:04:06)

Offline

Board footer

Powered by FluxBB