Skip to content

fix(tonemap): ship Intel's legacy OpenCL runtime and log the probe result - #3660

Merged
Quick104 merged 4 commits into
Silo-Server:mainfrom
blurbery:fix/intel-legacy-opencl-runtime
Nov 9, 2026
Merged

Quick104 merged 4 commits into
Silo-Server:mainfrom
blurbery:fix/intel-legacy-opencl-runtime

Conversation

@blurbery

@blurbery blurbery commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #3630
Closes #610
Related issue: #1171
Validation tasks: unblocks #1173 C3 and #1174 C3 on Gen8 to Gen11 Intel GPUs; can reach a passed C3 result on newer Intel GPUs, which now have a second OpenCL ICD installed beside the one they use

On Intel GPUs from Gen8 to Gen11 (UHD 630, Jasper Lake and the Celerons in a lot of NAS boxes), hardware HDR tone mapping never works. Silo detects QSV and SDR transcodes run on the GPU, but every HDR to SDR transcode falls back to libx264 with tonemapx. With software tone mapping turned off, playback is refused with "no validated HDR-preserving or tone-map recipe is installed". Nothing in the log says why.

Intel HDR tone mapping goes through tonemap_opencl, and the image only ships Intel's current compute runtime (26.18). That runtime dropped Gen8 to Gen11, so the probe's -init_hw_device opencl=ocl@va fails with "No such device". The probe throws its smoke failures away, so the operator is left with a software session and no reason.

This change installs Intel's legacy runtime alongside the current one, and makes the probe log what it validated and why hardware failed.

Approach

  • Dockerfile and Dockerfile.dev (amd64 only) now also install intel-opencl-icd-legacy1 24.35.30872.36 and its IGC 1.0.17537.24 compiler, the same packages and versions Jellyfin's image uses for these GPUs. They sit next to the current runtime with their own ICD file, so newer GPUs keep using the runtime they use today. The runtime downloads also retry now, like the PGDG key fetch already does.

  • internal/tonemap logs the probe result once per distinct outcome:

    • an info line listing the executors and source kinds that validated;
    • a warning with FFmpeg's error lines when a configured hardware backend validated nothing;
    • a warning naming the command that ran out of time when the probe didn't finish.

    An incomplete result is re-probed every 15 seconds, and a probe that times out runs again on the next request, so the lines are de-duplicated by the probe cache key and only repeat when the result changes. FFmpeg's @ 0x… pointers are stripped from the error first, because they differ on every run. Playback behaviour and the capability results are unchanged.

One unrelated test fix rides along: TestJellyfinFetchPlayedSince_RestartsWhenAPlayMovesTheList failed on this PR twice in a row. Its fake Jellyfin server moved an item only after writing the first page, so a client that had already decoded that page could fetch the next one from the unmoved list. The server now moves the item before writing and guards the list with a mutex. I can split it into its own PR if you'd rather.

Validating Intel's VAAPI tone mapper as a fallback when OpenCL is missing (also suggested on #610) would bring back the colour problems from #2414, so I left it out.

Validation

  • go test ./internal/tonemap/ -count=1 and go vet ./internal/tonemap/ pass. internal/playback, internal/transcodenode and internal/downloads build. The new test covers a probe that times out, a hardware smoke that fails with a changing FFmpeg pointer, an unchanged re-probe that must not log again, and a recovered GPU.
  • go test -race ./internal/historyimport/ -run TestJellyfinFetchPlayedSince -count=50 passes with the test fix, and the whole package passes.
  • Lint: not run locally. CI's changed-line lint covers it.
  • Docker image: PR CI doesn't build the image, and I couldn't run a full docker build on my test host (BuildKit can't apply AppArmor profiles inside its LXC container). Instead I took my current image, which has the same Dockerfile and internal/tonemap as main, and ran this branch's new Intel runtime RUN step on it unchanged, apart from where the packages came from. The three legacy packages installed beside the current ones with no conflicts. github.com/<owner>/<repo>/releases/download URLs were returning 504 from two networks at the time, so I fetched the same seven .deb files through the GitHub API. The first full image build of main after merge is the real check of the Dockerfile.
  • Hardware: tested on an Intel Arc A310 (Gen12.5) only. I don't have a Gen8 to Gen11 machine. To show what those GPUs see, I hid the OpenCL ICDs from the container, which gives the same "No such device" failure. A reporter on [bug] Intel Quick Sync falls back to software transcoding when processing HDR content (HEVC 10-bit → H.264 SDR) #3630 or [bug] Image ships OpenCL ICD loader without a driver — tonemap_opencl unusable, the only GPU HDR tone-map path on Gen11 #610 confirming on a UHD 630 or Jasper Lake box would close that gap.
  • Not covered: on this A310 host, every hardware smoke (QSV and VAAPI) takes more than the probe's 5-second command limit, both before and after this change, so I couldn't show a hardware result passing. The new timeout warning is what made that visible. It looks specific to this host and is out of scope here.

Evidence

Same host, GPU and FFmpeg build, with the image I run today (before) and the same image plus this branch's runtime step and probe (after). The probe was run through a small throwaway helper that calls tonemap.Probe directly and prints the result. Pointers and the PCI address are trimmed.

Surface and build: server log and container contents, before = image built from main with the Dockerfile and internal/tonemap unchanged, after = that image plus commit e48d410.

OpenCL runtime in the image

Before After
intel-opencl-icd 26.18.38308.1-0
intel-igc-core-2 2.34.4
intel-igc-opencl-2 2.34.4
ICDs: intel.icd
intel-opencl-icd 26.18.38308.1-0
intel-opencl-icd-legacy1 24.35.30872.36
intel-igc-core-2 2.34.4, intel-igc-core 1.0.17537.24
intel-igc-opencl-2 2.34.4, intel-igc-opencl 1.0.17537.24
ICDs: intel.icd, intel_legacy1.icd
Arc A310, -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl=ocl@va: opens Same command: opens (the extra ICD doesn't get in the way on a newer GPU)

Probe result when OpenCL can't open the GPU (ICDs hidden, the failure Gen8 to Gen11 GPUs hit today)

Before, the probe silently returns software only:

capabilities: [{"mode":"software","backend":"software","filter":"tonemapx",...}]

After, the same result plus a warning:

level=WARN msg="hardware HDR tone mapping is unavailable, so HDR transcodes tone map in software or are refused when software tone mapping is off" component=tonemap ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg software_filter=tonemapx software_kinds=pq,hlg,hlg_bt709,sdr_bt709,sdr_bt2020,pq_full_range,dolby_vision hardware_backend=qsv hardware_device=/dev/dri/renderD128 hardware_filter=tonemap_opencl hardware_kinds="" reason="the hardware tone-map test conversion failed" ffmpeg_error="Failed to set value 'opencl=ocl@va' for option 'init_hw_device': No such device | Error parsing global options: No such device"

Probe that runs out of time (Arc A310, QSV)

Before, there was nothing in the log, and callers got context deadline exceeded. After:

level=WARN msg="tone-map probe did not finish in time, so it runs again on the next request that needs tone mapping" component=tonemap ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg hardware_backend=qsv hardware_device=/dev/dri/renderD128 hardware_filter=tonemap_opencl timed_out="hardware test conversion" error="context deadline exceeded"

Benchmarks

Not applicable to playback speed: no transcode path changes. Image size goes up by about 535 MiB (Installed-Size: intel-igc-core 262,121 KiB, intel-igc-opencl 273,680 KiB, intel-opencl-icd-legacy1 10,551 KiB). On my test image that took it from 2.63 GB to 3.17 GB.

Risks

  • Image size, as above. Jellyfin pays the same cost for the same GPUs. If that's too much, the legacy packages could go behind a build argument, but then the default image would still leave these GPUs on software.
  • The legacy runtime is Intel's last release for Gen8 to Gen11 and won't get new versions, so the pins should only change when Intel publishes a new legacy1 release.
  • The .deb downloads aren't checksum-pinned. That was already true, and this change adds three more.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (Claude desktop app)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted. AI-assisted with Claude Opus. I directed the task and designed the work.
  • Adversarial review: a separate Claude Code agent reviewed the diff independently. It covered transient-error handling in the probe, log de-duplication, sloglint, private data in logs, test reliability and the Dockerfile packages. It found that FFmpeg's per-run pointers in error lines would defeat de-duplication and repeat the warning every 15 seconds. It also found four smaller issues: timeout and result lines sharing one slot, a superseded probe hiding a re-probe's line, partial hardware results logged without a reason, and a test that could pick up another test's log lines. All five are fixed.

Note

Ship Intel's legacy OpenCL runtime and log tonemap probe results

  • Adds the legacy1 Intel OpenCL ICD to the amd64 runtime and dev images, with build args for legacy IGC/NEO versions, so older Intel graphics generations are supported. Intel package downloads now retry up to five times (Dockerfile, Dockerfile.dev)
  • Reworks the tonemap probe in probe.go to build a hardwareProbeVerdict during probing: selected hardware filter, missing FFmpeg prerequisites, first smoke-conversion failure text (normalized, bounded to 300 bytes), and the first timed-out command category
  • Completed probes now log validated software and hardware capabilities; probes with configured but unvalidated hardware log a warning explaining why. Unfinished probes log a warning with the timeout category and distinct error lines. Consecutive identical results per cache key are suppressed, and InvalidateProbeCache clears the de-duplication map so re-probes after invalidation can log again
  • Behavioral Change: smokeSourceKinds and hardwareSmokeSourceKinds return an extra failure-text value; check callers in probe.go and the updated tests in probe_test.go

Macroscope summarized 75e561d.

…sult

Intel's current compute runtime only drives Gen12 and newer graphics, so on
Gen8 to Gen11 GPUs (UHD 630, Jasper Lake) the QSV tone-map probe could not
open an OpenCL device and every HDR transcode fell back to software. Install
the legacy1 runtime and its IGC 1.x compiler alongside the current ones, as
Jellyfin's image does, and retry the runtime downloads.

The probe also dropped every smoke failure silently. Log one line per
distinct result: the executors and source kinds that validated, a warning
with the FFmpeg error when a configured hardware backend validated nothing,
or a warning naming the command that ran out of time when the probe did not
finish.
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Nov 8, 2026
@silo-kody

silo-kody Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Docker images now install legacy Intel OpenCL packages on amd64. Tone-map probing now records hardware verdicts, preserves probe failure details, and logs completed or unfinished results with duplicate suppression.

Changes: Intel Tone-Mapping Support

Layer / File(s) Summary
Intel OpenCL runtime packages
Dockerfile, Dockerfile.dev
Both images add version arguments for legacy Intel packages and download those packages on amd64. All package downloads in the relevant blocks use retries.
Probe verdict and smoke-test results
internal/tonemap/probe.go
Probe inventory and smoke checks return hardware verdict details, including listing failures, timeouts, and bounded FFmpeg failure information.
Probe-result logging and validation
internal/tonemap/probe.go, internal/tonemap/probe_test.go
Completed and unfinished probe results are logged with duplicate suppression. Invalidation clears log deduplication state. The added test covers timeout, smoke failure, unchanged results, and changed successful results.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant probeCached
  participant probeWithRunner
  participant probeInventory
  participant FFmpeg
  probeCached->>probeWithRunner: Run hardware probe
  probeWithRunner->>probeInventory: Collect capabilities and verdict
  probeInventory->>FFmpeg: List filters and encoders
  probeInventory->>FFmpeg: Run smoke checks
  FFmpeg-->>probeInventory: Return listings and smoke outcomes
  probeInventory-->>probeWithRunner: Return capabilities and verdict
  probeWithRunner-->>probeCached: Return probe result
Loading

Suggested labels: bug, go, impact: playback

Suggested reviewers: quick104, neurekadev

Merge Risk: Minimal · up to bdd2e

Merge Risk: ⚪ Minimal · up to bdd2e

This change adds legacy Intel OpenCL packages to the amd64 images and more detailed tone-mapping probe logs. Playback behavior is unchanged. No concrete merge-blocking risk was found. The first full image build after merge will be the real check of the Dockerfile changes.

Security architecture risk: Low · up to e48d4

The change is bounded and preserves validation before hardware use. Some uncertainty remains around the added third-party binaries and their coexistence with the current runtime.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — A compromised downloaded package could execute with image-build root authority and affect every amd64 release or development image incorporating it. This supplier-to-image authority predates the PR. The added packages expand the binary dependency set, but the inspected changes do not demonstrate greater host, tenant, or environment authority.

Trust Boundaries and Controls

  • observed — The hardware verdict is diagnostic only. Capabilities still require successful smoke conversions, intersected across configured devices. Playback and transcode-node consumers check probe errors before using capabilities, while downloads forwards the error result. The changed transient-error path therefore does not provide these callers with an unvalidated executor.

Resilience and Maintainability Implications

  • observed — New smoke-failure log text is limited to the last two nonempty output lines and 300 bytes, with FFmpeg context addresses normalized away. Completed and unfinished outcomes have separate deduplication slots. These controls bound diagnostic text and repeated identical warnings; they are not a general secret-redaction mechanism.

Hardening Proposals

  • proposed — Consider repository-pinned package digests or authenticated release metadata for all directly downloaded Intel packages, applied consistently to both images. This would strengthen an existing supply-chain control rather than remediate a verified PR-introduced exploit.
Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Directly linked issues: #610 and #3630. Requirements are grouped below.

[#610] Install an OpenCL driver for tonemap_opencl. Met in code. Dockerfile (amd64) now installs intel-opencl-icd-legacy1 24.35…
To decide this check, the following evidence is needed:
(1) For #3630: a reference to existing code, or a documented investigation in the linked issue, that answers whether QSV decode or encode stays active when tone mapping runs in softwar…
Passed Passed checks: 4 passed

Check name Status Explanation
Title check Passed The title names the two main changes: shipping Intel's legacy OpenCL runtime (Dockerfile and Dockerfile.dev) and logging the tone-map probe result (internal/tonemap). Both match the changeset and the …
Out of Scope Changes check Passed All changed areas connect to the objectives in #610 and #3630.

- Dockerfile and Dockerfile.dev: the legacy Intel runtime and IGC packages address the missing OpenCL driver in #610. The curl --retry c…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Description check Passed The description is specific and on-topic. It explains the problem (Gen8–Gen11 Intel GPUs fail HDR tone mapping because the image ships only the current OpenCL runtime), the approach (legacy Intel runt…
Full details: Title check

Explanation

The title names the two main changes: shipping Intel's legacy OpenCL runtime (Dockerfile and Dockerfile.dev) and logging the tone-map probe result (internal/tonemap). Both match the changeset and the stated objectives. It is a conventional-commit style title, short, and specific.

Full details: Out of Scope Changes check

Explanation

All changed areas connect to the objectives in #610 and #3630.

  • Dockerfile and Dockerfile.dev: the legacy Intel runtime and IGC packages address the missing OpenCL driver in #610. The curl --retry changes apply to the same downloads, so the new packages and the existing ones fail the same way. The version ARGs are used only in the amd64 branch.
  • internal/tonemap/probe.go: the logging helpers (logProbeResult, logProbeUnfinished, smokeFailureLine, distinctErrorLines) report why hardware tone mapping is unavailable. That serves the #3630 request to explain the fallback. The verdict and return-shape changes in probeWithRunner, probeInventory, hardwareSmokeSourceKinds, and smokeSourceKinds carry this diagnostic data. The playback decision path is not changed.
  • probe_test.go: tests cover the new log behavior.

No unrelated change was found. The PR excludes VAAPI fallback, which is a stated scope choice and not a change.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 13 functions across 2 files. (2 skipped: 2 unsupported.)

Full details: Description check

Explanation

The description is specific and on-topic. It explains the problem (Gen8–Gen11 Intel GPUs fail HDR tone mapping because the image ships only the current OpenCL runtime), the approach (legacy Intel runtime and IGC packages on amd64, plus de-duplicated probe logging in internal/tonemap), validation steps, hardware limits, image size risk, and an unrelated test fix. It matches the changeset in Dockerfile, Dockerfile.dev, probe.go, and probe_test.go, so the check passes.

Full details: Linked Issues check

Explanation

Directly linked issues: #610 and #3630. Requirements are grouped below.

[#610] Install an OpenCL driver for tonemap_opencl. Met in code. Dockerfile (amd64) now installs intel-opencl-icd-legacy1 24.35.30872.36 and intel-igc-core/intel-igc-opencl 1.0.17537.24 beside the current 26.18 runtime. The diff matches the PR text. Dockerfile.dev gets the same change. Runtime behavior on a Gen8 to Gen11 GPU is not verified. The author tested only on an Arc A310, where the hardware smoke timed out, and the PR does not show a passing hardware result. #610 also asks for the image-size trade-off to be considered. The PR records that trade-off in its Risks section.

[#3630] Diagnose why HDR-to-SDR falls back to software. Met in code. Completed probes now log validated kinds, and unavailable hardware logs the first FFmpeg error line. Unfinished probes log the timed-out command kind. Playback behavior is unchanged, which preserves the reported constraint.

[#3630] Determine whether QSV can still accelerate decoding or encoding when tone mapping runs in software. Not addressed. The PR does not state or change this behavior, and the PR's own hardware evidence is limited to an A310 host where hardware smoke tests time out.

[#3630] Clarify Dolby Vision, Intel driver, and FFmpeg limits, and whether decision_reason=quality_device_limit relates to acceleration. Not addressed. No changed code or evidence in the PR covers these questions. I did not inspect the decision code, so I cannot say whether the existing code already answers them.

The PR states that it closes #3630. The two open questions above are not covered by the PR, so the closure claim is not supported for those questions.

Resolution

To decide this check, the following evidence is needed:
(1) For #3630: a reference to existing code, or a documented investigation in the linked issue, that answers whether QSV decode or encode stays active when tone mapping runs in software, and what decision_reason=quality_device_limit means for acceleration.
(2) For #3630: confirmation whether the author will keep the closure scope limited to the OpenCL root cause and diagnostics, or will address the open questions in this PR.
(3) For #610: hardware confirmation on a Gen8 to Gen11 GPU, or a reporter result, that the legacy runtime enables tone_map_opencl. This is runtime evidence, not a coding requirement.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6314b15e-d7b1-4a7d-90e0-388b86069aa6
Commits

Reviewing files that changed from the base of the PR and between a529411 and e48d410.

Files selected for processing: 4

  • Dockerfile
  • Dockerfile.dev
  • internal/tonemap/probe.go
  • internal/tonemap/probe_test.go

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

@silo-triage silo-triage Bot added bug Something isn't working go Pull requests that update go code impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish labels Nov 8, 2026
@deejayexe

Copy link
Copy Markdown

Successful HDR hardware tone-mapping test on Intel Gen9 (QNAP NAS)

Hi!

I tested this PR on my QNAP NAS with an older Intel Gen9 integrated GPU,
and I have some positive results to share.

Test environment

Previous behavior

Before testing this PR, regular SDR transcoding using Intel QSV worked
correctly, but HDR transcoding failed with:

This HDR source requires video encoding, but no validated HDR-preserving or tone-map recipe is installed.

I had previously confirmed that tonemap_vaapi worked manually with
FFmpeg on this GPU, but Silo could not validate a working HDR
tone-mapping pipeline.

Test source

Property Value
Container MKV
Video codec HEVC Main10
Dynamic range HDR
Resolution 1920 × 919
File size 33.3 GiB
File bitrate 35.2 Mbps

Test 1: Hardware acceleration enabled

With hardware acceleration and hardware tone mapping enabled, Silo
automatically selected the hardware path
.

The playback dashboard reported:

Source:        HEVC 1080p
Delivered:     H.264 360p
Mode:          HW QSV
Tone mapping:  Hardware
Output:        H.264 360p
Protocol:      HLS

Playback information:

Video codec:       H.264 (transcoded)
Audio codec:       AAC (transcoded)
Video resolution:  664 × 360
Dropped frames:    0

Result: Playback worked with Silo reporting hardware-accelerated QSV
transcoding and hardware tone mapping.

This is a significant improvement over the previous behavior, where HDR
transcoding was rejected.

Test 2: Hardware acceleration manually disabled

For comparison, I manually disabled hardware acceleration and hardware
tone mapping.

Silo reported:

Source:        HEVC 1080p
Delivered:     H.264 360p
Mode:          SW
Tone mapping:  Software
Output:        H.264 360p
Protocol:      HLS

Result: Software transcoding and software tone mapping also worked.

This was an intentional configuration change, not an unexpected
fallback
from hardware to software.

Test 3: Hardware acceleration re-enabled

After the software test, I enabled hardware acceleration and hardware
tone mapping again.

Silo automatically selected the hardware transcoding path by default.

Summary

Configuration Transcoding mode Tone mapping Playback
Hardware enabled HW QSV Hardware Working
Hardware manually disabled SW Software Working
Hardware re-enabled HW QSV Hardware Working

Test 4: FFmpeg OpenCL filter-chain verification

While the HDR video was actively playing with hardware acceleration enabled, I inspected the running FFmpeg process inside the test container (PID 3688).

The live process arguments explicitly contained:

opencl=ocl@va

And the following hardware tone-mapping pipeline:

hwmap=derive_device=opencl:mode=read,
tonemap_opencl=format=nv12:p=bt709:t=bt709:m=bt709:tonemap=bt2390:peak=100:desat=0,
hwmap=derive_device=vaapi:mode=write:reverse=1:extra_hw_frames=16,
format=vaapi,
scale_vaapi=format=nv12,
hwmap=derive_device=qsv:mode=read+write

Verified:

OpenCL is initialized using the VA-API device.

The active FFmpeg filter graph explicitly includes tonemap_opencl.

HDR tone mapping uses the BT.2390 algorithm.

Output color parameters are set to BT.709 (SDR).

Hardware frames are mapped back to VA-API and QSV for encoding.

Conclusion: The live FFmpeg process confirms that Silo selects tonemap_opencl for HDR-to-SDR transcoding on my Intel Gen9 GPU (8086:9BE6).

Combined with successful playback and Silo reporting HW QSV and Tone mapping: Hardware, this provides strong evidence that the OpenCL hardware tone-mapping pipeline works on this GPU with PR #3660.

Conclusion

This PR looks very promising for older Intel GPUs.

Previously, HDR transcoding was blocked by the missing validated tone-mapping recipe. With this PR, Silo now automatically selects and successfully plays through a hardware-accelerated HDR transcoding path on my Intel Gen9 GPU.

Thank you for your work on improving support for older Intel hardware!

… one

The fake Jellyfin server moved item-250 only after writing the first page.
The client can decode that page and request the next one before the handler
returns, so on a busy runner page two came from the unmoved list, the read
never restarted, and TestJellyfinFetchPlayedSince_RestartsWhenAPlayMovesTheList
failed. Move the list first and guard it with a mutex.
@silo-kody

silo-kody Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104

Quick104 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: 75e561d. No defects found, so there are no inline comments. Nothing was pushed to the branch.

What I checked

  • Main hasn't changed Dockerfile, Dockerfile.dev, internal/tonemap, or the historyimport test since this branch's merge base, so no update was needed.
  • The three new download URLs resolve. The intel-opencl-icd-legacy1 package installs its own intel_legacy1.icd and libigdrcl_legacy1.so, depends on intel-igc-opencl (= 1.0.17537.24) and libigdgmm12 (>= 22.5.0), and only breaks the old intel-opencl package. It doesn't conflict with intel-igc-core-2 or the current intel-opencl-icd.
  • The probe still returns the same capabilities, cache TTLs, and errors as before. The restructured transient-error branch in probeWithRunner joins the same errors as the old one; it now also records which command kind ran out of time.
  • I ran several real FFmpeg hardware-failure shapes (CUDA, VAAPI without a device, a missing hwaccel, a filter graph failure) and looked at their last two error lines. None carry the temp fixture path or other per-run text besides the @ 0x… pointers this PR strips, so the warning shouldn't repeat every 15 seconds.
  • Tests: TestProbeLogsWhyHardwareToneMappingIsUnavailable fails on the base (no log line) and passes on this head. go test -race ./internal/tonemap/ passes. TestJellyfinFetchPlayedSince_RestartsWhenAPlayMovesTheList passed 20 runs in a row under -race.

Answered without a change

  • A second reviewer pointed out that a probe that times out, then finishes with no hardware, then times out again logs the second timeout silently, because finished and unfinished results keep separate de-duplication slots. The code comment says that's deliberate, so a GPU that flips between the two states doesn't log on every retry. The first warning of each kind still reaches the log, so I left it.

Left for maintainers

Validation: no case on #1172 to #1175 has passed yet; every case is still not run. The Validation tasks: line is right that this unblocks #1173 C3 and #1174 C3 on Gen8 to Gen11. Its note about "a passed C3 result on newer Intel GPUs" refers to a result that doesn't exist yet, so nothing can regress.

User manual: no change needed. The playback page already says hardware tone mapping runs once Silo has tested that the GPU can do it, and no page lists supported Intel generations.

Apple/Android: not affected; this is server-side only.

Fit: 8/10 · Readiness: 7/10 — conditional

  • Fit: this fixes hardware tone mapping on common NAS and mini-PC Intel GPUs with packages Jellyfin already ships for the same purpose, and it makes the probe say why hardware failed. The image-size cost to every amd64 install keeps it from a 9.
  • Readiness: the code is sound, and the new logging test fails on the base. The Gen8 to Gen11 fix itself hasn't been shown on real hardware, and the Docker change hasn't been built as a full image.

Cross-provider review: one round (Codex, gpt-6.1-sol) on 75e561d, one finding, answered above.

🤖 Claude Code (claude-opus-5-5)

@Quick104
Quick104 merged commit b4944a4 into Silo-Server:main Nov 9, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish size/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

3 participants