How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs

  Thread Rating:
  • 23 Votes - 4.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
fritsch Offline
Team-XBMC Member
Posts: 4,280
Joined: Aug 2011
Reputation: 107
Location: Karlsruhe
Post: #946
@skeletorjus:
There is a sample /etc/asound.conf on the first page of this thread. If you use xbmc-xvba or xbmc-xvba-testing, there is the Audio Engine included, so you can easily choose your alsa device from a list. The AD-10 does: DTS + AC3 with 5.1 surround. For Dolby-HD and True HD these can be mixed to play as AC3.

On pre Audio Engine versions, i used the basic /etc/asound.conf and chose: Alsa (default) as my audio device and hw:0,3 as passthrough.
find
guilmxm Offline
Member
Posts: 78
Joined: Jul 2012
Reputation: 1
Location: France
Post: #947
@skeletorjus: That's a long story in deed :-) Thks for your answer!

@fritsch: I understand now why when i tested a few weeks ago xbmc-xvba instead of xbmc-xvba-eden, sound behavior was different and i had to change and set the device as you explained, a thing that is not working in xbmc-xvba-eden... THANKS !!! ^^

Perhaps would it be good to mention a few words about that in the first forum page (just before the ppa adding) to help future users to decide which version to choose and to understand version differences ?

Please support my Blog, XBMC and Linux related :-)
http://youresuchageek.blogspot.com
find
Artax Offline
Junior Member
Posts: 26
Joined: Jul 2012
Reputation: 0
Music  RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs
Post: #948
Hi all, I have a HTPC based upon ASRock E350M1/USB3 Fusion motherboard, with ubuntu 12.04.
First, I installed the standard XBMC from ubuntu's repos and the situation was a disaster, even 720p videos didn't play smoothly.
Then, I came here via google, I followed the instructions in the first post (to be honest, not all), and now the situation is much better. All my HD videos play smoothly. Rofl

I still have some problems, mainly with audio, maybe you can help me. Huh
First my configuration:
HTPC with:
Ubuntu 12.04 up to date as 31/07/2012
XBMC Eden via wsnipex's PPA, up to date as 31/07/2012.
XBMC autologin. XBMC remote on my Android phone,
The HTPC is connected via HDMI to a Denon AVR-1611. Denon is connected to the TV via HDMI, and to a simple 2.0 speaker configuration.

Settings:
http://tinypic.com/r/e9ymgi/6
http://tinypic.com/r/ajx8qp/6
http://tinypic.com/r/34rge92/6

Problems:
1) I cannot hear flac audio files. Maybe they aren't supported by my receiver, but I wish that the unsupported codecs (only) were encoded via software. Is it possible?

2) I cannot hear AAC audio. This codec IS supported by the receiver, so I don't know where is the problem.

3) I cannot hear Dolby Digital True HD and Dolby Digital Plus. I read under "Known problems" that "fglrx doesn't support HD audio(DTS HD/MA) yet", so I guess that I came into this problem. Am I right? No hope to resolve this?

4) I can hear Dolby Digital EX, but the Denon receives a standard dolby digital. Also, I can hear DTS MA and DTS ES, but they are recognized as simple DTS by the Denon. Is it related to the same problem in 3) (ATI drivers)?

I did not create a custom asound.conf.
The situation with HD audio improves with Frodo (AudioEngine), or removing Pulseaudio, or my problems are related to ATI/AMD's drivers? In the latter case, the situation is gonna to improve in the future?
find
grymster Offline
Junior Member
Posts: 2
Joined: Dec 2011
Reputation: 0
Post: #949
Hi to all!
After last update XBMC stopped to play http streams Sad
In XBMC log i have:
23:45:58 T:3078235904 NOTICE: DVDPlayer: Opening: http://192.168.55.1:81/udp/224.200.202.171:1234
23:45:58 T:3078235904 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:45:58 T:3078235904 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
23:45:58 T:3078235904 NOTICE: CXBMCRenderManager::ResetRenderBuffer - using 5 render buffers
23:45:58 T:3078235904 DEBUG: LinuxRendererGL: Cleaning up GL resources
23:45:58 T:3078235904 DEBUG: CLinuxRendererGL::PreInit - precision of luminance 16 is 16
23:45:58 T:2838485824 NOTICE: Thread CDVDPlayer start, auto delete: false
23:45:58 T:2838485824 NOTICE: Creating InputStream
23:45:58 T:2838485824 DEBUG: CFileCache::Open - opening <udp/224.200.202.171:1234> using cache
23:45:58 T:2838485824 DEBUG: CurlFile::Open(0xaa6cca40) http://192.168.55.1:81/udp/224.200.202.171:1234
23:45:58 T:2838485824 WARNING: FillBuffer: curl failed with code 22
23:45:58 T:2838485824 ERROR: CCurlFile::CReadState::Open, didn't get any data from stream.
23:45:58 T:2838485824 ERROR: Open - failed to open source <http://192.168.55.1:81/udp/224.200.202.171:1234>

In udpxy log at my router:
2012-07-31 23:45:59.478135 MSK S(3927) Command [udp] with params [224.200.202.171:1234] read from socket=[6]
2012-07-31 23:45:59.478886 MSK S(3927) Sent HTTP response code=[401], reason=[Bad request] to socket=[6]
HTTP/1.1 401 Bad request
Content-Type:application/octet-stream

Any help would be appreciated.

P.S. On my tablet the same stream through the same udpxy works fine.


Update:

Somehow if the "strm" file has only one stream address inside it would not work Sad
If two or more streams addresses are inside file it will work just fine
(This post was last modified: 2012-08-01 18:52 by grymster.)
find
MTroi Online
Junior Member
Posts: 34
Joined: May 2011
Reputation: 0
Post: #950
I'm having serious issues playing back DVDs and ISOs of DVDs:

After starting an DVD, the first Track is played (Like Warner Bros Logo), but after that, XBMC is unable to jump to the main menu of the DVD. Sometime I can jump into another track on the movie by pressing "skip track", but that's not working all the time. Anyone else having these problems?

EDIT: XBMC even crashed while trying to reach another track on the disc: Crash Log
(This post was last modified: 2012-08-01 11:51 by MTroi.)
find
golddk Offline
Junior Member
Posts: 31
Joined: Feb 2011
Reputation: 0
Post: #951
I to have problem with playing DVD ISO's. Some play Ok, other dont start right but stay in file-viewer and you only hear sound, and other is black screen on start. All x264 play OK.

A workaround is to press TAB (fullscreen) and then ENTER, then i can see the DVD menu.
(This post was last modified: 2012-08-01 15:50 by golddk.)
find
freakwenc Offline
Junior Member
Posts: 15
Joined: Jun 2012
Reputation: 0
Post: #952
fritsch:
I've posted a log here http://pastebin.com/p8yxYX91
(This post was last modified: 2012-08-01 18:14 by freakwenc.)
find
wsnipex Offline
Team-XBMC packaging monkey
Posts: 3,129
Joined: Jun 2011
Reputation: 77
Post: #953
@Artax: you need an Audio Engine enabled build, try the xbmc-xvba ppa.

@Mtroi:
ERROR: Unable to load libmpeg2.so.0, reason: libmpeg2.so.0: cannot open shared object file: No such file
install libmpeg2-4
find
MTroi Online
Junior Member
Posts: 34
Joined: May 2011
Reputation: 0
Post: #954
Thanks wsnipex, it's all working now. Maybe this should be added to the first post for all mini-installations?
find
golddk Offline
Junior Member
Posts: 31
Joined: Feb 2011
Reputation: 0
Post: #955
(2012-08-01 20:29)wsnipex Wrote:  @Artax: you need an Audio Engine enabled build, try the xbmc-xvba ppa.

@Mtroi:
ERROR: Unable to load libmpeg2.so.0, reason: libmpeg2.so.0: cannot open shared object file: No such file
install libmpeg2-4

libmpeg2-4 solved my problem with DVD ISO's, thx
(This post was last modified: 2012-08-02 08:21 by golddk.)
find
1204 Offline
Junior Member
Posts: 2
Joined: Aug 2012
Reputation: 0
Post: #956
*Deleted post about vlc and mplayer*

Answer to the next post #957: Thank you, I appreciate it and I have installed all xvba drivers and vainfo shows the right thing. I am just desperate with this, because I've tried all the hints and things I've found but still doesn't work. I understand if you can't help. Smile

If you can at least say what does this mean? http://forum.xbmc.org/showthread.php?tid...pid1158357 and I mean what "sudo aticonfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1" means?
(This post was last modified: 2012-08-03 00:31 by 1204.)
find
fritsch Offline
Team-XBMC Member
Posts: 4,280
Joined: Aug 2011
Reputation: 107
Location: Karlsruhe
Post: #957
@1204:
Follow the howto from the first post. It will give you an idea of what is going wrong with your vlc and mplayer. This is a thread concerning xbmc with a special hw accel implementation, called xvba. We do not support vlc, mplayer or general computer installations - this is quite normal as you are writing into the xbmc forum.

Never the less, i give you some hints:
For your vlc problem, you are missing: xvba-va-driver you can install it via: sudo apt-get install xvba-va-driver
Vlc uses VAAPI to decode videos, in the AMD case this is wrapped by xvba-va-driver and "translated" onto the GPU.
find
1204 Offline
Junior Member
Posts: 2
Joined: Aug 2012
Reputation: 0
Post: #958
Thank you, I appreciate it and I have installed all xvba drivers and vainfo shows the right thing. I am just desperate with this, because I've tried all the hints and things I've found but still doesn't work. I understand if you can't help. Smile

If you can at least say what does this mean? http://forum.xbmc.org/showthread.php?tid...pid1158357 and I mean what "sudo aticonfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1" means?
(This post was last modified: 2012-08-03 00:29 by 1204.)
find
fritsch Offline
Team-XBMC Member
Posts: 4,280
Joined: Aug 2011
Reputation: 107
Location: Karlsruhe
Post: #959
@1204:
It is enabling a hidden feature within the fglrx driver. By default AMD on linux only can playback H264 Level4.1@High Specification File. The Level and the Number tell something about the max bitrate, max reframes, e.g.

The above command enables the 5.1Level support, this has nothing to do with Audio as one could think as 5.1 as a common speaker number. In Short: to playback all H264 Files, also those with high bitrates and other special codings, you have to enable this hidden feature.
find
surfziggy Offline
Junior Member
Posts: 8
Joined: Jul 2011
Reputation: 0
Post: #960
Hi Fritsch,

I now have a fully working version. I was previously having issues with purple psychedelic play back, stuttering and refusal to play some (ABC iview downloads - Australian TV channel) .FLV files.

I was also losing audio over HDMI/DisplayPort.

I now have a fully working set up thanks to this thread. The key points to fix mine were:
1) Setting sync display to playback to OFF - this was causing my LA40M81BDX Samsung LCD TV to crap itself and give a purple picture.
2) Un-install of pulseaudio - this caused playback of some videos to lock up XBMC
3) Install of 12.6 ATI - seems to fix my loss of audio output. i.e. the display port/HDMI output is always available from system settings
4) Had to overwrite the /etc/ati/control file to get rid of the watermark

My setup is
Gigabyte GA-E350N-USB3 Motherboard
sudo add-apt-repository ppa:wsnipex/xbmc-xvba build
Unity2d - I'm also using my box as a NAS and for a couple of other things, so I'm using a window manager too.
12.04 LTS

Anyway thanks for your help - good work guys!
find
Thread Closed