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)



Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - mrpg - 2013-01-20

@frisch Ah i had not tried running xbmc directly in lightdm only in gnome3 and gnome classic

After fighting with getting autologin in the xbmc user session to work for hours I finally have it working, no tearing and so far no lockups Wink
Thank you!


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - rogerjames99 - 2013-01-21

I just tried the Catalyst 13.1 driver on Precise (64 bit) with the 2:12.0~git20130112.2341-rc3-3precise xvba edition. I still get the same motion artefacts on 1080p (about 5Mbs/sec) playback (Countdown on Channel 4HD for UK residents :-) ) as I was getting on Openelec 2.99.1. Hardware is an XS35GS V3. I think I have all the settings outlined in the howto correct.

Does OpenElec 2.99.1 use the 12.10 driver. If not would it be worth trying the 12.10 driver on my Precise xvba configuration to see if there is any improvement.

If am getting quite confused with the different versions of os xbmc and ati driver in various builds. It is often difficult to find out what is in there!

By the way Countdown in HD is quite a good test for renderers as there are lots of close ups of peoples mouths moving and lots of moving straight edges as Rachel puts the cards on the board!

Thanks,

Roger






RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - FernetMenta - 2013-01-21

There is no 1080p used for tv broadcasts. A quick research has shown that channel 4HD uses 1080i: http://www.channel4.com/4viewers/faq/name/what-is-hd/id/400291639

xvba only has basic (bob) support for de-interlacing.


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - fritsch - 2013-01-21

@rogerjames99:
OpenELEC uses 12.10 of Catalyst. There is no plan to change this (yet) - as 13.1 has some issues, especially with 50i/50p with Vertical Blank Sync enabled.

Btw. as you are watching 1080i50 - could you check with Adjust Refreshrate to match Video enabled (it should switch to 50hz) and Vertical Blank Sync always enabled - if there are any drops with your hardware?

I tried to debug this artefacts last weekend. My testing revealed that there are some Reframes missing, but the "stream still references them" - so one has to check the ReFrames referenced by the current picture and remove all of them that did not pass yet :-) A similar thing is done within vdpau, as the decoder has the option to change the actual references (pointers) to the non existing Reframes. I did not find a solution for AMD yet - as I don't know where to store this updated table - but in theory it should work - if we can make sure, that the first Reframe is the first in the stream an no upcoming frames references Frames before this - it is not easy. I hope AMD implements it in their driver - as it should be quite doable, as all the frames + reframes must be used within the decoder.

I will ask them at Februar 1st :-)




RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - rogerjames99 - 2013-01-21

I think that is out of date. As far as I know all the digital terrestrial HD channels in the UK (Freeview HD) now use GOP switching to dynamically switch between 1080i and 1080p depending on program content. But that was an old file I was testing with.

But it does seem a likely candidate for my problem. Is the information on what the stream is encoded as easily available in XBMC. The video informat overlay (o key) shows yuv430p,1920x1080[SAR 1:1 DAR 16:9] I am not sure if that means non interlaced or not.

However I just checked with a recent recording from channel 4 non HD which shows as yuv420p,704x576 at that has the same motion artefacts.

Roger


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - fritsch - 2013-01-21

Can you upload xbmc.log with debugging turned on, when playing those files, please?


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - FernetMenta - 2013-01-21

Unlike VC-1 h264 has no format for "true interlaced". For broadcast in h264 interlaced material i.e 1080i@50 is converted to full frames in 1080p@25. You can't tell from the codec screen whether it's interlaced or not.

@rogerjames99
Quote:The two HD formats currently in use, 720p and 1080i, the number referring to the vertical line resolution of the picture. 1080 has a larger number of displayed lines, and is interlaced as with standard definition TV, whilst 720 is progressively scanned, similar to a PC display. Most channels in the UK are based on 1080i, and Channel 4 will be using only this format.




RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - rogerjames99 - 2013-01-21

Sorry Fritz our posts must have crossed. I have only just seen your reply. I am just going out now but I will post logs later tonight (UK time). I assume that logs from my 2.99.1 set up are preferred.

Am I fairly certain that adust refresh rate and vsync were enabled. But I will check later

Roger
FernetMenta,

Thanks for the quick response. Is it worth me looking at the files with ffprobe?

I am sure from memory that someting on the information display was showing 25fps. Which would eman that your quess about about de-interlacong could be correct!

I will check it later.

For info I also have seen these artefacts when connected to an older TV that only supports 1080i.

Roger


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - rogerjames99 - 2013-01-22

Fritz

Log is at

http://paste.ubuntu.com/1556864/

Roger


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - fritsch - 2013-01-22

@rogerjames99:
Code:
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing SPS 0 referenced in buffering period
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing PPS referenced
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing SPS 0 referenced in buffering period
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing PPS 0 referenced
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] decode_slice_header error
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing PPS 0 referenced
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] decode_slice_header error
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing PPS 0 referenced
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] decode_slice_header error
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing PPS 0 referenced
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] decode_slice_header error
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing PPS 0 referenced
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] decode_slice_header error
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] non-existing PPS 0 referenced
22:28:28 T:2648685376   ERROR: ffmpeg[9DDFBB40]: [h264] decode_slice_header error

Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) are missing. Weak Signal? Broken Stream? In this PPS and SPS things like num_reframes, pic_order_cnt_type and several others, we need to set in h264_xvba.c are transmitted.

Code:
22:28:29 T:2566888256   ERROR: ffmpeg[98FF9B40]: [h264] reference picture missing during reorder
22:28:29 T:2566888256   ERROR: ffmpeg[98FF9B40]: [h264] reference count overflow

And this is what I previously meant about the Reframes.


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - FernetMenta - 2013-01-22

hmm, not sure about the ffmpeg erros. I have seen them in other logs where MythTV was used. Looks like the stream does not start with an I-frame.
@rogerjames99 do you have a chance to record something not using Myth?


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - rogerjames99 - 2013-01-22

@fritsch:
@FernetMenta:

Please forget the previous log. I tried again whilst tailing the log in a ssh login. NO errors were reported whilst the screen was showing artefacts. All the errors were due to me skipping about the recording to find examples of the artefacts. I took a screenshot whilst the screen was showing artefacts and they were not present in the screenshot. Also I noticed that no artefacts occured in the commercial breaks even on shots with lots of fast moving straight edges in them.

It looks like this may be something to do with the encoding of the program material. I wonder if it is significant that the recording starts in the middle of a commercial break? Could this be something to do with the broadcaster switching between interlaced and non interlaced content in the program stream?

Is there anything in the debug that shows whether xvba is trying to deinterlace?

I am struggling at the moment to cut the source file down to a size that shows the artefacts but is small enough to upload somewhere.

The artefacts definitely look like bad deinterlacing i.e. when a diagonal edge moves rapidly across the screen it looks jagged.

Roger


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - fritsch - 2013-01-22

Quote:I took a screenshot whilst the screen was showing artefacts and they were not present in the screenshot. Also I noticed that no artefacts occured in the commercial breaks even on shots with lots of fast moving straight edges in them.

Btw. are you really sure, we talk about artifacts here? Or do you see something like this: http://www.tweakguides.com/images/GGDSG_19.jpg which is in fact tearing and a problem of "Vertical Blank Sync" not working correctly. Can you make a photo of the screen with your digi cam?


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - FernetMenta - 2013-01-22

You can enable "adjust refresh rate to match video", then we can see calculated fps in the log. Or bring up the codec screen and watch fps counter. Does it stay at 50?
I have seen cases where the interlace flag toggled.

Well, bob de-interlacing is always poor quality because it reconstructs an entire frame from a single field. That ruins the HD experience.


RE: Howto Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - rogerjames99 - 2013-01-22

Quote:@rogerjames99 do you have a chance to record something not using Myth?
@FernetMenta: Sorry no, all my backend capture is done via a dedicated mythbackend box.
Quote:Btw. are you really sure, we talk about artifacts here? Or do you see something like this: http://www.tweakguides.com/images/GGDSG_19.jpg which is in fact tearing and a problem of "Vertical Blank Sync" not working correctly. Can you make a photo of the screen with your digi cam?
@fritsch: Fairly sure. I tracked down the link you mentioned (had to guess which article it was part of Smile ). I am familar with vsync issues and 3d rendering having done a lot of OpengGL coding. But I will try and get a external capture just to make sure. The full stream (2.7Gb) I am testing with is at http://ubuntuone.com/67SqcCJJuQBOVJo1fZvlrH .

@FernetMenta: "adjust refresh to match video" is set to always on. The framerate remains pretty much locked to 25fps in both the D line and the C line. The Samsing TV shows 1920 x 1080 @ 50Hz.

Roger