Kodi Community Forum
Initial native support for DXVA2 in SVN - Time to say goodbye to your firstborns - 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: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Initial native support for DXVA2 in SVN - Time to say goodbye to your firstborns (/showthread.php?tid=69306)



- Lister of Smeg - 2010-05-27

steelman1991 Wrote:Mate I don't want to rain on your parade and I'm happy that your getting DXVA playback. I'm just curious what settings are being applied based on the above.

I fail to see (and I might be totally wrong here) how both refresh rate options can function correctly at the same time. Surely you either have one or the other but not both - either the screen is refreshing to the applied fps of the file or syncing to the refresh rate of the display. Are you sure these are you settings? During playback press 'z' to bring up the screen OSD - this will identify refresh rate and screen resolution.

Steel,

These are definately the settings i need to use to get it working correctly. Could you clarify what you mean by "either the screen is refreshing to the applied fps of the file or syncing to the refresh rate of the display" means?

I know roughly what all the settings do, but i'm no expert. So if i'm doing something which looks odd, which settings are you reffering to?


- rickardkk - 2010-05-27

rickardkk Wrote:XBMC (tested alot of builds up to 30596) has problems with many MPEG-2 and VC-1 remuxes from Blu-rays.

1. This is the untouched MPEG-2 stream from a Blu-ray remuxed into a mkv container.

What you will see is a very strange stuttering (kind of playing the wrong order of frames).
It can be reproduced on diffrent hardware (ATI and nvidia) BYT will only be visible if you set XBMC to set the refresh rate to match the frame rate.
If played at 59.94Hz you will not get this stuttering. But at 23.976Hz you will.

It will play 100% smooth with players like MPC-HC, MediaPortal, wMC7, XBMC DSPlayer etc.
In the players mentioned above I have tested a couple of MPEG-2 decoders. And none of them have failed.

Sample here:
http://www.earselect.se/test/mpeg2.mkv


1. This is the untouched VC-1 stream from a Blu-ray remuxed into a mkv container.

Here the frame rate drops to 2-4 fps at the start of the file. And will be hovering there for a while before it picks up.
This is also only visible at 23.976Hz.

Again. It will play 100% smooth with players like MPC-HC, MediaPortal, wMC7, XBMC DSPlayer etc.
In the players mentioned above I have tested a couple of VC-1 decoders. And none of them have failed.

Sample here:
http://www.earselect.se/test/vc1.mkv


If more samples are needed I can provide small sample from several VC-1 and MPEG-2 movies.

My friend posted about the MPEG-2 problem about a year ago and also uploaded samples on our site:
http://forum.xbmc.org/showthread.php?tid=49608&highlight=mpeg2+1080p

BUT back then it did play without problems on Windows apparently.

Sorry.. Link went dead after 10 minutes.
Updated server to work now.


- rickardkk - 2010-05-27

SlaveUnit Wrote:rickardkk,
Is all this with DXVA on or just random issues?

If it is with DXVA on. MPEG2 isnt supported by DXVA as far as I know. Also, only certain cards support VC1 gpu offloads. What Nvidia card are you testing the VC1 with?

Also: Your VC1 test file link is dead.

I don't think that this is related to DXVA decoding. But I do think that it was introduced when DXVA ("native") came alive (as it was working before). My guess is that it's actually related to the "demux".

Tested on nvidia 8600, 9400 and GT 240 (also a bunch of ATI cards). So I'm not so sure the GPU or drivers make any difference.

(links fixed btw)


- compcentral - 2010-05-27

elupus Wrote:I though all the half screen issues was solved in svn..

Nope... I'm running r30567 and I still have the 1/2 screen issue but it only occurs when using a true fullscreen. Using a windowed fullscreen allows the video to fill the entire screen.

My HTPC specs:
AMD Athlon X2 4850e Dual 2.5Ghz
4GB RAM
onboard nVidia 9200
Win7 64-bit

You can view my debug log and a screenshot here: http://forum.xbmc.org/showthread.php?p=543957#post543957


- Kill-9 - 2010-05-28

rickardkk Wrote:I don't think that this is related to DXVA decoding. But I do think that it was introduced when DXVA ("native") came alive (as it was working before). My guess is that it's actually related to the "demux".

Tested on nvidia 8600, 9400 and GT 240 (also a bunch of ATI cards). So I'm not so sure the GPU or drivers make any difference.

(links fixed btw)

If you turn off DXVA it should disapear.. this is what happens with me. Can you confirm?


- SlaveUnit - 2010-05-28

Kill-9 Wrote:If you turn off DXVA it should disapear.. this is what happens with me. Can you confirm?

Without DXVA enabled the VC1 sample still jumps around and starts dropping constant frames. Are you seeing it differently?

This is my system with a 9600 GSO card. So it doesnt even support DXVA on most VC1 files.


- Kill-9 - 2010-05-28

SlaveUnit Wrote:Without DXVA enabled the VC1 sample still jumps around and starts dropping constant frames. Are you seeing it differently?

This is my system with a 9600 GSO card. So it doesnt even support DXVA.

I only get it when DXVA is enabled. I'm running Windows 7 with an ati 3450


- rickardkk - 2010-05-28

Could you guys please also test the MPEG-2 remux. And note that the "Adjust display refresh rate to match video" option must be turned on. You should see a very strange stutter. It's not like the VC-1 (dropping frames) ...it's more like playing the frames in the wrong order.


- SlaveUnit - 2010-05-28

The MPEG-2 file plays fine for me. Of course this file does not use DXVA with XBMC.


- rickardkk - 2010-05-28

SlaveUnit Wrote:The MPEG-2 file plays fine for me. Of course this file does not use DXVA with XBMC.

At 23.976Hz refresh rate?
I just found this thread about the same problem:
http://forum.xbmc.org/showthread.php?tid=72163&highlight=mpeg-2


- SlaveUnit - 2010-05-28

Adjust refresh rate to match video can be on or off and it plays fine on a 60hz monitor with a geforce 9600 GSO card.


- rickardkk - 2010-05-28

That's the point. It will play fine at 60Hz here as well. But not at 23.976Hz. Then a very strange stutter kicks in. If you skip back/forward a couple of times it plays ok for half a minute. Then it will start to stutter again. BUT just at 23.976Hz


- SlaveUnit - 2010-05-28

If I have "Adjust refresh rate to match video" on, isn't that playing it at 23.97Hz? I would think it does.


- rickardkk - 2010-05-28

SlaveUnit Wrote:If I have "Adjust refresh rate to match video" on, isn't that playing it at 23.97Hz? I would think it does.


Sorry man. I thought you just wrote "on a 60Hz monitor". I misunderstood. If your monitor supports 23.976Hz and you enabled the "Adjust refresh rate to match video" option, then it should. Easy to see by pressing "Z" while playing the clip. It will show you the refresh rate used.
But it seems when reading the posts in that link I posted that this is a problem many encountered with MPEG-2 Blu-ray remuxes. So something must be wrong. But I guess this is not the thread for this problem anymore.


- SlaveUnit - 2010-05-28

Yeah its not really related to DXVA.