Repository navigation
frontend: Say why a VA-API or QSV encoder from a profile is missing - #1841
Merged
zackees merged 2 commits intoOct 22, 2026
Merged
Conversation
A profile imported into the AppImage uses ffmpeg_vaapi_tex and obs_qsv11_v2, and the Missing Encoders dialog lists both as "Unknown (code: unknown)". The AppImage does not ship obs-qsv11, and obs-ffmpeg registers the VA-API encoders only when it finds a VA-API device that encodes the format, so each case has a reason to name. Add profile_missing_encoder_reason() (a stub that answers UNKNOWN for now) and tests: every QSV id reports a missing obs-qsv11 module, or no Intel GPU when the module is loaded; every VA-API id reports no VA-API device while obs-ffmpeg is loaded; x264, NVENC, AMF and near-miss ids stay unknown. Refs obs-rust#1720
The Missing Encoders dialog explained only x264 and NVENC and listed every other encoder as "Unknown (code: unknown)". A profile imported into the AppImage with ffmpeg_vaapi_tex and obs_qsv11_v2 showed exactly that, with nothing to act on. profile_missing_encoder_reason() now maps the QSV and VA-API encoder ids to their module. The dialog says "Module "obs-qsv11" not loaded" when the build has no QSV plugin (the AppImage), and that no Intel GPU can encode the format when it does. For VA-API, obs-ffmpeg registers an encoder only when a VA-API driver on the system encodes that format, so the dialog says VA-API cannot encode it here and points at vainfo, which shows whether the driver loads and which formats it encodes. Refs obs-rust#1720
rdoupe
force-pushed
the
fix/appimage-1720-encoder-missing-reasons
branch
from
October 22, 2026 22:54
aa2cbed to
ad7d5fc
Compare
6 of 7 tasks
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.
Refs #1720
What and why
A profile imported into the AppImage uses
ffmpeg_vaapi_tex(streaming) andobs_qsv11_v2(recording). On start, the Missing Encoders dialog listed both as "Unknown (code: unknown)". The dialog (upstream'sOBSBasic::CheckForMissingEncoders()) only explains x264 and NVENC; every other encoder falls through to "Unknown".Both encoders have a known cause:
build.py --qsvdefaults to false andappimage.yaml'sqsvinput is off until QSV is verified on real Intel hardware (README, "Left out of the AppImage"). The 0.1.0-beta.20261020 AppImage has noobs-qsv11.so; the .deb has it.--enable-vaapi. libva and the VA drivers come from the host through thelibobs-va*hostlib shims. obs-ffmpeg registersffmpeg_vaapi_texonly when the default render node's VA driver initializes and can encode H.264. The released AppImage registers it on an AMD host (Arch, Mesa 26.2), and on the same GPU in a stock Ubuntu 24.04 container withmesa-va-drivers. In the issue, the reporter'svainfoshows both Intel VA drivers failing to initialize (va_openDriver() returns -1), so the VA-API part is the host's driver, not OBS. This PR therefore only refs the issue.This change adds
profile_missing_encoder_reason()(Qt-free, inprofile-activate.h) and uses it in the dialog:Module "obs-qsv11" not loaded(codeplugin_not_loaded, upstream's string and KB anchor).qsv_no_device)vainfoto check that your GPU's VA-API driver loads and listsVAEntrypointEncSlicefor this format." (vaapi_not_supported). The wording covers every reason obs-ffmpeg skips the encoder: no driver, a driver that fails to initialize (the reporter's case), or one that cannot encode that format.Encoder fallback is unchanged and matches upstream. libobs creates a placeholder for the unregistered id ("Encoder ID 'obs_qsv11_v2' not found"), OBS keeps running, and the output fails when it starts. This PR does not turn QSV on in the AppImage, because that is a release packaging change. It needs libvpl in the glibc 2.28 build image and a run on Intel hardware.
RED → GREEN
test_profile_activateand a stub that answers UNKNOWN.test_missing_qsv_names_the_module(0 != 1) andtest_missing_vaapi_names_the_device(0 != 2) fail; 5 of 7 pass.test_encoder_fallback6/6,test_profile_remove4/4,test_frontend_api_call4/4,test_scene_collection_migration3/3.ci/test_plugin_locale.py: ok.uv run ci/local_gate.py --lane lint: ok.ffmpeg_vaapi_texandobs_qsv11_v2, on an AMD GPU (no Intel GPU). VA-API was made to fail withLIBVA_DRIVER_NAME=bogus, which makesvainfofail withvaInitialize failed, like the reporter's.obs_qsv11_v2:Module "obs-qsv11" not loaded (code: plugin_not_loaded);ffmpeg_vaapi_tex: the VA-API text above (vaapi_not_supported).obs_qsv11_v2: the Quick Sync text (qsv_no_device);ffmpeg_vaapi_texunchanged from the previous case.ffmpeg_vaapi_texregisters and is not listed; onlyobs_qsv11_v2(qsv_no_device) is.Checklist
master(or the description starts with a Stacked: note)docs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): built with scripting ON (PR CI builds no OBS app: rungh workflow run ci.yml --ref <branch>for the full builds) and cross-checked with clang and MSVC