[PMS Bug] Hardware accelerated HDR tone mapping broken again. OpenCL is broken in Plex but not in system

Here is playing the jellyfish file, with “HDR tonemapping” enabled:
plex_debug_1

Here’s a movie, again with hdr tonemapping enabled
plex_debug_2

And here’s the same movie but with HDR tonemapping disabled:
plex_debug_3

Edit- to be clearer the second one shows “hdr” and “sdr” while the jellyfish one doesn’t - unsure why, if the jellyfish one is HDR. The first two use software transcoding, while the last one uses hardware transcoding. Ideally the first two would also use hw transcoding.

I agree with you.

should be showing (HW) in it.

Can you carve me off about 60 seconds worth of that file to look at

?

I’m getting HDR->SDR too as I should

Looks like I need newer test files too :slight_smile:

I can do that! Hrm actually the limit is 30 MB. Let me see.
Here’s a dropbox with 60 second cuts from it: Dropbox - Video Debug - Simplify your life

Screenshot from 2021-12-21 01-53-54
Screenshot from 2021-12-21 01-52-17

It looks like you’re getting 4k HDR → 1080p SDR using hardware, that’s good! Are you running the latest PMS on an ubuntu 21 system, or an earlier ubuntu?

20.04

[chuck@lizum ~.2001]$ uname -a
Linux lizum 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[chuck@lizum ~.2002]$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[chuck@lizum ~.2003]$ 

CPU is an i7-8809G

Hrm. Not to push you to break your working setup but if you do upgrade to 21.04 or 21.10 I am curious if it will still work.

“upgrade” in a loose sense I suppose.

They always “play” with stuff on the ODD years (17-19-21, etc)
The EVEN years are the versions which persist past April of the following year

This is my production workstation. Can’t upgrade it.

Clarify “Loose” please

Oh mostly just noting that it is hardly an upgrade if the only difference seems to be breaking useful things but I am sure there’s other stuff going on in 21 that justifies it. I’d just like to figure out why this is happening because at the moment it ends up feeling like a step back.

Edit: Aside from that, I suppose this leaves us at a spot where it looks like the HW transcoding simply isn’t running with HDR tonemapping enabled on 21 for now, at least without rolling back to an earlier version. I’m not sure if there’s much else to do except hope that a later version of ubuntu or plex changes something, then?

I’m sorry. It’s FAR more than “hardly”.

I will setup a VM on the ESXi box and see what happens but that still requires I shut down production PMS for the duration I test it.

I know you will resist (and I don’t blame you). 21.04 is ‘funky’ for some folks and “21.10” is barely 2 months old. ?? seriously :slight_smile:

Ubuntu 21 will get boiled down and eventually be released (those pieces they want) into 22.04

I’ll ask after everyone is back .

It’s a ghost town around here now. it’s just about bedtime for me and then I’ll be VERY minimal forum browsing until I’m out the end of the week.

Makes sense, no rush! I appreciate you looking into this! Have a good night and holidays!

I have worked around this issue to some degree- I have not solved the fundamental HDR → SDR failure to use (hw) on the latest Plex/linux but I did figure out the reason the Apple TV 4K was transcoding unexpectedly - I went and bought an Nvidia shield to test and it reported transcoding due to audio compatibility - once I fixed that, it reported still transcoding due to “bandwidth limitations” - I discovered that I had previously set “100mbps” as my upload speed from my previous internet, and Plex was capping the outbound at 80% of that - meaning the peak bitrate would be at times over the 80% cap, so instead the server insisted on transcoding the entire thing. I bumped the upload bandwidth setting up to 800mbps and now it is direct playing the 4k HDR correctly, bypassing the issue for now. Hopefully either an ubuntu fix or something will repair the hw accelerated tone mapping but it is at least now not so urgent. That’s good!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.