Heres a bit more information. This is with nvdecExtraFrames set to 32. First is what it looks like as its failing (usage from nvidia-smi and a tail -10 of the plex logs). Followed up by the 4k hevc properly transcoding.
Failed hevc 8bit transcode
Tue Jan 31 16:21:25 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.05 Driver Version: 525.85.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| 0% 49C P0 48W / 130W | 296MiB / 6144MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 35673 C ...diaserver/Plex Transcoder 292MiB |
+-----------------------------------------------------------------------------+
Jan 31, 2023 16:21:25.228 [0x7fea77073b38] ERROR - [Req#3123/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] Error while decoding stream #0:0: Generic error in an external library
Jan 31, 2023 16:21:25.229 [0x7fea7479cb38] ERROR - [Req#3124/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] [hevc @ 0x7fcf5508f240] Could not find ref with POC 897
Jan 31, 2023 16:21:25.229 [0x7fea77073b38] ERROR - [Req#3125/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] [hevc @ 0x7fcf5508f240] No decoder surfaces left
Jan 31, 2023 16:21:25.229 [0x7fea7479cb38] ERROR - [Req#3126/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] [hevc @ 0x7fcf5508f240] decoder->cvdl->cuvidDecodePicture(decoder->decoder, &ctx->pic_params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
Jan 31, 2023 16:21:25.229 [0x7fea77073b38] ERROR - [Req#3127/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] [hevc @ 0x7fcf5508f240] hardware accelerator failed to decode picture
Jan 31, 2023 16:21:25.229 [0x7fea7479cb38] ERROR - [Req#3128/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] Error while decoding stream #0:0: Generic error in an external library
Jan 31, 2023 16:21:25.230 [0x7fea77073b38] ERROR - [Req#3129/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] [hevc @ 0x7fcf5508f240] No decoder surfaces left
Jan 31, 2023 16:21:25.230 [0x7fea7479cb38] ERROR - [Req#312a/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] [hevc @ 0x7fcf5508f240] decoder->cvdl->cuvidDecodePicture(decoder->decoder, &ctx->pic_params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
Jan 31, 2023 16:21:25.230 [0x7fea77073b38] ERROR - [Req#312b/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] [hevc @ 0x7fcf5508f240] hardware accelerator failed to decode picture
Jan 31, 2023 16:21:25.230 [0x7fea7479cb38] ERROR - [Req#312c/Transcode/ci9b8ylxcxrmmq7wmvevjiqt/bf21209f-cd9a-43a4-b76c-c17feaeb2ea0] Error while decoding stream #0:0: Generic error in an external library
Transcoding the 4k hevc 10bit (It plays properly not sure what the VAAPI errors are about, maybe that was when I changed the web player from auto to 20MB/s)
Tue Jan 31 16:23:38 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.05 Driver Version: 525.85.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| 0% 50C P0 52W / 130W | 1406MiB / 6144MiB | 8% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 35973 C ...diaserver/Plex Transcoder 1402MiB |
+-----------------------------------------------------------------------------+
Jan 31, 2023 16:22:29.609 [0x7fea77073b38] WARN - [Req#327d/Transcode] Got a transcode session ping without a valid session ID.
Jan 31, 2023 16:22:59.618 [0x7fea77073b38] WARN - [Req#329a/Transcode] Got a transcode session ping without a valid session ID.
Jan 31, 2023 16:23:24.752 [0x7fea77073b38] ERROR - [Req#32b5/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 31, 2023 16:23:25.047 [0x7fea77073b38] ERROR - [Req#32b5/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 31, 2023 16:23:32.537 [0x7fea77073b38] ERROR - [Req#3313/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 31, 2023 16:23:32.843 [0x7fea77073b38] ERROR - [Req#3313/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 31, 2023 16:23:33.145 [0x7fea77073b38] ERROR - [Req#3313/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 31, 2023 16:23:33.447 [0x7fea77073b38] ERROR - [Req#3313/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 31, 2023 16:23:33.685 [0x7fea77073b38] ERROR - [Req#3313/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 31, 2023 16:23:33.922 [0x7fea77073b38] ERROR - [Req#3313/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
I have also tested downgrading my drivers to 515.76 which are based on CUDA 11.7 and have the same issue
Tue Jan 31 17:05:23 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.76 Driver Version: 515.76 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| 0% 42C P0 44W / 130W | 295MiB / 6144MiB | 2% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 49199 C ...diaserver/Plex Transcoder 291MiB |
+-----------------------------------------------------------------------------+
Jan 31, 2023 17:05:22.091 [0x7f4b028afb38] ERROR - [Req#8c38/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] Error while decoding stream #0:0: Generic error in an external library
Jan 31, 2023 17:05:22.091 [0x7f4b03acab38] ERROR - [Req#8c39/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] [hevc @ 0x7f038c81bc80] Could not find ref with POC 897
Jan 31, 2023 17:05:22.091 [0x7f4aff7b4b38] ERROR - [Req#8c3a/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] [hevc @ 0x7f038c81bc80] No decoder surfaces left
Jan 31, 2023 17:05:22.092 [0x7f4b02cb5b38] ERROR - [Req#8c3b/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] [hevc @ 0x7f038c81bc80] decoder->cvdl->cuvidDecodePicture(decoder->decoder, &ctx->pic_params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
Jan 31, 2023 17:05:22.092 [0x7f4afe3a3b38] ERROR - [Req#8c3c/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] [hevc @ 0x7f038c81bc80] hardware accelerator failed to decode picture
Jan 31, 2023 17:05:22.092 [0x7f4b02ab2b38] ERROR - [Req#8c3d/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] Error while decoding stream #0:0: Generic error in an external library
Jan 31, 2023 17:05:22.092 [0x7f4b030bbb38] ERROR - [Req#8c3e/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] [hevc @ 0x7f038c81bc80] No decoder surfaces left
Jan 31, 2023 17:05:22.093 [0x7f4aff9b7b38] ERROR - [Req#8c3f/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] [hevc @ 0x7f038c81bc80] decoder->cvdl->cuvidDecodePicture(decoder->decoder, &ctx->pic_params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
Jan 31, 2023 17:05:22.093 [0x7f4afe1a0b38] ERROR - [Req#8c40/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] [hevc @ 0x7f038c81bc80] hardware accelerator failed to decode picture
Jan 31, 2023 17:05:22.093 [0x7f4b0182db38] ERROR - [Req#8c41/Transcode/wii7ye256muu1yabw2bzd27m/3decc53f-5c00-4cfb-a876-249a712a84a3] Error while decoding stream #0:0: Generic error in an external library```