Hardware transcoding with nvenc suddently stopped working for live streams only

Despite the nvenc plugin being deprecated, I have been using it with great success in combination with the official Docker container and the Nvidia container toolkit.

However somewhere in Peertube version 8.1 or 8.2 a problem started to happen with hardware assisted transcoding of livestreams. I can’t pin it down to the exact version as I am not using livestreams that often, but it was working fine on version 8.0.

It also continues to transcode VOD videos with nvenc just fine, and livestreams work fine when I switch to the default CPU encoder.

But as soon as I turn the nvenc one back on for livestreams, the OBS connections break shortly after connecting and then reconnect but in a broken state and the actual livestream as far as Peertube is concerned never starts.

I am guessing something changed with the ffmpeg that is bundled with the official container in the latest versions which breaks the nvenc plugin, but it really isn’t clear to me what it might be.

The error in the Peertube container logs seems to be: ffmpeg error: exit with code 234 Conversion failed (shortend). The ffmpeg version in the container is 7.1.5-0+deb13u1.

Has anyone seen anything similar or might have an idea what change on the Peertube (container) side might be responsible?

Thanks!