ALVR: [Linux] Stuck on SW encoding and low quality image because NvEnc encoder can't be found

Description

The image is low quality (see screenshot below) and I cannot enable H265 or raise the bitrate to improve the quality, due to it being stuck on SW encoding because it can’t create NvEnc encoder. alvr client-20230221-024850 The log shows the following:

13:49:41.792332174 | [INFO] | CEncoder client connected, pid 15125, cmdline /home/edward/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor
-- | -- | --
13:49:41.801121277 | [INFO] | Using Vulkan device NVIDIA GeForce RTX 3060
13:49:41.906221973 | [INFO] | Using device path /dev/dri/renderD128
13:49:41.913010682 | [INFO] | Encoder: Using device: NVIDIA GeForce RTX 3060
13:49:41.913029853 | [INFO] | Encoder: Alignments:
13:49:41.913032666 | [INFO] | Encoder:     optimalBufferCopyRowPitchAlignment: 1
13:49:41.913035030 | [INFO] | Encoder:     minMemoryMapAlignment:              64
13:49:41.913038581 | [INFO] | Encoder:     minImportedHostPointerAlignment:    4096
13:49:41.913041736 | [INFO] | Encoder: Using queue family 0 (queues: 1) for graphics compute transfers
13:49:41.920012734 | [INFO] | FrameRender: Input size 3584x1952
13:49:41.923116536 | [INFO] | FrameRender: Output size 3584x1952
13:49:41.924369597 | [INFO] | failed to create NvEnc encoder: Failed to find encoder hevc_nvenc
13:49:41.934520595 | [ERROR] | error in encoder thread: HEVC is not supported by SW encoder
13:49:42.718841590 | [INFO] | Client 0122.client.alvr: [Info] Last log line repeated 82 times
13:49:42.718864035 | [INFO] | Client 0122.client.alvr: [Warning] Timed out when waiting for frame!
13:49:43.723588108 | [INFO] | Client 0122.client.alvr: [Info] Last log line repeated 90 times

General Troubleshooting

  • [YES] I carefully followed the instructions in the README and successfully completed the setup wizard
  • [YES] I read the ALVR Wikis here and here
  • Installed nvidia-utils and nvenc packages

Environment

Endeavour OS x86_64 XFCE (X11) - LightDM

Hardware

https://linux-hardware.org/?probe=e8963c4e59

CPU: Intel i7-10700k

GPU: GeForce RTX 3060

Audio: Scarlett Solo

Installation

ALVR Version: Nightly v20.0.0-dev07+nightly.2023.02.20

SteamVR Version: SteamVR 1.24.7

Install Type: Source

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions): PRETTY_NAME=EndeavourOS (see the hw-probe for more information)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 25

Most upvoted comments

Okay, @Vixea. I will post on the Nvidia forum. Keep this issue open in case I find a solution, so that if others have the same problem, they can refer to this thread for a solution.