Announcement

Collapse
No announcement yet.

AMD's UVD2-based XvBA Finally Does Something On Linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why don't you use 0.5.1? In order to use 0.4.x you would need older mplayer snapshots.

    Comment


    • @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...

      Comment


      • Basically it is useless to try all those things. If you want something working now you just buy something from another vendor

        Comment


        • I have HD4850 card here


          Code:
          [email protected] ~/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                                                              
          
          [email protected] ~/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                                                               
          
          [email protected] ~/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
          
          [email protected] ~/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

          Comment


          • It would only work with the -glx option.

            Comment


            • 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

              Comment


              • I removed all of it, then installed the drivers, libva (and libva-dev) and xvba-video again.

                Seems like I made a typo when linking libAMDXvBA.cap in /usr/lib the last time, since now vainfo works. hwdecode-demos always come back with "checking for XvBA... no". Everything else in the configure goes through fine.

                When checking out the configure script I noticed these two lines:
                #include <amdpcom.h>
                #include <amdxvba.h>

                Those files are nowhere to be found on my system, nor do I know if they're actually needed.

                Compiling mplayer-vaapi now also goes through properly.

                mplayer -vo vaapi:gl -va vaapi <file>:

                real 2m20.468s
                user 0m4.500s
                sys 0m2.952s

                mplayer -vo gl:yuv=2:rectangle=2 <file>:

                real 2m20.454s
                user 1m0.936s
                sys 0m0.752s

                So success!

                Comment


                • ATI wants to hide those files it seems. Classified, high security risk, ATI will be going bankrupt then those files would be officially available.

                  Comment


                  • Originally posted by gbeauche View Post
                    BTW, I never really tested the 64-bit binaries, so it does interest me to know whether they work or not.
                    As I said earlier:

                    Basically works, but the colors of the decoded videos look slightly wrong.

                    Comment


                    • I had wrong colors with one movie too, others worked.

                      Comment

                      Working...
                      X