Skip to content

feat(playback): stream embedded text subtitles as HLS renditions in copy remuxes - #3033

Merged
Quick104 merged 4 commits into
mainfrom
feat/remux-subtitle-renditions
Oct 25, 2026
Merged

Quick104 merged 4 commits into
mainfrom
feat/remux-subtitle-renditions

Conversation

@Quick104

@Quick104 Quick104 commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #1406
Validation tasks: none

The Subtitle playback & appearance tasks have C4 passes recorded in comments
(Silo-Server/silo-apple#313, Silo-Server/silo-apple#314,
Silo-Server/silo-android#323, Silo-Server/silo-android#324). Those passes stay
valid for the current Apple and Android clients. They send
hls_subtitle_renditions_v1 but not hls_remux_subtitle_renditions_v1, so
their copy remuxes keep the sidecar (TestPlanPlaybackV3KeepsTheRemuxPlanForTranscodeRenditionsOnly).
Their transcode renditions go through refactored cue-window and segment-serving
code. The fixed-grid playlist and cue placement stay the same, and the existing
transcode rendition tests still pass. The one difference is that a long wait for
a segment not yet produced now polls at most once a second. When a client opts
into the new feature, its C4 case needs a re-test on remux renditions.

When a client plays an HLS copy remux with an embedded text subtitle, the
subtitle arrives as a sidecar that FFmpeg extracts from the whole source before
it returns the first cue. On large files that takes longer than clients wait:
on a 4K Dolby Vision remux the server log showed the extraction taking 278.6 s,
so the player showed "Loading subtitles" and then gave up. HLS subtitle
renditions (#2620) fixed this for transcodes by writing the track as WebVTT
from the stream's own FFmpeg process, but copy remuxes still used the sidecar.

This change gives HLS copy remuxes the same WebVTT subtitle rendition for
clients that opt in with a new feature, hls_remux_subtitle_renditions_v1.

Approach

  • Clients opt in with hls_remux_subtitle_renditions_v1. It is /api/v2
    only, attempt-sticky, and has effect only together with
    hls_subtitle_renditions_v1. It is a separate feature because Apple and
    Android already send hls_subtitle_renditions_v1 and have not been tested
    with remux renditions. A client that sends only the existing feature gets
    the same remux plan as today, and a test pins that.
  • The subtitle playlist follows the video playlist. A copy remux cuts segments
    at source keyframes, so their lengths vary. The subtitle playlist lists the
    video playlist's segments (sub_NNNNN.vtt) with the same durations, playlist
    type, and end tag: the keyframe plan's VOD playlist when the remux has one,
    otherwise FFmpeg's growing EVENT playlist. Each subtitle segment's cue
    window comes from those durations. FFmpeg replaces its playlist on a seek
    restart, so a generation records its segment durations in
    subtitle_spans.json when it closes. Cues from before the restart stay in
    place, including in a session rebuilt from disk.
  • The remux variant states its VIDEO-RANGE. With a rendition, the remux URL
    becomes a multivariant playlist, and HLS treats a variant without
    VIDEO-RANGE as SDR. The API fixes the range when the plan starts, from the
    source video track's scanned transfer characteristic: PQ for SMPTE ST 2084,
    HLG for ARIB STD-B67, none for any other signaled transfer (Dolby Vision
    8.2's SDR base layer included). A track that signals no transfer is PQ for
    the Dolby Vision to HDR10 strip and for dvh1 Dolby Vision (profile 5). The
    value travels to the executor as video_range on the node start request and
    in recipe cards and stream-token claims, and the executor only accepts PQ
    or HLG on a copy. Every load of the playlist names the same range without
    waiting for FFmpeg.
  • Cues show with their own frames. When a generation starts at the clock's
    zero, B-frames or AAC priming give it negative decode times. fMP4's
    make_non_negative then delays the whole HLS output by that lead, and
    MPEG-TS's 10 s offset lands on the first decode time. The WebVTT output moves
    with neither, so on a default x264 source cues showed two frames (83 ms)
    early. Each copy generation now also writes its first video packet,
    unshifted, as a one-packet framecrc file beside its cues. The timestamp map
    adds the difference between that packet and the first segment's observed
    start, and subtitle_spans.json records it.
  • A keyframe-planned copy answers 404 for a subtitle segment FFmpeg still has
    not reached after the 30 s wait, as its video segment does, instead of an
    empty document the player would keep. Other remuxes and transcodes keep the
    empty answer. A long wait now polls with backoff, up to once a second.
  • Transcode nodes advertise a new transport feature,
    hls_remux_subtitle_rendition_v1. For a copy remux, the executor check, node
    selection, and rehoming require it and use the remux routing policy, so a
    node that only has hls_subtitle_rendition_v1 is never sent a remux
    rendition.
  • The executable recipe stays at version 4. Binaries from before this change
    already reject a version 4 recipe that carries a rendition outside a
    transcode, so they fail closed and do not drop the subtitle.

The protocol and node API docs (docs/architecture/playback-protocol-v3.md,
docs/transcode-node-api.md), the decision schema description, and the
protocol fixtures are updated. jellycompat does not plan protocol v3
renditions and is unchanged.

#1406 stays open. The web player, remuxes and transcodes without a rendition,
and every sidecar fallback still use the extraction path it describes; this
change only moves opted-in remuxes off it.

Follow-ups: silo-apple and silo-android can opt in once they have been tested
with remux renditions. Their copies of the protocol fixtures need the new
server_features entry at their next sync.

Validation

  • Real player, first run: a development build of the Roku client on a Roku
    Ultra played a 4K Dolby Vision profile 7 remux (HDR10 strip) on a development
    server. Selecting its embedded English SubRip track showed WebVTT captions
    8 s later, including after a replan. The node ran the track as a second
    WebVTT output of the remux's own FFmpeg process, and the client made no
    sidecar request. That run predates the timestamp-map correction.
  • Real player, after the correction: a server build that includes 72edcd7
    ran on a development server with the same Roku Ultra and a different movie
    with an embedded English SubRip track. Selecting the track had the player
    playing with WebVTT captions 7 s later. The client made no sidecar request,
    and the node's FFmpeg command carried the WebVTT rendition output and the
    one-packet framecrc output. Not yet confirmed: on-screen cue alignment
    (device screenshots do not capture the video plane, so it needs a person
    watching), and seek or replan on this build. The later throttle fix
    (cd53cdd) was not in that build.
  • go build ./..., gofmt -l ., go vet ./..., make lint-changed, make lint-router-recovery: pass.
  • make test-go on 72edcd7, without FFmpeg on PATH as CI runs it: pass. With FFmpeg on PATH, two jellycompat Dolby Vision routing tests fail the same way they do on main.
  • On cd53cdd: go build ./..., go test ./internal/playback ./internal/transcodenode (without FFmpeg, so the real-FFmpeg tests skipped), and make lint-changed: pass.
  • Real-FFmpeg rendition tests (transcode and copy remux; fMP4 and MPEG-TS; from the start, after a seek, and with video starting after the subtitles; a B-frame source with re-encoded AAC and cues off whole seconds): pass on jellyfin-ffmpeg 8.1.3, the version the image ships, and on Debian FFmpeg 7.1.5. The copy remux test fails without the timestamp-map correction. CI installs no FFmpeg, so these tests skip there.
  • Contract and hygiene targets (verify-settings-bindings-all, verify-playback-fixtures, verify-route-inventory, verify-migration-ledger, verify-scenario-catalogs, verify-offline-routes, verify-apiv2-openapi, verify-apiv2-contract, verify-apiv2-fixtures, TestCommittedArtifactMatchesRouter, verify-local-paths, verify-case-collisions, verify-size-ratchet, verify-bidi, verify-migrations, verify-v1-route-freeze, verify-prometheus-rules): pass.
  • actionlint 1.7.12: pass, run directly because this build reports its version as v1.7.12 and the Make target's exact check rejects that.
  • ShellCheck: not run. Only 0.9.0 was available and the target requires 0.11.0. No shell files change.
  • Web checks: not run. web/ is unchanged.

The tests cover the planner's choice, fallback after a failed rendition, and
the unchanged plan for clients without the feature; subtitle playlists and cue
windows on variable-length segments; durations and the mux shift kept across
a seek restart and a rebuilt session; the VIDEO-RANGE mapping and its
admission check; the range surviving the recipe card and stream token; the
planned-copy 404 and a request past the plan leaving the throttle position alone; node feature routing; and real FFmpeg output. No Apple,
Android, or browser player has played a remux rendition.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/remux-subtitle-renditions/

Risks

  • Apple, Android, and browser players have not played a remux rendition, and
    on-screen cue alignment has not been checked on any device. The first of
    those clients to opt in should test an EVENT subtitle playlist next to a
    remux that is still being produced, and an HDR remux's VIDEO-RANGE, on
    real hardware.
  • A stream token for a copy remux with a rendition carries one more claim,
    vrg, holding the range. Tokens without it name no range.
  • Each copy generation with a rendition runs one more FFmpeg output, which
    copies a single video packet and closes.
  • Encoded fMP4 renditions (HEVC transcodes) were not measured for the same
    mux delay; this change does not alter them.
  • Nodes publish one more transport feature, so each node's capability hash
    changes once on upgrade. In a mixed-version pool, older nodes are never chosen
    for a remux rendition.

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
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; the maintainer requested it and has not yet reviewed the code
  • Adversarial review: two read-only passes by separate Claude Code agents (claude-opus-5-5). The first found a 30 s playlist wait that held a lock with no cancellation, an HDR range for Dolby Vision 8.2, a two-frame cue offset, and an empty answer for segments FFmpeg had not reached; all four are fixed above. The second pass, over the fixes, found nothing serious; its two low items are fixed in a follow-up commit: a missing first-packet file is now retried at most three times before cues use no shift, and a planned-copy subtitle request now moves FFmpeg's throttle position the way its video segment does, so a subtitle request ahead of the video can't wait on a paused FFmpeg and then get the 404.

Note

Add embedded-text subtitle HLS renditions for copy remuxes

  • The planner can now serve an embedded text subtitle as an HLS rendition on an HLS copy-remux stream instead of a sidecar, gated by a new remux-specific client and transport feature (HLSSubtitleRenditionTransportFeatureV3) in protocol_v3.go. If the rendition route was already attempted, the plan falls back to the sidecar remux.
  • Copy-remux subtitle playlists mirror the video playlist with per-segment durations and end markers, rather than the fixed synthetic grid (subtitle_rendition.go). Subtitle timing accounts for HLS mux timestamp shifts by recording the generation's first video timestamp via a framecrc output; after three failed video-start reads, cues are placed without a mux-shift correction.
  • Span timing metadata (expected start, mux shift, segment durations, final state) is persisted in recipe cards and stream-token claims (vrg key for VIDEO-RANGE) so rebuilt sessions restore remux timelines; unusable spans are discarded by loadSubtitleSpans.
  • Adds VideoRange to TranscodeOpts and TranscodeStartRequest, with PQ/HLG derivation from transfer metadata and Dolby Vision detection in CopyHLSVideoRange; only PQ/HLG are valid for copy video.
  • Transcode nodes advertise the remux rendition feature in their capability snapshot, and node routing requires the transport feature matching the target video codec (playback_v3.go).
  • Behavioral Change: StartTranscode rejects invalid HLS video-range recipes; copy-remux span records use a new schema via writeFileAtomic (now os.Root-scoped), so older persisted span records without duration lists are discarded on load; ServeSubtitleSegment returns 404 for not-yet-reached planned-copy segments instead of a generic error.

Macroscope summarized cd53cdd.

…opy remuxes

HLS copy remuxes delivered embedded text subtitles as a sidecar that FFmpeg
extracts from the whole source before the first cue, so on large files
clients timed out waiting for subtitles. Transcodes already carry the track
as a WebVTT rendition inside the stream (#2620); copy remuxes now do too.

The subtitle playlist lists the video playlist's own keyframe-cut segments
(the keyframe plan's VOD playlist, or FFmpeg's EVENT playlist), cue windows
follow those segment durations, and closed generations record their
durations in subtitle_spans.json. The remux multivariant playlist states
VIDEO-RANGE PQ or HLG, fixed at plan time from the source track's scanned
transfer. Each copy generation records its first video packet on the cues'
clock, so the timestamp map declares how much later the HLS mux put the
video (B-frame lead or AAC priming, two frames on a default x264 source).
A keyframe-planned copy answers 404 for a subtitle segment FFmpeg has not
reached after the wait, as its video segment does.

Clients opt in with hls_remux_subtitle_renditions_v1, which requires
hls_subtitle_renditions_v1; clients that send only the latter keep today's
remux plan. Transcode nodes advertise hls_remux_subtitle_rendition_v1, and
node selection, routing, and rehoming require it for a copy remux.

Related: #1406

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

silo-kody Bot commented Oct 25, 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 ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T02:11:55.914489Z cd53cdd New commits
🔒 Security Review ✅ Completed 2026-10-25T02:14:36.792496Z cd53cdd New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: 8f5daa15-c5ef-4bf4-961d-842c996f7d46
Commits

Reviewing files that changed from the base of the PR and between 94628a7 and 72edcd7.

Files selected for processing: 1
  • internal/playback/subtitle_rendition_spans.go

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Walkthrough

The change adds negotiated subtitle renditions to eligible HLS copy-remux plans. Subtitle playlists follow copied-video segments and timing. Video-range metadata passes through playback recipes, stream-token claims, and transcode requests.

Changes: HLS Copy-Remux Subtitle Renditions

Layer / File(s) Summary
Feature negotiation and rendition planning
internal/playback/protocol_v3.go, internal/playback/plan_v3.go, internal/playback/executable_recipe_v3.go, internal/api/handlers/playback_v3.go, internal/api/handlers/playback_v3_subtitle_rendition_test.go, docs/architecture/playback-protocol-v3.md, docs/design/schemas/playback-v3/v3/*, internal/playback/testdata/protocol_v3/*
The protocol adds a remux-specific rendition feature and transport capability. Planning and routing use the feature for the selected workload. Attempted renditions can fall back to sidecar subtitles.
Video-range metadata propagation
contracts/api/v2/openapi.json, internal/playback/recipecard.go, internal/streamtoken/token.go, internal/api/handlers/playback_v3.go, internal/api/handlers/playback_transcode_rehome.go, internal/transcodenode/server.go, docs/transcode-node-api.md, internal/playback/subtitle_rendition_test.go, internal/playback/transcode_args_test.go
Video range is carried through recipe cards, stream-token claims, local and remote transcode setup, rehoming, and node requests. Copy-HLS range values are derived and validated.
Copy-remux playlists and cue timing
internal/playback/subtitle_rendition.go, internal/playback/subtitle_rendition_spans.go, internal/playback/copy_seek_anchor.go, internal/playback/copy_keyframe_plan.go, internal/playback/transcode.go, internal/playback/subtitle_rendition_test.go, internal/transcodenode/subtitle_rendition_test.go, docs/architecture/playback-protocol-v3.md, docs/transcode-node-api.md
Subtitle playlists mirror copied-video segments and timing. Cue windows account for segment placement and mux shifts. Subtitle generation spans persist across restarts. Planned-copy requests wait for segment production and can return 404 when a segment is not ready.

Priority: Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant PlaybackAPI
  participant Planner
  participant TranscodeNode
  participant PlaybackSession
  Client->>PlaybackAPI: Negotiate remux rendition feature
  PlaybackAPI->>Planner: Provide remux capability and subtitle inventory
  Planner->>PlaybackAPI: Return copy-remux plan with rendition
  PlaybackAPI->>TranscodeNode: Send transcode request and video range
  TranscodeNode->>PlaybackSession: Produce video and subtitle outputs
  PlaybackSession->>Client: Serve aligned HLS playlists and subtitle segments
Loading

Possibly related issues

Suggested labels: needs-review, priority: P3, evidence-required

Suggested reviewers: rhainland

Merge Risk: Minimal · up to 72edc

No actionable current-head risk was established; the PR is mergeable after normal checks.

Architecture risk: Low · up to 72edc

The change affects 3 systems.

Changed systems: internal, docs, contracts

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — internal (service) was modified; 20 changed files map to changed impact.
  • observed — docs (service) was modified; 5 changed files map to changed impact.
  • observed — contracts (api) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in contracts/api/v2/openapi.json: The schema adds video_range as a string property.
  • observed — Modified behavior in docs/design/schemas/playback-v3/v3/decision-response.schema.json: The hls_rendition publication conditions now include server_remux_hls plans when the client also negotiated hls_remux_subtitle_renditions_v1; the existing server_transcode_hls condition is unchanged.
  • observed — Modified behavior in docs/design/schemas/playback-v3/v3/fixtures/valid/hls-subtitle-rendition-decision_response.json: The response’s server_features list adds hls_remux_subtitle_renditions_v1; the existing plan_active_quality_v1 entry is unchanged.
  • observed — Modified behavior in docs/design/schemas/playback-v3/v3/fixtures/valid/learned-limit-decision_response.json: Adds hls_remux_subtitle_renditions_v1 to the fixture’s server_features list; the existing plan_active_quality_v1 entry remains.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 75.95% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 79 functions across 18 files. 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 states the main change: embedded text subtitles are streamed as HLS WebVTT renditions in HLS copy remuxes, which matches the changeset (planner, recipe, subtitle rendition, and protocol chan…
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 description is specific and on-topic. It names the new client feature hls_remux_subtitle_renditions_v1, the copy-remux subtitle rendition behavior, the VIDEO-RANGE and video_range propagation, t…
Full details: Title check

Explanation

The title states the main change: embedded text subtitles are streamed as HLS WebVTT renditions in HLS copy remuxes, which matches the changeset (planner, recipe, subtitle rendition, and protocol changes for the remux path). It is specific and follows the conventional feat(scope) form. Its length of 80 characters is acceptable.

Full details: Description check

Explanation

The description is specific and on-topic. It names the new client feature hls_remux_subtitle_renditions_v1, the copy-remux subtitle rendition behavior, the VIDEO-RANGE and video_range propagation, the subtitle span persistence, and the 404 change for planned copies. It also lists the validation performed and the risks. It describes the changeset in detail, so it is not vague or off-topic.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request 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 Oct 25, 2026
@coderabbitai coderabbitai Bot added evidence-required Needs before-and-after evidence before the Evidence check passes needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. priority: P3 Needs-info or parked size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. labels Oct 25, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

C4 needs re-validation for the new copy-remux rendition path. The recorded C4 result comments on Silo-Server/silo-apple#313, #314, Silo-Server/silo-android#323, and #324 predate this path; they do not demonstrate the keyframe-aligned subtitle playlist or mux-shift timing. Please explain in the PR why these C4 results need re-validation and list the affected tasks. Re-test after merge when a client opts into hls_remux_subtitle_renditions_v1; the current Apple and Android clients send only hls_subtitle_renditions_v1. This does not unblock the #1406 C2 cases for current clients: copy remuxes still use sidecars unless a client sends the new feature. The task issue tables still say “Not run,” but their comments contain the C4 pass results.

Suggested Validation tasks: line:

Validation tasks: changes Silo-Server/silo-apple#313 C4, Silo-Server/silo-apple#314 C4, Silo-Server/silo-android#323 C4, Silo-Server/silo-android#324 C4

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

Posted via Macroscope — v1 validation impact

…waits toward the throttle

A copy remux's subtitle origin now reads the video start its generation
recorded before it probes the first segment, so a missing record costs no
ffprobe run, and after three misses the origin is taken without a mux
shift instead of being retried every few seconds for good.

On a keyframe-planned copy, a subtitle segment FFmpeg has not reached now
counts as the player's position for the throttle while it waits, as the
matching video segment request does. A player that fetches subtitles ahead
of video no longer waits on a paused FFmpeg and then gets a 404.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot removed the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Oct 25, 2026
@silo-kody

silo-kody Bot commented Oct 25, 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 ❌

@macroscopeapp

macroscopeapp Bot commented Oct 25, 2026

Copy link
Copy Markdown

Evidence is incomplete for the visible playback change. The PR reports that the Roku run showed embedded captions without a sidecar, including after a replan, but says the run predates the timestamp-map correction; it therefore does not demonstrate caption synchronization with the corrected build. Please add a recording to the linked evidence page showing the final build with captions aligned to video, including after a seek or replan.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

Comment thread internal/playback/subtitle_rendition.go Resolved
writeFileAtomic created its temporary file and renamed it into place with
paths joined onto the session output directory. It now opens the directory
as an os.Root and creates, renames, and removes the files inside it, as the
filesystem blob store does, so neither name can resolve outside the
directory.

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

silo-kody Bot commented Oct 25, 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 ❌

…ttle position

A planned-copy subtitle request moved the throttler's position to any
segment number it named. One past the plan never comes, and the throttler
then measured FFmpeg's buffer against it and stopped pausing FFmpeg. Only
segments inside the plan now move the position.

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

silo-kody Bot commented Oct 25, 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 merged commit bfdeb55 into main Oct 25, 2026
30 checks passed
@Quick104
Quick104 deleted the feat/remux-subtitle-renditions branch October 25, 2026 02:36
rangoDJ added a commit to rangoDJ/silo-server that referenced this pull request Oct 25, 2026
Main's Silo-Server#3033 moves recording a planned segment request into
notePlannedSegmentRequest, which its subtitle renditions also call. Keep
this branch's narrower near-head case and its planned progress, manifest
and audio recipe helpers, and record the request through main's helper.

Main's Silo-Server#2954 drops SegmentProgress.ProducedCount, which nothing read;
planned progress no longer sets it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code impact: playback Can't play, stalls, or wrong media needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. priority: P2 Limited scope, workaround exists, or polish priority: P3 Needs-info or parked size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants