Plex can see my GPU, but is unable to actually use it

I’ve seen this error around a bunch, but so far none of the fixes others have tried have worked for me. The long and short is whenever I try any gpu transcoding on plex the console spits back this error:

[Req#243c/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi

[Req#f6a/Transcode] Codecs: hardware transcoding: testing API vaapi for device ‘/dev/dri/renderD128’ (Intel DG2 [Arc A310])

[Req#19d6/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).

[Req#19d6/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error.

I have an Asrock X570D4U motherboard, and on that end I did go into the Bios and Enable IOMMU just to make sure it wasn’t that. I’ve made sure Plex has access to the drivers folder and even ran:

sudo chown root:apps /dev/dri/renderD128

just to give the user Plex runs as ownership of the folder. So far nothing has changed this behavior. What am I missing? All the basics I have already done. What could still be preventing Plex to opening the gpu?

Some folks mentioned in other posts that for non-nvidia gpus, plex just uses whatever the first gpu is assigned. I’m wondering if it is trying to use the ipmi graphics instead of the Arc card; with the same motherboard I can confirm that TrueNAS sees & has some access to the ipmi graphics.

Though it’ll break remote view in IPMI, what happens if you disable onboard graphics in the BIOS as an attempted workaround?

Link to posts where igpu gets used instead of ARC GPU.

root@truenas[~]# lspci | grep "VGA"
29:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
2e:00.0 VGA compatible controller: NVIDIA Corporation GA106 [Geforce RTX 3050] (rev a1)

truenas_admin@Pounce[~]$ lspci | grep “VGA”
2f:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A310] (rev 05)

I can try that though it does not seem like truenas is even seeing the IPMI for me.

Alas as I fear that no effect. Same behavior.

Do you have any option in the bios for multi-monitor?

I know for my motherboard+ipmi card I had to make sure my settings were

Cpu: primary display
Igpu display: enabled

Maybe you have something similar?

I have the option to set a primary display, and I did try both options, but that did not change te behavior.

This is frustrating to no end. Plex won’t give me my money back on my Pass so I am stuck trying to figure this out. I got my hands on an nVidia 3050 to try a different card and that doesn’t work either, though that doesn’t throw any console errors that I can discern, but whenever transcoding is selected it does one of three things seemingly at random no matter the file chosen:

  1. Plays for a roughtly 3-5 seconds before the video file closes itself
  2. Never starts with this error:
    error1
  3. Never starts with this error:
    error2

Unlike the Intel card, it does not fall back to cpu transcoding. In the console and plex logs I can’t see any clues with this either. It looks…normal. I tried uninstalling and reinstalling Plex, but that did not help. I did have the uuid error when I first installed the card, but that was pretty straight forward to fix. The plex forums themselves are worthless, I made two posts about the intel error to crickets. If anybody has any suggestions here about where I can go to get the 3050 working that would be great.

This might be of help:

Thank you, I found that moments after you posted it and it’s solved the codec popup and the transcode for a few seconds then stop. The unknown error is still happening sometimes though. Progress, though.

I guess then the question is what you’re playing back on & if it is replicated on multiple devices. I remember once having rando issues until I disabled relay in plex.

Past that man, I got no clue :frowning:

I am goi g to chalk this up to different platform’s players behaving weirdly. I am getting different behavior based on where it’s being played. Windows 11 PC - no transcoding works at all. IPad - everything works. Android Phone - everything works. Iphone - errors out 75% of the time. Samsung TV - everything works. LG TV - Nothing works. I assume if I had been able to ever get the Arc card working I would have landed here. Thanks again for your help.