v18 DXVA/passthrough not working properly (with Kodi Boblight)
#1
Hi, I am testing the b2 of Kodi 18, and dxva doesn't seem to work properly (b1 was the same), v17 works normally.
My setup is a windows 10 box connected to a Denon AVR and then to  the TV, al through hdmi cables.
The cpu is Amd x4 845k, gpu is a nvidia geforce 1030, latest driver.
It's all set to 1920x1080p.

Basically, the only working mode is dxva2 disabled and render mode software. If I enable any of the two:
1. when the AVR is off (passthrough), I see the video but I get not audio
2. when the AVR is on, I hear audio, but I see no video
Unfortunately this means I can't reproduce hevc, because my cpu is not that powerful.

This happens only on hw accelerated videos (h264, hevc) with DTS tracks, where dxva is being used.
Any idea on how to figure out what's up?

here is a log: https://pastebin.ubuntu.com/p/Qnbd6tZCbm/
Reply
#2
Looking at your log, I can tell there is some residue in your setup from (previously) installed banned addons (wiki). Add-ons that are known to affect Kodi functionality and stability.

It's best to start with a new/clean profile and get the basics working. As long as banned add-on references are in your log file, forum support will be halted.
Reply
#3
You mean the one about tunes? it's not installed, it's just a textual entry in advanced settings, I copied over that file from the kodi 17 profile, it would appear even in a new profile if I'd copy over that file. This profile is new (portable) apart from that. The problem happens even without any advancedsettings file, obviously.
Reply
#4
I'd agree with Klojum, you have a lot going on in that log. Without getting into the minutia of your set-up I would suggest a a portable install https://kodi.wiki/view/Windows_FAQ#Portable without an addvancedsettings.xml and let's see what the log looks like.

1)1. when the AVR is off (passthrough), I see the video but I get not audio; this may be just a configuration issue use directsound on your PC Audio quickstart guide (wiki) and Audio troubleshooting (wiki)

2) when the AVR is on, I hear audio, but I see no video; Limiations appear to be in the AVR or the video gfx engine. https://www.forbes.com/sites/jasonevange...ac3ef693d9

->Unfortunately this means I can't reproduce hevc, because my cpu is not that powerful. Alas, I'm in the same boat (well not quite), but you can configure Kodi to handle h265 with an external player, and it will work great. External players (wiki) Alternately, consider and upgrade in hardware or a stanalonebox like the Nvidia Shield.
Reply
#5
Thanks, I will put up a log from a clean portable when I get the time.
I just want to note everything works properly with Kodi17, and the 1030 is a 1 year old card, it was basically my hardware upgrade.
In the meanwhile, my audio settings look correct based on the wiki. The audio problem only happens with DTS, I hear a noise burst and nothing more.

I also found that some videos are visible, others are not, and it's strange because they apparently have the same characteristics, packed with same tools, I passed them through mediainfo and winmerge, the *only* differences on the video track are:
Code:

info        | working   | broken
tot bitrate | 13,5 Mb/s | 12,5 Mb/s
length      | 1:44      | 1:57
bitrate     | 9845      | 8839
height      | 804       |800
px x frame  |0.266      |0.240

PS: oh there is another interesting difference, not working files have a forced subtitles track, not sure if it matters.
Reply
#6
(2018-09-13, 21:55)Maboz Wrote: not working files have a forced subtitles track
I'd be highly surprised if that were to make a difference. You could try to create a subtitle-less copy of that video file and compare the two vids.
Reply
#7
I have the same Problem with a Ryzen 3 2200G Setup. If DXVA2 acceleration is enabled i get a green screen + kodi crash after some seconds.
if i disable the acceleration and force the renderer to software it works flawless.
I'll add a Debug Log Later this day.
Debug Log: http://la-ro.de/external/kodi.log
(Video/ffmpeg Debug log on)

1st Try: Renderer Autodetect, DXVA2 Accelaration on (Green Screen)
2nd Try: Renderer Software, DXVA2 Acceleration on (Green Screen)
3rd Try: Renderer Software, DXVA2 Acceleration off (Normal Playback)
Mediainfo:
Image
Reply
#8
Push, updated Debug Log to last Post.
Reply
#9
Any Suggestions in that case? :/
Reply
#10
Try opening a ticket at https://trac.kodi.tv with full info/logs/etc.
Reply
#11
@skybird1980

Looking over the log... desktop Resolution: 3840x2160 32Bit at 60Hz you're asking a lot of this gfx engine. https://www.techpowerup.com/gpudb/3042/radeon-vega-8 note: my ten year old Radeon 5770 is 97% of the MD Radeon™ Vega 8 Graphics adapter.  From the link of this page Recommended Resolutions: 640x480, 1280x720, 1366x768, 1600x900 with 1080p and above marked in red. I would suggest you set for desktop 1920x1080 and let the TV upscale.
Reply
#12
Interestingly enough, both of my issues (no audio when avr is off and no video when avr is on) are caused by Kodi Boblight Sad
Reply
#13
(2018-09-19, 23:40)PatK Wrote: Looking over the log... desktop Resolution: 3840x2160 32Bit at 60Hz you're asking a lot of this gfx engine. https://www.techpowerup.com/gpudb/3042/radeon-vega-8 note: my ten year old Radeon 5770 is 97% of the MD Radeon™ Vega 8 Graphics adapter.  From the link of this page Recommended Resolutions: 640x480, 1280x720, 1366x768, 1600x900 with 1080p and above marked in red. I would suggest you set for desktop 1920x1080 and let the TV upscale.
Hello PatK,
thanks for answering.
I allready tryed with another resolution. Smile
And however i also can play native 4K Videos. The problem only exists if i enable the hardware dxva2 acceleration. on software mode all is smooth.
i would stay at this but that means i have cpu load of arround 30 percent on other videos (h265...) and this is just dumb.
allready reported problems with playing videos here:
https://trac.kodi.tv/ticket/17822
but the ticket sleeps.
Reply
#14
@skybird1980

Letting the CPU handle this is a good work-round. I would suggest you investigate 'external players' for the h265 hvec videos. External players (wiki), I've been there a few years now, the 720p hvec is good, but I'm at threshold with 1080p hvec and use a playercorefactory.xml  Alternatively remuxing in h264 or using a different o/s like Linux or LibreElec will give a quite a performance jump.  Strange that a 10 year old video card is 97% of a 2018 video engine.
Reply
#15
Anyway, there's something wrong with the renderCapture API, it just breaks either audio or video Sad Boblight is not doing much more than invoking that API in a loop.
Reply

Logout Mark Read Team Forum Stats Members Help
DXVA/passthrough not working properly (with Kodi Boblight)0