Server Version#: Version 1.23.2.4600
Player Version#: Version 4.57.4
Platform: Linux (Kernel 5.10.27-gentoo / x86_64 Intel(R) Xeon(R) E-2124 CPU @ 3.30GHz) - No VM
GPU: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB]
Hey Plex Forum,
I’m not sure if this is a bug or if I fail to understand what’s happening here. I’ve done my part and searched the forum but couldn’t identify a related issue.
Here’s what’s going on:
I’m on Plex Pass and use HW Transcoding to support multiple simultaneous streams (wife, kids’ ipads, etc.). This all worked like a charm for years… until I upgraded to the current version that is released for Plex Pass customers. I believe it worked fine until the 1.22 release.
Switching back to the non-Plex Pass release 1.22 it works fine and as expected; I hope you understand that I want to live on the bleeding edge, so downgrading is not a permanent solution for me ;-).
Judging by the logs, it appears to be an issue related to Plex’ internal transcoding engine not being able to load the CUDA extensions:
[Transcode] Codecs: hardware transcoding: testing API vaapi
[Transcode] [FFMPEG] - libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
[Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error
[Transcode] Codecs: testing h264_nvenc (encoder)
[Transcode] Codecs: hardware transcoding: testing API nvenc
[Transcode] [FFMPEG] - Cannot load libcuda.so.1
[Transcode] [FFMPEG] - Could not dynamically load CUDA
[Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
[Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
[Transcode] Codecs: hardware transcoding: testing API vaapi
[Transcode] [FFMPEG] - libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Any help is sincerely appreciated as my CPU bogs down with more than one 4K stream.
Small correction: It used to work on PMS 1.22. Now that the public version is bumped to 1.23, it is also affected. Some change from 1.22 to 1.23 has caused this issue.
If it were the changes made for 1.23.x, everyone would be screaming too.
1.23.x represents a compiler change. Everything would break. The other 11th Gen CPUs in use wouldn’t be working. There are user who have success with it.
Here is the thread where a user has it working and has documented exactly how to do it.
I hope you trust me when I say that I am not kidding now:
I have pulled an old .deb file of plex-media-server-1.22.3.4523, installed it without changing ANYTHING else. Transcoding works perfectly now on this version, despite my Preferences.xml pointing at renderD128… I’m really puzzled now.
Have a look:
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 9675 C ...diaserver/Plex Transcoder 206MiB |
+-----------------------------------------------------------------------------+