Skip to content

fix(jellycompat): answer NoCompatibleStream when no route fits - #3409

Merged
Quick104 merged 7 commits into
Silo-Server:mainfrom
rangoDJ:fix/jellycompat-no-compatible-stream-3215
Nov 6, 2026
Merged

Quick104 merged 7 commits into
Silo-Server:mainfrom
rangoDJ:fix/jellycompat-no-compatible-stream-3215

Conversation

@rangoDJ

@rangoDJ rangoDJ commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #3215
Validation tasks: changes #1246 C1 (PlaybackInfo now answers NoCompatibleStream instead of 400 when no route fits; C1 is not run yet)

Lowering the quality in Streamyfin froze playback: PlaybackInfo answered 400 PlaybackUnavailable "found no route", and Streamyfin waits on a failed request instead of reporting it. Jellyfin answers the same situation with 200, an empty MediaSources list and ErrorCode: NoCompatibleStream, which Streamyfin 0.55.1 already turns into an error message. Silo answers that way only when every version is unreadable.

The route itself is missing because of the profile Streamyfin sends on a phone that decodes AV1 in hardware (the reporter's Pixel 10 Pro XL): its only video HLS transcoding profile is Container: mp4 with VideoCodec: av1,h264,hevc. Silo packages H.264 encodes only as MPEG-TS segments and HEVC encodes only as fMP4, and doesn't encode AV1, so with HEVC encoding off nothing fits once the bitrate ceiling rules out direct play. This PR doesn't add H.264 in fMP4; that reaches the transcoder, recipes and the transcode-node protocol, and is left for a maintainer to decide (see the issue).

Approach

  • When every version is readable and none can direct play, direct stream or transcode, PlaybackInfo answers 200 with MediaSources: [] and ErrorCode: NoCompatibleStream, as for unreadable files, and stores no play session.
  • 400 PlaybackUnavailable stays only when the server's bitrate cap is what removes every route: the versions are built again without the cap, and some version then has a route. When a lower client limit or the profile rules the routes out, a configured cap doesn't change the answer: it is NoCompatibleStream. An item with no readable version answers NoCompatibleStream under a cap too, as TestHandlePlaybackInfoUnreadableUnderBitrateCap describes.
  • The found no route log line also records the profile's HLS transcoding containers (hls_transcoding_containers) and whether HEVC encoding is allowed (hevc_encoding), so a refusal like this one can be read from the log.
  • docs/jellycompat-api.md describes the answer and the fMP4/HEVC constraint.

Apple and Android native clients use the native API and are unaffected. Jellyfin clients that read ErrorCode show an error; any that relied on the 400 body still get no media source.

Validation

  • New TestStreamyfinLowerQualityTranscodesOrReportsNoCompatibleStream, with Streamyfin 0.55.1's MPV profile for Android and its camelCase request body (testdata/streamyfin_mpv_android_*.json), on a 1080p H.264/EAC3 file at a 4 Mbps ceiling:
    • MPEG-TS HLS profile: one source with an MPEG-TS TranscodingUrl;
    • fMP4-only (AV1) profile, HEVC encoding off: NoCompatibleStream; the same request without a ceiling still direct plays.
  • Updated the DV-strip and subtitle cases that expected 400 for a missing route to assertNoCompatibleStream.
  • go vet and go test ./internal/jellycompat/ pass on Linux (golang:1.26 with libvips). The package doesn't build on Windows.
  • Before writing the fix, a planner probe with the same profiles against build 1768 (564b906b) and main reproduced the missing route only for the fMP4 profile with HEVC encoding off.
  • Not checked with Streamyfin on a device.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3409/

Streamyfin 0.55.1's lower-quality request (its AV1-phone "1. MPV" profile, maxStreamingBitrate: 4000000) against a running server with a 1080p H.264/EAC3 file, HEVC encoding off. Before (latest, build-1912, 07f0ae21c): 400 PlaybackUnavailable, with #3215's found no route log line. After (same image and data, this branch's binary): 200, ErrorCode: NoCompatibleStream, no media sources; the uncapped request still direct plays. These are the server's answers to Streamyfin's request; a capture of the Streamyfin player itself needs an Android device I don't have.

Server bitrate cap

The same Streamyfin request through the Jellyfin API (POST /Items/{id}/PlaybackInfo, port 8096), by a non-admin user whose access group sets max_local_stream_bitrate_kbps and max_remote_stream_bitrate_kbps. Local Linux servers, a fresh database per run and default settings, with a 30 s 1920x1080 H.264 High / E-AC-3 5.1 MKV at 8,515 kbps. Before is the merge base 07f0ae21c; after is this branch at 364eb539a.

Group cap maxStreamingBitrate Before (07f0ae21c) After (364eb539a)
20,000 kbps 4,000,000 400 PlaybackUnavailable "exceeds the server bitrate limit" 200 {"MediaSources":[],"ErrorCode":"NoCompatibleStream"}
20,000 kbps 0 200, direct play 200, direct play
1,000 kbps 4,000,000 400 PlaybackUnavailable 200 NoCompatibleStream
1,000 kbps 0 400 PlaybackUnavailable 400 PlaybackUnavailable
  • Row 1 is the CodeRabbit case: the client's 4 Mbps limit, not the 20 Mbps cap, rules out direct play, so the cap no longer turns the answer into a bitrate-limit error.
  • Row 3: the client limit alone already leaves no route, so the cap removes none.
  • Row 4: only the cap rules out direct play, and the 400 stays.
  • In both direct-play answers the source reports SupportsDirectPlay: true, SupportsTranscoding: false and Bitrate: 8515000.
  • The before build logged found no route with server_bitrate_cap_kbps=1000 for rows 3 and 4.
  • The 503 for a failed tone-map policy lookup under a cap is covered by TestPlaybackInfoToneMapPolicyFailureWithoutCapIsTemporary only, not by a running server.

Risks

  • A Jellyfin client that treats a 200 without media sources differently from a 400 may show a different message; Jellyfin itself answers 200 here, so clients built for Jellyfin expect it.
  • Streamyfin on AV1 phones still can't lower the quality without HEVC encoding; this PR makes that fail visibly rather than fixing it.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (desktop app)
  • Tool(s): Claude Code, GitHub CLI, gopls, Dockhand (Linux test runs)
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Return NoCompatibleStream in PlaybackInfo when no route fits constraints

  • PlaybackHandler.HandlePlaybackInfo now re-runs the route check without the server bitrate cap when no route fits. This distinguishes cap refusals (400 PlaybackUnavailable) from true no-route cases, which return 200 with no media sources and a NoCompatibleStream error code in handlers_playback.go
  • Adds DeviceProfile.hlsVideoTranscodingContainers to list normalized HLS transcoding containers for the no-route log, which now also reports HEVC encoding availability
  • If tone-map policy state is temporarily unavailable during the uncapped check, the handler returns 503 PlaybackUnavailable instead
  • Adds Streamyfin device-profile fixtures and tests covering MPEG-TS vs fMP4-only HLS profiles, client bitrate limits, server caps, and subtitle-delivery constraints
  • Behavioral Change: cases that previously returned 400 PlaybackUnavailable (no usable strip/tone-map/subtitle route) now return 200 with a NoCompatibleStream error and no media sources; tests in dv_strip_test.go and subtitle_selection_test.go were updated accordingly

Macroscope summarized b956c84.

When every version is readable but none can direct play, direct stream
or transcode, PlaybackInfo now answers as Jellyfin does: 200 with an
empty MediaSources list and ErrorCode NoCompatibleStream, so a client
shows an error instead of hanging on a failed request. A source over
the server's bitrate cap keeps the documented PlaybackUnavailable.

Streamyfin on a phone that decodes AV1 lists only fMP4 HLS, which takes
no H.264 encode here, so without HEVC encoding a lowered quality had no
route. The found-no-route log line now records the profile's HLS
transcoding containers and whether HEVC encoding is allowed.

Related to Silo-Server#3215

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Nov 2, 2026
@silo-kody

silo-kody Bot commented Nov 2, 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 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

PlaybackInfo now distinguishes requests blocked by the server bitrate cap from requests with no compatible route. When no route exists, it returns an empty media-source list with NoCompatibleStream. Tests cover Streamyfin profiles and other incompatible playback cases.

Changes: Playback no-route handling

Layer / File(s) Summary
Uncapped route evaluation and response selection
internal/jellycompat/deviceprofile.go, internal/jellycompat/handlers_playback.go, docs/jellycompat-api.md
The handler checks for a route without the server bitrate cap. If that restores a route, it returns HTTP 400 with PlaybackUnavailable. Otherwise, it returns an empty media-source list with NoCompatibleStream, unless tone-map availability is indeterminate, in which case it returns HTTP 503. No-route logs include HLS video transcoding containers and HEVC encoding availability.
Profile playback and no-route tests
internal/jellycompat/testdata/streamyfin_mpv_android_*_device_profile.json, internal/jellycompat/streamyfin_profile_test.go, internal/jellycompat/dv_strip_test.go, internal/jellycompat/subtitle_selection_test.go
Streamyfin profile tests cover MPEG-TS H.264 transcoding, fMP4-only HLS compatibility, direct play without a client bitrate limit, and server bitrate-cap failures. Other playback and subtitle tests assert NoCompatibleStream for incompatible cases and test tone-map policy unavailability.

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

Possibly related issues

  • Silo-Server/silo-server#3215: This PR changes the no-route response to NoCompatibleStream; it does not add a route for the lower-bitrate request.
  • Silo-Server/silo-server#3356: This PR changes the response for a no-route case to NoCompatibleStream; it does not add the requested audio-conversion remux.

Possibly related PRs

Suggested labels: impact: playback

Suggested reviewers: quick104

Merge Risk: Minimal · previous review 364eb

No concrete merge-blocking issue was found in the reviewed changes.

Security architecture risk: Low · up to 364eb

Authentication, item access checks, and playback limits remain in place. Failed negotiation does not grant a playback session. The main uncertainty is the additional diagnostic work for failed requests and its behavior under concurrent load.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The added work is reachable by authenticated callers negotiating accessible media under a server cap. Its effects can extend beyond the response to shared capability caches and configured worker-health state, but the inspected diagnostic path does not grant uncapped streaming authority.

Trust Boundaries and Controls

  • observed — Production PlaybackInfo routes remain inside authenticated middleware. The handler requires a token-derived session and resolves authorized catalog detail before the changed branch; request UserId is not the authorization identity.

Resilience and Maintainability Implications

  • observed — Existing file probes coalesce identical concurrent requests, bound cached results, and use a six-second subprocess deadline. Their leader can survive caller cancellation, and inconclusive results are not cached. Local registry probing is mutex-protected and also detached from caller cancellation. These inherited behaviors become reachable through the new comparison; aggregate load limits remain unverified.
  • observed — Remote tone-map discovery uses a shared request deadline and configured node URLs. Transport errors pass through connect-failure classification before changing worker health: caller cancellation, local socket exhaustion, and DNS failures are excluded. Health changes are synchronized and schedule a recheck; the complete recovery implementation was not inspected.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed

Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: returning NoCompatibleStream when no playback route fits.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description directly explains the PlaybackInfo changes, bitrate-cap behavior, Streamyfin compatibility issue, logging updates, documentation changes, and test coverage described in th…
Full details: Description check

Explanation

The pull request description directly explains the PlaybackInfo changes, bitrate-cap behavior, Streamyfin compatibility issue, logging updates, documentation changes, and test coverage described in the changeset.

Full details: Docstring Coverage

Explanation

Docstring coverage is 66.67% which is insufficient. 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 6 functions across 5 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches

Generate unit tests (beta)

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

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

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: 327eef67-667e-4d58-b815-392d827084b6
Commits

Reviewing files that changed from the base of the PR and between 51cf84d and 364eb53.

Files selected for processing: 1

  • internal/jellycompat/dv_strip_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 evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code impact: compat Breaks a supported client or server path priority: P2 Limited scope, workaround exists, or polish labels Nov 2, 2026
@silo-triage

silo-triage Bot commented Nov 2, 2026

Copy link
Copy Markdown

The Evidence section says there is no visible change, but the PR describes Streamyfin changing from frozen playback to an error message. Please add before-and-after captures of that same lower-quality failure in Streamyfin, naming the client version and server builds. The reported API tests cover the response contract, not the client-visible result; the lack of a device is already noted.

@macroscopeapp

macroscopeapp Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Correction: #1246 C1's Results cell is currently Not run, and its explicit smoke matrix covers successful direct-play and HLS-transcode paths—not the no-compatible-stream branch changed here. Native Apple and Android playback use the separate /api/v2/playback/start route. No passed, failed, or blocked validation result is affected, so Validation tasks: none is accurate. Please disregard my earlier recommendation to list changes #1246 C1.

Updated via Macroscope — v1 validation impact

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

PlaybackInfo answered 400 PlaybackUnavailable whenever a server bitrate
cap was set and no route fit, even when a lower client limit or the
profile was what ruled the routes out. Streamyfin with a 4 Mbps limit, a
20 Mbps cap and its fMP4-only profile then froze on the 400 this branch
is meant to replace with NoCompatibleStream.

The no-route branch now builds the versions again without the cap. Only
when some version then has a route does it keep the 400 and say the
stream exceeds the cap; otherwise it answers NoCompatibleStream.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 2, 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 added impact: playback Can't play, stalls, or wrong media size/M 50–199 added + deleted lines (all files); change volume, not priority. labels Nov 2, 2026
@silo-triage silo-triage Bot removed the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 2, 2026
The check that keeps 400 PlaybackUnavailable for the server's bitrate
cap rebuilt each version without the cap but skipped the checks the
negotiation loop applies afterwards, so a version with no route for
another reason, such as a sidecar subtitle the profile takes only
embedded, looked playable and the cap was blamed. Apply the same
subtitle delivery, tone-map availability and HEVC-executor fallback.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 2, 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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


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: 6e6db3a5-618e-4355-9b04-ec5d065547c6
Commits

Reviewing files that changed from the base of the PR and between 3794e15 and 8fe4ff0.

Files selected for processing: 2
  • internal/jellycompat/handlers_playback.go
  • internal/jellycompat/subtitle_selection_test.go

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

…check

When the check without the server's bitrate cap is the first to need the
tone-map policy or capabilities and the lookup fails for a version with
no direct route, answer 503 as the negotiation loop does, rather than
NoCompatibleStream.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 2, 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 ❌

…heck

Under a server cap too low for any encode, the capped pass never loads
the tone-map policy, so the check without the cap is the first to. When
that lookup fails, PlaybackInfo answers 503 PlaybackUnavailable rather
than NoCompatibleStream; before the previous commit it answered 200
NoCompatibleStream.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 2, 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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up Comments

Outside diff Check H.264/AAC route availability before classifying cap removal.

2558-2564: Minor · Functional Correctness · Quick win

Check H.264/AAC route availability before classifying cap removal.

The uncapped predicate skips executor checks for an initially selected H.264 transcode. The HEVC fallback checks only profile.supportsTranscodingOutput, not whether an H.264/AAC route exists. When no eligible executor has both transformations, this can set capRemovesRoutes and return the server-cap 400 even though removing the cap does not restore a playable route.

Add one route-aware H.264/AAC check after the HEVC fallback. Check the same local and pooled executors used for HLS planning. Clear only SupportsTranscoding when the toolchain is definitely unavailable, so direct-play and direct-stream routes remain valid. Preserve the retryable response for local or pooled capability-probe errors instead of classifying those errors as a cap failure.

Open the source location


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: 8abb7314-967c-4022-9df2-dd9f70da5c70
Commits

Reviewing files that changed from the base of the PR and between 8fe4ff0 and 51cf84d.

Files selected for processing: 1
  • internal/jellycompat/handlers_playback.go

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

@rangoDJ

rangoDJ commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai On the outside-diff note about checking H.264/AAC executors before blaming the cap: declining. The negotiation loop doesn't check H.264/AAC executor availability at PlaybackInfo (only compatHEVCExecutable and compatDVStripExecutable); an H.264 transcode is offered and an executor is chosen when the stream starts. The check without the cap mirrors that loop, so adding an H.264 executor probe only there would judge the uncapped versions by a stricter rule than the routes PlaybackInfo actually offers.

🤖 Addressed by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@rangoDJ Agreed. The uncapped check should use the same route-eligibility rules as the main PlaybackInfo negotiation loop. Adding an H.264/AAC executor probe only to the uncapped check would make that check stricter.

I withdraw the outside-diff recommendation. No change is needed for this finding.

You are interacting with an AI system.

rangoDJ and others added 2 commits November 5, 2026 11:24
…o fix/jellycompat-no-compatible-stream-3215

# Conflicts:
#	internal/jellycompat/subtitle_selection_test.go
…ill passes

Silo-Server#2924 removed mediaSourceDTO's token parameter; the test Silo-Server#3522 added
afterwards still passed it, so main's jellycompat tests don't build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 5, 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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@Quick104
Quick104 merged commit 19bbf5f into Silo-Server:main Nov 6, 2026
16 checks passed
@rangoDJ
rangoDJ deleted the fix/jellycompat-no-compatible-stream-3215 branch November 15, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code impact: compat Breaks a supported client or server path 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

Development

Successfully merging this pull request may close these issues.

2 participants