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
kobik Offline
Senior Member
Posts: 100
Joined: Jan 2009
Reputation: 4
Post: #11
Hey, it seems I was too slow to start this thread Smile
Nice work so far guys.
You really made me happy specifically about one issue I had and it's deinterlacing LiveTV content. At last I can see sports without having a feeling like someone is stabbing me in the eyes Wink

I would like to report a few things, though:
1. Unlike the builds from Lars' repository I'm having lots of crashes when navigating.
2. Fast forwarding on x16 or above stutters
3. Playing a video with the following specs shows a green solid image (Was playing fine on VAAPI)
Code:
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 31mn 17s
Bit rate mode : Variable
Bit rate : 3 734 Kbps
Maximum bit rate : 25.0 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.162
Stream size : 836 MiB (89%)
Writing library : x264 core 114 r1924 08d04a4
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
4. For the following video I'm having a constant macro-blocking making it un-viewable (This also happens on VAAPI too, though)
Code:
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 51mn 16s
Bit rate : 7 497 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.151
Stream size : 2.62 GiB (92%)
Writing library : x264 core 59 r851M e11ef38
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=6 / me-prepass=0 / brdo=1 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=3 / nr=0 / decimate=1 / mbaff=0 / fgo=0 / bframes=5 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=7497 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=1.00 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:1.00
But I see in the OP that 5.1 profile isn't supported yet, so never mind.
(This post was last modified: 2011-12-16 21:48 by kobik.)
find quote
fritsch Online
Team-XBMC Member
Posts: 1,403
Joined: Aug 2011
Reputation: 40
Location: Karlsruhe
Post: #12
For the first video:
Could you provide me a sample of the first file? (5MB?)

Second one: 5.1 as you have seen right.

What crashes are this? Does it just quit to desktop or do you get a freeze? Does this happen with Shared Surfaces on? Do you watch interlaced TV while this happens?

If it does not crash to desktop, eg segfaults. Could attach to the running process with gdb?

We have seen some effects in fglrx we are not really amused about...
find quote
wsnipex Online
Team-XBMC packaging monkey
Posts: 1,906
Joined: Jun 2011
Reputation: 51
Post: #13
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.
find quote
kobik Offline
Senior Member
Posts: 100
Joined: Jan 2009
Reputation: 4
Post: #14
fritsch Wrote:For the first video:
Could you provide me a sample of the first file? (5MB?)

Second one: 5.1 as you have seen right.

What crashes are this? Does it just quit to desktop or do you get a freeze? Does this happen with Shared Surfaces on? Do you watch interlaced TV while this happens?

If it does not crash to desktop, eg segfaults. Could attach to the running process with gdb?

We have seen some effects in fglrx we are not really amused about...

For some reason after reboot the video can be watched normally, do you still want a sample?

Regarding the crash, it crashes completely.
I'm not using any desktop, so, all I see is just a black screen and then monit restarts XBMC service.
Tell me what info and how to get it, and I'll deliver.
find quote
fritsch Online
Team-XBMC Member
Posts: 1,403
Joined: Aug 2011
Reputation: 40
Location: Karlsruhe
Post: #15
Okay, this looks like a segfault. Does this crash happen only with Shared Surfaces enabled?

Edit: Do you watch interlaced content when it crashes?
(This post was last modified: 2011-12-17 13:40 by fritsch.)
find quote
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 quote
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 quote
fritsch Online
Team-XBMC Member
Posts: 1,403
Joined: Aug 2011
Reputation: 40
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 quote
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 quote
fritsch Online
Team-XBMC Member
Posts: 1,403
Joined: Aug 2011
Reputation: 40
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 quote
Post Reply