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)



- parastie - 2010-05-23

Kill-9 Wrote:Sorry forgot to mention that.. yes, tried at 10.4 at that last edit and no go. I've seen people get successful results with 3xxx series on this board, so I know it works. Is there a DX redist I can reinstall to see if it fixes the problem?

Could you try running in Windows XP compatibility mode? It might be a driver issue with 64bit windows. I have excellent results on a 4xxx in with Windows 7 x64, but you never know...


- Buckster - 2010-05-23

some content even though using DXVA2 - CPU load can be quite high

BUT I'm very impressed otherwise, I'm sure its not placebo, but PQ seems better to me - which has always been one of my criticisms of XBMC - even motion now (right left pans etc) seems absolutely micro-jutter free

Smile !


- stefan129 - 2010-05-23

steelman1991 Wrote:I belive so as soon as its implemented into ffmpeg. Don't think there has been amy change since elupus last made that statement, though I might have missed something along the way.

Is it possible to get interlace handling for mpeg2 sources with hardware acceleration through dxva2? I’m planning to use XBMC to view live TV so this would be an important option.
Since there seem to be no interlace handling support with linux and vaapi. The only other option to get hardware interlace handling would be using an NVIDIA card and VDPAU in linux.
I’m currently running XBMC under windows 7 with an ATI 5450 so I would prefer not to buy a new graphics card.


Image is too Bright - perronegro - 2010-05-26

Hi, I have mac mini running win 7 in boot camp. I'm using XBMC and it run perfect but using the DXVA2 option the image turn too bright when I disable the DXVA" option the image color is normal, anyone known what is happening?

PD: I tried installing the Nvidia drivers instead of Boot camp drivers and the problem persist.


Best Regards


- mindweaver - 2010-05-26

perronegro Wrote:Hi, I have mac mini running win 7 in boot camp. I'm using XBMC and it run perfect but using the DXVA2 option the image turn too bright when I disable the DXVA" option the image color is normal, anyone known what is happening?

PD: I tried installing the Nvidia drivers instead of Boot camp drivers and the problem persist.


Best Regards

I believe it's because they use different settings. without DXVA it uses the the display settings for color, contrast and brightness. but if you enable DXVA it uses the video settings. You just have to adjust the one or the other to match the one you like in NVIDIA Control panel


- Lister of Smeg - 2010-05-26

Hi,

I have been trying to get DXVA (with Adjust Refresh) working on my ATI HD5450 for some time now and have failed. So i thought i should post some logs here in the hope a Dev will spot it Big Grin and make all my dreams come true.

Info
I'm currently using svn 30260 but i have also tried many more. File is a 1080p MKV (24p). I have tried pretty much all combinations of True & Fake fullscreen, vsync and A/V Syncs. I have Vsync set to always on in the ATI CCC 10.4 driver.

Below logs are for vsync on and off within XBMC only. With vsync on, the movie runs at approx 10fps and with vsync off it runs at approx 19fps neither of which are correct. In both circumstances the CPU load is only 1%-4%. My HTPC specs are my signature.

Log (vsync on)
http://pastebin.com/N1nuUZc3

Log (vsync off)
http://pastebin.com/bCrKq5Aa

Thank you in advance for any info you can provide.


- SlaveUnit - 2010-05-26

Ive seen different results on different machines with Aero themes vs Basic themes in Windows 7. Just a shot in the dark really but maybe try a new theme.


- frotsen - 2010-05-26

Small update on my amd 5450 card. Fake full screen have been working for awhile with adjust framerate off. Today with the release of ati 10.5 drivers i did a new test. Fullscreen still gives a black picture but subtitles etc gets rendered. With fake fullscreen and adjust framerate on, still gives a jutterd playback with 10 fps. BUT if i pause the movie while XBMC is switching to the correct framerate i get perfectly judder free playback. It seems to me that xbmc first is switching to 24 fps then 23.9 if i pause while doing this it switches back to 24 fps. When i get back to xbmc main window the frame rate stays at 24 and doesnt go back to 60 fps.

Svn version 30592
debugg logg http://pastebin.com/ppwFF7X5

Regards frotsen


- Lister of Smeg - 2010-05-26

SlaveUnit Wrote:Ive seen different results on different machines with Aero themes vs Basic themes in Windows 7. Just a shot in the dark really but maybe try a new theme.

Wow... I hadn't heard that one before but i can happily tell you that by changing my Win7 theme from Aero to Basic, DXVA functions perfectly on my HD5450.

I have the following setup working:-
  • svn30260
  • DXVA Enabled
  • Auto Adjust Refresh rate
  • A/V Sync (drop/dup audio)
  • Fake Fullscreen Mode
  • vsync always on in CCC v10.5 but "always off" in XBMC

This is a great workaround for now but would great to see a fix for the issue. Please see my log files posted above for any clues.

Thanks for pointing this out SlaveUnit Big Grin


- steelman1991 - 2010-05-27

Lister of Smeg Wrote:Wow... I hadn't heard that one before but i can happily tell you that by changing my Win7 theme from Aero to Basic, DXVA functions perfectly on my HD5450.

I have the following setup working:-
  • svn30260
  • DXVA Enabled
  • Auto Adjust Refresh rate
  • A/V Sync (drop/dup audio)
  • Fake Fullscreen Mode
  • vsync always on in CCC v10.5 but "always off" in XBMC

This is a great workaround for now but would great to see a fix for the issue. Please see my log files posted above for any clues.

Thanks for pointing this out SlaveUnit Big Grin

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.


- CrystalP - 2010-05-27

frotsen, it seems your .mkv has different refresh rates in the container and the actual stream. That causes XBMC to switch twice. You can try remuxing and make sure the container has 23.98fps.
Another weird thing in your log is that the video clock doesn't activate in D3D mode and track the refresh rate changes. Did you edit the log before pasting?


- rickardkk - 2010-05-27

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.


- Kill-9 - 2010-05-27

getting the EXACT same anomolies...


- SlaveUnit - 2010-05-27

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.


- frotsen - 2010-05-27

CrystalP Wrote:frotsen, it seems your .mkv has different refresh rates in the container and the actual stream. That causes XBMC to switch twice. You can try remuxing and make sure the container has 23.98fps.
Another weird thing in your log is that the video clock doesn't activate in D3D mode and track the refresh rate changes. Did you edit the log before pasting?

No i did not edit the log, and this dobbel switching happends for all my movies atm. Here is the mediaInfo on the mkv file http://pastebin.com/pE54wPpS