Kodi Community Forum
How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs (/showthread.php?tid=116996)



RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - salex - 2012-06-11

(2012-06-10, 20:40)wsnipex Wrote: according to the log there doesn't seem to be any audio in those streams and they generally seem corrupt.
Tvheadend regularly errors out.

Did you try playing those streams with another player?

When playing with the IP-TV Player on windows 7 sound is


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - thctlo - 2012-06-11

Hello..

After my debian wheeze got out of sync with Xorg en fglrx drivers i switched to Ubuntu 12.04 LTS Server.

Setup is same as the howto stats.
Strang thing is, my cpu load in top normally on wheezy wat about 6% which is normal i think.
Now on Ubuntu server its 70-100% while doing nothing !!!

Im using mysql database for the media movies/music .

I noticed this before with when i was testing with Ubuntu and debian.
Im using the xdva eden release and im wondering if other poeple have this high cpu load while doing nothing.

RSS is turned off.

this is my advancedsettings.xml
( removed the user/password login of mysql )

<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>127.0.0.1</host>
<port>3306</port>
<name>xbmc_video</name>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>127.0.0.1</host>
<port>3306</port>
<name>xbmc_music</name>
</musicdatabase>
<loglevel hide="false">0</loglevel>
<cputempcommand>/home/mediauser/bin/temp-cpu.sh</cputempcommand>
<gputempcommand>/home/mediauser/bin/temp-gpu.sh</gputempcommand>
<gui>
<algorithmdirtyregions>1</algorithmdirtyregions>
<visualizedirtyregions>false</visualizedirtyregions>
<nofliptimeout>0</nofliptimeout>
</gui>
<useddsfanart>true</useddsfanart>
<samba>
<clienttimeout>30</clienttimeout>
</samba>
<videoscanner>
<ignoreerrors>true</ignoreerrors>
</videoscanner>
</advancedsettings>

the temp cpu/gpu are my the openelec script bit modified for my server hardware.

someone tips for me where to check, i really cant find this problem.




RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fritsch - 2012-06-11

@thctlo:
Check the Vertical Sync Settings to be: Always enabled (System -> Settings -> System -> Video)


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - thctlo - 2012-06-11

Hai, i checked the wiki and searched bit with google and..
http://wiki.xbmc.org/index.php?title=Dirty_regions
and changed the nofliptimeout from 0 to 1000 and now im back to
<gui>
<nofliptimeout>1000</nofliptimeout>
<gui>

now it looks ok again. back to 6% cpu load. ( at 800Mhz )
but stil strange on debian the nofliptimeout was 0 and was ok.

but its fixed now.




RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - thctlo - 2012-06-11

(2012-06-11, 15:05)fritsch Wrote: @thctlo:
Check the Vertical Sync Settings to be: Always enabled (System -> Settings -> System -> Video)

Hello Fritsch,

of course i tried that already. So strange, that on wheezy the complete setup runs much better than on Ubuntu.
I even have some extra ati settings which makes run the system better but even these didnt help.
always nice to know, so for other people, my tv is atm max 720P. The Sync and Refresh are tuned to my tv.


Section "Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1280x720"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
Option "HorizSync" "15.0 - 68.0"
Option "VertRefresh" "49.0 - 61.0"
Modeline "[email protected]" 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync
Modeline "[email protected]" 74.18 1280 1390 1430 1650 720 725 730 750 +hsync +vsync
Modeline "[email protected]" 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
EndSection
and
Section "ServerFlags"
Option "Xinerama" "off"
EndSection
Section "Device"
Option "Capabilities" "0x00000800"
Option "DesktopSetup" "single"
EndSection

the Option "Capabilities" "0x00000800" = Vsync on in driver, did the same in XBMC.

but a stated before, its fixed with the nofliptimeout to 1000

but thanks anyway.



RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - DavidGGG - 2012-06-12

Hi! I found more than one thread on how to get AMD to work with HW acceleration, and as it happenned, I followed thread 106898 (which is based on thread 99154, which is based on thread 81286), and I did not get HW acceleration, just crashed XBMC (but I had slightly different - newer - versions, and got some errors I needed to handle along the way).

Could someone please try to explain why there are several posts on the same subject with different solutions? I aim to test what is written here, it seems more initiated (I understand that Wsnipex is part of the XBMC team) and updated (with Ubuntu 12.04) than the other posts (the other ones still refer to Natty and CCC 11.7 but people still write in them, and e g Wsnipex has made several helpful posts in them, e g one of them referring from thread 106898 to 99154).

If this thread works better then why don't the other 3 redirect to here?! Huh


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fritsch - 2012-06-12

@DavidGGG:
It is a very long story, written on over 72 forum pages ...

Could you join #xbmc-xvba - wsnipex and me are idling there. Everything is easier to explain.

Ah and if you do not have time to enter irc: This one is the one and only complete forum thread, that gives you a state of the art xbmc experience with direct usage of AMD UVD through the xvba-sdk :-)


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - wsnipex - 2012-06-12

(2012-06-12, 17:19)DavidGGG Wrote: I understand that Wsnipex is part of the XBMC

uhmm, not really, otherwise it would say "XBMC team member" under my name Wink

FernetMenta, the lead developer of the Xvba branch, is a Xbmc team member.
Fritsch' and my involvement with this is stated in the first post of this thread.


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - nichiren - 2012-06-12

First of all, I'm not sure if this is XvBA specific issue, I'm posting it here since I did not have this issue when I was using vanilla XBMCbuntu Eden and I've used XvBA branch for a while now. I've noticed the problem only pretty recently, I've mostly been watching newer videos mostly in H.264/MP4/MKV and only during these few weeks picked up again some old shows in XviD+MP3 in AVI.

The problem is that the audio sync seems to be off more or less in every AVI video I've watched lately, barely noticeable in some and really annoying in others, ie. different in every file. This by itself wouldn't be too much of an issue if I it weren't for another problem I'm having. It appears that the audio offset setting in OSD Audio Settings menu doesn't have any effect, I can set it to full 10 seconds delay/advance without any change in the audio/video sync.

Optimal solution would of course be if these older AVIs worked as well as new MP4/MKVs, but I'd be more than happy if I could just properly adjust the offset.

As for the setup I'm using, it's AMD Fusion (A8-3850) based hardware connected via HDMI straight to a flat TV.
Running XBMCbuntu (Oneiric), formerly official stable vanilla Eden, currently using ppa:wsnipex/xbmc-xvba. I've tried to use more up to date self-rolled fglrx drivers but as each has various kinds of playback issues, I've returned to using fglrx-updates drivers from oneiric-updates repository.

XBMC (hopefully) relevant video/audio settings:
Render method: auto detect
XVBA enabled
Adjust display refresh rate to match video: On
Pause during refresh rate change: 0.7
Sync playback to display: On
A/V sync method: Video clock(Drop/dupe) (though I've tried Audio clock, no effect)

Vertical blank sync: Always enabled

Audio output: HDMI
Speaker config: 2.0
DD (AC3) / DTS capable: Off
Audio output device: hdmi (ALSA)
Passthrough output device: (blank)

Further details follow.
advancedsettings.xml:
Code:
<advancedsettings>
  <loglevel hide="false">0</loglevel>
  <video>
    <!-- Compensate display latency (video lag). Latency is given in msecs. -->
    <latency>
      <!-- Global default display latency -->
      <delay>0</delay>
    </latency>
  </video>
  <gui>
    <algorithmdirtyregions>1</algorithmdirtyregions>
    <nofliptimeout>1000</nofliptimeout>
  </gui>
  <useddsfanart>true</useddsfanart>
  <cputempcommand>cputemp</cputempcommand>
  <gputempcommand>gputemp</gputempcommand>
  <samba>
    <clienttimeout>30</clienttimeout>
  </samba>
  <network>
    <disableipv6>true</disableipv6>
  </network>
  <lcd>
    <scrolldelay>4</scrolldelay>
    <rows>2</rows>
    <columns>16</columns>
  </lcd>
  <videodatabase>
    <type>mysql</type>
    <host>192.168.1.10</host>
    <port>3306</port>
    <user>herp</user>
    <pass>derp</pass>
    <name>xbmc_video</name>
  </videodatabase>
  <musicdatabase>
    <type>mysql</type>
    <host>192.168.1.10</host>
    <port>3306</port>
    <user>herp</user>
    <pass>derp</pass>
    <name>xbmc_music</name>
  </musicdatabase>
  <pathsubstitution>
    <substitute>
      <from>special://masterprofile/Thumbnails/</from>
      <to>smb://herp:[email protected]/Media/xbmc_thumbnails/fusion/</to>
    </substitute>
  </pathsubstitution>
  <videoextensions>
    <remove>.rar|.001|.zip|.bin</remove>
  </videoextensions>
<musicextensions>                                                                                                                    
    <remove>.rar|.001|.zip|.bin</remove>                                                                                                    
  </musicextensions>
  <pictureextensions>                                                                                                                    
    <remove>.rar|.001|.zip|.bin</remove>                                                                                                    
  </pictureextensions>
</advancedsettings>

xorg.conf:
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"
        Option      "Capabilities" "0x00000800"
        Option      "TexturedVideoSync" "off"
        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

.asoundrc:
Code:
pcm.!default {
    type plug
    slave {
       pcm "hdmi"
    }
}

Mediainfo from a video with noticeable audio offset, will post more later when I've got more time if needed:
Code:
General
Complete name                            : Angel - 5x11 - Damage.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 315 MiB
Duration                                 : 42mn 30s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 035 Kbps
Writing application                      : HUH?

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Simple@L3
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 42mn 30s
Bit rate                                 : 844 Kbps
Width                                    : 640 pixels
Height                                   : 352 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.156
Stream size                              : 257 MiB (82%)
Writing library                          : XviD 1.0.0 Beta3 (Selam) (UTC 2003-12-27)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 42mn 30s
Bit rate mode                            : Variable
Bit rate                                 : 178 Kbps
Minimum bit rate                         : 96.0 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : 384ms
Stream size                              : 54.0 MiB (17%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 24 ms (0.58 video frame)
Interleave, preload duration             : 920 ms
Writing library                          : LAME3.92
Encoding settings                        : -m j -V 0 -q 2 -lowpass 21.1 --vbr-old -b 96


I'm stumped here, anyone got an idea where to start poking?


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fritsch - 2012-06-12

Thanks for all these infos. The codecs you mention are not decoded with XVBA, plain software (ffmpeg) is used to do so.

Could you provide a xbmc.log with debugging turned on?
What is your window manager?
Can you pastebin: sudo aplay -L (perhaps there is a pulseaudio issue in the background)


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - WillUK2010 - 2012-06-13

@wsnipex

ill get the Mediainfo for those 2 files for you shortly.

just a question, is your git build of this based on the version 12 nightlies? or is it just a version of eden?


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - wsnipex - 2012-06-13

yes, its based on git master (xbmc 12/Frodo alphas)


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - WillUK2010 - 2012-06-13

hmm strange, i was expecting to see the new blue confluence interface etc.. but its still the red one..

i used ppa:wsnipex/xbmc-xvba as stated in the guide on page 1, which has, xbmc 2:12.0~git20120502.1900-e9e0027-0precise
im assuming i needed to use, ppa:wsnipex/xbmc-xvba-testing, which has xbmc 2:12.0~git20120610.2036-b0d724d-0precise



RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - wsnipex - 2012-06-13

correct. The testing ppa has much more recent code(Audio Engine, X11 windowing), but is a lot less tested and potentially unstable.


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - WillUK2010 - 2012-06-13

ok wicked,

do i have to remove the ppa:wsnipex/xbmc-xvba, before adding the ppa:wsnipex/xbmc-xvba-testing ppa.