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)



- Infinitatus - 2011-12-17

wsnipex Wrote:howto get a gdb backtrace mini howto

In case of a hanging/locked up xbmc process

install gdb:
Code:
sudo apt-get install gdb pastebinit

with XBMC running:
Code:
sudo gdb --pid $(pidof xbmc.bin)

in the gdb shell/prompt (gdb):
Code:
set pagination off
set logging on xbmc-xvba-crash.log
thread apply all bt
detach
quit
cat xbmc-xvba-crash.log ~/.xbmc/temp/xbmc.log | pastebinit

In case xbmc crashes completely to desktop, or X restarts
you should have a xbmc_crashlog* file in your home dir
Code:
cd ~
ls -ltr xbmc_crashlog*  # not needed, just to check if there are crashlog files
pastebinit $(ls -1tr xbmc_crashlog*  | tail -1)


then let us know the url pastebinit outputs.

I havenĀ“t seen a crash, but 1 cpu is always at about 50%. It is never in Idle with xbmc on, although i am not playing a movie.
http://paste.ubuntu.com/773209/


- kobik - 2011-12-17

@Infinitatus,
Set VSync to always on under System->Video settings.
It's the FPS that is going crazy here, but putting a limit on them will decrease your CPU usage on idle.
Moreover, try enabling Dirty Regions to decrease it more
http://wiki.xbmc.org/index.php?title=Advancedsettings.xml#.3Calgorithmdirtyregions.3E

fritsch Wrote:Okay, this looks like a segfault. Does this crash happen only with Shared Surfaces enabled?

Edit: Do you watch interlaced content when it crashes?

As I mentioned earlier, these crashes I'm talking about are happening when navigating the menus. Not watching content.

But if you mentioned it already, I had crashes watching interlaced content. So, I disabled Shared Surfaces.


- fritsch - 2011-12-17

We currently have some patches in review, but wsnipex was so kind to make a ppa out of it. I will send you the link by pm, in order not confuse people who read this thread from the back. Try to reenable Shared Surfaces and try it a bit.

In order to get reasonable backtraces you have to run xbmc from gdb. After it is running just use the howto from above.


- kobik - 2011-12-17

hey fritsch,
Thank you and wsnipex for the PPA, I'll try it.
Is this PPA going to be updated regularly? Or is just for the latest patches testings?

About the gdb, please be kind to explain exactly what you want me to do.
Although I'm pretty technical, my background with Linux is 3 months only, so there are many black holes for me here.
I do want to remind that I'm running XBMC as a service using this script http://pastebin.com/fQSJ4xJt


- fritsch - 2011-12-17

We use the mailed ppa as a testing ppa. There are put new patches and stuff. Afterwards we try our standard movies and samples if it works correctly. After testing in one or two days in every day use we build packages from it and push them into the standard repo.

The interlacing part i have tested with running interlaced content over night and it was still running when i came back - so i am pretty confident that your interlace problem could be better or even solved.

Unfortunaltey you cannot integrate gdb into this script. Please try the testing packages. If they do not make it better for you. I think about a possibility to get you easily into the debugger.


- wsnipex - 2011-12-17

as it turns out h264 @L5.1 actually works as long as the bitrate is not very high.
I've tested a few samples(720p) and as long as the bitrate is not higher then ~6Mb/s it works smoothly.

I need more samples with L5.1, specially with bitrates between 6-10Mb/s preferably in 720p and 1080p.
Please let me know if you have any, or - even better - test yourself and post the results and mediainfo of the file(video section is enough)

here are a few samples I tested:
http://www.auby.no/files/video_tests/


- kobik - 2011-12-17

@wsnipex,
Actually I have a problematic sample I can send you.

fritsch Wrote:We use the mailed ppa as a testing ppa. There are put new patches and stuff. Afterwards we try our standard movies and samples if it works correctly. After testing in one or two days in every day use we build packages from it and push them into the standard repo.

The interlacing part i have tested with running interlaced content over night and it was still running when i came back - so i am pretty confident that your interlace problem could be better or even solved.

Unfortunaltey you cannot integrate gdb into this script. Please try the testing packages. If they do not make it better for you. I think about a possibility to get you easily into the debugger.

OK, thanks.


- erhnam - 2011-12-17

I created a livecd with XBMC Xvba installed. In case anyone is interested have a look here: http://www.xbmcfreak.nl/en/exclusive-xbmcbuntu-with-xvba-support-preview-version/

With many thanks to FernetMenta and all other!!


- fritsch - 2011-12-17

Waoh! This is great news. Thank you very much.


- kobik - 2011-12-17

wsnipex Wrote:as it turns out h264 @L5.1 actually works as long as the bitrate is not very high.
I've tested a few samples(720p) and as long as the bitrate is not higher then ~6Mb/s it works smoothly.

I need more samples with L5.1, specially with bitrates between 6-10Mb/s preferably in 720p and 1080p.
Please let me know if you have any, or - even better - test yourself and post the results and mediainfo of the file(video section is enough)

here are a few samples I tested:
http://www.auby.no/files/video_tests/

This one for example, is no go for me
http://db.tt/ZAl4oFAs


- fritsch - 2011-12-17

Known issue:
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames

So, nothing we can do about it.

Were you already able to test the other version? Did it improve concerning hangs and segfaults?


- kobik - 2011-12-17

Ran and tested it using SS (Shared Surfaces) for few minutes w/o problems.
Later this evening it would under extensive use, so I could have a better idea about how good is it.


- wsnipex - 2011-12-17

erhnam Wrote:I created a livecd with XBMC Xvba installed. In case anyone is interested have a look here: http://www.xbmcfreak.nl/en/exclusive-xbmcbuntu-with-xvba-support-preview-version/

With many thanks to FernetMenta and all other!!

great! thanks a lot


- jazzparadigm - 2011-12-17

Have been running for two days, watched some movies without any issues. First time I have gotten hardware acceleration to work on AMD APU's. Ironing out the kinks could mean that Radeon is finally a viable option for Linux users. That having said, are you guys in talk about merging this into the stable branch of XBMC?


- FernetMenta - 2011-12-17

Well, this is experimental and there's still a long way to go until this can be submitted to XBMC mainline and ffmpeg. But finally that's the plan.