I tried a bunch of files that were encoded with B-frames set to 5, I can’t explain why, but they would not play with the buffer set less than 3xB-frame setting.
Unfortunately I don’t know what the B-frame setting was on the 10 files above. Mediainfo doesn’t report B-frame information, and for some reason ffprobe is broken.
So the topic is still open? ![]()
Yes, Topic still open.
We’re narrowing in on it.
Can you please test for me:
- Any Nvidia 525 driver (I’m using 525.60.13)
- PMS 1.29.2.6364
Hardware transcoding errors should be gone.
I ask this because we’re getting multiple reports of normal transcoding when using PMS 1.29.2.6364.
It was discovered last night. We’re trying to run it down and set a “known good” datapoint.
Sorry, I’m on a business trip right now for a week… May @zenon222 can do that test? ![]()
I currently have 525.60.11 installed, close enough?
When I install this new version do I remove the framebuffer flag?
I’ll look at it tonight.
I’d try it both ways. There’s no harm. PMS 1.29.2 has no knowledge of it.
PMS 1.29.2 should silently remove the flag since it has no knowledge of it.
everything plays completely fine.
Does this mean I can install 1.31.0.6654 and everything should work? ![]()
I was testing 1.29.2.6364, my understanding is that code development is still in the works for this bugfix.
1.31.0.6654 is a step in the right direction.
The problem with this is we’ve not identified the exact root cause because everyone’s files, while failing with the same errors, don’t fail for everyone.
Those cases, where the failures were reproducible by us as well have been addressed in 1.31.0.6654 but I doubt this is resolved yet.
( The 1080p input bit rate reduction transcoding problem )
I believe we all saw the most stable operation at 1.29.2.6364 and CUDA version 11.7
(pre 525 drivers)
With 1.30.x, AV1 decoding is now included for those with the capability.
Whether it’s FFMPEG core, or the transcoder, the updated transcoding with the updated (required) Nvidia drivers, is where we now see failures.
Feature wise, there is little difference between 1.29.2 and 1.30.x at this point.
The choice is yours whether to upgrade or not.
Just want to bump this again. I have HEVC files where HW transcoding fails at anything above 720p. I’m running PMS 1.31.1.6733 with Nvidia 525.89.02 on a GTX 1660 Super.
I don’t think this is a driver or hardware issue, because the exact same files can be transcoded to H246/1080p just fine through Jellyfin, which uses ffmpeg
I see 1.31.2.6783 is out now, has this issue been resolved?
The CUDA issue is solved.
There were other issues which are also solved in this update.
A fair number of important problems got fixed.
looks to be working. thanks!
This seems to still be an issue for me on 1.31.2.6783. I recieve the following in the logs when trying to force transcoding:
ERROR - [Req#271/Transcode] [FFMPEG] - cu->cuInit(0) failed
ERROR - [Req#271/Transcode] [FFMPEG] - -> CUDA_ERROR_UNKNOWN: unknown error
ERROR - [Req#271/Transcode] [FFMPEG] -
DEBUG - [Req#271/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
DEBUG - [Req#271/Transcode] Could not create hardware context for h264
DEBUG - [Req#271/Transcode] Streaming Resource: Reducing playback quality for 1428kbps stream bitrate: video resolution to 640x480, audio channels to 2, quality to 17, disable video DS as 8081kbps is > the 1290kbps available, disable audio DS as 255kbps is > the 123kbps available
DEBUG - [Req#271/Transcode] Codecs: testing h264_nvenc (encoder)
DEBUG - [Req#271/Transcode] Codecs: hardware transcoding: testing API nvenc
nvidia-smi shows the latest drivers for my card (525.89.02) and CUDA version 12.
- Which Nvidia card ?
- May I see the full DEBUG logs ZIP which contains this? (I can’t diagnose a snippet)
You logs show it being found.
Mar 10, 2023 19:35:27.043 [0x7f43370dbb38] DEBUG - [GPU] Got device: GP107GL [Quadro P400], nvidia@unknown, default true, best true, ID /dev/dri/renderD129, DevID [10de:1cb3:10de:11be], flags 0x7
Mar 10, 2023 19:35:27.043 [0x7f43370dbb38] DEBUG - [GPU] Got device: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller, intel@builtin, default false, best false, ID /dev/dri/renderD128, DevID [8086:0412:1458:d000], flags 0x11
In your Preferences.xml file, with Plex stopped, try this:
HardwareDevicePath="/dev/dri/renderD129"
Your Preferences.xml should look like this: (it’s the last pref in the file)
SomeOtherPref="Value" HardwareDevicePath="/dev/dri/renderD129" />
I’m still having the same CUDA_ERROR_INVALID_VALUE error with the latest update with a quadro p2000 on version 515.86
Are you using Docker in a VM?
Mar 10, 2023 20:48:16.373 [0x7f9055bd8b38] INFO - Plex Media Server v1.31.1.6782-77dfff442 - Docker Docker Container (LinuxServer.io) x86_64 - build: linux-x86_64 debian - GMT 00:00
Mar 10, 2023 20:48:16.374 [0x7f9055bd8b38] INFO - Linux version: 5.15.0-67-generic, language: en-US
Mar 10, 2023 20:48:16.374 [0x7f9055bd8b38] INFO - Processor: 6-core Common KVM processor
Mar 10, 2023 20:48:16.374 [0x7f9055bd8b38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv 9b997da8e5b47bdb4a9425b3a3b290be393b4b1f)
Mar 10, 2023 20:48:16.374 [0x7f9055bd8b38] INFO - /usr/lib/plexmediaserver/Plex Media Server
How many layers are involved ? Looks like you have a few there.
PLEASE enable DEBUG logging again. (Turning it off saves nothing as logs are limited)
Playback again for 30 seconds
Stop playback
Download logs ZIP
Attach ZIP
You can upgrade to Ubuntu-provided default versions.
Make certain to update initramfs and reboot after updating drivers
[chuck@lizum docker.2039]$ nvidia-smi
Fri Mar 10 16:09:48 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.60.13 Driver Version: 525.60.13 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 Quadro P2200 On | 00000000:07:00.0 Off | N/A |
| 48% 37C P8 4W / 75W | 1MiB / 5120MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
[chuck@lizum docker.2040]$

