HDR SDR tone mapping requirements for full hw acc support

3 posts were split to a new topic: HDR tone mapping on Synology platforms

ok, you mean your appdata folder … that will depend on the layout and pathes, most common it will not work as expected :wink:

but may give it a simple try, setup a sep plex docker container, add a lib, test it, its like 2 sep plex servers then …

and its a beta/new feature for ā€œearly adaptersā€ :wink: so may wait a while if you dont want to play with things you dont like.

1 Like

Hey, any update on the docker container?
I have it updated to the latest version, but I’m still getting the same

beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)

message in the logs when I try to transcode HDR content.

Using an Intel iGPU. HW transcoding works for SDR content :slight_smile:

edit: I even tried switching to the LSIO docker image, and the same issue persists there

Well, I did play around the same issue as yours since a few days. This Plex / Docker / Beignet implementation is not working for many recent intel CPUs, even if the title of the announcement may sound much more positive.
I have a CoffeeLake 9th gen CPU and it fails…

It leverage Beignet which is an old unsupported anymore open source Intel driver.
When you look at the driver source code you can see that development on it has stopped since 2 years, and it supports many Intel IGDs/CPUs but not all:

  • SandyBridge
  • IvyBridge
  • Haswell
  • Broadwell
  • SkyLake
  • KabyLake
  • CoffeeLake (8th gen)

The more recent intel CPUs are not working, and this is understandable because of this so old driver used. To be fare, I believe any CPU older than Broadwell will really hardly support this, but I don’t know fro sure.
The most surprising part is that all this is that Plex dev used this so old implementation, (Beignet, OpenCL 1.x, LLVM 6.x or 7.x (not sure), on ubuntu 14.4 and all this is again really old, I mean if you think about computer lifecycle and so on.
So I tried to recompile the driver to support my CPU by modifying the source code, as basically this modification is really nothing even for a non dev person. But just recreating the dev environment required including all this old building blocks is a nightmare, and the compilation fails…

Just have to wait and see in which direction Plex dev team will move, but I have to say I’m a bit surprised, but happy for the lucky ones who have these 3 to 6 years old intel CPUs !

2 Likes

Running Plex on UnRAID with i5-8400 (8th gen Coffee Lake) and different Shield clients. I have some rooms where the TV does not support EAC3 etc. hence transcoding is needed. Has been working just perfectly. Suddenly all 4K media started buffering. Thought it was Shield Experience 8.2 / 8.2.1 update but it wasn’t.

It was this PMS update which enabled tone mapping by default; the transcoding speed tanks from ~2 to 0.2-0.4 when tone mapping is enabled. In both cases HW Acceleration is reported to be fully used (by Plex/Tautulli ). But the cpu usage with the tone mapping enabled is something like 50% compared 5% without it.

Without Tone Mapping:
image

With Tone Mapping
image

Or is it actually only direct streaming the video and transcoding only the sound without tone mapping? Can’t tell since this is the only information available in the UI. In any case I would expect this change to break a lot perfectly working setups where audio is the transcoding reason.

To be clear, I do not want/need 4K HDR proper tone mapping transcoding. I only use transcoding on secondary viewing points where I do not have AVRs with full audio capability. For me disabling tone mapping fully solves the issue. In my mind it should be quickly (pms patch) disabled by default so that the larger crowd does not get hurt by this.

PS. The speed factors reported seem way off or I just don’t understand what they mean. With a speed factor 1.7, the cpu utilisation for Plex is 5% and with a speed factor 0.2 it is 50%. The numbers kinda match but simply don’t make sense. Also it does not make sense for Plex to not transcode fast enough when only 50% is in use.

1 Like

10th Gen i3 (10100) Unraid UNRAID OS VERSION 6.9.0-BETA35 Same Issue with Tone Mapping. I have about 90% CPU Usage with Tone Mapping turned on (4k Material with 60 Mbps+), without about 10%.

I think Hardware-Transcoding is turned off if Tone Mapping is enabled. Tested with Brave Browser.
On Nvidia Shield 2019 Pro with Denon AVR no Problems, but there is all Direct-Played.

Hello,

It seems I found a great temporary solution for Plex/Unraid, if you want to give it a try:

2 Likes

thanks alot, upgraded today from i7 8700 (working) to i9 9900 (not working).

after apply this fix all back with hw transcoding.

Can this be an official solution from the Plex team?

1 Like

Well, still not…
I’m just one more Plex Supporter, trying to help…
:grin:

I hope Plex will come with a fully finished solution, not requiring any crazy compilation, but who knows ???

new docker update … sadly seems to broke all now :wink:

when i start a HEVC HDR or H264 live stream …

Starting Plex Media Server.
[services.d] done.
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
…

so i removed the docker and reinstalled it to get the old script files out from compiling …
then plex worked again, but HDR transcode is sw only again as before …

apply the fix here again and

all working as it should with hw transcoding again …

@plex … sadly another bad update

unraid running i9 9900 here with intel igpu

1 Like

latest update to 1.21.1.3766 still the same

2 Likes

update to 1.21.1.3795 still the same

2 Likes

update 1.21.1.3830 stll the same

2 Likes

update 1.21.1.3842 and its still the same … come on @plex team, you can do it :wink:

1 Like

Lol. I have HDR tone mapping disabled because of this issue. I don’t want to have to rebuild a driver to fix this.

1 Like

luckily its a 2 minute job … but still a … :wink:

Hmm, this is actually now working for me on 1.21.1.3842 with LinuxServer’s container without having to re-compile Beignet Driver

probably due lsio does a good job in their container :wink: as always :wink: and remember, to really test you need to remove, readd the container due a simple plex update (restart docker) will always stay working until a real docker update comes, the system is then untouched.

update 1.21.1.3876 and still … same procedure as usual …

from the plex logs there comes still

beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)