Skip to content

[bug] Explicit QSV or VA-API with no device uses the first render node of any vendor until a detection walk runs #5921

Backlog

Description

@Quick104

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:

  1. Run Silo on a host where /dev/dri/renderD128 is an NVIDIA GPU and /dev/dri/renderD129 is an Intel GPU.
  2. Set hardware acceleration to qsv and leave the hardware device empty.
  3. Start an HDR transcode before anyone opens the admin hardware page. acquireHWDevice finds no verified device and falls back to detectRenderDevice, the first openable render node: renderD128.
  4. 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: acquireHWDevice in internal/playback/hwdevice.go (empty device, QSV/VA-API) takes VerifiedHWDevice(backend), else detectRenderDevice(defaultDRIDir) with no vendor check. fix(tonemap): probe hardware tone mapping on the GPU detection verified #5920 moves those two calls into defaultHWDevice and also uses it for the tone-map probe, so the probe now agrees with execution in both states.
  • ResolveHWAccelWithFFmpegContext returns 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

  1. added
    bug
    on Dec 6, 2026
  2. added
    impact: playback
    priority: P2
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: playbackpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions