Hardware HDR tonemapping still broken on 1.31.0.6654

The work lab is almost 400 miles from where I live.

Anything I do impromptu has to be done with my own personal machines.

The only one remotely conducive to this is my NUC7i3BNK.

I don’t have any more HDD enclosures. (long since gone)
I’d need to buy a new SSD from Amazon and physically swap things in the box (not good for long term use) – or I buy an enclosure and HDD

Might be able to borrow one but won’t know until the weekend.

Folks,
I have the USB enclosure and NUC with unraid 6.11.5
(We had to create the USB stick ON WINDOWS and using a $2 2GB thumb. My USB 3.0 thumbs don’t work)

Currently have:

  1. 6TB no partity array volume
  2. web ui and ssh access
  3. Plex installed but it couldn’t save settings (auth failed) even after use of claim token

Now I could use guidance setting up:

  1. NFS automount from my main nas for media
  2. Knowing how you setup Plex container on unraid so I don’t need reinvent the wheel.

Nice! You’re going to want to install the community apps plug-in (apps tab) to get access to docker containers. For the NFS share, I think easiest is to install the “unassigned devices” plugin to mount the share in unraid. This allows you to have disks in unraid that are not part of the array.

Edit: also the intel GPU top plugin to give iGPU access to unraid.

Since I’m really good at the keyboard :smiling_imp:

Transcoding + Tonemapping while scanning the TV section.

Added device /dev/dri to the container definiton – presto :slight_smile:

I do need to make things persistent so a reboot isn’t a PITA.

Got things installed, how to use?

Where do I find these? GUI or CMD?

@matthe6038

Point me please ??

clicking those icons has no action.

Tone mapping confirmed functional.

Version 1.31.0.6654-02189b09f

scene from Gemini Man (stress test of any Intel GPU) played in Plex/web

Now to find out what’s different for those with problems.

  1. 1080p → 1080p is known broken ; Fixed today and will be 1.31.2
  2. 720p → 720p is known broken; Fixed today and will be 1.31.2
  3. Nvidia GPU is known broken; Also fixed today and will be 1.31.2
  4. Changing resolution or codec has always worked for Intel CPUs.
1 Like

Is NFS enabled in settings → NFS ?

I just tested again - the updated DEB file you gave me allows direct play on chrome browser and iphone, but when I force disable it goes back to software transcoding. Disabling HW tonemapping in the settings allows hardware transcoding to proceed. Super weird.

This is a client. not a server. there’s one drive plugged into it (as required)

CA scripts did the NFS mount, nolock, problem solved.

=====

Attach your DEBUG logs ZIP.

Let me see what is happening

This one is from tonight with the new DEB file you gave me.
Plex Media Server Logs_2023-02-17_21-14-32.zip (1.2 MB)

I have am still ok.

How is your container configured?

Where do you pass in the GPU?

Screenshot from 2023-02-17 22-24-56

I know the 5005’s work. I added them to the Debian package and tested it in late 2021

I will go retest now on the lab 5005 (over VPN)

Just wanted to say thank you for going above and beyond for a niche case when it seems to be working for most people. I really appreciate it.

Did the logs give any insight as to why it’s not working?

The logs show it not detecting the 5005 CPU.

Why that’s happening might be in your DMESG or /var/log/messages

PMS can’t see it and udev, on unraid, looks like it either works or doesn’t.

You’re on 6.11.5 ?

Correct I’m on 6.11.5. Does it show that it’s detecting it when HW tonemapping is disabled, and hardware transcoding works? I tried that as well right after so it should be in the logs.

If you have it disabled – it won’t even try.

Right but it’s still using the J5005 to hardware transcode - just not with HDR tonemapping. Or you mean it won’t try to use the J5005 specifically for HR tonemapping like it’s a separate request?

This is fun.

Feb 17, 2023 20:58:48.120 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] Cleaning directory for session d5kiqex3mx40sufkjmypiehi ()
Feb 17, 2023 20:58:48.121 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] Starting a transcode session d5kiqex3mx40sufkjmypiehi at offset -1.0 (state=3)
Feb 17, 2023 20:58:48.131 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] TPU: hardware transcoding: using hardware decode accelerator vaapi
Feb 17, 2023 20:58:48.131 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] TPU: hardware transcoding: zero-copy support present
Feb 17, 2023 20:58:48.131 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] TPU: hardware transcoding: using zero-copy transcoding
Feb 17, 2023 20:58:48.138 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [Universal] Using local file path instead of URL: /media/library/movies/Nope (2022)/Nope.2022.IMAX.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT.mkv
Feb 17, 2023 20:58:48.138 [0x1480bcec1b38] INFO - [Req#1e8/Transcode] Preparing driver icr for GPU GeminiLake [UHD Graphics 605]
Feb 17, 2023 20:58:48.141 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] Codecs: hardware transcoding: testing API vaapi
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x41524742 -> bgra.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x42475241 -> argb.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x41424752 -> rgba.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x52474241 -> abgr.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x58524742 -> bgr0.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x42475258 -> 0rgb.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x58424752 -> rgb0.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x52474258 -> 0bgr.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x30335241 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x30334241 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x30335258 -> x2rgb10le.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x30334258 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x36314752 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x50424752 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x50524742 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x56555941 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x30303859 -> gray.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x3231564e -> nv12.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x3132564e -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x32595559 -> yuyv422.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x59565955 -> uyvy422.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x32315659 -> yuv420p.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x30323449 -> yuv420p.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x50313134 -> yuv411p.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x48323234 -> yuv422p.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x56323234 -> yuv440p.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x50343434 -> yuv444p.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x33434d49 -> unknown.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Format 0x30313050 -> p010le.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Created surface 0.
Feb 17, 2023 20:58:48.145 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] [FFMPEG] - Direct mapping possible.
Feb 17, 2023 20:58:48.146 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Feb 17, 2023 20:58:48.150 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode/JobRunner] Job running: EAE_ROOT=/tmp/pms-5d9436f8-19e2-4d98-a5cb-d4eec

There it is.

Feb 17, 2023 20:58:48.146 [0x1480bcec1b38] DEBUG - [Req#1e8/Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi

do you have PGS. VOBSUB, or DVDRIP subtitles in the file?

Those will disable it EVERY time