Repository navigation
Description
What happened
With hardware acceleration set explicitly to qsv or vaapi and no hardware device set, Silo picks the first render node under /dev/dri for transcodes and for the hardware tone-map probe, whatever GPU vendor it belongs to. On a host whose first render node is another vendor's GPU, for example NVIDIA at renderD128 and Intel at renderD129 with hw_accel=qsv, QSV transcodes and the tone-map probe start on the NVIDIA node and fail.
The device also changes while the server runs. An explicit backend skips the detection walk, so nothing records a verified device at startup. The first detection walk, such as the one behind the admin hardware page (GET /api/v2/admin/system/hw-accel), records the Intel node, and from then on transcodes and the probe use it. The same configuration behaves differently before and after someone opens that page.
Encoder warmup already keeps only Intel nodes for QSV (hardwareEncoderWarmupDevices in internal/playback/encoder_warmup.go), so warmup warms a different GPU than the one transcodes use before that first walk.
This was found by reading the code during review of #5920, not on a running server. Detection with hw_accel=auto isn't affected, because the walk verifies the backend on a node of the right vendor before anything uses it.
Steps to reproduce
Not reproduced on a deployment; no mixed-vendor GPU host was available. From the source on main at 835131f:
- Run Silo on a host where
/dev/dri/renderD128is an NVIDIA GPU and/dev/dri/renderD129is an Intel GPU. - Set hardware acceleration to
qsvand leave the hardware device empty. - Start an HDR transcode before anyone opens the admin hardware page.
acquireHWDevicefinds no verified device and falls back todetectRenderDevice, the first openable render node:renderD128. - Open the admin hardware page, then start the transcode again. The walk has recorded
renderD129, and the transcode uses it.
Expected behavior
With an explicit qsv backend and no device, Silo should use an Intel render node from the start, the way encoder warmup and the auto walk already do, and keep using the same one.
Silo version / commit
Main at 835131f. After #5920 merges, the same fallback lives in defaultHWDevice, which the tone-map probe and acquireHWDevice share.
Deployment
Other
Area
Playback and transcoding
Clients affected
- Web UI
- Android
- iOS/tvOS/macOS
- Jellyfin-compat client (Infuse, Findroid, ...)
- Other/not client-specific
Relevant logs
No logs available; found by source trace.
Technical notes
- Fallback:
acquireHWDeviceininternal/playback/hwdevice.go(empty device, QSV/VA-API) takesVerifiedHWDevice(backend), elsedetectRenderDevice(defaultDRIDir)with no vendor check. fix(tonemap): probe hardware tone mapping on the GPU detection verified #5920 moves those two calls intodefaultHWDeviceand also uses it for the tone-map probe, so the probe now agrees with execution in both states. ResolveHWAccelWithFFmpegContextreturns an explicit backend without walking, and integrated startup runs no walk for it. The only walk on an API host is the admin hardware inventory (DetectHWAccelWithFFmpeg).- A fix could reuse warmup's vendor filter for the no-verified fallback (Intel nodes for QSV), or run the detection walk for an explicit QSV/VA-API backend before the first workload.
This follows #5920 and should start once it merges, because it changes the same function.
Source: found in review of #5920
Defect: silo-server internal/playback/hwdevice.go defaultHWDevice
AI harness
Claude Code in T3 Code
AI tool(s)
Claude Code (Bash, Read, Agent subagents), GitHub CLI gh
AI model(s)
claude-opus-5-5; review subagents on claude-opus-5-5 and claude-sonnet-5-5
AI involvement
Fully AI-generated, human verified
Independent or adversarial review
Found and traced by the multi-agent code review of #5920 at xhigh. A separate verifier traced both states, before and after the first walk, on main. Not reproduced live.
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Activity