Kodi Community Forum
DXVA problems in XBMC 13 Gotham with Radeon HD3xxx HD2xxx - 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: DXVA problems in XBMC 13 Gotham with Radeon HD3xxx HD2xxx (/showthread.php?tid=190254)

Pages: 1 2 3 4 5 6 7 8


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - afedchin - 2014-04-17

(2014-04-16, 23:45)kit500 Wrote: Link: http://www.dvdloc8.com/clip.php?movieid=8419&clipid=2
MediaInfo: http://xbmclogs.com/show.php?id=175750
Debug log: http://xbmclogs.com/show.php?id=175751

Thanks. Please, can you provide debug log from Frodo 12.3 with same movie? Just for compare.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - kit500 - 2014-04-17

http://xbmclogs.com/show.php?id=176461


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - afedchin - 2014-04-17

(2014-04-17, 09:47)kit500 Wrote: http://xbmclogs.com/show.php?id=176461
Thanks. Can you try this build https://drive.google.com/file/d/0B42OdYa12czTRjRfNUlRdlhORmc/edit with same movie. Also needs debug log.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - kit500 - 2014-04-17

still no luck
http://xbmclogs.com/show.php?id=176587
(also creates xbmc_crashlog.dmp)


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - afedchin - 2014-04-17

I have only one idea. Problem is what dxva decoder initiated twice and for radeon HD it's fatal behavior. Why? I don't know. Need summon @FernetMenta or/and @elupus to this thread.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - nille02 - 2014-04-19

Beta 4 still broken.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - cg110 - 2014-04-21

Doing some debugging of this, it looks like the issue is somewhere in ffmpeg, and the DVXA implementation of getformat. IE this code:
https://github.com/xbmc/xbmc/blob/master/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp#L98

It appears that GetFormat is called twice from ffmpeg. I'm not sure where or why, as the windows build of ffmpeg doesn't have symbols in a useful form for visual studio.

I suspect something like this:
https://github.com/cg110/xbmc/commit/315032321ab805d3692fff04811077c49271f382

might workaround the issue, as it'll close the current dxva decoder before asking for another one. However, I've no idea how to make a release build for others to try, as I tend to do debug builds.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - afedchin - 2014-04-21

I will build windows version with your workaround. It take a while.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - nille02 - 2014-04-21

Sounds plausible since the HD3XXX and below cards can only decode one stream at the same time.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - afedchin - 2014-04-21

nille02, please try this build https://drive.google.com/file/d/0B42OdYa12czTVWJZOWNwRVFJS3M/edit

If it also doesn't work correctly, please provide a debug log.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - nille02 - 2014-04-21

Thank you very much, it works.

https://www.dropbox.com/s/vhdnmqbiefghpe7/Screenshot%202014-04-21%2012.31.14.png

https://www.dropbox.com/s/ftudqzwks1rndl7/Screenshot%202014-04-21%2012.34.50.png


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - afedchin - 2014-04-21

Awesome! I'll create a PR at github.com.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - cg110 - 2014-04-21

Note that there's also a follow up change I found by making opendecoder randomly fail:
https://github.com/cg110/xbmc/commit/2f7984da53e09cba3fd1106b144bc8300f11da9b

It's the likely cause of the access violations in the debug logs.

If opendecoder works once, then avctx has the hw hooks set, if subsequent calls fail the hooks are left in place, but the hardware context is null, and so it causes access violations.


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - nille02 - 2014-04-22

@cg110 @afedchin i want to thank you both for your patches and everyone else who helped. I have now Build my own Beta 4 with the Patch from cg110's https://github.com/cg110/xbmc/commit/6829556b35762b5df366d0ce5fd7b4065fa85843 . This runs very well on my HD3200, HD4200, Mobility HD 3650, HD 3850,HD5770, HD7850, Intel HD 2500 and Nvidia GTX760 (i don't have more Cards to test, only a ATI xpress 200m, and a S3 Savage DDR but both don't have a video decoder and the last one has is not xbmc capable because of opengl 1.4).

This is my Build with the Gotham Final Source and cg110's Patch

XBMCSetup-20140504-0d1d803-Gotham.exe


RE: DXVA problems in Gotham Beta 1/2/3 with Radeon HD3400? - afedchin - 2014-04-22

@nille02, can you try this build of xbmc.exe https://drive.google.com/file/d/0B42OdYa12czTZlFvcjdzWWM5a3c/edit with an other small workaround for your issue. just replace XBMC.exe from beta4 to this new one.