Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > AMD/ATI Linux

AMD/ATI Linux Technical support and discussion of the ATI/AMD proprietary Linux driver.

Reply
 
Thread Tools Display Modes
  #191  
Old 11-06-2009, 01:12 PM
Kano Kano is offline
Debian Developer
 
Join Date: Aug 2007
Posts: 2,898
Default

Also even if you don't use the vaapi feature, my script gives you a current svn mplayer (with some extra m2ts soundfix). There is a version with extra patches, thats with 2 instead of 1 and includes mplayer vaapi hotfixes. Of course if you run the script on nvidia hardware you get vdpau AND vaapi support to compare.
Reply With Quote
  #192  
Old 11-06-2009, 01:46 PM
RemcoL RemcoL is offline
Junior Member
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 7
Default

Quote:
Originally Posted by makomk View Post
Have you compiled and installed the right libva library and headers? Is mplayer looking in the right place for them? Do they have the correct permissions? If mplayer isn't finding VA-API support, one of those is probably your problem.
Quote:
Originally Posted by RemcoL View Post
The fact that the hwdecode-demos said I don't have xvba could be because it didn't find headers, but unless I can get vainfo to actually work with the last xvba_video I'm not even trying to get that to work.
The same applies to mplayer-vaapi, not trying until vainfo gives me the go ahead

@Kano

If you could alter the mplayer script to:

1) only ask/demand for root *after* commandline options are parsed
2) have an option to build all the software but to put the created packages into a dir of the users choosing (or ./ as default)
3) have an option to dump the created mplayer into a dir (like --prefix would do I think)

then I would be happy to use the script. It would mean root wouldn't be required to build it. Compiling as a normal user is just a lot safer

It would totally rock if you could show a "I'm going to do *this*" screen before actually doing it, with a continue prompt. Like apt-get normally does, so you can double check you gave the right options.

To put it simple, I'm most interested in 3 while building it as a normal user. If it's too much trouble, forget about it. It's not like vainfo even works for me at the moment.
Reply With Quote
  #193  
Old 11-06-2009, 02:06 PM
Kano Kano is offline
Debian Developer
 
Join Date: Aug 2007
Posts: 2,898
Default

Maybe you did not fully understand the scripts, all scripts create Debian packages and install em. The mplayer script does not delete the debs, you can fetch em from the /tmp dir. It is impossible to install the apps in a better way on Debian/Ubuntu. You can remove em easyly too with your favorite package manager. It does not use /usr/local or so just when a noob would use checkinstall or so. As the packages depend on each other you could of course use sudo for each dpkg -i command (and the apt-get) and run the rest as user. Feel free to do that mod, i won't do this as the target distro (Kanotix) does not use sudo.

Last edited by Kano; 11-06-2009 at 02:15 PM.
Reply With Quote
  #194  
Old 11-06-2009, 06:56 PM
asun asun is offline
Junior Member
 
Join Date: Jun 2008
Posts: 21
Default

I have the very same issue RemcoL is having. I'm running Fedora 11. Here's the lazy way to get your mplayer with vaapi support and libva:
- Install them from http://www.happyassassin.net/video-e...tal/11/x86_64/
mplayer-vaapi is named mplayer-accelerated there.
- Then unpack the xvba-video package to /usr/lib64/

The video card is HD3450 with Catalyst 9.10. Here's what vainfo gives with latest xvba-video:
Code:
$ vainfo
libva: libva version 0.31.0-sds3
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/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.5.1
vainfo: Supported profile and entrypoints
xvba_video: XVBA_CreateContext(): status 11
X Error of failed request:  BadIDChoice (invalid resource ID chosen for this connection)
  Major opcode of failed request:  1 (X_CreateWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  14
  Current serial number in output stream:  14
So, I use xvba-video 0.43 and this is what I get:
Code:
$ vainfo
libva: libva version 0.31.0-sds3
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/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.4.3
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointIDCT
      VAProfileMPEG2Main              : VAEntrypointIDCT
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
Any idea anyone?
Reply With Quote
  #195  
Old 11-06-2009, 07:27 PM
Kano Kano is offline
Debian Developer
 
Join Date: Aug 2007
Posts: 2,898
Default

Why don't you use 0.5.1? In order to use 0.4.x you would need older mplayer snapshots.
Reply With Quote
  #196  
Old 11-06-2009, 07:50 PM
RemcoL RemcoL is offline
Junior Member
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 7
Default

@Kano

I'll spell it out for you: IT DOES NOT WORK WITH 0.5.1!

Check the quoted output. Yes, really, just read it and it will all be clear.

That we might need older mplayer snapshots is constructive. What's missing there is which ones would work in combination with it. The last versions are alpha at best I'd say, so the previous ones are probably worse. For all I know we'd need an older version of libva too. Three packages, all with several different versions. That's a lot of combinations to try out...
Reply With Quote
  #197  
Old 11-06-2009, 08:39 PM
Kano Kano is offline
Debian Developer
 
Join Date: Aug 2007
Posts: 2,898
Default

Basically it is useless to try all those things. If you want something working now you just buy something from another vendor
Reply With Quote
  #198  
Old 11-07-2009, 01:13 AM
non7top non7top is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Default

I have HD4850 card here


Code:
non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_h264
Display type 'x11'                                            
Hardware accelerator 'vaapi'                                  
[hwdecode_demos] VA display 0x80644b0                         
libva: libva version 0.31.0-sds3                              
libva: va_getDriverName() returns 0                           
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so  
libva: va_openDriver() returns 0                              
[hwdecode_demos] VA API version 0.31                          
[hwdecode_demos] 1 display attributes available               
[hwdecode_demos]   VADisplayAttribDirectSurface     (get/---) min 0 max 0 value 0x0
[hwdecode_demos] 4 profiles available                                              
[hwdecode_demos]   VAProfileMPEG2Simple                                            
[hwdecode_demos]   VAProfileMPEG2Main                                              
[hwdecode_demos]   VAProfileH264High                                               
[hwdecode_demos]   VAProfileVC1Advanced                                            
[hwdecode_demos] 1 entrypoints available for VAProfileH264High                     
[hwdecode_demos]   VAEntrypointVLD                                                 
[hwdecode_demos] vaPutSurface(): the requested function is not implemented         
ERROR: display failed                                                              

non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_mpeg2
Display type 'x11'                                             
Hardware accelerator 'vaapi'                                   
[hwdecode_demos] VA display 0x80664b0                          
libva: libva version 0.31.0-sds3                               
libva: va_getDriverName() returns 0                            
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so   
libva: va_openDriver() returns 0                               
[hwdecode_demos] VA API version 0.31                           
[hwdecode_demos] 1 display attributes available                
[hwdecode_demos]   VADisplayAttribDirectSurface     (get/---) min 0 max 0 value 0x0
[hwdecode_demos] 4 profiles available                                              
[hwdecode_demos]   VAProfileMPEG2Simple                                            
[hwdecode_demos]   VAProfileMPEG2Main                                              
[hwdecode_demos]   VAProfileH264High                                               
[hwdecode_demos]   VAProfileVC1Advanced                                            
[hwdecode_demos] 1 entrypoints available for VAProfileMPEG2Main                    
[hwdecode_demos]   VAEntrypointIDCT                                                
ERROR: decode failed                                                               

non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_mpeg4
Display type 'x11'
Hardware accelerator 'vaapi'
[hwdecode_demos] VA display 0x80664b0
libva: libva version 0.31.0-sds3
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
[hwdecode_demos] VA API version 0.31
[hwdecode_demos] 1 display attributes available
[hwdecode_demos]   VADisplayAttribDirectSurface     (get/---) min 0 max 0 value 0x0
[hwdecode_demos] 4 profiles available
[hwdecode_demos]   VAProfileMPEG2Simple
[hwdecode_demos]   VAProfileMPEG2Main
[hwdecode_demos]   VAProfileH264High
[hwdecode_demos]   VAProfileVC1Advanced
ERROR: decode failed

non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_vc1
Display type 'x11'
Hardware accelerator 'vaapi'
[hwdecode_demos] VA display 0x80664b0
libva: libva version 0.31.0-sds3
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
[hwdecode_demos] VA API version 0.31
[hwdecode_demos] 1 display attributes available
[hwdecode_demos]   VADisplayAttribDirectSurface     (get/---) min 0 max 0 value 0x0
[hwdecode_demos] 4 profiles available
[hwdecode_demos]   VAProfileMPEG2Simple
[hwdecode_demos]   VAProfileMPEG2Main
[hwdecode_demos]   VAProfileH264High
[hwdecode_demos]   VAProfileVC1Advanced
[hwdecode_demos] 1 entrypoints available for VAProfileVC1Advanced
[hwdecode_demos]   VAEntrypointVLD
[hwdecode_demos] vaPutSurface(): the requested function is not implemented
ERROR: display failed
2 gentoo users
ok, I've fixed the manifests and will probably add hwdecode demos in overlay soon
Reply With Quote
  #199  
Old 11-07-2009, 08:20 AM
Kano Kano is offline
Debian Developer
 
Join Date: Aug 2007
Posts: 2,898
Default

It would only work with the -glx option.
Reply With Quote
  #200  
Old 11-07-2009, 09:48 AM
non7top non7top is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Default

2Kano
thanks, with glx vaapi_x264 and vaapi_vc1 do work just fine, but mplayer still crashes with

[VD_FFMPEG] Trying pixfmt=0.
Unsupported PixelFormat -1
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.