protonscr

Steam Link NVENC issue

steamclosed NVIDIA driversStreamingDistro Family: Arch
ValveSoftware/steam-for-linux#10984 · opened 2024-06-15 by kokossVN · updated 2025-10-25 · 23 comments · github
KkokossVN 2024-06-15 github

Your system information

  • Steam client version (build number or date): 1718305227 ( Jun 14 )
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: Nvidia

Please describe your issue in as much detail as possible:

just set up Steam Link in headless mode and chose NVIDIA NVENC for encoding. Yesterday, I connected to Steam Link, but all the games felt really laggy. Then I noticed the encoder was set to libx264.

Steps for reproducing this issue:

KkokossVN 2024-06-15 github
Ttnbp 2024-06-29 github

This is also an issue for me, using the current stable 555 driver, on openSUSE. With 550, my machine encodes using NVENC, but Wayland is awful. On 555, it falls back to libx264 on both Wayland and X11.
I can still use NVENC in HandBrake/ffmpeg.

Jjasonsansone 2024-07-16 github

I tested 550 and 555. I am on X11, haven’t tested Wayland. NVENC works in Plex, handbrake, and ffmpeg. Does anyone know if there is an nVidia driver that does work I can roll back to but also supports kernel 6.8?

JJcwscience 2024-07-20 github

I am also experiencing this issue on the 555.58.02 driver (proprietary and open). Running steam from the command line shows that the HEVC encoding pipeline is started and the libnvenc library appears to load, however it returns a generic error 20 as soon as the first frame is sent and falls back to libx264.

Rrstrube 2024-07-24 github

I can also confirm that I am experiencing the same issue with the open nvidia 555.58.02 driver. After the remote play client connects, the host attempts to begin encoding with NVENC but the first frame fails. It then falls back to VA-API which also fails.

Note: I do have the NVDEC based backend for VA-API installed on my system - arch package libva-nvidia-driver - but this is designed specifically to support VA-AAPI decoding within Firefox so I wouldn't expect it to work for remote play encoding.

Finally it falls back to software encoding which succeeds.

In the past NVENC encoding was working correctly on my remote play host machine. I have not tested NVENC for other applications, but ffmpeg lists it as a valid encoder.

JJcwscience 2024-07-26 github

The issue is present on the 560.28.03 beta driver as well.

JJcwscience 2024-08-10 github

I think the issue may stem from the removal of legacy encoding profiles in newer driver versions. Can someone with access to the code base check on this?

Kkevindherdt 2024-08-23 github

No solution for this?

Ttnbp 2024-09-02 github

I think the issue may stem from the removal of legacy encoding profiles in newer driver versions. Can someone with access to the code base check on this?

I think this sounds very plausible and is almost definitely what happened, especially seeing as NVIDIA has announced the removal of some older presets for "Q1'24": https://discourse.gstreamer.org/t/nvcodec-nvenc-nvidia-deprecates-support-for-old-videocodec-sdk-h-264-hevc-encoder-presets-with-driver-r550-in-q124/182 (Link contains a "migration guide", also found here: https://docs.nvidia.com/video-technologies/video-codec-sdk/12.1/nvenc-preset-migration-guide/) (EDIT: I just saw you already posted that in #11176)

This would mean that everything is working as expected, Valve just need to update their software to make use of the new presets. DISCLAIMER: This is, of course, speculation.

Rrstrube 2024-09-13 github

I was curious if there's been any solutions people have found - for instance is there a way to re-enable the older preset manually (if that is indeed the problem)?

I haven't been able to use Remote Play for a couple of months at this point - it would be great to be able to stream from my gaming PC to my SteamDeck again!

33ster 2024-10-04 github

This is still an issue after the October 2nd beta patch that (probably) touched encoding code adding AV1 encoding.

Ttedb04 2024-10-14 github

Yeah, this is frustrating - I'm facing the same issue. I upgraded the GPU in my headless docker host around the same time this issue popped up and I was wondering why my framerate was so bad.

Hhugoplanell 2024-10-17 github

I'm facing the same issue too :(

Hhannemann 2024-10-20 github

I solved it for me using my Intel iGPU. Had to install the 32 bit driver in my headless steam. Maybe this works also on a non headless installations. See https://github.com/Steam-Headless/docker-steam-headless/issues/161#issuecomment-2425182344

Kkevindherdt 2024-10-21 github

I solved it for me using my Intel iGPU. Had to install the 32 bit driver in my headless steam. Maybe this works also on a non headless installations. See https://github.com/Steam-Headless/docker-steam-headless/issues/161#issuecomment-2425182344

I am happy that u found a workaround but this is not a solution for people without igpu.

I hope they can fix it soon because using sunshine isn't ideal and has some very annoying bugs too.

Ttemporaryroman0 2024-10-28 github

I have the same issue using an RTX 2060 Super and nvidia-open 560 drivers. OBS uses NVENC just fine.
NVENC - Submitting frame for encoding failed: 20
Failed to initialise VAAPI connection: -1 (unknown libva error).
Capture method set to Desktop OpenGL NV12 + libx264 main (4 threads)

Ttnbp 2024-11-18 github

Come on Valve--this blocks all of your Linux users with NVIDIA GPUs from using Steam Link, which according to your Hardware Survey is three quarters of them. This can't be hard to fix, can it?

Rrstrube 2024-11-18 github

I agree it's super frustrating. I've switched over to using Sunshine / Moonlight for the time being and it's working quite well. I wish I didn't need to install extra software on my host machine to get things working though...

Ttnbp 2024-11-26 github

somebody test this, they just included a fix in the latest beta

33ster 2024-11-26 github

Seems to be working on latest beta client on Fedora 41, RTX 4070, driver version 565.57.01. Debug overlay is showing nvenc hevc and there aren't any processes using copious amounts of CPU.

Ttnbp 2024-11-26 github

Can confirm: NVENC works here (560 driver, 2080Ti), though it doesn't seem to do HEVC right now (X11 Desktop capture + libyuv + NVENC H.264). Are you sure yours does H.265? (Mine did before.)

Anyway, this is much better than before.

33ster 2024-11-26 github

Client debug stats are definitely claiming HEVC:
IMG_1744

DDuzAwe 2025-10-25 github

I am having this issue currently on cachyOS. 580.95.05 driver