iGPU HW Transcoding not working N6000

Server Version#: 1.29.2.6364
Player Version#:

Hi im running Plex media server in docker on Openmediavault 6 which is Debian based os.

this is my stack which I used to create the stack

---
version: "2.1"
services:
  plex:
    image: ghcr.io/linuxserver/plex
    container_name: plex-hw
    network_mode: host
    environment:
      - PUID=100
      - PGID=998
      - TZ=Europe/Amsterdam
      - VERSION=latest
    devices:
      - /dev/dri:/dev/dri      

    volumes:
      - /portainer/Files/AppData/Config/Plex:/config
      - /srv/dev-disk-by-uuid-72A6FF8BA6FF4E5B/transcode:/transcode
      - /srv/dev-disk-by-uuid-72A6FF8BA6FF4E5B/Movie:/movie
      - /srv/dev-disk-by-uuid-72A6FF8BA6FF4E5B/TV:/tv

    restart: unless-stopped

the output from ls -ls /dev/dri/ is this

total 0
0 drwxr-xr-x 2 root root         80 Dec 11 00:28 by-path
0 crw-rw---- 1 root video  226,   0 Dec 11 01:22 card0
0 crw-rw---- 1 root render 226, 128 Dec 11 00:28 renderD128

as you see in this screenshot

HW transcoding isn’t working

my transcoding setting

and here is my log
Plex Media Server Logs_2022-12-11_01-05-36.zip (816.5 KB)

my system info and docker version


i would appreciate any helps i have tried googling and Reddit and most of the solution here but doesn’t seems to work

Intel Driver/Transcoder is crashing. Bleeding edge isn’t good for Plex, so you will either have to wait for them to catch up or drop back to a 5.15 kernel.

You mean the kernel? Do you happen to know how to do that ? And there is no other way around. ;/

You could switch to the plex docker image and see if that is more stable with your setup. Wait for Plex to update sometime after Xmas or reload with stable OMV 6.0.24 and don’t upgrade.

so I reloaded my OMV to the stable iso they had and changed the plex tag to docker too
but the problem seems to be the same.

image
image

I even changed the PUID and GUID to root id as well
Plex Media Server Logs_2022-12-11_01-05-36.zip (816.5 KB)

any other suggestion ?

One thing Plex may be interested in related to the CPU id.

	Line  143: Dec 11, 2022 00:47:26.109 [0x7f04a757eb38] WARN - [GPU] Failed to load PCIID map: Failed to locate a readable PCIID database
	Line  144: Dec 11, 2022 00:47:26.109 [0x7f04a757eb38] DEBUG - [GPU] Got device: , intel@builtin, default true, best true, ID /dev/dri/renderD128, DevID [8086:4e71], flags 0xde

The Failure.

Dec 11, 2022 00:48:03.717 [0x7f04a5c7eb38] ERROR - [Req#15d/Transcode/wt247dz3rjrqpeo54ytg8er6/90552a5d-78d6-4dae-b5fc-a50e99456eb7] [h264_vaapi @ 0x7f2dad86adc0] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
Dec 11, 2022 00:48:03.717 [0x7f04a757eb38] ERROR - [Req#162/Transcode/wt247dz3rjrqpeo54ytg8er6/90552a5d-78d6-4dae-b5fc-a50e99456eb7] Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

You could try locating the Drivers directory along your /config path and clearing it so that they re-download. Delete the docker image and change your compose to switch to the plexinc/pms-docker image.

Appropriate warning that these are the risks that a user assumes when using an unsupported OS. @ChuckPa, any guidance on the PCIID database issue?

Another Jasper Lake thread in case there is a nugget of information that you can use: Ubuntu Intel N5105 QSV HW Transcoder not detected

I checked that forum too doesn’t seem like there was a solution and I tried switching to plexinc/pms-docker didn’t help i looked into the logs same issue and i did mount the volume for the drive alongside other volumes
here the log anyway
Plex Media Server Logs_2022-12-11_15-22-29.zip (530.5 KB)

thanks for trying to help, maybe after weekend one of the dev shine light on this issue and help

@anon18523487 could you take look at my log ? and see if you can point me in correct direction for solution? my HW transcoding refused to work

You should ask @jamesnorth what he did since he is using OMV6.

i am already on 5.16 which he state what made it work but i looked at his log he doesnt have the same error and i tried googling that error

These are the relevant lines in the logs:

Dec 11, 2022 00:48:03.717 [0x7f04a5c7eb38] ERROR - [Req#15d/Transcode/wt247dz3rjrqpeo54ytg8er6/90552a5d-78d6-4dae-b5fc-a50e99456eb7] [h264_vaapi @ 0x7f2dad86adc0] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
Dec 11, 2022 00:48:03.717 [0x7f04a757eb38] ERROR - [Req#162/Transcode/wt247dz3rjrqpeo54ytg8er6/90552a5d-78d6-4dae-b5fc-a50e99456eb7] Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

In my experience, this indicates the GuC/HuC firmware has not been successfully loaded/initialized. Try running the following:
sudo dmesg | grep -i i915

Look for lines to the effect that the GuC/HuC firmware failed to load. If that’s the case, you can use the information here to find the required firmware:

root@homeserver:/sys/module/i915/drivers# sudo dmesg | grep -i i915
[    3.862894] i915 0000:00:02.0: [drm] VT-d active for gfx access
[    3.862905] i915 0000:00:02.0: vgaarb: deactivate vga console
[    3.862983] i915 0000:00:02.0: [drm] Transparent Hugepage mode 'huge=within_size'
[    3.878672] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    4.080588] i915 0000:00:02.0: firmware: direct-loading firmware i915/icl_dmc_ver1_09.bin
[    4.081423] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/icl_dmc_ver1_09.bin (v1.9)
[    4.082402] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[    4.084769] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[    4.084907] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[    4.225215] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])

does this look normal ?

Hmm… Have you enabled GuC per this support topic (point 2)?

how do I do this part?

sudo apt install intel-media-va-driver-non-free

But, the second point is the more important. That is, enable GuC.

i think i need repo for that because im getting this

root@homeserver:/# sudo apt install intel-media-va-driver-non-free

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package intel-media-va-driver-non-free is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'intel-media-va-driver-non-free' has no installation candidate
root@homeserver:/#

Skip that for now. As I said, the second part is the more important. Enable the GuC.

i did this

echo "options i915 enable_guc=2" >> /etc/modprobe.d/i915.conf
update-initramfs -u

but nothing happens

here the log
Plex Media Server Logs_2022-12-12_19-51-44.zip (706.0 KB)

Your logs show no new media being played.

Did you reboot? What does sudo dmesg | grep -i i915 show now?