LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-21-2013, 07:59 PM   #1
Jdogzz
Member
 
Registered: May 2012
Distribution: slackware
Posts: 40

Rep: Reputation: 5
Vaapi Problem


I have been trying to get hardware acceleration for my graphics card, ATI Mobility Radeon HD 4650, working but I am not having much success with it. I followed the procedure in AlienBob's blog post for VLC here:
http://alien.slackbook.org/blog/deco...-video-in-vlc/
I have fglrx, the proprietary ATI driver for my card, installed.
I have installed libva once through SBo and then compiled it from the git tree here:
http://cgit.freedesktop.org/libva/
I have installed xvba-video from the source git tree here:
http://cgit.freedesktop.org/vaapi/xvba-driver/

My fglrxinfo outputs this:
Code:
bash-4.2$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Mobility Radeon HD 4650
OpenGL version string: 3.3.11653 Compatibility Profile Context
while the vainfo command outputs this error:
Code:
bash-4.2$ vainfo
libva info: VA-API version 0.33.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/fglrx_drv_video.so
libva info: Found init function __vaDriverInit_0_32
xvba_video: XVBA_CreateContext(): status 11
libva error: /usr/lib64/dri/fglrx_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Searching around has yielded no fixes that have helped. Could anyone please advise me on fixing this problem?

I'm running Slackware64 14.0.

Last edited by Jdogzz; 01-22-2013 at 02:25 AM.
 
Old 01-22-2013, 12:02 PM   #2
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 138Reputation: 138
Not sure so this is just a guess but based on

Code:
libva info: Trying to open /usr/lib64/dri/fglrx_drv_video.so
libva info: Found init function __vaDriverInit_0_32
Are you trying to use a 32-bit module on a 64-bit system?
 
Old 01-22-2013, 12:07 PM   #3
Jdogzz
Member
 
Registered: May 2012
Distribution: slackware
Posts: 40

Original Poster
Rep: Reputation: 5
Other people have gotten it working on 64 bit systems so I don't think it is an issue with the architecture. But just to be certain I did try making my system 32 bit compatible With the multilib packages and the problem was still there.
 
Old 01-26-2013, 05:03 AM   #4
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 67

Rep: Reputation: Disabled
In /usr/lib64/dri, you should have:

fglrx_dri.so
@fglrx_drv_video.so #symbolic link to xvba_drv_video.so
xvba_drv_video.so

I have never managed to get vaapi video acceleration working with VLC. However, mplayer-vaapi works fine! (I have a Radeon HD 4200 in a small laptop).

I have to add the following lines to my xorg.conf:

Section "DRI"
MODE 0666
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection

otherwise HD video runs very slow. Also make sure de-interlace is turned OFF when viewing HD content, or the video will also run slow - at least it does on my admittedly under-powered system!

But with the above settings, I can play HD video perfectly.

--
Pete
 
Old 01-26-2013, 10:24 AM   #5
Jdogzz
Member
 
Registered: May 2012
Distribution: slackware
Posts: 40

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by pchristy View Post
In /usr/lib64/dri, you should have:

fglrx_dri.so
@fglrx_drv_video.so #symbolic link to xvba_drv_video.so
xvba_drv_video.so
The contents of that directory for me has always been this:

Code:
bash-4.2$ ls /usr/lib64/dri
dummy_drv_video.a   dummy_drv_video.so  xvba_drv_video.la
dummy_drv_video.la  fglrx_drv_video.so  xvba_drv_video.so
I also made sure I had the relevant sections of xorg.conf added in as you listed, but still got the same error. This makes me think that you have installed different versions of these packages, and they must work together better than the ones I used. Which versions of libva and xvba did you install, and from where?
 
Old 01-26-2013, 11:10 AM   #6
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 67

Rep: Reputation: Disabled
I'm running libva-1.0.16, which I got from http://www.freedesktop.org/software/...eleases/libva/ - I see they are up to 1.1 now, so maybe I should update! I built it using Alien's build script, suitably tweaked to reflect the new version.

XvBA is 0.8.0 which I think I got from splitted-desktop, but can't find a link to it anymore.

Don't worry about the dummy stuff - that is just what it says, a dummy!

The main difference that I can see is that you seem to have something called fglrx_drv_video.so, whereas in mine that is a symbolic link to xvba_drv_video.so

The file size of xvba_drv_video.so is 121552 on my system. If yours is similar, you could try making a symbolic link to fglrx_drv_video.so called xvba_drv_video.so (it should work either way around!) Its a bit of a guess, but it could be that something is trying to address xvba... instead of fglrx.... and not finding it.

vainfo gives me:

~$ vainfo
libva: VA-API version 0.32.1
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.16)
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0
vainfo: Supported profile and entrypoints
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD

so you should be expecting something similar.

One last thought - and I know this is a silly question - but you do have the ati proprietary driver installed, don't you? (Sorry if that's in insulting query, but I have to ask!)

--
Pete
 
Old 01-26-2013, 02:55 PM   #7
Jdogzz
Member
 
Registered: May 2012
Distribution: slackware
Posts: 40

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by pchristy View Post
The main difference that I can see is that you seem to have something called fglrx_drv_video.so, whereas in mine that is a symbolic link to xvba_drv_video.so
Sorry, I forgot to mention that my fglrx_drv_video.so is a symbolic link to xvba_drv_video.so as well.

Quote:
Originally Posted by pchristy View Post
The file size of xvba_drv_video.so is 121552 on my system.
This part is interesting, as my xvba_drv_video.so file is 663635, significantly larger than the one you have. Do you still have the tarball or package for xvba lying around on your system so that I can try that one instead?

Quote:
Originally Posted by pchristy View Post
One last thought - and I know this is a silly question - but you do have the ati proprietary driver installed, don't you? (Sorry if that's in insulting query, but I have to ask!)
Not an insulting query at all. As mentioned in the initial post, I am running the proprietary driver for the card, installed using the driver installer version 12.6.
 
Old 01-26-2013, 05:26 PM   #8
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 67

Rep: Reputation: Disabled
Yes, quite happy to send all the stuff I've got. Not sure if this board supports PMs, but you can get me at christyATattglobalDOTnet (with the obvious changes!)

May be a bit tied up tomorrow (Sunday) - got to change the disk pads on the car, and I think the calipers are sticking, so I may be under the car most of the day! But will send the appropriate tarballs as soon as I can get back to the computer!

--
Pete
 
Old 02-02-2013, 09:32 PM   #9
Jdogzz
Member
 
Registered: May 2012
Distribution: slackware
Posts: 40

Original Poster
Rep: Reputation: 5
After using pchristy's packages I still got the error, but I then reinstalled fglrx and the error went away, so it would appear that one must reinstall fglrx after they install the libva and xvba packages. Hardware acceleration is now fully functional (as far as the ATI driver goes), so this problem can be marked as solved. Thank you to everyone who offered their help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Play Video using mplayer-vaapi with out X VerrNum Linux - Newbie 2 09-13-2012 03:42 PM
Obtaining poulsbo decoded images with ffmpeg and vaapi trease Programming 0 01-27-2011 10:00 AM
How to enable libvdpau, libva (vaapi) and MPlayer with Nvidia driver? linuxs64 Slackware 3 01-11-2011 11:47 AM
LXer: XBMC with VAAPI on Poulsbo (Intel GMA500) or other VAAPI Systems LXer Syndicated Linux News 0 01-01-2011 09:42 PM
LXer: Setting Up VAAPI Hardware Accelerated Video Decoding for Ubuntu 10.04 LXer Syndicated Linux News 0 06-26-2010 02:31 PM


All times are GMT -5. The time now is 07:37 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration