I finally managed to make hw transcoding work with Proxmox and Plex in an LXC container with Jasper Lake CPU. I have managed to do this with other hardware, but these Jasper Lake CPU’s (N5105, N6005 etc.) have been causing me headaches previously. But no more! :).
Update kernel within Proxmox host to 5.19:
apt update
apt install pve-kernel-5.19
Avoid simplefb claiming iGPU:
nano /etc/default/grub
add initcall_blacklist=sysfb_init within GRUB_CMDLINE_LINUX_DEFAULT after quiet
Make sure iGPU is passed thru to LXC-container with following lines with it’s .conf -file:
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/renderD128 none bind,optional,create=file
Within LXC-container enable GUC (maybe unnecessary):
Now, the next step is to get HDR tone mapping working… I’m probably closer, since I’m getting “AVHWDeviceContext @ 0x… No matching devices found.” and that wasn’t too complicated to fix with my old hw.
Yes, just noticed the same. On Jellyfin it is stated that VPP HDR10 TM is not supported by JSL (Jasper Lake CPUs) and EHL (Elkhart Lake).
They say that you can still use OpenCL Tone Mapping. And that also VPP TM doesn’t support DV Profile 5.
Not sure if that is applicable for Plex as well. From the looks of it, colors are correct with 4k HDR movies on my non-HDR player with hw transcoding, and CPU is not that much strangled… maybe it is working?
Forget Profile 5 - It has no HDR fallback layer so it won’t transcode. It was created for streaming only and to prevent it from being copied/transcoded.
N5105 works. I already tested and demonstrated it on QNAP.
I assume we don’t need to worry about that “AVHWDeviceContext … No matching devices found.” -error when enabling HDR Tone Mapping? I think you would recognise visually, if colors were washed out and tone mapping was not in place
CPU is under around 18-22% of usage (N5105 and N6005) with either tone mapping enabled or not.
Well, like I said, I have the same issue with Ubuntu and with Pop_OS. But no worry, I’ll fall back to my nvidia-box and fiddle with this nice little mini thingie later on.
But just to clarify - if everything was working as it should, there shouldn’t be this error “AVHWDeviceContext @ 0x… No matching devices found.” at all even with these Jasper Lake -processors? Like I said, this is somewhat a issue with other media softwares than Plex also with it’s own “quirks”
I’ll reinstall my Ubuntu and make new thread if this issue persists there. However, I remember having this same issue there. It was also requiring additional steps to get even the normal transcoding work with this N5105. This was not necessary with my other hardware.
Yes. What is strange, is that this small N5105 is under 10% even with tone mapping enabled. I assume it falls back to software/cpu, if hw is not recognized.
With tone mapping disabled strain on CPU is 3-4%, and with tone mapping enabled (with visibly more bright and balanced colors) 5-7% CPU. Nothing major is probably achieved with this system, even if tone mapping was done with igpu instead of cpu…
Edit: correction, I’m now trying out N6005, but still.