Amazing @ChuckPa! Thanks so much for taking the time to troubleshoot with us.
Issues like this are annoying to have while being super frustrating to pin down and troubleshoot. My little home server is also my testing device for many things, I assumed this oddity it was my own doing (an assumption that is often correct).
If there are any other things I can help with or test just let me know.
Just adding that Iām having the same issues as above with a 13900K in Unraid with Intel GPU TOP plugin installed to allow access to iGPU. Using Linuxserverās plex docker. HW transcoding works fine on 1080p content, or 4K with HDR tone mapping disabled, but wonāt work with HDR tone mapping enabled. So doesnāt appear to be isolated to the processors noted above.
Mar 03, 2023 21:24:37.872 ERROR [Req#bbe/Transcode/F6D4B821-CB29-4103-8042-1D766810739E/cb1c0366-c29c-4c5f-913b-f463ffda6d4a] Error reinitializing filters!
Mar 03, 2023 21:24:37.872 ERROR [Req#bbf/Transcode/F6D4B821-CB29-4103-8042-1D766810739E/cb1c0366-c29c-4c5f-913b-f463ffda6d4a] Failed to inject frame into filter network: No such device
Mar 03, 2023 21:24:37.872 ERROR [Req#bc0/Transcode/F6D4B821-CB29-4103-8042-1D766810739E/cb1c0366-c29c-4c5f-913b-f463ffda6d4a] Error while processing the decoded data for stream #0:0
Mar 03, 2023 21:24:37.865 ERROR [Req#bbb/Transcode/F6D4B821-CB29-4103-8042-1D766810739E/cb1c0366-c29c-4c5f-913b-f463ffda6d4a] [AVHWDeviceContext @ 0x14f47b122dc0] Failed to get number of OpenCL platforms: -1001.
Mar 03, 2023 21:24:37.865 ERROR [Req#bbc/Transcode/F6D4B821-CB29-4103-8042-1D766810739E/cb1c0366-c29c-4c5f-913b-f463ffda6d4a] [Parsed_hwmap_2 @ 0x14f486dfcfc0] Failed to created derived device context: -19.
Mar 03, 2023 21:24:37.865 ERROR [Req#bbd/Transcode/F6D4B821-CB29-4103-8042-1D766810739E/cb1c0366-c29c-4c5f-913b-f463ffda6d4a] [Parsed_hwmap_2 @ 0x14f486dfcfc0] Failed to configure output pad on Parsed_hwmap_2
Mar 03, 2023 21:24:37.864 ERROR [Req#bb2/Transcode/F6D4B821-CB29-4103-8042-1D766810739E/cb1c0366-c29c-4c5f-913b-f463ffda6d4a] [AVHWDeviceContext @ 0x14f47b122dc0] Failed to get number of OpenCL platforms: -1001.
Mar 03, 2023 21:24:37.328 INFO [Req#b8d/Transcode/F6D4B821-CB29-4103-8042-1D766810739E] Preparing driver icr for GPU CoffeeLake-S GT2 [UHD Graphics P630]
Running an UnRaid system, docker image from linuxserver/plex:latest, which is Plex 1.31.2.6739.
HW transcoding works on everything except 4K HDR tone mapping. Reverting to version 1.29.0.6244 corrects it for me. Currently running the latest anyway, and telling my friends to get better hardware if they canāt direct play/streamā¦
Edit: Forgot to mention, this is a Xeon E-2146G (8th Gen).
As an update to my post above, switching to the docker container to hotio from linuxserver on my unraid machine with a 13900k allowed for HW transcoding to work in all instances (including hdr tone mapping from 4K to 1080p). This is on server version 1.31.1.6733.
For anyone on unraid, just note that the library folder structure is a little different between the two containers, so youād need to manually move your metadata folders, etc. if switching.
Not sure the difference between linuxserver/official container and hotio, but happy it worked on my end. Hope that helps someone.
@knaack84 interesting, thanks for updating us. I will give 1.31.1.6733 a shot when I can today and report back. *update at bottom
I did have some odd HW detection issues with linuxserver in the past, and as such have mostly used hotio images (I use a few others too). To keep troubleshooting simple here and rule out oddities I used the official Plex images here.
*Tried the official and hotio images, both still exhibit the same issue for me. Iām glad your issue seems to be resolved @knaack84
I tried updating to the latest beta version ( 1.31.3.6792) and unfortunately hw tone mapping has not been fixed (Unraid 6.11.5, intel j4105, kernel 5.19.17).
See the warning logs
Mar 14, 2023 20:07:40.671 [0x148c20967b38] VarovĆ”nĆ ā [Req#96e/Transcode] [FFMPEG] - No quality level set; using default (20).
Mar 14, 2023 20:07:41.597 [0x148c20bfcb38] Chyba ā [Req#f44/Transcode/2cuwfjvi78m59bhd0q9kb6fy/0d3b9b3d-b2db-4785-a83b-47c0cfad1d21] [AVHWDeviceContext @ 0x1504369c2300] No matching devices found.
Mar 14, 2023 20:07:49.123 [0x148c24db1b38] Chyba ā [Req#f7e/Transcode/2cuwfjvi78m59bhd0q9kb6fy/0d3b9b3d-b2db-4785-a83b-47c0cfad1d21] [Parsed_tonemap_opencl_3 @ 0x1504369c16c0] Failed to finish command queue: -5.
Mar 14, 2023 20:07:49.628 [0x148c2663db38] Chyba ā [Req#fa1/Transcode/2cuwfjvi78m59bhd0q9kb6fy/0d3b9b3d-b2db-4785-a83b-47c0cfad1d21] Error while filtering: I/O error
Mar 14, 2023 20:07:49.629 [0x148c24db1b38] Chyba ā [Req#fa3/Transcode/2cuwfjvi78m59bhd0q9kb6fy/0d3b9b3d-b2db-4785-a83b-47c0cfad1d21] Failed to inject frame into filter network: I/O error
Mar 14, 2023 20:07:49.629 [0x148c21923b38] Chyba ā [Req#fa7/Transcode/2cuwfjvi78m59bhd0q9kb6fy/0d3b9b3d-b2db-4785-a83b-47c0cfad1d21] Error while processing the decoded data for stream #0:0
Mar 14, 2023 20:08:01.585 [0x148c21278b38] Chyba ā [Req#e16/Transcode] Unable to create output stream for transcode session, no segments found
@ChuckPa Heās running a J4105 which is essentially the same as the J5005 mentioned in this thread. You had mentioned before that an engineer had found where it was having problems and he suggested possible fixes. Any update on that?
Thatās why Iām confused. Everything identified is in PMS now
While this is a big ask on your (collectively) part, about all we can do is set a breakpoint in the debugger and trap PMS/FFMPEG when it gets to the point of deciding the hardware isnāt there.
Iām trying to figure out the debugger now because once in a container, it canāt discern the architecture (I need learn how to use it better).
If anyone is up to the challenge, Iāve got the instructions of what we need.
Iāve just given up on it for tonight (Was working on this earlier for a pair of RTX/8000ās in a container)
@ChuckPa Get some rest! When youāre up to it Iām sure thereās a few of us that will put the work in to get you what you need. Thanks for the help.
@ChuckPa, I get the same thing (below). But I donāt believe itās actually running out of resources.
Mar 18, 2023 14:11:51.665 [0x7f4f13363b38] ERROR - [Req#bc/Transcode/57d07995-f6ba-47c8-adaf-c756adcb5539-252/54d638f8-b00d-4637-8ea5-d2bde21982ea] [Parsed_tonemap_opencl_3 @ 0x7f6c8446bc40] Failed to finish command queue: -5.
Mar 18, 2023 14:11:52.171 [0x7f4f10e85b38] ERROR - [Req#e2/Transcode/57d07995-f6ba-47c8-adaf-c756adcb5539-252/54d638f8-b00d-4637-8ea5-d2bde21982ea] Error while filtering: I/O error
Mar 18, 2023 14:11:52.171 [0x7f4f1291cb38] ERROR - [Req#e3/Transcode/57d07995-f6ba-47c8-adaf-c756adcb5539-252/54d638f8-b00d-4637-8ea5-d2bde21982ea] Failed to inject frame into filter network: I/O error
Mar 18, 2023 14:11:52.172 [0x7f4f13363b38] ERROR - [Req#e4/Transcode/57d07995-f6ba-47c8-adaf-c756adcb5539-252/54d638f8-b00d-4637-8ea5-d2bde21982ea] Error while processing the decoded data for stream #0:0
Only a single transcode happening (the one being attempted). I tried it with 4GB RAM reserved, and again with no reserve nor limit set (8GB in system), both with the same results. It does not run out doing HW tonemapping when using Plex server 1.29.0.6244 on the exact same hardware, using the same Docker settings, on the same video and playback device.
IIRC ā So hereās the challenge ⦠video memory or OpenCL internal memory.
ToneMapping is a program which runs as an OpenCL program in the GPU of the CPU .
The engineer has to look into this more and find out why only these chips are failing.
It could also be something as simple (and stupid) as an Intel Media Driver bug (itās not like Intel hasnāt done that to us before ⦠lol)