HW Transcode not working with NVIDIA GPU

Server Version#: 1.24.5.5173
Player Version#: 4.69.0
NVidia Driver Version #: 470.82.01
CUDA Version #: 11.4

After updating to latest plex version the HW transcoder no longer seems to be working.

The hopefully relevant part of the logs:

Nov 03, 2021 15:50:35.173 [0x7feb51d15b38] DEBUG - [Transcode] Found session GUID of 8f1c9ficp5uelw74ajcdtwyl in session start.
Nov 03, 2021 15:50:35.174 [0x7feb51d15b38] DEBUG - [Transcode] TranscodeUniversalRequest: using augmented profile Web
Nov 03, 2021 15:50:35.174 [0x7feb51d15b38] DEBUG - [Transcode] Downloading document http://127.0.0.1:32400/library/metadata/45032?includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=1enksdxolzukdjvcx8qifow8
Nov 03, 2021 15:50:35.179 [0x7feb51d15b38] DEBUG - [Transcode] We're going to try to auto-select an audio stream for account 1.
Nov 03, 2021 15:50:35.179 [0x7feb51d15b38] DEBUG - [Transcode] Selecting best audio stream for part ID 61579 (autoselect: 1 language: en)
Nov 03, 2021 15:50:35.179 [0x7feb51d15b38] DEBUG - [Transcode] We're going to try to auto-select a subtitle.
Nov 03, 2021 15:50:35.179 [0x7feb51d15b38] DEBUG - [Transcode] Selected a foreign audio track: ja
Nov 03, 2021 15:50:35.179 [0x7feb51d15b38] DEBUG - [Transcode] Subtitles: Found a candidate subtitle language [en] for a foreign film
Nov 03, 2021 15:50:35.179 [0x7feb51d15b38] DEBUG - [Transcode] Audio Stream: 146327, Subtitle Stream: 146328
Nov 03, 2021 15:50:35.180 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: testing h264_vaapi (encoder)
Nov 03, 2021 15:50:35.184 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Nov 03, 2021 15:50:35.184 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Nov 03, 2021 15:50:35.184 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Nov 03, 2021 15:50:35.184 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Nov 03, 2021 15:50:35.191 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
Nov 03, 2021 15:50:35.191 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA
Nov 03, 2021 15:50:35.191 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Nov 03, 2021 15:50:35.191 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] Scaled up video bitrate to 11959Kbps based on 1.500000x fudge factor.
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] MDE: Selected protocol dash; container: mp4
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] MDE: analyzing media item 60017
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] MDE: E3 - Magic of Bonds: Direct Play is disabled
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] MDE: E3 - Magic of Bonds: media must be transcoded in order to use the dash protocol
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] MDE: E3 - Magic of Bonds: selected subtitle cannot be converted to a compatible format, burning into video stream
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] MDE: E3 - Magic of Bonds: avoiding video remux due to burned subtitle stream
Nov 03, 2021 15:50:35.194 [0x7feb51d15b38] DEBUG - [Transcode] MDE: E3 - Magic of Bonds: no remuxable profile found, so video stream will be transcoded
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Scaled up video bitrate to 11959Kbps based on 1.500000x fudge factor.
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] MDE: The World's Finest Assassin Gets Reincarnated in a Different World as an Aristocrat - S1 E3 - Magic of Bonds: selected media 0 / 60017
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Streaming Resource: Adding session 0x7feb51c57638:1enksdxolzukdjvcx8qifow8 which is using transcoder slot.  Used slots is now 1
Nov 03, 2021 15:50:35.195 [0x7feb51d15b38] DEBUG - [Transcode] Streaming Resource: Added session 0x7feb51c57638:1enksdxolzukdjvcx8qifow8
Nov 03, 2021 15:50:35.196 [0x7feb51d15b38] DEBUG - [Transcode] Streaming Resource: Reached Decision id=45032 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=60017 part=(id=61579 decision=transcode container=mp4 protocol=dash streams=(Video=(id=146326 decision=transcode bitrate=11959 encoder=libx264 width=1920 height=1080) Audio=(id=146327 decision=copy channels=2 rate=44100) Subtitle=(id=146328 decision=burn languageCode=eng location=embedded))))

May I have the full logs ZIP please?

Not possible to diagnose from a filtered log excerpt which is only showing a fragment of the encoding decision chain.

the same happens to me every 3-5 PMS updates.
i usually stop PMS, update nvidia drivers and start PMS. this resolves the issue for couple of months.

can I pm them to you? thanks btw :slight_smile:

mmm ye, I just tried this too. I have a few services on my docker stack that also uses the GPU and those are all behaving nicely so I’m hesitant thinking that it’s not my nvidia install that’s causing the issue…

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