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
Infinitatus Offline
Junior Member
Posts: 18
Joined: Nov 2011
Reputation: 0
Post: #16
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/
(This post was last modified: 2011-12-17 13:58 by Infinitatus.)
find
kobik Offline
Senior Member
Posts: 100
Joined: Jan 2009
Reputation: 4
Post: #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=Adv...regions.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.
find
fritsch Offline
Team-XBMC Developer
Posts: 5,485
Joined: Aug 2011
Reputation: 129
Location: Karlsruhe
Post: #18
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.
find
kobik Offline
Senior Member
Posts: 100
Joined: Jan 2009
Reputation: 4
Post: #19
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
find
fritsch Offline
Team-XBMC Developer
Posts: 5,485
Joined: Aug 2011
Reputation: 129
Location: Karlsruhe
Post: #20
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.
find
wsnipex Offline
Team-XBMC packaging monkey
Posts: 3,509
Joined: Jun 2011
Reputation: 84
Post: #21
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/
find
kobik Offline
Senior Member
Posts: 100
Joined: Jan 2009
Reputation: 4
Post: #22
@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.
(This post was last modified: 2011-12-17 16:49 by kobik.)
find
erhnam Offline
Team-XBMC Live Developer
Posts: 668
Joined: May 2009
Reputation: 2
Location: The Netherlands
Post: #23
I created a livecd with XBMC Xvba installed. In case anyone is interested have a look here: http://www.xbmcfreak.nl/en/exclusive-xbm...w-version/

With many thanks to FernetMenta and all other!!
find
fritsch Offline
Team-XBMC Developer
Posts: 5,485
Joined: Aug 2011
Reputation: 129
Location: Karlsruhe
Post: #24
Waoh! This is great news. Thank you very much.
find
kobik Offline
Senior Member
Posts: 100
Joined: Jan 2009
Reputation: 4
Post: #25
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
find
fritsch Offline
Team-XBMC Developer
Posts: 5,485
Joined: Aug 2011
Reputation: 129
Location: Karlsruhe
Post: #26
Known issue:
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
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?
find
kobik Offline
Senior Member
Posts: 100
Joined: Jan 2009
Reputation: 4
Post: #27
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.
find
wsnipex Offline
Team-XBMC packaging monkey
Posts: 3,509
Joined: Jun 2011
Reputation: 84
Post: #28
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-xbm...w-version/

With many thanks to FernetMenta and all other!!

great! thanks a lot
find
jazzparadigm Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #29
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?
find
FernetMenta Offline
Team-XBMC Developer
Posts: 3,064
Joined: Jul 2010
Reputation: 60
Location: Munich
Post: #30
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.
find
Thread Closed