Announcement

Collapse
No announcement yet.

vdpau problems on an AMD A10-5700 via mesa 9.2.0

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

  • vdpau problems on an AMD A10-5700 via mesa 9.2.0

    I got an A10-5700 desktop, Gentoo 64 bit, Xfce 4.10 (no composite) and i want to use vdpau/gallium for videos. I have installed:
    - gentoo-sources-3.10.7 (kernel)
    - mesa-9.2.0
    - xf86-video-ati-7.1.0
    - libdrm-2.4.46
    - libvdpau-0.5

    BUT if I wan't to play a movie with mplayer (or mplayer2) I always get the following error:
    [vdpau] Error when calling vdp_device_create_x11: 23

    Full mplayer-output:
    Code:
    ef@localhost ~ $ mplayer -vo vdpau -vc ffh264vdpau Media/_DOWNLOADS_/Four\ Lions\ \(2010\)\ \[eng\;ac3+ger\;ac3\]\ _\ x264-dvdrip.mkv 
    MPlayer 1.1-4.7.3 (C) 2000-2012 MPlayer Team
    
    Spiele Media/_DOWNLOADS_/Four Lions (2010) [eng;ac3+ger;ac3] _ x264-dvdrip.mkv.
    libavformat version 54.29.104 (external)
    libavformat-Dateiformat erkannt!
    [lavf] stream 0: video (h264), -vid 0
    [lavf] stream 1: audio (ac3), -aid 0, -alang eng
    [lavf] stream 2: audio (ac3), -aid 1, -alang ger
    VIDEO:  [H264]  624x480  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
    Clip-Info:
     title: Avidemux
     creation_time: 2013-03-10 14:03:47
    Load subtitles in Media/_DOWNLOADS_/
    [vdpau] Error when calling vdp_device_create_x11: 23
    Fehler beim ?ffnen/Initialisieren des ausgew?hlten Videoausgabetreibers (-vo).
    ==========================================================================
    ?ffne Audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    libavcodec version 54.59.100 (external)
    AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
    Ausgew?hlter Audiocodec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
    ==========================================================================
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Video: kein Video
    Starte Wiedergabe...
    What is strange, because vdpauinfo reports that vdpau should run ok:
    Code:
    localhost ef # vdpauinfo
    display: :0.0   screen: 0
    API version: 1
    Information string: G3DVL VDPAU Driver Shared Library version 1.0
    
    Video surface:
    
    name   width height types
    -------------------------------------------
    420    16384 16384  NV12 
    422    16384 16384  NV12 
    444    16384 16384  NV12 
    
    Decoder capabilities:
    
    name               level macbs width height
    -------------------------------------------
    MPEG1                16  9216  2048  1152
    MPEG2_SIMPLE         16  9216  2048  1152
    MPEG2_MAIN           16  9216  2048  1152
    H264_BASELINE        16  9216  2048  1152
    H264_MAIN            16  9216  2048  1152
    H264_HIGH            16  9216  2048  1152
    VC1_SIMPLE           16  9216  2048  1152
    VC1_MAIN             16  9216  2048  1152
    VC1_ADVANCED         16  9216  2048  1152
    MPEG4_PART2_SP       16  9216  2048  1152
    MPEG4_PART2_ASP      16  9216  2048  1152
    
    Output surface:
    
    name              width height nat types
    ----------------------------------------------------
    B8G8R8A8         16384 16384    y  NV12 
    R8G8B8A8         16384 16384    y  NV12 
    R10G10B10A2      16384 16384    y  NV12 
    B10G10R10A2      16384 16384    y  NV12 
    
    Bitmap surface:
    
    name              width height
    ------------------------------
    B8G8R8A8         16384 16384
    R8G8B8A8         16384 16384
    R10G10B10A2      16384 16384
    B10G10R10A2      16384 16384
    A8               16384 16384
    
    Video mixer:
    
    feature name                    sup
    ------------------------------------
    DEINTERLACE_TEMPORAL             -
    DEINTERLACE_TEMPORAL_SPATIAL     -
    INVERSE_TELECINE                 -
    NOISE_REDUCTION                  y
    SHARPNESS                        y
    LUMA_KEY                         -
    HIGH QUALITY SCALING - L1        -
    HIGH QUALITY SCALING - L2        -
    HIGH QUALITY SCALING - L3        -
    HIGH QUALITY SCALING - L4        -
    HIGH QUALITY SCALING - L5        -
    HIGH QUALITY SCALING - L6        -
    HIGH QUALITY SCALING - L7        -
    HIGH QUALITY SCALING - L8        -
    HIGH QUALITY SCALING - L9        -
    
    parameter name                  sup      min      max
    -----------------------------------------------------
    VIDEO_SURFACE_WIDTH              y        48     2048
    VIDEO_SURFACE_HEIGHT             y        48     1152
    CHROMA_TYPE                      y  
    LAYERS                           y         0        4
    
    attribute name                  sup      min      max
    -----------------------------------------------------
    BACKGROUND_COLOR                 y  
    CSC_MATRIX                       y  
    NOISE_REDUCTION_LEVEL            y      0.00     1.00
    SHARPNESS_LEVEL                  y     -1.00     1.00
    LUMA_KEY_MIN_LUMA                y  
    LUMA_KEY_MAX_LUMA                y
    Also the driver is initialised properly:
    Code:
    localhost ef # cat /var/log/Xorg.0.log | grep -i r600
    [    21.294] (II) RADEON(0): [DRI2]   DRI driver: r600
    [    21.294] (II) RADEON(0): [DRI2]   VDPAU driver: r600
    [    21.359] (II) AIGLX: Loaded and initialized r600
    What could be the problem?

  • #2
    vdpau is quirky on the oss driver. I too (Debian 64 bit, xfce 4.10, A8-5500, kernel 3.11 git, mesa git) have tried it.
    Mplayer (2 i think) worked ok, but not as good as xvba. Xbmc was ok too.
    But: While most worked, some videos just wouldnt work with vdpau.

    You should try the latest 3.11 kernel (dont forget radeon.dpm=1 from the kernel boot line), there are many many radeon changes and added features like dynamic power management (watch out for freeze/reboot bugs and report them here if you try that kernel). Also mesa git has some fixes.

    Comment


    • #3
      Thanks. I already tried out 3.11, but I got the same error as described above. Regarding the new pm-functionality 3.11 seems superb, power usage was reduced by about 10 watts! But after an hour or so my machine crashed and rebootet... Unfortunately it was an instant reboot and I got no crash log.

      Comment


      • #4
        Originally posted by schwarzygesetzlos View Post
        Thanks. I already tried out 3.11, but I got the same error as described above. Regarding the new pm-functionality 3.11 seems superb, power usage was reduced by about 10 watts! But after an hour or so my machine crashed and rebootet... Unfortunately it was an instant reboot and I got no crash log.
        Well i get freezes instead. But the performance is very good ,TF2 for example is faster than with catalyst.

        Comment


        • #5
          I have the following set in my /etc/environment, this fixed it.

          export VDPAU_DRIVER=r600
          export LIBVA_DRIVER_NAME=vdpau

          Comment


          • #6
            Originally posted by crshbndct View Post
            I have the following set in my /etc/environment, this fixed it.

            export VDPAU_DRIVER=r600
            export LIBVA_DRIVER_NAME=vdpau
            Are you sure? /etc/environment is not a shell script. It has only VAR=value like structure, not bash syntax. I have R600_DEBUG=sb in it and if i echo $R600_DEBUG, i get "sb". Try

            Code:
            echo $VDPAU_DRIVER
            you should get
            Code:
            r600
            ?

            For those variables to work, you should have:
            VDPAU_DRIVER=r600
            LIBVA_DRIVER_NAME=vdpau
            PS libva is NOT needed for hardware accelerated decoding if you have vdpau. libva is Intel's vdpau so to speak. But it can use other backends such as vdpau or xvba, but only a subset of them and they work like crap compared to native operations. I had a nvidia IGP before and vdpau was working wonderfully on it but libva was downright crap.

            Comment


            • #7
              Originally posted by schwarzygesetzlos View Post
              I got an A10-5700 desktop, Gentoo 64 bit, Xfce 4.10 (no composite) and i want to use vdpau/gallium for videos. I have installed:
              - gentoo-sources-3.10.7 (kernel)
              - mesa-9.2.0
              - xf86-video-ati-7.1.0
              - libdrm-2.4.46
              - libvdpau-0.5
              I think you should try it with xf86-video-ati-7.2

              Comment


              • #8
                Solution to my problem

                Ok, finally I sorted it out...

                Thanks to mpv's (http://mpv.io) more-meaningful-than-mplayer-output I was pointed to the direction that mpv/mplayer were unable to access the r600 opengl driver.

                Using gpasswd I added myself to the "video" group, and everything worked just fine...

                D'Oh

                Comment

                Working...
                X