# Lost HW transcoding... EDIT: HDR Tone mapping issue

**URL:** https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330
**Category:** Plex Media Server
**Tags:** server-linux
**Created:** [February 19, 2021, 5:18am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330 "2021-02-19T05:18:48Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Clmcm400](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Clmcm400](https://forums.plex.tv/u/Clmcm400)
#### Post date: [February 19, 2021, 5:18am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/1 "2021-02-19T05:18:49Z")

</div>

Server Version#: 1.21.4.4054  
Player Version#:WEB Version 4.51.3

So, HW transcoding used to work. Then I had a power outage which cut power to the server. When bringing it back up I did routine maintenance (upgrades) and ever since then, no more HW transcodes. I don’t know which upgrades exactly were performed (my bad I know). I just let ubuntu do whatever was recommended and did plex server as well. It is a 64bit, i7 9700k.

VAINFO:  
VA-API version 1.7 (libva 2.6.0)  
driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()

This is running native… no VM, no docker. Just vanilla ubuntu on a desktop with plex installed directly.

Not sure if it matters, but groups plex returns:  
plex : plex video render  
(I added render from suggestions on other threads… doubt it did anything)

ls -la /dev/dri:  
total 0  
drwxr-xr-x 3 root root 100 .  
drwxr-xr-x 18 root root 4220 ..  
drwxr-xr-x 2 root root 80 by-date  
crw-rw----+ 1 root video 226, 0 card0  
crw-rw----+ 1 root video 226, 128 renderD128

id plex:  
uid=122(plex) gid=127(plex) groups=127(plex),44(video),135(render)

lspci:  
Host bridge: Intel corp 8th Gen Core 8-core desktop processor host bridge/DRAM Registers [Coffee Lake S] (rev 0d)  
VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop 9 Series) (rev 02)

Hopefully this provides additional useful info (I’ve seen this output requested from other similar threads). Please help!!

[Plex Media Server Logs\_2021-02-18\_23-39-39.zip](https://forums.plex.tv/uploads/short-url/dVcADBQ1kjvgf6fdJAK6ipNbNKB.zip) (319.2 KB)

---

<div class="post-metadata">

### Author: ![CostaHT](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/costaht/32/193414_2.png) [@CostaHT](https://forums.plex.tv/u/CostaHT)
#### Post date: [February 19, 2021, 5:23am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/2 "2021-02-19T05:23:34Z")

</div>

Settings \> Transcoder

Is everything correct there?

---

<div class="post-metadata">

### Author: ![Clmcm400](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Clmcm400](https://forums.plex.tv/u/Clmcm400)
#### Post date: [February 19, 2021, 5:32am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/3 "2021-02-19T05:32:21Z")

</div>

I believe so… however… I did just discover a thread about HDR tone mapping. I turned that OFF, and HW transcoding is working again. However, per this:

> **[HDR to SDR Tone Mapping | Plex Support](https://support.plex.tv/articles/hdr-to-sdr-tone-mapping/)**
>
> Tip!: HDR to SDR tone mapping support is currently available as a Plex Pass preview and requires an active Plex...

I should be ok… running Linux with Intel. I ran this:

sudo apt install ocl-icd-libopencl1 beignet-opencl-icd

…and both are already at the newest version, ocl @ 2.2.11-1ubuntu1 and beignet @ 1.3.2-7build1).

So seems like I have issues with HDR tone mapping, but I think I am compliant with all the reqs and it should work?

Thanks.

---

<div class="post-metadata">

### Author: ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)
#### Post date: [February 19, 2021, 5:57am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/4 "2021-02-19T05:57:49Z")

</div>

```auto
Feb 18, 2021 23:28:35.863 [0x7fee0f842700] INFO - Linux version: 20.04.2 LTS (Focal Fossa), language: en-US
Feb 18, 2021 23:28:35.863 [0x7fee0f842700] INFO - Processor Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz

```

See [this thread](https://forums.plex.tv/t/intel-quick-sync-hdr-to-sdr-tonemapping-performance/682892/34) about Coffee Lake support. Thread mentions 10th gen CPU, but might apply to 9th gen as well.

_Beignet and OpenCL as distributed by Ubuntu don’t include CoffeeLake support._

---

<div class="post-metadata">

### Author: ![Clmcm400](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Clmcm400](https://forums.plex.tv/u/Clmcm400)
#### Post date: [February 19, 2021, 6:07am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/5 "2021-02-19T06:07:13Z")

</div>

Well… crap. Mystery solved. Thank you FordGuy61 for pointing me in the right direction. 🙂 I will have to give that fix a try…

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [February 19, 2021, 6:47am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/6 "2021-02-19T06:47:09Z")

</div>

👋

I wrote the wrong name. -10xxx CPUs are CometLake.

-9xxx are CoffeeLake and are covered by Beignet and OpenCL

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [February 19, 2021, 6:49am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/7 "2021-02-19T06:49:03Z")

</div>

Thanks for the logs:

1. Network error. – No DNS lookup

```auto
Feb 18, 2021 23:19:03.989 [0x7f228e5db700] ERROR - Error parsing XML: Error parsing file.
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] WARN - HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error parsing content.
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error parsing XML: Error parsing file.
Feb 18, 2021 23:19:03.991 [0x7f227e7fc700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:03.991 [0x7f227e7fc700] WARN - HTTP error requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] WARN - HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error parsing content.
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error parsing XML: Error parsing file.
Feb 18, 2021 23:19:03.991 [0x7f227e7fc700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:03.991 [0x7f227e7fc700] WARN - HTTP error requesting GET https://plex.tv/api/v2/server/users/subscriptions?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] WARN - HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error parsing content.
Feb 18, 2021 23:19:03.991 [0x7f228e5db700] ERROR - Error parsing XML: Error parsing file.
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] WARN - HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] ERROR - Error parsing content.
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] ERROR - Error parsing XML: Error parsing file.
Feb 18, 2021 23:19:04.860 [0x7f227ffff700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:04.860 [0x7f227ffff700] WARN - HTTP error requesting GET http://plex.tv/pms/:/ip (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:04.860 [0x7f227ffff700] ERROR - PublicAddressManager: Unable to get public IP adddress from myPlex (httpCode=-6): 
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] ERROR - Error issuing curl_easy_perform(handle): 6
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] WARN - HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] ERROR - Error parsing content.
Feb 18, 2021 23:19:04.860 [0x7f227d7fa700] ERROR - Error parsing XML: Error parsing file.

```

1. If it can’t log in, HW transcoding won’t activate

---

<div class="post-metadata">

### Author: ![Clmcm400](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Clmcm400](https://forums.plex.tv/u/Clmcm400)
#### Post date: [February 19, 2021, 8:27am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/8 "2021-02-19T08:27:04Z")

</div>

Well that’s… odd… I can certainly resolve that address from the server. Also HW transcoding works every single time I’ve disabled HDR tone mapping (trying to implement your temp fix of “The temporary solution is to download the source for Beignet & OpenCL, let it configure itself for your CPU, then build and install.”… struggling a bit as I am a Linux noob). I guess I can re-up some more logs. 1 attempt on and 1 attempt off for comparison.

~Clm

---

<div class="post-metadata">

### Author: ![Clmcm400](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Clmcm400](https://forums.plex.tv/u/Clmcm400)
#### Post date: [February 19, 2021, 8:58am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/9 "2021-02-19T08:58:39Z")

</div>

OK… so… I think I found a fix… assuming this affected CoffeeLake too. No matter what I did, with these packages:

```auto
sudo apt install ocl-icd-libopencl1 beignet-opencl-icd

```

It never worked for me. Tested it many, many times. HDRTM on, no HW transcodes. Off, HW transcodes worked. (Not sure if the DNS failure factored into it or not… but tried it over many hours and it was always consistent repeatable behavior).

That led me to this:

> **[rcombs/beignet](https://github.com/rcombs/beignet/tree/comet-lake)**
>
> comet-lake

Where that dude added back in all the processors that were dropped for whatever reason (but the code still supported… he designed for CometLake… but eh he said he included a bunch of other procs). I ran the following:

sudo 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  
sudo git clone --branch comet-lake [https://github.com/rcombs/beignet.git](https://github.com/rcombs/beignet.git)  
sudo mkdir build  
cd build  
sudo cmake -DLLVM\_INSTALL\_DIR=/usr/lib/llvm-7/bin …  
sudo make -j8  
sudo make install

then:  
sudo apt remove ocl-icd-libopencl1  
sudo apt-get install intel-opencl-icd

(Pardon if it isn’t clean code… like I mentioned earlier… noob here and thats what I finally figured out after many hours of putzing). Now my clinfo (snippet) is:

Number of platforms 2  
Platform Name Intel® OpenCL HD Graphics  
Platform Vendor Intel® Corporation  
Platform Version OpenCL 2.1  
Platform Profile FULL\_PROFILE

Platform Name Intel Gen OCL Driver  
Platform Vendor Intel  
Platform Version OpenCL 2.0 beignet 1.4 (git-f40a2861)  
Platform Profile FULL\_PROFILE

I don’t know if one/either of those fixed it or both. NFI. Someone smarter than me can figure that out. Now however, I can do HDR tone map with HW transcoding on CoffeeLake. See logs attached.

[Plex Media Server Logs\_2021-02-19\_03-44-19.zip](https://forums.plex.tv/uploads/short-url/1Hqtl70YgGmBAOPMErpiFd13pT8.zip) (3.5 MB)

I am curious to know if new logs still show DNS errors with HW transcode + HDR tone mapping working. _shrug_ Either way… happy camper here!

---

<div class="post-metadata">

### Author: ![Clmcm400](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Clmcm400](https://forums.plex.tv/u/Clmcm400)
#### Post date: [February 19, 2021, 9:06am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/10 "2021-02-19T09:06:01Z")

</div>

Maybe per this site:  
[https://www.phoronix.com/scan.php?page=news\_item&px=Coffeelake-Beignet-vs-NEO](https://www.phoronix.com/scan.php?page=news_item&px=Coffeelake-Beignet-vs-NEO)

You only need the NEO driver? So maybe I didn’t even need to bother with the Beignet fix? If I knew how to uninstall that I would test it… but not sure how =D I can apt remove but I dunno how to reverse a sudo make install… lol

---

<div class="post-metadata">

### Author: ![jjrojo](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jjrojo](https://forums.plex.tv/u/jjrojo)
#### Post date: [February 25, 2021, 10:45am UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/11 "2021-02-25T10:45:38Z")

</div>

I would like apport info for hardware Nvidia about HDR Tone mapping  
Running actually plex in linuxserver docker, host network  
Graphic card Nvidia 1050 TI  
Proccessor Intel xeon 1220L  
Running debian netinstall with docker, docker-compose, drivers from nvidia web site  
Driver version 460.39  
All config for Nvidia drivers run in docker done  
Plex version 1.21.3.4046

Trying transcode with HDR Tone mapping you see the reduced quality, but the bandwidth does not adjust to what is configured it is still high, disconnecting HDR Tone mapping the bandwidth works as it should

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [February 25, 2021, 6:49pm UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/12 "2021-02-25T18:49:19Z")

</div>

@jjrojo

Please do the following:

1. Settings - Server - General - Show Advanced
2. Verify DEBUG logging ON
3. Verify VERBOSE logging OFF
4. Click SAVE if either option changed.
5. Now recreate the problem (up to 2 minutes of playback time is enough)
6. Stop playback
7. Wait 20 seconds for the logs to flush to the disk
8. Download the logfiles (a ZIP file)
9. Attach that ZIP file here for me to review.

---

<div class="post-metadata">

### Author: ![jjrojo](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jjrojo](https://forums.plex.tv/u/jjrojo)
#### Post date: [February 26, 2021, 10:10pm UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/13 "2021-02-26T22:10:06Z")

</div>

@ChuckPa  
i’m trying to reproduce, but everything look ok now, maybe deactivate HDR Tone mapping did trick, now with activated HDR Tone mapping transcode is ok.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [May 27, 2021, 10:10pm UTC](https://forums.plex.tv/t/lost-hw-transcoding-edit-hdr-tone-mapping-issue/692330/14 "2021-05-27T22:10:17Z")

</div>

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