[LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform

  Thread Rating:
  • 14 Votes - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
SDM2011 Offline
Junior Member
Posts: 28
Joined: Mar 2011
Reputation: 0
Post: #131
I should also note that there's a missing dependency in the standard xvba-va-driver package which causes it to fail. I'm surprised that this still hasn't been fixed actually. I used the patched package provided by Andrew Hunter.

I tried upgrading to the new Catalyst 11.6 release, but it doesn't build against 2.6.39, and downgrading the kernel conflicts with the libva versions bundled elsewhere, and the xvba-video package from splitted-desktop doesn't integrate properly either. You're better off just using the standard packages I listed above, and waiting for Ubuntu maintainers to release updates.

As for the specific commands, just use apt-get. As for their order, it shouldn't matter. If you have trouble after having only the above two ppas installed, try apt-get update; apt-get dist-upgrade, then try to install the packages I listed once that's done.
find quote
WytRaven Offline
Junior Member
Posts: 41
Joined: Jun 2011
Reputation: 0
Post: #132
Well I decided to give SDM2011's method a go. Started from mini.iso CLI install. I have all the same packages installed that he had via apt-get, with the exception of Catalyst 11.6, which I got built using the patched method I mentioned earlier. (by the way the 2.6.39-3 kernel is in the xorg-edgers/ppa)

What I have is a nice XBMC install that I can run around and play with menus in, I even get nice little thumbnails of my music videos but the split second I try to play a video .... instant crash, just like mplayer did on previous install.

I have been up all night on this and I really can't be stuffed looking at log files right now. Yay for yet another failed attempt.

EDIT: Ok, so I did take a quick peek at logs. Looks like it audio that is failing not the video. I see this in the log "VAAPI - attempting to open codec 28 with profile 77 at level 40 with 2 reference frames" but nothing saying that it didn't work. It then goes on to initialising audio and ultimately fails...however the log suggests that it is gracefully handling the issues with audio...but crashes.
(This post was last modified: 2011-06-16 23:28 by WytRaven.)
find quote
Robotica Offline
Posting Freak
Posts: 974
Joined: Aug 2010
Reputation: 3
Post: #133
WytRaven Wrote:Well I decided to give SDM2011's method a go. Started from mini.iso CLI install. I have all the same packages installed that he had via apt-get, with the exception of Catalyst 11.6, which I got built using the patched method I mentioned earlier. (by the way the 2.6.39-3 kernel is in the xorg-edgers/ppa)

What I have is a nice XBMC install that I can run around and play with menus in, I even get nice little thumbnails of my music videos but the split second I try to play a video .... instant crash, just like mplayer did on previous install.

I have been up all night on this and I really can't be stuffed looking at log files right now. Yay for yet another failed attempt.

Damn!

Hopefully, I will give it a try this weekend. Will be using XBMC git and try with .38 kernel instead.
find quote
htpcero Offline
Member
Posts: 82
Joined: May 2009
Reputation: 0
Post: #134
SDM2011 Wrote:I should also note that there's a missing dependency in the standard xvba-va-driver package which causes it to fail. I'm surprised that this still hasn't been fixed actually. I used the patched package provided by Andrew Hunter.

I tried upgrading to the new Catalyst 11.6 release, but it doesn't build against 2.6.39, and downgrading the kernel conflicts with the libva versions bundled elsewhere, and the xvba-video package from splitted-desktop doesn't integrate properly either. You're better off just using the standard packages I listed above, and waiting for Ubuntu maintainers to release updates.

As for the specific commands, just use apt-get. As for their order, it shouldn't matter. If you have trouble after having only the above two ppas installed, try apt-get update; apt-get dist-upgrade, then try to install the packages I listed once that's done.


Well I tried the recommendations, all of them I think. Latest xvba from Andrew's PPA (which is splitted-desktop's), xbmc-pvr from Lars' PPA, catalyst 11.5 from x-updates, latest libva from x-org-edgers (or was it x-updates), and kernel 2.6.39-3 from xorg-edgers.

Exact same disappointing results. XBMC works great as long as vaapi is disabled; when vaapi is enabled, xbmc will crash when attempting to play mpeg4/h264 content.

I also tried compiling directly from GIT - as you can guess, I got the same results.


This is on 11.04/Natty AMD64, ASUS E35M1-I Deluxe.

Acceleration is just not working for me. I'm hoping we will figure this out sometime (soon Smile !



WytRaven Wrote:Well I decided to give SDM2011's method a go. Started from mini.iso CLI install. I have all the same packages installed that he had via apt-get, with the exception of Catalyst 11.6, which I got built using the patched method I mentioned earlier. (by the way the 2.6.39-3 kernel is in the xorg-edgers/ppa)

What I have is a nice XBMC install that I can run around and play with menus in, I even get nice little thumbnails of my music videos but the split second I try to play a video .... instant crash, just like mplayer did on previous install.

I have been up all night on this and I really can't be stuffed looking at log files right now. Yay for yet another failed attempt.

EDIT: Ok, so I did take a quick peek at logs. Looks like it audio that is failing not the video. I see this in the log "VAAPI - attempting to open codec 28 with profile 77 at level 40 with 2 reference frames" but nothing saying that it didn't work. It then goes on to initialising audio and ultimately fails...however the log suggests that it is gracefully handling the issues with audio...but crashes.

The crash logs in my build with 2.6.39-3 are pretty much the same as they were with 2.6.38.

2.6.39-3:
Code:
19:26:34 T:140497501726464 M:1377157120    INFO: ffmpeg[1FAEA700]:   Duration: 00:54:15.04, start: 0.000000, bitrate: 1802 kb/s
19:26:34 T:140497501726464 M:1377157120    INFO: ffmpeg[1FAEA700]:     Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
19:26:34 T:140497501726464 M:1377157120    INFO: ffmpeg[1FAEA700]:     Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
19:26:34 T:140497501726464 M:1377157120  NOTICE: Opening video stream: 0 source: 256
19:26:34 T:140497501726464 M:1377157120  NOTICE: Creating video codec with codec id: 13
19:26:34 T:140497501726464 M:1377157120   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:yes OpenMax:no VDPAU:yes VAAPI:yes
19:26:34 T:140497501726464 M:1377157120   DEBUG: FactoryCodec - Video:  - Opening
19:26:34 T:140497501726464 M:1377157120   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/swscale-0-x86_64-linux.so)
19:26:34 T:140497501726464 M:1377157120   DEBUG: Loading: /usr/lib/xbmc/system/players/dvdplayer/swscale-0-x86_64-linux.so
19:26:34 T:140497501726464 M:1377157120  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
19:26:34 T:140497501726464 M:1377157120   DEBUG: VAAPI - attempting to open codec 13 with profile -99 at level -99 with 1 reference frames


############### END LOG FILE ################


2.6.38

Code:
19:03:13 T:139919522219776 M:1324822528    INFO: ffmpeg[8D6B4700]:   Duration: 00:54:15.04, start: 0.000000, bitrate: 1802 kb/s
19:03:13 T:139919522219776 M:1324822528    INFO: ffmpeg[8D6B4700]:     Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
19:03:13 T:139919522219776 M:1324822528    INFO: ffmpeg[8D6B4700]:     Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
19:03:13 T:139919522219776 M:1324822528  NOTICE: Opening video stream: 0 source: 256
19:03:13 T:139919522219776 M:1324822528  NOTICE: Creating video codec with codec id: 13
19:03:13 T:139919522219776 M:1324822528   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:yes OpenMax:no VDPAU:yes VAAPI:yes
19:03:13 T:139919522219776 M:1324822528   DEBUG: FactoryCodec - Video:  - Opening
19:03:13 T:139919522219776 M:1324822528  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
19:03:13 T:139919522219776 M:1324822528   DEBUG: VAAPI - attempting to open codec 13 with profile -99 at level -99 with 1 reference frames
19:03:13 T:139919978289088 M:1324822528   DEBUG: ------ Window Init (DialogBusy.xml) ------
19:03:13 T:139919978289088 M:1324822528   DEBUG: Alloc resources: 0.02ms (0.01 ms skin load)


############### END LOG FILE ################

############ END XBMC CRASH LOG #############
(This post was last modified: 2011-06-17 02:10 by htpcero.)
find quote
Robotica Offline
Posting Freak
Posts: 974
Joined: Aug 2010
Reputation: 3
Post: #135
SO XBMC logs tell it crashed. How does your xorg.conf/Xorg.0.log looks like? And aticonfig and glxinfo?

And I also think that it is not necessary to compile with VDPAU and ChrystalHD support. I also suggest not using PPA atm, so we all compile the same and have consitent results.
find quote
htpcero Offline
Member
Posts: 82
Joined: May 2009
Reputation: 0
Post: #136
Robotica Wrote:SO XBMC logs tell it crashed. How does your xorg.conf/Xorg.0.log looks like? And aticonfig and glxinfo?

And I also think that it is not necessary to compile with VDPAU and ChrystalHD support. I also suggest not using PPA atm, so we all compile the same and have consitent results.

Lars' xbmc-pvr comes pre-compiled with vdpau/crystalHD supports; the HW is not present anyways and vdpau/crystalHD code is not used in my build.

I also tried XBMC GIT with only VAAPI enabled; the results are the exact same (including the crash logs).


Here's the config:

xorg.conf (this was buit by aticonfig --initial)

Code:
Section "ServerLayout"
    Identifier     "aticonfig Layout"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]-0"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    BusID       "PCI:0:1:0"
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device     "aticonfig-Device[0]-0"
    Monitor    "aticonfig-Monitor[0]-0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Section "Extensions"
    Option "Composite" "Disable"
EndSection


glxinfo

glxinfo output: http://pastebin.com/jT7PCj3v
find quote
Robotica Offline
Posting Freak
Posts: 974
Joined: Aug 2010
Reputation: 3
Post: #137
WytRaven Wrote:But I have not compiled xbmc yet. I'm still playing with mplayer and have no sound and -vo vaapi crashes it every time. I may just go straight for the xbmc build and then start figuring out the issues as I have no idea if the mplayer crash is it's fault or the vaapi libs at this point and I have no intention of using mplayer on this machine beyond this testing I'm doing.

Did you use the method provided in OP(bottom) to compile Mplayer?
(This post was last modified: 2011-06-17 02:55 by Robotica.)
find quote
Robotica Offline
Posting Freak
Posts: 974
Joined: Aug 2010
Reputation: 3
Post: #138
Your vainfo was ok, right?

You have 2 problems:
1> How did you connect? Did you connect via HDMI?

This command gives you necessary info:
Code:
xrandr

You can check the modes detected by the kernel with:
Code:
dmesg |grep HDMI

And check EDID detection with

Code:
cat /proc/asound/card0/eld#3.0

2> no modlines in xorg. How does Xorg.0.log.old lookslike? It probably hangs also? If yes, you need a better xorg.conf.

Should be looking like this

Code:
....................
Section "Screen"
  Identifier  "Screen0"
  Device      "Device0"
  Monitor     "HDMI2"
  DefaultDepth  24
  SubSection "Display"
    Depth       24
    Modes     "1920x1080@50p" "1920x1080@59.94p" "1920x1080@24p" "1920x1080@60p"
  EndSubSection
EndSection

Section "Monitor"
  Identifier  "HDMI2"
  HorizSync   14.0 - 70.0
  VertRefresh 24.0 - 62.0
  Modeline    "1920x1080@24p"     74.230 1920 2560 2604 2752 1080 1084 1089 1125 +hsync +vsync
  Modeline    "1920x1080@50p"    148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
  Modeline    "1920x1080@59.94p" 148.352 1920 1960 2016 2200 1080 1082 1088 1125 +hsync +vsync
  Modeline    "1920x1080@60p"    148.500 1920 2008 2056 2200 1080 1084 1089 1125 +hsync +vsync
EndSection
.......................

You can try above lines (or one of those) in your xorg.conf or read the EDID-data from you monitor/tv and manully add the modlines or don't use aticonfig switch when compiling.

For sound, probably the same problems.

In alsamixer unmute the spdif devices. Than we store this setting.
Code:
alsamixer
sudo alsactl store
(This post was last modified: 2011-06-17 04:57 by Robotica.)
find quote
Robotica Offline
Posting Freak
Posts: 974
Joined: Aug 2010
Reputation: 3
Post: #139
oops
find quote
yumz Offline
Junior Member
Posts: 3
Joined: Jun 2011
Reputation: 0
Post: #140
quotaholic Wrote:Just went to install natty via unetbootin on my E35-M1. The install went fine but my sony tv gives me a no signal indication when I reboot. I used the alternate installer. The screen flickers a couple of times like it wants to show me something after a while though the standard sony check your input banner pops up. Does anyone have any tips or ideas?

Getting a similar problem after installing from the mini.iso. Ubuntu refuses to load normally and I have to mash F8 to boot into recovery mode and sometimes the screen will start to flicker or just die.
find quote
Post Reply