RasPlex / OpenPHT

OpenPHT is a community driven fork of Plex Home Theater
Other
599 stars 109 forks source link

Issue: Skipping backwards or forwards causes green pixelated mess using Intel HD 4000 adapter #229

Closed RedVisor closed 7 years ago

RedVisor commented 7 years ago

When using the skip feature to skip forward or backward (e.g. skip backwards 30 seconds), the image will become a green pixelated mess. It will clear itself up after a few seconds, presumably whenever it reaches the next keyframe. This only happens when DXVA2 hardware decoding is enabled. I'm utilizing Intel HD 4000 integrated graphics (running on a Core i5 3570K). This issue does not happen in Kodi with DXVA2 enabled. Videos are set to Direct Play and no transcoding is taking place.

I can provide a debug log if required; at this point I'm just wondering if this is a known issue with the current rendering engine. Speaking of which, I'm aware that OpenPHT is still supposed to be using the DirectX 9-based rendering engine from Kodi 15.2 for DXVA2 acceleration. However, I've been using Kodi 15.2 and I've experienced no issues with DXVA2 enabled.

OpenPHT: 1.8.0, Occurs under both Default and Black skins, Windows 10 Pro PMS: 1.5.3.3580, Windows 10 Pro (same server as OpenPHT)

dan-the-man-nz commented 7 years ago

I see the green pixels on my various Intel machines using Windows 10 seeking with some types of content, its not just you

RedVisor commented 7 years ago

Hi Dan, thanks for confirming that I'm not the only one. :P

So the question is, if OpenPHT's DXVA2 renderer is supposed to be exactly the same as Kodi 15.2's, then why would there be a discrepancy?

P.S. Here is the link to the post where the author (as Kwiboo) confirmed the info about the renderer: https://forums.plex.tv/discussion/243780/windows-openpht-dxva2-crushed-blacks

dan-the-man-nz commented 7 years ago

openpht has updated ffmpeg compared to whats in the kodi 15.2 so its not exactly the same configuration.

im pretty sure the green pixels came when ffmpeg was updated, however, it was pixelated before anyway on some media they were just not green when seeking

for me it happens on not many types of media, and it fixes really quick, im personally not to worried about it

RedVisor commented 7 years ago

Ah, good point. Yes, it only happens on certain videos for me as well. Certain files appear to have been encoded with sparsely populated keyframes (e.g. one every 10 seconds), so it's a minor annoyance but I can live with it.

RedVisor commented 7 years ago

After further study, I've noticed that playing videos using DXVA2 doesn't really save much on CPU processing power. With it on, it appears to use on average 20-30%, whereas with it off it utilizes around 30-40%. It could just be a limitation with the Intel HD 4000 adapter; but at this point I could live without DXVA2 anyway.

dan-the-man-nz commented 7 years ago

Did you test that on H264 or H265 content? could be a difference there...

RedVisor commented 7 years ago

I tested it with H264 material. I don't have much for H265 content yet, but I'm aware that the HD 4000 isn't capable of decoding H265 material in hardware.