Add /app/emby/lib/dri to LIBVA_DRIVERS_PATH for Intel VA-API/QSV#117
Merged
aptalca merged 1 commit intoJun 19, 2026
Merged
Conversation
Emby bundles its VA-API drivers (iHD, i965, radeonsi, etc.) under /app/emby/lib/dri on the beta image, but the service's LIBVA_DRIVERS_PATH only searched /usr/lib/x86_64-linux-gnu/dri (empty) and /app/emby/extra/lib/dri (not populated on beta). libva then failed to load any driver and Emby reported 'Failed to initialize VA /dev/dri/renderD128. Error -1', falling back to software transcoding on any Intel GPU. Adding /app/emby/lib/dri to the search path lets libva find the bundled driver. Validated on an Intel iGPU: emby:beta went from 'Error -1' to detecting the Intel iHD driver with full codec enumeration. Harmless on images that ship the driver in extra/lib/dri (path simply ignored). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
Thanks for opening this pull request! Be sure to follow the pull request template!
aptalca
approved these changes
Jun 19, 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.
Description:
Adds
/app/emby/lib/dritoLIBVA_DRIVERS_PATHin the Emby service run script (root/etc/s6-overlay/s6-rc.d/svc-emby/run).On the beta image, Emby ships its bundled VA-API drivers (iHD, i965, radeonsi, etc.) under
/app/emby/lib/dri, but the service'sLIBVA_DRIVERS_PATHonly searched/usr/lib/x86_64-linux-gnu/dri(empty) and/app/emby/extra/lib/dri(not populated on beta). libva therefore couldn't find any driver, and Emby reported:…for both VAAPI and QuickSync, silently falling back to software (libx264) transcoding on any Intel GPU (Arc dGPU or iGPU). Adding
/app/emby/lib/drito the search path lets libva locate the bundled driver. It's appended after the existing entries, so it's harmless on images that ship the driver inextra/lib/dri(the path is simply ignored when empty).A changelog entry has been added to
readme-vars.yml.Benefits of this PR and context:
Restores out-of-the-box Intel hardware transcoding (VAAPI/QSV) on the beta image, which is currently broken for all Intel GPUs. Without this, users get software transcoding with no indication of why hardware acceleration fails. The stable (
latest) image is unaffected because it ships the driver inextra/lib/dri, which is already on the path — but beta moved the driver tolib/dri, exposing the gap.How Has This Been Tested?
Ran Emby's own detection command (
ffdetect vaencdec) inside thelscr.io/linuxserver/emby:betacontainer with the service's exact environment, against a real Intel/dev/dridevice, before and after the change:Failed to initialize VA /dev/dri/renderD128. Error -1, empty Driver, no codecs.Intel iHD driver for Intel(R) Gen Graphics - 25.3.4, full decode/encode codec enumeration (H264, HEVC, MPEG2, VC1, etc.).Test environment: Intel UHD Graphics iGPU,
/dev/dri/renderD128, image base Ubuntu 24.04 (noble), Emby 4.10.0.x.Source / References:
N/A