Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VAAPI can't find r600_drv_video.so
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Magister Cistiorum
n00b
n00b


Joined: 22 Dec 2010
Posts: 14

PostPosted: Tue Jun 18, 2013 9:00 pm    Post subject: VAAPI can't find r600_drv_video.so Reply with quote

I'm trying to enable VAAPI over my Radeon HD 4670 video card. First VDPAU was succesfully installed using radeon open source driver as back-end driver as described in the Gentoo Wiki. Here is my vdpauinfo output.
Then I enabled vaapi use flag and updated system with --newuse option. Now vainfo outputs the following:
Code:
$ vainfo
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/r600_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

I haven't found r600_drv_video.so file somewhere in my system. Google hasn't said what's been done wrong. Any ideas?


Last edited by Magister Cistiorum on Wed Jun 19, 2013 3:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2207
Location: UK

PostPosted: Tue Jun 18, 2013 10:55 pm    Post subject: Reply with quote

VAAPI seems to be pretty dead upstream at the moment, and the use flags make it seem like it's only being developed for i915 and as a wrapper around proprietary blob drivers. There is no hardware R600 driver for it.

You're better off just ignoring it and sticking with VDPAU for now.
Back to top
View user's profile Send private message
Magister Cistiorum
n00b
n00b


Joined: 22 Dec 2010
Posts: 14

PostPosted: Wed Jun 19, 2013 11:10 am    Post subject: Reply with quote

Ant P. wrote:
VAAPI seems to be pretty dead upstream at the moment, and the use flags make it seem like it's only being developed for i915 and as a wrapper around proprietary blob drivers. There is no hardware R600 driver for it.

You're better off just ignoring it and sticking with VDPAU for now.

Thank you. That's the way I'll do. I think the question is solved.
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4883

PostPosted: Thu Jun 20, 2013 5:34 am    Post subject: Reply with quote

do note that the VDPAU support for your card is basic at best, it is based on shaders rather than the uvd engine so don't expect to much.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2633
Location: Slovenia

PostPosted: Thu Jun 20, 2013 11:36 am    Post subject: Reply with quote

DaggyStyle wrote:
do note that the VDPAU support for your card is basic at best, it is based on shaders rather than the uvd engine so don't expect to much.

Incorrect. There *is* UVD support now. You need kernel 3.10, the very latest linux-firmware that contains some uvd files in the radeon dir (not sure if Gentoo's package is new enough), and mesa-git. Only UVD2 support (Radeon HD4000 and up) for now, but Magister Cistiorum has a HD4670, so he's good.

http://www.phoronix.com/scan.php?page=article&item=amd_opensource_uvd
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4883

PostPosted: Thu Jun 20, 2013 12:11 pm    Post subject: Reply with quote

Gusar wrote:
DaggyStyle wrote:
do note that the VDPAU support for your card is basic at best, it is based on shaders rather than the uvd engine so don't expect to much.

Incorrect. There *is* UVD support now. You need kernel 3.10, the very latest linux-firmware that contains some uvd files in the radeon dir (not sure if Gentoo's package is new enough), and mesa-git. Only UVD2 support (Radeon HD4000 and up) for now, but Magister Cistiorum has a HD4670, so he's good.

http://www.phoronix.com/scan.php?page=article&item=amd_opensource_uvd

since I have a HD5450 and I didn't found any uvd fw files for my card, I assumed that his is older thus it isn't supported.

my bad.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4883

PostPosted: Thu Jun 20, 2013 12:14 pm    Post subject: Reply with quote

http://people.freedesktop.org/~agd5f/radeon_ucode/ doesn't have a uvd file for my card (CEDAR), from what I understand from you, RV710_uvd.bin is what he and I need to use?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2633
Location: Slovenia

PostPosted: Thu Jun 20, 2013 1:15 pm    Post subject: Reply with quote

You don't need a specific uvd file for every single card. The files that are there cover *all* supported cards - all HD4000 and above.
Back to top
View user's profile Send private message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 426

PostPosted: Thu Jun 20, 2013 5:34 pm    Post subject: Reply with quote

Yeah it's SUMO_uvd.bin.

btw, Gusar, I remember having a conversation with you where I said AMD would never release an OSS UVD implementation. Seems I was very, very wrong.
_________________
MB: Biostar TForce 6100 AM2 @ 250x10
CPU: AMD Athlon 64 3800+ X2 @ 2500mhz
MEM: G. Skill DDR2-800 2GB @ DDR2-1000
GPU: nVidia GeForce 7600 GT
OS: Gentoo Linux 2006.1
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2207
Location: UK

PostPosted: Fri Jun 21, 2013 5:09 am    Post subject: Reply with quote

DaggyStyle wrote:
since I have a HD5450 and I didn't found any uvd fw files for my card, I assumed that his is older thus it isn't supported.

Nope
Code:
~ $ uname -r
3.9.2-ck

~ $ zgrep FIRMWARE= /proc/config.gz
CONFIG_EXTRA_FIRMWARE="radeon/CEDAR_me.bin radeon/CEDAR_pfp.bin radeon/CEDAR_rlc.bin radeon/CYPRESS_uvd.bin"

~ $ grep Chipset /var/log/Xorg.0.log
[    18.085] (--) RADEON(0): Chipset: "ATI Radeon HD 5450" (ChipID = 0x68f9)

~ $ vdpauinfo
display: :0.0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420    16384 16384  NV12
422    16384 16384  NV12
444    16384 16384  NV12

Decoder capabilities:

name               level macbs width height
-------------------------------------------
MPEG1                16  9216  2048  1152
MPEG2_SIMPLE         16  9216  2048  1152
MPEG2_MAIN           16  9216  2048  1152
H264_BASELINE        16  9216  2048  1152
H264_MAIN            16  9216  2048  1152
H264_HIGH            16  9216  2048  1152
VC1_SIMPLE           16  9216  2048  1152
VC1_MAIN             16  9216  2048  1152
VC1_ADVANCED         16  9216  2048  1152
MPEG4_PART2_SP       16  9216  2048  1152
MPEG4_PART2_ASP      16  9216  2048  1152

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12
R8G8B8A8         16384 16384    y  NV12
R10G10B10A2      16384 16384    y  NV12
B10G10R10A2      16384 16384    y  NV12

Bitmap surface:

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

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             -
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         -
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        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
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
Back to top
View user's profile Send private message
Magister Cistiorum
n00b
n00b


Joined: 22 Dec 2010
Posts: 14

PostPosted: Fri Jun 21, 2013 5:25 am    Post subject: Reply with quote

Is RV710_uvd.bin compatible with RV730XT?
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2207
Location: UK

PostPosted: Fri Jun 21, 2013 2:10 pm    Post subject: Reply with quote

dmesg should show which _uvd file it needs if it can't find the right one.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Fri Jun 21, 2013 8:02 pm    Post subject: Reply with quote

Both the 4670 and 5450 have VDPAU UVD support since gentoo-sources-3.9.1-r1 and mesa-9.2_pre

For the 5450 you need CYPRESS_uvd.bin firmware.
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4883

PostPosted: Sat Jun 22, 2013 5:55 pm    Post subject: Reply with quote

thanks :)
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1353

PostPosted: Sat Jun 22, 2013 6:22 pm    Post subject: Reply with quote

Magister Cistiorum wrote:
libva: VA-API version 0.32.0


A newer version has stabilized; there is version 1.0.15 as stable in tree, there is also 1.1.1 if you want to try that.

Ant P. wrote:
VAAPI seems to be pretty dead upstream at the moment, ... You're better off just ignoring it and sticking with VDPAU for now.


VAAPI is actively developed (http://cgit.freedesktop.org/libva/log/), more actively than VDPAU (http://cgit.freedesktop.org/~aplattner/libvdpau/log/).

Regardless, VDPAU is indeed a very good alternative, thank you for suggesting it.

chithanh wrote:
Both the 4670 and 5450 have VDPAU UVD support since gentoo-sources-3.9.1-r1 and mesa-9.2_pre


Thanks again for making the kernel team aware of that patch, glad to see it working for people; or is this topic still unresolved?

Maybe we could document this together on the Gentoo Wiki to spare future users from the same trouble.
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 412
Location: Maryland, US

PostPosted: Sun Jun 23, 2013 2:04 am    Post subject: Re: VAAPI can't find r600_drv_video.so Reply with quote

Magister Cistiorum wrote:
I'm trying to enable VAAPI over my Radeon HD 4670 video card. First VDPAU was succesfully installed using radeon open source driver as back-end driver
[snip]
Any ideas?

Both of the VA-API pages at freedesktop.org and wikipedia state that the API is supported by AMD Radeon's proprietary fglrx driver only. In fact there's mention on the net, like this Ubuntu bug report, that states that;
Quote:
there is no VAAPI support for radeon

However, the VA-API wikipedia page also states;
Quote:
Additionally, VDPAU (Video Decode and Presentation API for Unix), a competing API designed by NVIDIA, can potentially also be used as a backend for the VA API.

and in fact the Gentoo Wiki page gives the impression that all cards that support VDPAU could use it as the back-end for VA-API. However, the freedesktop.org page only lists back end support for;
Quote:
VDPAU back-end for NVIDIA and VIA chipsets:

Lastly, the Archwiki VA-API page states;
Quote:
AMD Radeon HD 4000 series and newer GPUs are supported by xvba-video-open package, available in the official repositories. It uses the proprietary catalyst-utils driver for Radeon HD 5000 series and newer, and catalyst-legacy-utils for Radeon HD 4000 series. Recent mesa versions together with AMD open source driver can decode some videos too, but number of formats supported is poor.

So I'm guessing that the answer to the OP is that there isn't reliable support for using the open source radeon driver and VDPAU as a back end for VA-API, yet. Maybe chithanh knows more, since I notice he answers a lot of these types of questions. At the minimum someone may consider updating the Gentoo Wiki pages to accurately reflect the current VA-API - VDPAU support.

Good Luck..
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2633
Location: Slovenia

PostPosted: Sun Jun 23, 2013 9:26 am    Post subject: Reply with quote

The proprietary radeon driver uses XvBA. Which isn't supported pretty much anywhere, except in a branch of XBMC. But there's a xvba-vaapi bridge (the xvba-video-open package your quote mentions), allowing you to use VAAPI players with the proprietary driver. Provided this whole thing still works, in the past it was very hit and miss.

The open radeon driver now has full support using VDPAU. That quote you emphasized is outdated, it refers to the shader-based mpeg2 decoder. But we now have UVD access, meaning access to a dedicated hardware decoding unit (no shaders) that can do mpeg2 and VC-1, h264. There's also a vdpau-vaapi bridge, but why would you use it when pretty much all players support VDPAU directly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum