Announcement

Collapse
No announcement yet.

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

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

  • Originally posted by bridgman View Post
    Uninstalling the previous driver is probably a good idea. Frequently you can get away without it but we recommend always uninstalling first.
    Thanks for the point.

    Some time ago I had a very 'pleasant' time with mastering proper xorg.conf with the help of aticonfig, so I have some experience in it . The main troubles were I wanted to get zaphod mode and one of my widescreen monitors didn't report EDID information through VGA connector. It was fglrx which didn't get modelines from xorg.conf. Finally I gave up and bought DVI cable long enough to connect to DVI connector through which this monitor reported EDID information.

    Comment


    • Returned back to 9.10 (8.660)
      vainfo lists profiles, however, mplayer doesn't work
      Code:
      MPlayer SVN-r30589-4.4.1 (C) 2000-2010 MPlayer Team
      mplayer: could not connect to socket
      mplayer: No such file or directory
      Failed to open LIRC support. You will not be able to use your remote control.
      
      Playing /media/500gb/Camcorder/001/001.m2ts.
      TS file format detected.
      VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)!  PROGRAM N. 1
      FPS seems to be: 25.000000
      [vo_vaapi] Using OpenGL rendering
      libva: libva version 0.31.0-sds5
      libva: va_getDriverName() returns 0
      libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
      libva: va_openDriver() returns 0
      ==========================================================================
      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
      [VD_FFMPEG] VA API accelerated codec.
      Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
      ==========================================================================
      ==========================================================================
      Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
      AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
      Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
      ==========================================================================
      [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
      AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
      Starting playback...
      Unsupported PixelFormat 61
      [VD_FFMPEG] Trying pixfmt=1.
      Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
      VO: [vaapi] 1440x1080 => 1920x1080 H.264 VA API Acceleration 
      [vo_vaapi] Using 1:1 VA surface mapping
      [VD_FFMPEG] XVMC-accelerated MPEG-2.
      xvba_video: XVBA_CreateDecode(): status 2
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      [AO_ALSA] Write error: Broken pipe 0.000   2/  2 ??% ??% ??,?% 1 0 
      [AO_ALSA] Trying to reset soundcard.
      xvba_video: XVBA_CreateDecode(): status 2  9/  9 ??% ??% ??,?% 7 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 11/ 11 ??% ??% ??,?% 8 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 13/ 13 ??% ??% ??,?% 10 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 15/ 15 291% 51%  3.1% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 17/ 17 255% 49%  2.7% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 19/ 19 227% 47%  2.4% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 21/ 21 204% 45%  2.2% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 23/ 23 185% 43%  2.0% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 25/ 25 170% 43%  1.8% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 27/ 27 157% 42%  1.7% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 29/ 29 146% 42%  1.5% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: XVBA_CreateDecode(): status 2 31/ 31 136% 42%  1.4% 11 0 
      [vo_vaapi] vaCopySurfaceGLX(): unknown libva error
      xvba_video: error: Assertion failed in file xvba_decode.c at line 770

      Comment


      • Originally posted by zhenya_k View Post
        Returned back to 9.10 (8.660)
        vainfo lists profiles, however, mplayer doesn't work
        It would also be interesting if you could try with 9.12-HotFix. I don't think 9.10 had 64-bit fixes. Anyway, our Mobility Radeon HD 4650 never worked either and only 4870 is meant to be supported. The rest is a matter of being lucky or not with a specific driver...

        Comment


        • Originally posted by gbeauche View Post
          Hmm, this is weird because libva 0.31.0-sds9 + xvba-video 0.6.9 is not a combination that can work. i.e. that libva won't be able to load the new module, so mplayer won't work. Please report `vainfo' in your current configuration + ldd /usr/lib/va/drivers/fglrx_drv_video.so + md5sum your debs.
          Here is the output Gwenole:

          patrick@debian:~$ vainfo
          libva: libva version 0.31.0-sds4
          libva: va_getDriverName() returns 0
          libva: Trying to open /usr/lib/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.6.8
          vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple : VAEntrypointIDCT
          VAProfileMPEG2Main : VAEntrypointIDCT
          VAProfileH264High : VAEntrypointVLD
          VAProfileVC1Advanced : VAEntrypointVLD


          patrick@debian:~$ ldd -v /usr/lib/va/drivers/fglrx_drv_video.so
          linux-vdso.so.1 => (0x00007fffe89ff000)
          libva-0.31.0.4.so.1 => /usr/lib/libva-0.31.0.4.so.1 (0x00007fcb07c5c000)
          libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fcb07ac8000)
          libdl.so.2 => /lib/libdl.so.2 (0x00007fcb078c3000)
          libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fcb075bc000)
          libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fcb073aa000)
          librt.so.1 => /lib/librt.so.1 (0x00007fcb071a1000)
          libpthread.so.0 => /lib/libpthread.so.0 (0x00007fcb06f85000)
          libm.so.6 => /lib/libm.so.6 (0x00007fcb06d00000)
          libc.so.6 => /lib/libc.so.6 (0x00007fcb0698d000)
          /lib64/ld-linux-x86-64.so.2 (0x00007fcb07e95000)
          libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fcb06771000)
          libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fcb0656e000)
          libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fcb06368000)

          Version information:
          /usr/lib/va/drivers/fglrx_drv_video.so:
          libpthread.so.0 (GLIBC_2.2.5) => /lib/libpthread.so.0
          librt.so.1 (GLIBC_2.2.5) => /lib/librt.so.1
          libdl.so.2 (GLIBC_2.2.5) => /lib/libdl.so.2
          libm.so.6 (GLIBC_2.2.5) => /lib/libm.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /usr/lib/libva-0.31.0.4.so.1:
          libdl.so.2 (GLIBC_2.2.5) => /lib/libdl.so.2
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /usr/lib/libGL.so.1:
          libpthread.so.0 (GLIBC_2.2.5) => /lib/libpthread.so.0
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /lib/libdl.so.2:
          ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
          libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /usr/lib/libX11.so.6:
          libdl.so.2 (GLIBC_2.2.5) => /lib/libdl.so.2
          libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /usr/lib/libXext.so.6:
          libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
          /lib/librt.so.1:
          libpthread.so.0 (GLIBC_2.2.5) => /lib/libpthread.so.0
          libpthread.so.0 (GLIBC_PRIVATE) => /lib/libpthread.so.0
          libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
          /lib/libpthread.so.0:
          ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
          ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /lib64/ld-linux-x86-64.so.2
          ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
          libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
          libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /lib/libm.so.6:
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /lib/libc.so.6:
          ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
          ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
          /usr/lib/libxcb.so.1:
          libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
          /usr/lib/libXau.so.6:
          libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
          /usr/lib/libXdmcp.so.6:
          libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
          libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6

          Comment


          • Originally posted by DivineGrace View Post
            Here is the output Gwenole:

            patrick@debian:~$ vainfo
            libva: libva version 0.31.0-sds4
            libva: va_getDriverName() returns 0
            libva: Trying to open /usr/lib/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.6.8
            vainfo: Supported profile and entrypoints
            VAProfileMPEG2Simple : VAEntrypointIDCT
            VAProfileMPEG2Main : VAEntrypointIDCT
            VAProfileH264High : VAEntrypointVLD
            VAProfileVC1Advanced : VAEntrypointVLD
            Thanks but this doesn't match what you said in your previous post. To recap:
            - use libva 0.31.0-1+sds9 for xvba-video <= 0.6.8
            - use libva 0.31.0-1+sds10 for xvba-video > 0.6.9

            Other combinations won't work without an xvba-video rebuild, but this is not Open Source, I am sorry.

            Comment


            • Originally posted by gbeauche View Post
              Thanks but this doesn't match what you said in your previous post. To recap:
              - use libva 0.31.0-1+sds9 for xvba-video <= 0.6.8
              - use libva 0.31.0-1+sds10 for xvba-video > 0.6.9

              Other combinations won't work without an xvba-video rebuild, but this is not Open Source, I am sorry.
              My apologies, mate. Here is the correct output:

              patrick@debian:~/Torrentz$ vainfo
              libva: libva version 0.31.0-sds5
              libva: va_getDriverName() returns 0
              libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
              libva error: dlopen of /usr/lib/va/drivers/fglrx_drv_video.so failed: libva-0.31.0.4.so.1: cannot open shared object file: No such file or directory
              libva: va_openDriver() returns -1
              vaInitialize failed with error code -1 (unknown libva error),exit

              This is on my notebook, squeeze amd64, mobility HD 2600, mplayer version 24-Feb-2010.

              Comment


              • Originally posted by DivineGrace View Post
                My apologies, mate. Here is the correct output:

                patrick@debian:~/Torrentz$ vainfo
                libva: libva version 0.31.0-sds5
                libva: va_getDriverName() returns 0
                libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
                libva error: dlopen of /usr/lib/va/drivers/fglrx_drv_video.so failed: libva-0.31.0.4.so.1: cannot open shared object file: No such file or directory
                libva: va_openDriver() returns -1
                vaInitialize failed with error code -1 (unknown libva error),exit

                This is on my notebook, squeeze amd64, mobility HD 2600, mplayer version 24-Feb-2010.
                This fglrx_drv_video.so is not the one from xvba-video 0.6.9. It should be a symlink to xvba_drv_video.so. Could you check what /usr/lib/va/drivers/ looks like? Then, dpkg -r xvba-video, remove any stale /usr/lib/va/drivers/{fglrx,xvba}_drv_video.so and reinstall xvba-video 0.6.9.

                It could be interesting to file -L /usr/lib/va/drivers/fglrx_drv_video.so + md5sum that file, prior to reinstalling xvba-video 0.6.9.

                Comment


                • Originally posted by gbeauche View Post
                  This fglrx_drv_video.so is not the one from xvba-video 0.6.9. It should be a symlink to xvba_drv_video.so. Could you check what /usr/lib/va/drivers/ looks like? Then, dpkg -r xvba-video, remove any stale /usr/lib/va/drivers/{fglrx,xvba}_drv_video.so and reinstall xvba-video 0.6.9.

                  It could be interesting to file -L /usr/lib/va/drivers/fglrx_drv_video.so + md5sum that file, prior to reinstalling xvba-video 0.6.9.
                  Gwenole, you're correct. File properties indicate this:

                  Name: fglrx_drv_video.so
                  Link target: xvba_drv_video.so

                  In /usr/lib/va/drivers/ there exists dummy_drv_video.so, fglrx_drv_video.so (symlink) and xvba_drv_video.so.

                  I removed xvba-video, issued:

                  file -L /usr/lib/va/drivers/fglrx_drv_video.so
                  /usr/lib/va/drivers/fglrx_drv_video.so: ERROR: cannot open `/usr/lib/va/drivers/fglrx_drv_video.so' (No such file or directory), reinstalled xvba-video, and

                  file -L /usr/lib/va/drivers/fglrx_drv_video.so
                  /usr/lib/va/drivers/fglrx_drv_video.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

                  However, when I attempt to utilize libva with mplayer, no video is displayed and I receive this error message:

                  VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
                  [vo_vaapi] Using OpenGL rendering, with reflection effects
                  libva: libva version 0.31.0-sds4
                  libva: va_getDriverName() returns 0
                  libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
                  libva error: dlopen of /usr/lib/va/drivers/fglrx_drv_video.so failed: libva-0.31.0.5.so.1: cannot open shared object file: No such file or directory
                  libva: va_openDriver() returns -1
                  [vo_vaapi] vaInitialize(): unknown libva error
                  Error opening/initializing the selected video_out (-vo) device.

                  Any ideas?

                  Comment


                  • Originally posted by DivineGrace View Post
                    VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
                    [vo_vaapi] Using OpenGL rendering, with reflection effects
                    libva: libva version 0.31.0-sds4
                    libva: va_getDriverName() returns 0
                    libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
                    libva error: dlopen of /usr/lib/va/drivers/fglrx_drv_video.so failed: libva-0.31.0.5.so.1: cannot open shared object file: No such file or directory
                    libva: va_openDriver() returns -1
                    [vo_vaapi] vaInitialize(): unknown libva error
                    Error opening/initializing the selected video_out (-vo) device.

                    Any ideas?
                    You now have xvba-video 0.6.9 correctly installed but it seems you (i) either don't have libva 0.31.0-1+sds1 installed, or (ii) don't have the amd64 package of it installed, or you are not using an amd64 version of MPlayer.

                    The whole chain must be 32-bit or 64-bit. Though, you can install both if you rebuild libva properly, and make sure to have /usr/lib64/va/drivers and /usr/lib/va/drivers/.

                    Comment


                    • Originally posted by gbeauche View Post
                      You now have xvba-video 0.6.9 correctly installed but it seems you (i) either don't have libva 0.31.0-1+sds1 installed, or (ii) don't have the amd64 package of it installed, or you are not using an amd64 version of MPlayer.

                      The whole chain must be 32-bit or 64-bit. Though, you can install both if you rebuild libva properly, and make sure to have /usr/lib64/va/drivers and /usr/lib/va/drivers/.
                      Pure AMD64 build here, mate. What is strange is that with Cat 9.10, Squeeze amd64, mobile HD 2600, with xvba-video 0.6.9, libva version 0.31.0-sds4, I hear audio but see no video with 720p or 1080p videos.
                      After switching to xvba-video 0.6.8, everything works perfectly.

                      This weekend, I'll try my desktop with HD 3300 and HD 3870 on Jaunty and try the newest libva and xvba-video.

                      Comment

                      Working...
                      X