PMS HDR Tone Mapping errors

Server Version#: 1.32.0.6973
Player Version#: 4.105.2

Hardware:
11th Gen Intel(R) Core™ i7-1165G7
Intel Iris Xe

Software:
Ubuntu 22.04 server
Kernel 5.15.107
intel-opencl-icd 22.14.22890-1
LXC container in promox

Issue:
Hardware transcode failure when HDR is enabled. Test File is HEVC-10 bit. which should work according to the chart:

I have reviewed multiple posts about this issue, but none seem to get answered or are in regards to Nvidia GPU’s that do not support the feature.

I have Deleted the “Codec” folder to see if its a codec issue, but that has not changed it.

there are no “TPU” entry’s in the PMS logs.

I think the most likely answer is i am missing a package to enable HDR Tone Mapping, but im unable to find what it is.

Any recommendations will be greatly appreciated, Thank you.

Errors:

Apr 29, 2023 23:57:51.866 [0x7f7e2f809b38] INFO - Request: [192.168.0.229:56068 (Allowed Network (Subnet))] OPTIONS /:/prefs?TranscoderToneMapping=1 (16 live) #7b27 TLS GZIP Signed-in Token ()
Apr 29, 2023 23:57:51.866 [0x7f7e301d7b38] INFO - Completed: [192.168.0.229:56068] 200 OPTIONS /:/prefs?TranscoderToneMapping=1 (16 live) #7b27 TLS GZIP 0ms 376 bytes (pipelined: 102)
Apr 29, 2023 23:57:51.868 [0x7f7e29cc8b38] INFO - Request: [192.168.0.229:56068 (Allowed Network (Subnet))] PUT /:/prefs?TranscoderToneMapping=1 (16 live) #7b36 TLS GZIP Signed-in Token (jadechessink) (Firefox)
Apr 29, 2023 23:57:51.869 [0x7f7e303dab38] INFO - Completed: [192.168.0.229:56068] 200 PUT /:/prefs?TranscoderToneMapping=1 (16 live) #7b36 TLS GZIP 0ms 320 bytes (pipelined: 103)
Apr 29, 2023 23:57:58.532 [0x7f7e26152b38] WARN - MDE: unable to find a working transcode profile for video stream
Apr 29, 2023 23:57:58.532 [0x7f7e26152b38] WARN - MDE: unable to find a working transcode profile for video stream
Apr 29, 2023 23:58:04.441 [0x7f7e2f809b38] INFO - [Req#7c4e/Transcode] Preparing driver icr for GPU TigerLake-LP GT2 [Iris Xe Graphics]
Apr 29, 2023 23:58:04.696 [0x7f7e2f809b38] ERROR - [Req#7cc2/Transcode/1wlnyik9d2rq9f8iffjgna2t/5614f1bb-57ed-42ca-9716-f7a8453864ae] [AVHWDeviceContext @ 0x7fedd9633580] Failed to get number of OpenCL platforms: -1001.
Apr 29, 2023 23:58:04.696 [0x7f7e29cc8b38] ERROR - [Req#7cd9/Transcode/1wlnyik9d2rq9f8iffjgna2t/5614f1bb-57ed-42ca-9716-f7a8453864ae] [AVHWDeviceContext @ 0x7fedd9633580] Failed to get number of OpenCL platforms: -1001.
Apr 29, 2023 23:58:04.696 [0x7f7e2cbd5b38] ERROR - [Req#7cdd/Transcode/1wlnyik9d2rq9f8iffjgna2t/5614f1bb-57ed-42ca-9716-f7a8453864ae] [Parsed_hwmap_2 @ 0x7fedd96cc7c0] Failed to created derived device context: -19.
Apr 29, 2023 23:58:04.699 [0x7f7e2d564b38] ERROR - [Req#7ce0/Transcode/1wlnyik9d2rq9f8iffjgna2t/5614f1bb-57ed-42ca-9716-f7a8453864ae] [Parsed_hwmap_2 @ 0x7fedd96cc7c0] Failed to configure output pad on Parsed_hwmap_2
Apr 29, 2023 23:58:04.701 [0x7f7e28fadb38] ERROR - [Req#7ce2/Transcode/1wlnyik9d2rq9f8iffjgna2t/5614f1bb-57ed-42ca-9716-f7a8453864ae] Error reinitializing filters!
Apr 29, 2023 23:58:04.701 [0x7f7e2c7cfb38] ERROR - [Req#7ce5/Transcode/1wlnyik9d2rq9f8iffjgna2t/5614f1bb-57ed-42ca-9716-f7a8453864ae] Failed to inject frame into filter network: No such device
Apr 29, 2023 23:58:04.702 [0x7f7e2f809b38] ERROR - [Req#7ce8/Transcode/1wlnyik9d2rq9f8iffjgna2t/5614f1bb-57ed-42ca-9716-f7a8453864ae] Error while processing the decoded data for stream #0:0

@jadechessink

Give this a shot. It’s the updated Intel Media Driver.

We’re getting ready to release it with PMS (finishing our testing)

It has all Intel’s additions for the newest CPUs.

If this doesn’t work, Please share the full logs ZIP and I’ll give them to the Engineer.

Hello ChuckPa,

Its been many years since we last spoke, thank you for chiming in and providing a solution. i appreciate your assistance on the weekend.

After updating plex to the provided .deb HDR tone mapping worked without issue on every movie i tested, thank you very much.

i did receive this error when playing various HDR content, but it did not prevent function, please let me know if this should be ignored or if you would like me to test further for you.

[Req#1b6f/Transcode/iintbsa3h76xinft0midgf9j/8fea935e-07ee-4522-9ba1-4648d3185106] [AVHWDeviceContext @ 0x7ff351393a80] No matching devices found.

@jadechessink

What’s the CPU, distro, and is it in a VM?

CPU: 11th Gen Intel(R) Core™ i7-1165G7
Distro: 22.04 server

this is an LXC container running in proxmox

I setup ProxMox to try and help.

You’re going to have to disable all the default drivers for video / vga

There are a few tutorials out there. someone was kind enough to share a good one with me but I don’t know where that link is.

To make it easier for me to help, please restart plex with DEBUG logs enabled.

After about 2 minutes , grab the logs ZIP file.

This will let me see what PCIe devices PMS detected.

For you to continue, also remember to pass all of /dev/dri into the VM.

I have enabled Debug and pulled logs.

I’m not sure what specifically you want me to disable, if you can elaborate on what driver to disable i would appreciate it.

PCI devices are passed correctly, if they were not then hardware transcoding should not work.

if you are replicating the proxmox enviroment, you will need to edit the kernel in proxmox to allow PCIe passthrough to work correctly, here is a guide that will show how to do it:

The Following script was used to deploy the LXC container, this was used to make sure my environment is easily replicated: https://raw.githubusercontent.com/tteck/Proxmox/main/ct/plex.sh

Plex Media Server Logs_2023-04-30_16-33-42.zip (1.0 MB)

@jadechessink

Thanks for the logs.

It did what I expected.

Apr 30, 2023 16:31:23.056 [140633773689656] DEBUG - [GPU] Got device: TigerLake-LP GT2 [Iris Xe Graphics], intel@builtin, default true, best true, ID /dev/dri/renderD128, DevID [8086:9a49:f111:0001], flags 0x1d77
Apr 30, 2023 16:31:23.056 [140633773689656] INFO - Preemptively preparing driver imd for GPU TigerLake-LP GT2 [Iris Xe Graphics]
Apr 30, 2023 16:31:23.059 [140633773689656] DEBUG - [DriverDL/imd] Skipping download; already exists
Apr 30, 2023 16:31:23.060 [140633773689656] INFO - Preemptively preparing driver icr for GPU TigerLake-LP GT2 [Iris Xe Graphics]
Apr 30, 2023 16:31:23.060 [140633773689656] DEBUG - [DriverDL/icr] Skipping download; already exists

Look in the Drivers directory. You should see. icr-96-linux-x86_64 and imd-73-linux-x86_64

If you see any older icr drivers –
– STOP Plex,
– Remove the ICR, and IMD
– Restart Plex,
– retest

drwxr-xr-x  5 chuck chuck   86 Apr 25 12:44 ./
drwxr-xr-x 15 chuck chuck 4096 Apr 28 02:27 ../
drwxr-xr-x  2 chuck chuck 4096 Apr 25 12:44 icr-96-linux-x86_64/
drwxr-xr-x  3 chuck chuck   17 Apr 25 12:44 imd-73-linux-x86_64/

Thanks Chuck,

  1. stopped plex
  2. cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Drivers/
  3. rm -rf icr-96-linux-x86_64
  4. rm -rf imd-73-linux-x86_64
  5. reboot
  6. play 4k video with HDR
  7. same error, but hardware transcoding still continues to work just fine.
[Req#d42/Transcode/v670sjmuemmtcbcfoo09hpyd/9e1d2fd4-7f5a-4599-82ab-003366ac860a] [AVHWDeviceContext @ 0x7f378b4a6140] No matching devices found.

PMS installer logs:

# Plex Media Server installation configuration info:  Sun Apr 30 11:50:06 CDT 2023
Init=0
Systemd=1
Custom=0
LinuxContainer=1
NewInstall=0
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="syslog"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/dev/shm"
LangEncoding="en_US.UTF-8"
ExistingVersion=13200
DistroName="ubuntu"
DistroVersion="2204"
HaveHardware=1
HaveTranscoderPref=1
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=1
Errors=0
Warnings=1
Havei915=1
HaveNvidia=0
Platform="Laptop"
Processor="11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz"
Distro="Ubuntu 22.04.2 LTS"
Kernel="Linux plex 5.15.107-1-pve #1 SMP PVE 5.15.107-1 (2023-04-20T10:05Z) x86_64 x86_64 x86_64 GNU/Linux"
Memory="24576 892 1475"

Debug logs again:
Plex Media Server Logs_2023-04-30_17-10-05.zip (635.2 KB)

How about tone mapping ?

Your logs do show successful transcode.
Tone mapping as well ? All should be good. I’m not seeing errors as it invokes it.

FireFox is giving you some grief it seems ?
How about other players ?

Android ? iOS ?

I have yet to see any issues with playback on any device, while the error is present it does not seem to create any sort of issue.

Firefox plays back well, same from my phone, and TV.

thanks.

your CPU should be long-since stable with these drivers as “Intel Improved” :rofl:

I wouldn’t worry about spurious console messages. If you get OCD about them, you’ll never use Dolby audio again (noisy driver) :rofl:

1 Like

Ah, so its a Dolby error.

Understood Chuck, Thank you as always, have a wonderful day and enjoy the rest of your Sunday.

1 Like

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