Announcement

Collapse
No announcement yet.

Getting VDPAU working through 14.04

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

  • Getting VDPAU working through 14.04

    Hi,

    Because 14.04 is so new, I think the instructions on getting VDPAU though UVD working, can somebody please help?

    I have 14.04 installed and a HD6450.

    Now my 14.04 should have a suitable kernel and mesa 10, so what is left to do, I see references to having to put a firmware blob for my 6450 somewhere?

    I wan't better performance, quality and de-interlacing in mythtv, that needs VDPAU as far as I can tell.

    Thanks for looking!

    Cheers
    Richard

  • #2
    Digging around.

    Most of the stuff I need seems to be on here but:

    $ sudo vdpauinfo
    display: :0 screen: 0
    Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: No such file or directory
    Error creating VDPAU device: 1

    I read that libvdpau_r600.so is in libg3dvl-mesa, no sign of that on my system, do i have to install this, any other steps?

    Comment


    • #3
      That's only in a ppa from oibaf. I used that packagename for a mesa upgrade for debian as well, but i dont think it will be the final name. with my evergreen card i have got mpeg2 issues however.

      https://launchpad.net/~oibaf/+archive/graphics-drivers

      Comment


      • #4
        libg3dvl-mesa is a package only from my PPA, which currently only provides packages for 13.10. I'll plan to provide packages for 14.04 when it will be officially released.

        Comment


        • #5
          Oibaf: Will not be a part of the 14.04 release automatically?

          Comment


          • #6
            Originally posted by LN17 View Post
            Oibaf: Will not be a part of the 14.04 release automatically?
            I always sent useful patches from my PPA to Debian or mesa. Some get merged, other still not. A couple of year ago I also sent VDPAU support to Debian (see here) but it's still not included. If/when it will be included in Debian it should also appear on Ubuntu.

            Comment


            • #7
              Do you know how to disable mpeg2 support from radeon vdpau? Maybe at least for the shader implementaion and not for the hardware variant.

              Comment


              • #8
                Originally posted by Kano View Post
                Do you know how to disable mpeg2 support from radeon vdpau? Maybe at least for the shader implementaion and not for the hardware variant.
                No idea, sorry.

                Comment


                • #9
                  Thanks for the info.

                  So one VDPAU package is not available on 14.04?

                  I'm confused, I am happy to compile from source if that is required?

                  Please help me get VDPAU writing on 14.04.

                  Thanks again.

                  Richard

                  Comment


                  • #10
                    Until Xorg Edgers finally enables vdpau here's how to build a VDPAU enabled mesa package:
                    Code:
                    sudo apt-get install build-essential
                    sudo apt-get build-dep mesa
                    apt-get source mesa
                    cd mesa*/
                    this will unpack the source package of mesa, then in debian/rules you need to change "--disable-vdpau" to "--enable-vdpau" and in debian/libgl1-mesa-dri.install.in add the line:
                    Code:
                    dri/usr/lib/${DEB_HOST_MULTIARCH}/vdpau/libvdpau*.so* usr/lib/${DEB_HOST_MULTIARCH}/vdpau
                    That way the vdpau libraries will be packed inside libgl1-mesa-dri.
                    Before building the package the changes must be committed:
                    Code:
                    dpkg-source --commit
                    then build the packages with:
                    Code:
                    dpkg-buildpackage
                    However if you're in an amd64 environment you also need to build the i386 counterpart, and for that you need to setup a chroot env: https://help.ubuntu.com/community/DebootstrapChroot
                    once you have you have your chroot env, build the mesa packages just like before.
                    Last edited by Azultra; 01-12-2014, 01:29 PM.

                    Comment


                    • #11
                      Or you can build everything from git to get the latest commits. I build mesa, kernel, drm for Debian 64 bit from git with checkinstall, no chrooting required. Only real issue is getting the 64 and i386 build dependencies right since most dev packages are not multiarch.

                      Comment


                      • #12
                        You can run this PPA on 14.04, no issues right now

                        Originally posted by oibaf View Post
                        libg3dvl-mesa is a package only from my PPA, which currently only provides packages for 13.10. I'll plan to provide packages for 14.04 when it will be officially released.
                        I have had no problems with this PPA or with PPAs in general on 14.04. I treat Ubuntu as a rolling release, and PPAs I update only when they too support the new release. Synaptic will choose the newer of the PPA or Ubuntu version, usually that will be the PPA one. Occasionally a newer-versioned Uubntu package will come out that is incompatable, I roll these back and pin them until the PPA catches up. Had to do that with xorg-edgers once, when Ubunty versions with early Mir suppport didn't work and had to be rolled back.

                        Needless to say, this sort of mixing requires that you know what you are doing-and that you fish downloaded packages out of /var/cache/apt/archives and save them in some organized way so rollback versions can always be found. I've done this for many years now with few more issues than the ones that come up with alpha releases anyway.

                        I've had VDPAU support on my systems and used it on system images running on single-core machines to play 1080p video since it first became available for radeon, at first using a Red Hat package as a tarball to extract to get the necessary libraries before libg3dvl-mesa was packaged as a .deb anywhere I knew of. Worked fine all the way back to the first DRM-next kernel to support it, with just one bug then and now: 1080p AVCHD files from my camera usually play just fine, but occasionally crash the GPU so a reboot is needed to get OpenGL running again. This never happens with mp4 files containing normal H264 streams, there is something almost but not properly supported in the files my camera makes. Nvidia's blog and cards won't support those files at all, while Radeon with VDPAU plays them most of the time on every r600/Evergreen card I've tested. Normal H264 playback is fantastic, even on a 2300MHZ AMD Athlon 64 single core.

                        Comment


                        • #13
                          Reported the bug? You could try to cut such a clip to one second, then play it on loop to get a crash; if so, upload that small file.

                          Comment


                          • #14
                            I guess you could also just download and install that .deb file, the libg3dvl-mesa package.

                            Comment


                            • #15
                              TheVDPAU drivers have been added to the official 14.04 repositories (nouveau, r600, radeonsi so far).
                              Code:
                              apt-get install libvdpau1-drivers-mesa
                              For VA-API support also install vdpau-va-driver and add
                              Code:
                              VDPAU_DRIVER=r600 #or nouveau/radeonsi
                              LIBVA_DRIVER_NAME=vdpau
                              to your .xsession

                              See https://bugs.launchpad.net/ubuntu/+s...a/+bug/1002224

                              Comment

                              Working...
                              X