PMS 1.32.6+ HW transcoding issues and corrections

PMS 1.32.6+ HW transcoding issues and corrections.

ALL:

We’re really sorry. We missing a whopping fault in PMS.

Specifically, we missed a change which broke HW tone mapping support on Linux platforms.

( that’s what I get for sleeping from 4am → 6am :man_facepalming: )

Where we’re at

  1. We’ve got the fault isolated down to a few changes which broke things and are now walking through those source code changes line-by-line again.

  2. We will get there as this is a “When” problem and not an “If” problem.

  3. For now, We’ve completely withdrawn 1.32.6 and 1.32.7 from our downloads page

  4. When we have a viable, working, reissued 1.32.6 build (which we will forum-test here first), it will then be released to the downloads page.

Optimistic schedule

  1. Fingers crossed, we’ll complete code work today.
    We are iterating between Change → Test → Change → Retest → Repeat.

  2. When that is completed, I will have packages , which I share in this thread, for everyone to test.

  3. Once sufficient “Kick the tires” testing has been done, we’ll release it to everyone

I will be referring other threads to this one so we have everyone in one place.
This will save sanity for all and minimize confusion by having single-source

Packages

I will post any packages needed. You should now be able to find everything on the downloads page – 1.32.5.7349

5 Likes

Tested 1.32.5.7349, seeing this on my Xeon(R) W-1350P:

Sep 15, 2023 23:47:52.565 [140717916982072] INFO - [Req#62c/Transcode/vrpm3ibplrlohm4ray7hulpl] Preparing driver icr for GPU RocketLake-S GT1 [UHD Graphics P750]
Sep 15, 2023 23:47:52.568 [140717916982072] INFO - [Req#62c/Transcode/vrpm3ibplrlohm4ray7hulpl] Preparing driver imd for GPU RocketLake-S GT1 [UHD Graphics P750]
Sep 15, 2023 23:47:52.809 [140717921200952] ERROR - [Req#673/Transcode/vrpm3ibplrlohm4ray7hulpl/bd6540d8-0ed8-4f54-a278-560446b7aad9] [AVHWDeviceContext @ 0x7f2d742ee040] No matching devices found.

Yet it still does say Transcode (hw) from 4k HDR down to 1080P SDR. Can confirm with intel_gpu_top. Same on 1.31.3.6868 FWIW.

@infernix

I need more than 3 lines to go on.

  1. Enable DEBUG logging.
  2. Restart PMS
  3. Now start the playback
  4. Stop after 20 seconds
  5. Download logs

Am I correct in assuming this isn’t affecting all Linux users? I am on Unraid, PlMS 1.32.6.7468 and am still seeing HW trans-coding.

image

I updated on Unraid the Linux Server version 1.32.5.7349-8f4248874 - latest (Docker) a couple hours ago and I was unable to access Plex at all! It got stuck on User UID: 99 and User GID: 100 and would not progress any further. In Unraid it appeared to be running but I was unable to connect to the plex.tv server at all. I thought I had corrupted preferences or a database corruption. I finally rolled back to 1.32.5.7349-8f4248874-ls181 from 11 days ago and my server is back up and running. I couldn’t pull any logs as the log I had is this screen shot. I hope this helps for digging a bit deeper.

Good luck with the fix!

The issue is Tone Mapping with hardware. Try transcoding an HDR file.

1 Like

@Jase

Would you please confirm:

1.32.5.7349-8f4248874
-vs-
1.32.5.7349-8f4248874-ls181

??
Those are the same build unless LSIO is doing something in there.

Hi @ChuckPa , Yes, I thought the same. Here is the link to various builds. If you scroll down you will see the version (docker pull linuxserver/plex:1.32.5.7349-8f4248874-ls181) from 19 days ago. The one that was released a few hour’s ago is versioned 1.32.5.7349-8f4248874

https://hub.docker.com/layers/linuxserver/plex/1.32.5.7349-8f4248874-ls181/images/sha256-760d003bac029cca84beebe89d3a2eeeb42c018c4c9dbee765e2af429c78b886?context=explore

Thanks for the information.
By the way in Plex Media Server 1.32.6+ the mentioned fix for the subtitle issue at the end is not working I think for me. I still had the transcoder issue near the end of the play when subtitle was enabled.

@VVagnard

We will readdress the subtitle issue as we advance through this.

We’re going to reset in time , fixing what broke. then applying the latter fixes again which will include the subtitles fix.

@Jase

Not sure why they repackaged it.

I am confused now. (LONG day)

Which one works? Plex’s Official docker should work out of the box.

No worries! The one that I rolled back to is 1.32.5.7349-8f4248874-ls181 from 19 days ago works a treat!
Get some rest mate. I just thought it was too much of a coincidence since my issue happened when the official version was released and theirs today. In all my years managing Plex, I have never come across an update that failed to this extent. BTW, I also tried the same 1.32.5.7349-8f4248874 (latest) version on my other Unraid test server which also failed.

I also tried the Plex out of the box official version with the same exact issue :wink:

I’m on 1.32.6 on docker on an DS920+ and evidently hw transcoding is not working.

How can I revert back temporarily to the previous working version?

There was a regression in the LSIO scripts which turned a chown on only the base config folder into a recursive chown of the config folder, which includes the metadata folder, that takes a very long time, and thus blocks the startup.

It was introduced with Change lsiown to skip files owned by user · linuxserver/docker-mods@8adebf4 · GitHub & fixed just a few hours back with Fix lsiown edge cases by quietsy · Pull Request #763 · linuxserver/docker-mods · GitHub

Redacted logs attached. Note that despite the one ERROR, HDR tonemapped transcoding does appear to work fine.
plexdebug.log (788.6 KB)

@infernix

Tone mapping not working is the primary problem.

  1. Either does not find the OpenCL platform info
    -or-
  2. Cannot setup the filter chain

That’s what we’re working on now; backtracking through the changes one by one.

1 Like

I’m using Unraid with 1.32.6.7468 and hardware (Nvidia GPU) tone mapping from UHD HDR to 1080p SDR seems to be working fine. I just tested it.

image

Hello,
The 1.32.5.7349-8f4248874 works fine for me for HW Transcode 4K HDR with tonemapping.
I tried the 1.32.6 and 1.32.7, and both broke the HW Transcode.

I hope you’ll find the fixes to that.

My config:

  • PMS in Docker, official image image: plexinc/pms-docker:1.32.5.7349-8f4248874
  • NAS Asustor AS6704T, with Intel Celeron N5105 with iGPU.

@kpshaver

Which CPU / GPU specifics please ?

(It does make sense Nvidia isn’t impacted but would like to confirm details, and CUDA version)

Nvidia 1050ti using Nvidia driver 525.60.13 (haven’t restarted Unraid in 6 months haha). The CPU is a 7700k, but using the GPU. CUDA v12.0.