Repository navigation
frontend: Name the cause and the fix when a VA-API encoder is missing - #1872
Merged
Merged
Conversation
profile_vaapi_diagnose() is a stub that always answers NO_ENCODE, so the new test_profile_activate cases for no render node, NVIDIA only, no render-group access and a missing driver (with each distribution's install command) fail. Refs #1862
…missing profile_vaapi_diagnose() walks /dev/dri/renderD128-135, skips NVIDIA devices, checks that the user can open the device and that a VA-API driver for the GPU vendor is installed, and picks the install command from /etc/os-release. The Missing Encoders dialog shows that cause and its fix, and logs it as a VAAPI: line. A build without obs-qsv11 says to choose another encoder for Streaming and Recording. Fixes #1862
zackees
marked this pull request as ready for review
October 23, 2026 03:11
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1862 (part of #1866).
The Missing Encoders dialog now names why a VA-API encoder is missing and how to fix it. These are the support rounds from #1720, now done by OBS:
/dev/dri/renderD*sudo usermod -aG render,video $USER, then log in againsudo apt install intel-media-va-driver-non-free/mesa-va-drivers, or the dnf/pacman equivalent; the package name on other distrosA
VAAPI:warning in the log records the same cause. A build without obs-qsv11 (the AppImage) now says to choose another encoder for Streaming and Recording; #1720's last warning was the recording encoder.Design. A Qt-free
profile_vaapi_diagnose()next to #1841'sprofile_missing_encoder_reason(). It reads the host through an injected table (read_file,exists,can_open_rw), with plain stdio in production. There is no libva in the frontend and no new host code or OS headers.RED 50b0008: a stub always returning
NO_ENCODE. The new cases fail at the first one (test_vaapi_no_render_node:4 != 0).GREEN 941bc35: all 14
test_profile_activatecases pass.CI cost. The seven new cases go into the existing
test_profile_activatebinary, use fakes only (no fixture dirs, no permissions), and run in microseconds. No new executable or lane.Local evidence.
./unittest's Tier 2 lane currently fails to linklibobs.so.30itself on this host (unrelated to this change), so I ran the cases through a scratch harness that includes the real test file: RED fails as above, GREEN prints all cases passing. The diagnosis on this machine's real host (two NVIDIA GPUs, RTX 3060 + RTX 2080 Ti) returnscause=NVIDIA device=/dev/dri/renderD128 vendor=0x10de, which is correct. I haven't run the dialog itself in the app; CI's Qt lane builds the frontend.Tiers: Tier 1/3 don't apply (new frontend C, no Rust or C original); Tier 2 is the cmocka cases above.