Server Version#: 1.25.4.5468
I have Plex Media Server set up on Ubuntu 20.04, using 11th Gen Intel Xeon/Rocket Lake.
Hardware encoding works fine except when you enable HDR tone mapping.
This causes transcoding to go straight to the CPU.
After reading the discussion here:
opened 01:47AM - 22 Dec 21 UTC
closed 06:27PM - 26 Dec 21 UTC
[linuxserverurl]: https://linuxserver.io
[][linuxserverurl]
------------------------------
## Expected Behavior
Plex should use hardware transcoding
## Current Behavior
Plex uses software transcoding
## Steps to Reproduce
1. Hardware is Intel Core i9 9900K
2. Enable hardware transcoding using the /dev/dri parameter
3. Enable tone mapping in Plex
4. Play a 4K HDR and transcode it down to 1080p
## Environment
**OS:** Unraid V6.9/6.10
**CPU architecture:** x86_64
**How docker service was installed:**
From the Unraid App Store
## Command used to create docker container (run/create/compose/screenshot)
Not sure how to see this in Unraid. Using the default container setup
## Docker logs
Not sure how to get this using Unraid
There is a script I found on the support forums months ago which adds the missing driver to the container so I run it every morning after Unraid checks for docker updates so it'll fix Plex automatically. This has been broken for months. Can the correct driver be added to the container as part of the build?
Script:
```
#!/bin/bash
#description=This script updates Beignet Driver to support last Intel GPUs for Plex Container
docker exec plex bash -c "apt update && apt -y install cmake pkg-config python ocl-icd-dev libegl1-mesa-dev ocl-icd-opencl-dev libdrm-dev libxfixes-dev libxext-dev llvm-7-dev clang-7 libclang-7-dev libtinfo-dev libedit-dev zlib1g-dev build-essential git clinfo"
docker exec plex git clone --branch comet-lake https://github.com/rcombs/beignet.git
docker exec plex bash -c "mkdir /beignet/build/ && cd /beignet/build && cmake -DLLVM_INSTALL_DIR=/usr/lib/llvm-7/bin .. && make -j8 && make install"
docker exec plex rm -rf beignet
docker exec plex bash -c "apt -y remove cmake pkg-config python ocl-icd-dev libegl1-mesa-dev ocl-icd-opencl-dev libdrm-dev libxfixes-dev libxext-dev llvm-7-dev clang-7 libclang-7-dev libtinfo-dev libedit-dev zlib1g-dev build-essential git && apt -y autoremove"
docker restart plex
docker exec plex clinfo -l
```
I decided to downgrade the Intel drivers the package version mentioned in the discussion (21.49.21786) and as soon as I did this, hw encoding with SDR tone mapping began working!
My CPU went from 80% to almost nothing.
Not sure what is working in the older Intel package, but I think this may be a bug?
Is there any way to verify this?
It has been well established, Intel broke something in their later releases.
I am trying to get the word out here in the forums – 21.49 – and hold until they fix it.
2 Likes
system
Closed
May 1, 2022, 4:23am
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.