Announcement

Collapse
No announcement yet.

XvBA Segmentation Fault on ATI 10.7

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

  • XvBA Segmentation Fault on ATI 10.7

    Hi,

    libva: libva version 0.31.0-sds6
    Xlib: extension "XFree86-DRI" missing on display ":0.0".
    libva: va_getDriverName() returns 0
    libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
    Segmentation fault
    That probably tells enough ^_^

    Is this an issue on my side?
    I have libva, catalyst 10.7 and xvba 0.7.2 installed.

    Redards,
    Mark

  • #2
    You need a newer xvba-video+libva. Rerun my script if you used it.

    http://kanotix.com/files/fix/mplayer-vaapi-latest.txt

    Comment


    • #3
      Originally posted by Kano View Post
      You need a newer xvba-video+libva. Rerun my script if you used it.

      http://kanotix.com/files/fix/mplayer-vaapi-latest.txt
      Erm, i'm using the latest libva version and just to make sure i even used the git version but now it gives me this error:
      libva: libva version 0.31.1
      Xlib: extension "XFree86-DRI" missing on display ":0.0".
      libva: va_getDriverName() returns -1
      vaInitialize failed with error code -1 (unknown libva error),exit
      the xvba version is the latest version (0.7.2).

      note: i'm on archlinux, not ubuntu! (x64)
      Somehow i think i miss a package but i can't think on which one i might be missing..

      Comment


      • #4
        I can not help you with arch but you missed the patches for libva, normally you get libva version 0.31.1-sds1.

        Comment


        • #5
          Originally posted by Kano View Post
          I can not help you with arch but you missed the patches for libva, normally you get libva version 0.31.1-sds1.
          How can i miss patches.. this is a GIT version.. that __should__ be the latest version (revision) existing.

          Comment


          • #6
            You can not use the git version, you need extra patches.

            Comment


            • #7
              Originally posted by Kano View Post
              You can not use the git version, you need extra patches.
              Whe i try to compile it from this source http://www.splitted-desktop.com/~gbeauchesne/libva/ (libva_0.31.1-1+sds4.tar.gz the package i apparently need) i get:

              config.status: error: cannot find input file: src/Makefile.in

              I'm not very good at those makefiles so could someone perhaps take a loot at it and make a working version ^_^ ... i guess it's just a path somewhere that's set wrong.

              Comment


              • #8
                did you do:
                Code:
                for p in debian/patches/*.patch; do patch -p1 < $p; done
                autoreconf
                like mentioned in the notes below?

                Comment


                • #9
                  Originally posted by Kano View Post
                  did you do:
                  Code:
                  for p in debian/patches/*.patch; do patch -p1 < $p; done
                  autoreconf
                  like mentioned in the notes below?
                  Oke, that was just a stupid mistake.. sorry -_-

                  But it still won't compile:
                  make all-recursive
                  make[1]: Entering directory `/root/libva-0.31.1'
                  Making all in va
                  make[2]: Entering directory `/root/libva-0.31.1/va'
                  Making all in x11
                  make[3]: Entering directory `/root/libva-0.31.1/va/x11'
                  /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -DLINUX -I../../va -I/usr/include/libdrm -g -O2 -MT va_x11.lo -MD -MP -MF .deps/va_x11.Tpo -c -o va_x11.lo va_x11.c
                  ../../libtool: line 834: X--tag=CC: command not found
                  ../../libtool: line 867: libtool: ignoring unknown tag : command not found
                  ../../libtool: line 834: X--mode=compile: command not found
                  ../../libtool: line 1001: *** Warning: inferring the mode of operation is deprecated.: command not found
                  ../../libtool: line 1002: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
                  ../../libtool: line 1145: Xgcc: command not found
                  ../../libtool: line 1145: X-DHAVE_CONFIG_H: command not found
                  ../../libtool: line 1145: X-I.: command not found
                  ../../libtool: line 1145: X-I../..: No such file or directory
                  ../../libtool: line 1145: X-DLINUX: command not found
                  ../../libtool: line 1145: X-I../../va: No such file or directory
                  ../../libtool: line 1145: X-I/usr/include/libdrm: No such file or directory
                  ../../libtool: line 1145: X-g: command not found
                  ../../libtool: line 1145: X-O2: command not found
                  ../../libtool: line 1145: X-MT: command not found
                  ../../libtool: line 1145: Xva_x11.lo: command not found
                  ../../libtool: line 1145: X-MD: command not found
                  ../../libtool: line 1145: X-MP: command not found
                  ../../libtool: line 1145: X-MF: command not found
                  ../../libtool: line 1145: X.deps/va_x11.Tpo: No such file or directory
                  ../../libtool: line 1145: X-c: command not found
                  ../../libtool: line 1198: Xva_x11.lo: command not found
                  ../../libtool: line 1203: libtool: compile: cannot determine name of library object from `': command not found
                  make[3]: *** [va_x11.lo] Error 1
                  make[3]: Leaving directory `/root/libva-0.31.1/va/x11'
                  make[2]: *** [all-recursive] Error 1
                  make[2]: Leaving directory `/root/libva-0.31.1/va'
                  make[1]: *** [all-recursive] Error 1
                  make[1]: Leaving directory `/root/libva-0.31.1'
                  make: *** [all] Error 2
                  I have libtool and the X11 library's installed. Same with libdrm, but what is it missing here?

                  Comment


                  • #10
                    Anyone that can help me to get this thing to build correctly?

                    Comment


                    • #11
                      Originally posted by markg85 View Post
                      Anyone that can help me to get this thing to build correctly?
                      I have the exact same problem that you have. I can't compile libva (after I patched) because of those errors in libtool. I'm also using Arch Linux.

                      I'd like to add that I tried using an older version of xvba-video (0.6.11), the one that's compatible with the libva in the Arch repos.
                      I did get vainfo to work; but I had an error on the h264 hwdecode-demo. And when I play any video with -vo vaapi (or vaapi:gl) -va vaapi the video shows a black screen and my cpu goes crazy.

                      I'm now using the current xvba-video (from the AUR) and thus I need to compile libva.

                      So this isn't a really helpful post, but think of it as me confirming your problems.

                      Comment


                      • #12
                        Originally posted by markg85 View Post
                        Anyone that can help me to get this thing to build correctly?
                        Probably make sure to have libtool 1.5.x (and .m4 dev files) or run libtoolize before autoreconf -vif ? Arch Linux packages are generally current though...

                        Comment


                        • #13
                          Originally posted by musturd View Post
                          I have the exact same problem that you have. I can't compile libva (after I patched) because of those errors in libtool. I'm also using Arch Linux.

                          I'd like to add that I tried using an older version of xvba-video (0.6.11), the one that's compatible with the libva in the Arch repos.
                          I did get vainfo to work; but I had an error on the h264 hwdecode-demo. And when I play any video with -vo vaapi (or vaapi:gl) -va vaapi the video shows a black screen and my cpu goes crazy.

                          I'm now using the current xvba-video (from the AUR) and thus I need to compile libva.

                          So this isn't a really helpful post, but think of it as me confirming your problems.
                          just found this: http://wiki.archlinux.org/index.php/...yst#Repository

                          That fixed my issue... but now i want to have the latest mplayer svn thus i lose va-api support again -_-

                          Comment


                          • #14
                            Originally posted by gbeauche View Post
                            Probably make sure to have libtool 1.5.x (and .m4 dev files) or run libtoolize before autoreconf -vif ? Arch Linux packages are generally current though...
                            I think the arch package for libva was downgraded due to the green screen issue that effects one ATI card or something. Because I saw mark's post a didn't try the compilation again.

                            Originally posted by markg85
                            just found this: http://wiki.archlinux.org/index.php/...yst#Repository

                            That fixed my issue... but now i want to have the latest mplayer svn thus i lose va-api support again -_-
                            This did not work for me.
                            mplayer-vaapi no longer goes insane on my cpu -- it just decides not to use vaapi.
                            The packages in this repo are definately better, though.

                            Here is my output for ./vaapi_h264 (there is an error)
                            Code:
                            $ ./vaapi_h264 
                            Display type 'x11'
                            Hardware accelerator 'vaapi'
                            [hwdecode_demos] VA display 0xdc3980
                            libva: libva version 0.31.1-sds1
                            Xlib:  extension "XFree86-DRI" missing on display ":0.0".
                            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] 6 display attributes available
                            [hwdecode_demos]   VADisplayAttribDirectSurface     (get/---) min 1 max 1 value 0x1
                            [hwdecode_demos]   VADisplayAttribBackgroundColor   (get/set) min 0 max 16777215 value 0xffffff
                            [hwdecode_demos]   VADisplayAttribBrightness        (get/set) min -100 max 100 value 0x0
                            [hwdecode_demos]   VADisplayAttribContrast          (get/set) min -100 max 100 value 0x0
                            [hwdecode_demos]   VADisplayAttribHue               (get/set) min -100 max 100 value 0x0
                            [hwdecode_demos]   VADisplayAttribSaturation        (get/set) min -100 max 100 value 0x0
                            [hwdecode_demos] Decoded surface size: 320x240
                            [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
                            xvba_video: XVBA_CreateDecode(): status 2
                            [hwdecode_demos] vaCreateContext(): unknown libva error
                            ERROR: decode failed
                            I'm guessing the problem is with XVBA_CreateDecode(). Anyway I can fix this?

                            (I'm very close to getting this working...)

                            Comment


                            • #15
                              Originally posted by musturd View Post
                              I think the arch package for libva was downgraded due to the green screen issue that effects one ATI card or something. Because I saw mark's post a didn't try the compilation again.
                              What is the "green screen issue that effects one ATI card or something"?

                              I'm guessing the problem is with XVBA_CreateDecode(). Anyway I can fix this?

                              (I'm very close to getting this working...)
                              There is nothing you can do about it, I am sorry. Get another notebook and probably never buy ATI HW again in the future if you intend to get decent support on Linux.

                              Comment

                              Working...
                              X