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

  Thread Rating:
  • 21 Votes - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
fritsch Offline
Posting Freak
Posts: 1,269
Joined: Aug 2011
Reputation: 34
Post: #811
@PeterV:
Normally aticonfig is just a symlink to amdconfig or the other way round - so both should work.
What does: ls -l `which aticonfig` tell?
find quote
csmager Offline
Junior Member
Posts: 19
Joined: Nov 2010
Reputation: 0
Post: #812
(2012-07-01 21:55)fritsch Wrote:  @csmager:
Best is to upload a sample, pastebin your xbmc.log with debugging turned on (complete one) and describe the error you are seeing.
Thanks - will do this. I think I've narrowed it down to x264 files with FLAC 5.1 audio tracks. They either exhibit this skipping back to previous frames from the get-go, or on the second run. Once it's happened, it affects all files that are decoded using xvba until X & fglrx are restarted.

I'll cut a couple of the files down to a minute or so and paste a log when I get a chance.
find quote
MTroi Offline
Junior Member
Posts: 19
Joined: May 2011
Reputation: 0
Post: #813
(2012-06-25 09:58)MTroi Wrote:  
(2012-06-23 15:24)FernetMenta Wrote:  Maybe DPMS kicks in (default is 10min) because you have no screen saver. I would either activate the screen saver or deactivate DPMS.

I've tried all of that but still no improvement. I'm thinking about a fresh installation of the system, since this problem occured without any config changes done by myself.

Just to let you guys know: I did a fresh installation of Ubuntu 12.04 LTS Minimal while following the steps on page 1 and the problem hasn't occured yet. Thanks for the detailed step-by-step guide.
find quote
dandel Offline
Junior Member
Posts: 16
Joined: May 2010
Reputation: 0
Post: #814
There might still be issues with broken 4.1 content that actually should be decoded as 5.1 content... with the va driver if you have the 5.1 support enabled, you could fix it with this patch... I suspect that a similar patch could be worked into this...

Code:
diff --git a/src/xvba_buffer.c b/src/xvba_buffer.c
index 4facbbf..d8012a3 100644
--- a/src/xvba_buffer.c
+++ b/src/xvba_buffer.c
@@ -368,23 +368,18 @@ translate_VAPictureParameterBufferH264(
         obj_context->picture_height
     );

-    /* Check for H.264 content over HP@L4.1 */
+    /* Check for wrongly coded H264 Level 41 files
+       adjust profile to Level 51 when reframes are too many
+     */
     unsigned int num_ref_frames = pic_param->num_ref_frames;
-    if (profile == XVBA_H264_HIGH && level > 41) {
-        if (!driver_data->warn_h264_over_hp_l41) {
-            driver_data->warn_h264_over_hp_l41 = 1;
-            xvba_information_message(
-                "driver does not support H.264 content over HP@L4.1. "
-                "Please upgrade.\n"
-            );
-        }
+    if (profile == XVBA_H264_HIGH && level == 41) {

-        /* Use fail-safe values (lower ref frames) */
+        /* Increase Level to decode pseudo Level 41 as Level 51 */
         const unsigned int mbw = pic_param->picture_width_in_mbs_minus1 + 1;
         const unsigned int mbh = (obj_context->picture_height + 15) / 16;
         const unsigned int max_ref_frames = 12288 * 1024 / (mbw * mbh * 384);
         if (max_ref_frames < num_ref_frames)
-            num_ref_frames = max_ref_frames;
+            level = 51;
     }

     XVBABufferDescriptor * const xvba_buffer = obj_surface->pic_desc_buffer;
Phoronix Backtrack
Ubuntu Pastebin link
find quote
fritsch Offline
Posting Freak
Posts: 1,269
Joined: Aug 2011
Reputation: 34
Post: #815
@dandel:
Thanks for posting my own patch. This is for the xvba-va-driver. This one has absolutely nothing to do with our xvba branch. xvba-va-driver is a wrapper that translates vaapi to xvba. So applications that do not have direct xvba support can use vaapi and are therefore translated to xvba.

xvba-va-driver is not maintained since over a year - though i am planning to push in mpeg-2 and mpeg-4 support when they are available.
find quote
laric Offline
Junior Member
Posts: 24
Joined: May 2012
Reputation: 0
Post: #816
I just installed following the steps in post 1. And now I am getting the same old problem. If I turn off my tv and have it off and start it later then I have no sound.
i have to reboot my xbmc pc to get the sound back. Then everything works just fine until I turn the telly off again. I love xbmc but hate this problem.

Is there any work around for this? Below is my amd card from lspci.


01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Turks [Radeon HD 6570] (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 0403
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at feac0000 (64-bit, non-prefetchable) [size=128K]
I/O ports at d000 [size=256]
Expansion ROM at feaa0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: fglrx_pci
Kernel modules: fglrx, radeon

01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Turks HDMI Audio [Radeon HD 6000 Series]
Subsystem: ASUSTeK Computer Inc. Device aa90
Flags: bus master, fast devsel, latency 0, IRQ 45
Memory at feafc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
find quote
fritsch Offline
Posting Freak
Posts: 1,269
Joined: Aug 2011
Reputation: 34
Post: #817
@laric:
Upgrade to fglrx 12.6. This should fix the hdmi sound issue. See: http://forum.xbmc.org/showthread.php?tid...pid1138272
find quote
laric Offline
Junior Member
Posts: 24
Joined: May 2012
Reputation: 0
Post: #818
(2012-07-05 20:55)fritsch Wrote:  @laric:
Upgrade to fglrx 12.6. This should fix the hdmi sound issue. See: http://forum.xbmc.org/showthread.php?tid...pid1138272

Thanks
find quote
Just4U Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #819
Thanks for the wonderful suggestions to install XBMC PVR Xvba. I didn't have any problems following the guide. I have a few questions though

1. If I need to just install XBMC Xvba instead of XBMC PVR, what repository I need to use in Step 3

2. Also if we follow the steps in Page 1, does it come with fglrx 12.6 or do we need to follow the above link to install it?
find quote
fritsch Offline
Posting Freak
Posts: 1,269
Joined: Aug 2011
Reputation: 34
Post: #820
@Just4U:
2. Nope. fglrx 12.6 is not installed by default, as AMD stopped supporting some devices HD2XXX, HD3XXX, HD4XXX. You can use the above instructions to update fglrx, if your video card is supported. If the original version works for you, keep it.

1. Our direct upstream is xbmc-pvr. So all of our versions include PVR. You can easily disable everything PVR related within xbmc - so it does not harm.
find quote
Post Reply