NixOS / NixOS/nixpkgs

ALVR: Errors with 'Failed to create VAAPI encoder'

Open
#469,740 25 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0.kind: bug 2.status: wait-for-upstream
Dominant language
Nix
Stars
26.2k
Forks
20.1k
PR merge metrics
PR metrics pending

Description

Nixpkgs version
  • Unstable (26.05)
Describe the bug

ALVR starts fine, but trying to use it results in the following error messages:

Failed to create VAAPI encoder: filter_in creation failed: Invalid argument
Please make sure you have installed VAAPI runtime

Encoder: Setting BufferSourceContext.pix_fmt to a HW format requires hw_frames_ctx to be non-NULL!

Steps to reproduce
  1. Run ALVR
  2. Try to connect from a HMD (Quest 3 in my case)
  3. Witness visual artifacts as the connection dies and receive errors on the desktop
Expected behaviour

It doesn't error

Screenshots

No response

Relevant log output

Additional context

Was first reported upstream https://github.com/alvr-org/ALVR/issues/3134

ALVR version 20.14.1 on 25.11/unstable appears to have this behavior. Reproduced with various kernels including default. 20.13.0 on 25.05 seemed to work fine for me.

System metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 6.18.0-cachyos, NixOS, 26.05 (Yarara), 26.05.20251208.addf7cf`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.31.2+1`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/store/98mad1s6hrryyflb6qf6hd4xyb8r7cy4-source`

Note: I also tried 25.11 stable as well as the latest 6.18.0 kernel from nixpkgs

Notify maintainers

@LuNeder
@jopejoe1


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs
Is this issue important to you?

Add a 👍 reaction to issues you find important.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with upstream ALVR issue #3134, then inspect the nixpkgs ALVR package definition and compare the 20.13.0 and 20.14.1 packaging or runtime inputs. Reproduce the Quest connection failure on the affected NixOS versions and verify that ALVR connects without VAAPI encoder errors or visual artifacts.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.