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

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® 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 (319.2 KB)

Settings > Transcoder

Is everything correct there?

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:

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.

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 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.

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

:wave:

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

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

Thanks for the logs:

  1. Network error. – No DNS lookup
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

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

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

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:

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
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 (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!

1 Like

Maybe per this site:
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

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

@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.

@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.

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