4K HDR HEVC HW transcoding is broken on 1.22.1.4200

After collecting the installer log,

Please install this on top of what you have,
Share with me the console output as well as this updated /tmp/plexinstaller.log

(I have a suspicion)

The old log was the existing log before I installed the new package.

plexinstaller.log (989 Bytes) plexinstaller_old.log (755 Bytes)

PlexMediaServer install: PlexMediaServer-1.23.0.4438-5eef0fd80 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         render
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /mnt/ramdisk  (set in Preferences.xml)
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:
PlexMediaServer install:   OpenCL:              Installed
PlexMediaServer install:   Intel Gmmlib:        Installed
PlexMediaServer install:   Intel IGC Core:      Installed
PlexMediaServer install:   Intel IGC OpenCL:    Installed
PlexMediaServer install:   Intel OpenCL:        Installed
PlexMediaServer install:   Intel OCLoc:         Installed
PlexMediaServer install:   Intel Zero GPU:      Installed
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: PlexMediaServer-1.23.0.4438-5eef0fd80 - Installation successful.  Errors: 0, Warnings: 0
Processing triggers for mailcap (3.68ubuntu1) ...

@bruixot

Which motherboard / abstraction layer is this on? I don’t recognize MS-7C83

Is that a MSI (Micro Star)?

Everything else is as I expect. I see no reason for it to fail and by everything I see, it is working as it should be. Is there any way you can take screenshots to show me the difference ? It is known that sometimes Plex/Web is slow to show (hw) and they’re working on that but that’s all I am aware of.

If you’d like, you can join us here and get more input from others (where we’ve been working this issue)

Yes, the motherboard is an MSI B460 Pro-VDH Wifi

This is what I get on 1.22.0.4163. Shows HW transcoding and not a lot of CPU usage.

This is on 1.23 on software transcoding and high CPU usage.

I’ll keep following, maybe someone else has the same issue and has figured out how to solve it. My main TV can direct play and I have only an older TV and a tablet that this would benefit from which isn’t a show stopper.

I saw in your logs you are using Ubuntu 21.04 - have you tried 20.04 LTS?

Are you using unraid?

I suppose I could try it and see if that changes anything. Weird that it would still work using the older version on 21.04 but break using the newest version.

I took the suggestion of downgrading to the LTS version of Ubuntu and that fixed it. I now have HW transcoding with tone mapping enabled.

LTS with HWE Kernel is the way to go for Ubuntu! Glad that worked for you.

I’m reading about version 1.23 and that this 4K HDR to SDR HW problem is fixed there, but I can’t find 1.23 as a version for dockers?
https://hub.docker.com/r/linuxserver/plex/tags?page=1&ordering=last_updated

/Sƶder

I’m still having the same issue with 4K HDR HW transcoding on my i7-10710U. Regular 4K HW transcoding works fine.

Install log (reinstalled latest deb)

(Reading database ... 295405 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.23.0.4459-20536d6fc_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.23.0.4459-20536d6fc) over (1.23.0.4459-20536d6fc) ...
Setting up plexmediaserver (1.23.0.4459-20536d6fc) ...
PlexMediaServer install: PlexMediaServer-1.23.0.4459-20536d6fc - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         video
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /dev/shm  (set in Preferences.xml)
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Intel QSV Hardware:  Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:
PlexMediaServer install:   OpenCL library:      Installed
PlexMediaServer install:   Beignet package:     Installed
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.23.0.4459-20536d6fc - Installation successful.  Errors: 0, Warnings: 0
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...

Along with installing

ocl-icd-libopencl1 beignet-opencl-icd

Building dependency tree
Reading state information... Done
ocl-icd-libopencl1 is already the newest version (2.2.11-1ubuntu1).
beignet-opencl-icd is already the newest version (1.3.2-7build1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
type or paste code here

This all running 20.04.2 LTS. Any suggestions moving forward?

Need the DEBUG (not VERBOSE) logs which capture the start of the playback.
My installer logs output isn’t enough to go on.

Thanks Chuck, I’ve attached the logs.Plex Media Server Logs_2021-05-02_14-40-57 2.zip (487.1 KB)

@BudgieBird

You forgot

  1. DEBUG logs. (settings - Server - General - Show Advanced) - SAVE
  2. Turn on the DEBUG logging option. (that same one you turned off) haha

What I’m seeing is a whole lot of network trouble

May 02, 2021 14:20:49.567 [0x7fdcc9827b38] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
May 02, 2021 14:20:49.567 [0x7fdcc9827b38] WARN - QueryParser: Invalid field 'pinnedContentDirectoryID' found, ignoring.
May 02, 2021 14:21:46.737 [0x7fdccb7bfb38] ERROR - EventSource: Retrying in 600 seconds.
May 02, 2021 14:21:54.020 [0x7fdccb7bfb38] ERROR - EventSource: Retrying in 600 seconds.
May 02, 2021 14:22:48.408 [0x7fdccad41b38] INFO - AutoUpdate: no updates available
May 02, 2021 14:31:47.509 [0x7fdccb7bfb38] ERROR - EventSource: Retrying in 600 seconds.
May 02, 2021 14:31:54.786 [0x7fdccb79cb38] ERROR - EventSource: Retrying in 600 seconds.
May 02, 2021 14:35:35.354 [0x7fdcc9fc3b38] WARN - QueryParser: Invalid field 'sectionID' found, ignoring.
May 02, 2021 14:35:35.354 [0x7fdcc9fc3b38] WARN - QueryParser: Invalid field 'contentDirectoryID' found, ignoring.
May 02, 2021 14:35:35.354 [0x7fdcc9fc3b38] WARN - QueryParser: Invalid field 'pinnedContentDirectoryID' found, ignoring.

Sorry about that Chuck, I think I enabled the Web one in my haste. Here are the logs with debugging enabled and a few test runs.

Plex Media Server Logs_2021-05-02_16-26-17.zip (735.1 KB)

@BudgieBird

HW transcoding is working.

It knows it has hardware capability.

May 02, 2021 16:21:09.779 [0x7f83f2ca7b38] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
May 02, 2021 16:21:09.780 [0x7f83f2ca7b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
May 02, 2021 16:21:09.781 [0x7f83f2ca7b38] DEBUG - [Transcode] Codecs: Testing with profile 'Main 10'
May 02, 2021 16:21:09.783 [0x7f83f2ca7b38] DEBUG - [Transcode] Codecs: 10-bit HEVC test succeeded

It suppressed using the hardware because you have subtitles involved which are being streamed to the iPad Mini. '-codec:0' 'webvtt' '-f' 'segment' '-segment_format' 'webvtt' and 'media-%05d.vtt' '

Can you confirm the XML for me?

  1. Hover over the movie
  2. Expose the ellipsis
  3. Click it
  4. ā€œGet Infoā€
  5. Left corner → View XML
  6. Look in <media> through </media>. You should see the subtitle tracks.

Correct, it does have subtitles, however after more testing, the results from the server load seem to state otherwise, along with no HW annotation being given. I’ve uploaded the latest logs, along with some screenshots from HTOP.

Plex Media Server Logs_2021-05-02_17-41-27.zip (754.3 KB)

Screenshots Here

What I’m telling and showing you is:

  1. PMS sees the hardware and knows it’s capable
  2. Subtitles are blocking use of the hardware subtitles can’t be processed in hardware.

Make this test

  1. Copy the file to a new directory for safe keeping
  2. use Mkvtoolnix-GUI to remove the subtitles tracks and anything else not needed
  3. Take the new output file and replace what exists
  4. ā€œAnalyzeā€ the file so PMS is updated.
  5. Now play it.

This is still an issue on 1.23.2.4600 in an Ubuntu Docker container. Even on an 8 core Xeon, I can’t tonemap HDR files to SDR without killing the server for playback to my Appletv 4k. None of my other players have this issue so it’s a double hit. Is there an actual, succinct recommendation to get this to actually work? I see talk about the app grokking the uname or arch wrong or something but no real definitive answers to a fix.

late last week and over the weekend I did the deep dive on what’s happening.

  1. Confirmed there is a problem with the docker image – Provided full details to Engineering.

  2. Confirmed Debian native package works as it should.