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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/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 - fritsch - 2012-04-03 15:54

Quote:Edit: I know that it is kind of obvious, but you might want to put it into the first post that turning off XVBA in Settings-Video might help to solve playback problems for level 5.0+ h264 files with low bitrate. Yes, it somehow defeats the purpose of this build, but most people want simply to watch movies and giving them that hint would be really right thing to do.

Most people use AMD Fusion hardware. There is absolutely no chance to playback these highres, large number of reframes on the cpu. So they would just see "garbage" with correct speed or "8 to 9 fps". Don`t know what is worse :-)

We hope to get better support with a new xvba-sdk (from AMD) soon.

If you build from source, the attached patch should do this automatically.

See: http://paste.ubuntu.com/913031/

I am aware that this patch only matches the codec, so 4.1 with 5 reframes would still be decoded on the gpu - to do this really right, one has to calc the reframes depending on the resolution / macroblocks.

Update: Talked to master - patch won`t work. As we do not have this information that early in the process.
Update2: wsnipex was so kind to update the front page of this thread. It now tells you about the possiblity to disable xvba to playback "garbage file" on the CPU - thx.


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - thctlo - 2012-04-03 19:55

(2012-04-03 14:19)fritsch Wrote:  @xyzman and thctlo

As the download link is really small: just try this one:
http://dl.dropbox.com/u/55728161/killa.sampla.x264.mkv

should go faster.

ok, i did some testing. the seen above in mkv also shows garbled pictures. but i have played the same scene in 1080p mts file, and then it looks nice, running on amd-350 cpu @800Mhz, then is on 1 cpu on 50% load.
at full speed cpu 1600mhz, i only have about 20%cpu load.
( and my server is running also samba, webserver, mailserver, sabnzbd and some other stuff.. )

looks like a wrong codec or to old codec on linux with the killa sample.

any other things i can test?


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fritsch - 2012-04-03 20:05

@thctlo:

That is not a problem with the age of a codec, also the scene does not matter. I can give you tons of files that do not work. The only change is the Codec Level and Reframes used to encode the original material.

Files with 1080p and Refframes >= 5 do not work, cause this is out of spec for h264@High Level 4.1.
You can calc this down for other resolutions.

Formula:
Code:
/* Use fail-safe values (lower ref frames) */
        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;
Source: Gwens xvba-va-driver Code

So, if you really want to know if a video is supported, calc this formula :-)


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fritsch - 2012-04-03 20:16

Let`s calc this for 1920x1080 -> the surface is uncut of size 1920x1088

width: 1920 => mbw = 1920 / 16 = 120
height: 1088 => mbh = (1088 + 15) / 16 = 68

=> max_ref_frames = 12288 * 1024 / ( 120 * 68 * 384) = 12582912 / 3133440 = 4

Now for the original file posted:

width: 1280 => mbw = 1280 / 16 = 80
height 728 => mbh = (728 + 15 )/ 16 = 46

=> max_ref_frames = 12582912 / (80 * 46 * 384) = 12582912 / (3680 * 384) = 12582912 / 1413120 = 8

All divisions are integer divisions.

And some common rules. There is no single bluray which is > Level 4.1@High. So encoding a bluray with Level 5.1 High is absolutely foobar. The codec and higher settings can make sense for other streamed Data.


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fldc - 2012-04-04 02:35

I just did an upgrade from 11.0~git20120207.1fef727-0ubuntu1~ppa1~oneiric to 11.0~git20120229.f38655f-0ubuntu1~ppa1~oneiric and playing mkv files no longer produces any audio, any hints on what could be going on? Confused


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fritsch - 2012-04-04 05:59

(2012-04-04 02:35)fldc Wrote:  I just did an upgrade from 11.0~git20120207.1fef727-0ubuntu1~ppa1~oneiric to 11.0~git20120229.f38655f-0ubuntu1~ppa1~oneiric and playing mkv files no longer produces any audio, any hints on what could be going on? Confused

Please try the most newest version, which is 2:11.0~git20120326.1649-b6b4562-0oneiric. This one should be installed with the ppa enabled and a simple apt-get upgrade. Please report back.

Issues I can think off:
- a) Sound is muted (if no error message)
- b) Change your audio device, if not muted
- and a) again :-)
- c) provide a logfile with debugging turned on

Greetings
Peter


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fldc - 2012-04-04 10:51

(2012-04-04 05:59)fritsch Wrote:  
(2012-04-04 02:35)fldc Wrote:  I just did an upgrade from 11.0~git20120207.1fef727-0ubuntu1~ppa1~oneiric to 11.0~git20120229.f38655f-0ubuntu1~ppa1~oneiric and playing mkv files no longer produces any audio, any hints on what could be going on? Confused

Please try the most newest version, which is 2:11.0~git20120326.1649-b6b4562-0oneiric. This one should be installed with the ppa enabled and a simple apt-get upgrade. Please report back.

Issues I can think off:
- a) Sound is muted (if no error message)
- b) Change your audio device, if not muted
- and a) again :-)
- c) provide a logfile with debugging turned on

Greetings
Peter
The version i upgraded to via apt was of course 11.0~git20120326.1649-b6b4562-0oneiric, my bad, the problem is this only happens with mkv files, nothing else, so the audio device is not muted.

Here is a log of first playing an xvid file which produce audio and then playing an mkv file Smile
http://pastebin.com/ztB6vRB7

EDIT: I spoke to soon, i just happened to choose files using ac3, which is not working Big Grin


RE: Howto Install XBMC PVR Xvba for AMD/ATI Radeon and Fusion GPUs - fritsch - 2012-04-04 10:58

@fldc

Quote:10:32:58 T:11601664 INFO: AC3 pass through is enabled
10:32:58 T:11601664 INFO: DTS pass through is enabled

Go to the audio settings and uncheck AC3 and DTS. And retry afterwars. What speakers do you have connected and what other audio settings do you have?


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

(2012-04-04 10:58)fritsch Wrote:  @fldc

Quote:10:32:58 T:11601664 INFO: AC3 pass through is enabled
10:32:58 T:11601664 INFO: DTS pass through is enabled

Go to the audio settings and uncheck AC3 and DTS. And retry afterwars. What speakers do you have connected and what other audio settings do you have?

Ok, don't I feel stupid, thank you, missed that! Wink


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

No Problem at all. Next time for such small issues, you can join the irc channel. As this thread gets really unreadable by time :-).