HW Transcoding with HDR Tone mapping not working (hw works without tone mapping enabled)

I keep seeing these posts and rechecking my server to confirm hardware transcoding works with tonemapping turned on.

Intel ARC working perfectly on 1.32.8.7639 running on Ubuntu 22.04 Kernel 6.2.0-39-generic with it on?

See here: Intel ARC GPU support - #45 by NateTheBrewer

Does Plexweb not need tonemapping done with transcoded content? I think the Plex Desktop client has something built in where that’s not required, right?

These posts are primarily based on Intel QSV failing on certain processors and certain kernel versions.

We are working it out.

If you have a discrete GPU (Nvidia – HDR tone mapping -or- AMD - SDR) then that’s working.

ARC will work with the right drivers installed.

Ok, my confusion was with the previous poster who said it wasn’t working on Intel ARC.

So he may need to follow the Intel documentation here then?:

https://dgpu-docs.intel.com/driver/client/overview.html

we don’t have one of these cards in our lab so I cannot confirm.

From what I see in the instructions, it’s installing Intel Compute Runtime (ICR).

PMS brings ICR with it.

If there’s a specific device driver (which makes the card visible to the kernel) then that’s important and needed.

Another issue folks have had is “sticking in the card and rebooting” (expecting it to work).

If PMS doesn’t add itself to the correct group which owns /dev/dri then it won’t see the card. (Everytime you install PMS, it checks to make certain it has access to /dev/dri and joins that group if present)

FWIW:

Even JellyFin on GeminiLake has problems.

[AVHWDeviceContext @ 0x55b423ee0580] Failed to get number of OpenCL platforms: -1001.
Device creation failed: -19.
Failed to set value 'opencl=ocl@va' for option 'init_hw_device': No such device
Error parsing global options: No such device

This is a tough problem on Linux with a 6.x kernel

Makes sense then. I set up a fresh Ubuntu install, then installed the ARC card and set up the drivers, and then installed Plex last.

@NateTheBrewer

In that sequence, everything you previously installed would be there in /dev/dri for the package installation scripts to go find and perform usermod to connect things up as well as write the udev entries

@NateTheBrewer

Are you testing with HDR content?

Yep, in the test I linked, every file was HDR.

I will test this on my Ubuntu VM as I have the same Arc passed through to that VM as well. I know the Arcs are best supported in Ubuntu .

@NateTheBrewer Yup, works for me too in Ubuntu. I’ve definitely noticed the Arcs are best supported in Ubuntu.

@ChuckPa

Having the same issue on Ubuntu 23.10, kernel 6.5.0-14-generic, Intel J5040 CPU with quicksync.

Hardware transcoding works perfectly when tone mapping is disabled.

Plex Media Server.4.log:Jan 18, 2024 15:07:31.086 [140504853084984] ERROR - [Req#60f5/Transcode/8pqiw2jr83p1ud412itj9qxa/c3d97644-faa7-487b-b843-254c849c7a4b] [AVHWDeviceContext @ 0x7f731c57dc80] No matching devices found.
Plex Media Server.4.log:Jan 18, 2024 15:07:38.374 [140504729557816] ERROR - [Req#6104/Transcode/8pqiw2jr83p1ud412itj9qxa/c3d97644-faa7-487b-b843-254c849c7a4b] [Parsed_tonemap_opencl_3 @ 0x7f731f430440] Failed to finish command queue: -5.
Plex Media Server.4.log:Jan 18, 2024 15:07:38.880 [140504853084984] ERROR - [Req#6106/Transcode/8pqiw2jr83p1ud412itj9qxa/c3d97644-faa7-487b-b843-254c849c7a4b] Error while filtering: I/O error
Plex Media Server.4.log:Jan 18, 2024 15:07:38.880 [140504818604856] ERROR - [Req#6107/Transcode/8pqiw2jr83p1ud412itj9qxa/c3d97644-faa7-487b-b843-254c849c7a4b] Failed to inject frame into filter network: I/O error
Plex Media Server.4.log:Jan 18, 2024 15:07:38.881 [140504729557816] ERROR - [Req#6108/Transcode/8pqiw2jr83p1ud412itj9qxa/c3d97644-faa7-487b-b843-254c849c7a4b] Error while processing the decoded data for stream #0:0

Tried latest mainline plex media server as well as latest (plex pass) beta.

Happy to provide further details as needed.

@muttleythemutt

Thanks!

We are aware of that one and putting together a much-needed update for the whole transcoder subsystem.

Depending on CPU, you won’t see it. It’s such a pain right now.
My JasperLake doesn’t have the problem (N5105)

1 Like

Glad to hear that it’s on your radar, please let me know if I can help in any way with my configuration

You guys should. It was just $90 for the low profile asrock arc card to drop into an old one of my ubuntu22 machines. No pcie power cables. Would fit into all sorts of mini PCs.
Granted it didn’t work right away, JellyFin’s help docs had a guide to get drivers/guc etc configured, but once following them, it appeared as a selection choice in the transcoder section of pms. Even AV1 transcodes in hw.

@ChuckPa do you have anything to share with us on HW HDR tone mapping on gemini lake platform with kernel 6+? Still broken?

Doesn’t really help your situation but I upgraded from a J5040 to N100 and the issue doesn’t exist on the newer platform.

May I ask what mobo with N100 you got?

I bought this one as I wanted an ITX board with ATX power: PRIME N100I-D D4|Motherboards|ASUS Global

I know ASRock also have ITX and mATX boards with the N100.

I have nothing to share right now. We are digging & looking. We see where it fails but there is NO LOGICAL REASON for the openCL setup call to fail.

We must be looking right at it and just not seeing it.