Truenas Scale HW Transcoding Suddenly Stopped Working

Server Version#: 1.41.4.9463
Player Version#: web, Windows 1.108.1.307, Android TV 10.26.0.2578 (Shield), Android 8.45

Today HW transcoding stopped working. I cannot transcode, or even direct play, any HEVC files. All other files will only software transcode. I am running PMS in a container on TrueNAS Scale v 23.10.2 with an Alder Lake UHD 770 iGPU. The gpu is passed through to the container, and I can confirm within the Plex client that PMS sees the gpu. HW transcoding worked fine before today. Below are the relevant logs:

Apr 17, 2025 21:19:22.040 [139866348383032] DEBUG - [Req#566d94/Transcode] Codecs: hardware transcoding: testing API vaapi for device ‘/dev/dri/renderD128’ (Intel Alder Lake-S GT1 [UHD Graphics 770])
Apr 17, 2025 21:19:22.041 [139866348383032] ERROR - [Req#566d94/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Apr 17, 2025 21:19:22.057 [139866348383032] DEBUG - [Req#566d94/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error
Apr 17, 2025 21:19:22.057 [139866348383032] DEBUG - [Req#566d94/Transcode] Could not create hardware context for h264
Apr 17, 2025 21:19:22.058 [139866348383032] DEBUG - [Req#566d94/Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
Apr 17, 2025 21:19:22.059 [139866348383032] DEBUG - [Req#566d94/Transcode] Codecs: hardware transcoding: testing API vaapi for device ‘/dev/dri/renderD128’ (Intel Alder Lake-S GT1 [UHD Graphics 770])
Apr 17, 2025 21:19:22.059 [139866348383032] ERROR - [Req#566d94/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Apr 17, 2025 21:19:22.074 [139866348383032] DEBUG - [Req#566d94/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error
Apr 17, 2025 21:19:22.074 [139866348383032] DEBUG - [Req#566d94/Transcode] Could not create hardware context for h264

I have tried deleting the codec folder. I have opened permissions to 777 for everyone@. The hevc_decoder.dll was missing; I manually downloaded it and placed it in the codec folder.

Any thoughts?

So I turned in verbose logging tonight and grabbed some additional logs. It seems some files, namely iHD_drv_video.so, is missing from the cache folder. Any thoughts?

Apr 22, 2025 21:33:40.052 [139699843021624] DEBUG - [Req#3a6/Transcode] Streaming Resource: Determining preferred transcode encoders through transcode only decision.
Apr 22, 2025 21:33:40.052 [139699843021624] DEBUG - [Req#3a6/Transcode] Codecs: testing h264_vaapi (encoder)
Apr 22, 2025 21:33:40.052 [139699843021624] DEBUG - [Req#3a6/Transcode] Codecs: hardware transcoding: testing API vaapi for device ‘/dev/dri/renderD128’ (Intel Alder Lake-S GT1 [UHD Graphics 770])
Apr 22, 2025 21:33:40.052 [139699843021624] VERBOSE - [Req#3a6/Transcode] [FFMPEG] - libva: VA-API version 1.21.0
Apr 22, 2025 21:33:40.052 [139699843021624] VERBOSE - [Req#3a6/Transcode] [FFMPEG] - libva: User requested driver ‘iHD’
Apr 22, 2025 21:33:40.052 [139699843021624] VERBOSE - [Req#3a6/Transcode] [FFMPEG] - libva: Trying to open /config/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86_64/iHD_drv_video.so
Apr 22, 2025 21:33:40.052 [139699843021624] VERBOSE - [Req#3a6/Transcode] [FFMPEG] - libva: va_openDriver() returns -1
Apr 22, 2025 21:33:40.052 [139699843021624] ERROR - [Req#3a6/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Apr 22, 2025 21:33:40.057 [139699843021624] DEBUG - [Req#3a6/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error
Apr 22, 2025 21:33:40.057 [139699843021624] DEBUG - [Req#3a6/Transcode] Could not create hardware context for h264_vaapi
Apr 22, 2025 21:33:40.057 [139699843021624] DEBUG - [Req#3a6/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.