Skip to content

chore(deps): take the dense ASS subtitle drain fix from AetherEngine - #734

Merged
Quick104 merged 16 commits into
mainfrom
chore/aether-subtitle-drain-pin
Oct 11, 2026
Merged

Quick104 merged 16 commits into
mainfrom
chore/aether-subtitle-drain-pin

Conversation

@Quick104

@Quick104 Quick104 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #314 C4; changes #313 C4

After a seek or a resume into densely typeset ASS, signs stay missing until the passage ends; at the start of a file they arrive about 1.5 s late. AetherEngine's embedded subtitle drain decodes at most 256 packets per 0.5 s tick from 15 s behind the playhead, slower than such a passage plays, and its #362 hole hold kept stopping at the playback pump's edge. Silo-Server/AetherEngine#20 fixes both in the engine; this pins Silo to it.

Follows #733, now merged, which draws the signs on the video's clock.

Approach

Validation

Evidence

Surface and build: SiloTV Debug on the tvOS simulator, playing the frame-timed sign fixture described in #733. Before is #733 alone, with the engine at fa70ab5b (the resume run used ef0d2c7f, whose subtitle drain is the same). After is this branch's head, with the engine at 87f85740.

  • Resume at 30 s: before, no signs appear in the 31 s recorded. After, signs appear 1.09 s after the picture, and no frame shows the red blocks after that.
  • From the start: signs are missing for the first 1.47 s before and for the first 0.51 s after. Frames showing red drop from 2.2–2.4% to 1.0–1.3% across four runs each.
  • Dense passages: with fix(player): draw ASS subtitles on the video's own clock #733 alone, two of four runs lost the sign on a few single frames where the drain fell behind. With this pin, none of four runs did.

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

🤖 Generated with Claude Code

Quick104 and others added 2 commits October 11, 2026 16:00
Typeset signs trailed the picture by two to four frames. The overlay
sampled a running clock every 16 ms on the main actor, rendered each
sample through SwiftAssRenderer's float pipeline, and showed it as a
SwiftUI image, so a tracked mask lagged the signage it covers.

Render each sign at the exact timestamp of the frame AetherEngine
reports and queue it on an AVSampleBufferDisplayLayer whose control
timebase is the video's clock. Floor libass time to the millisecond, as
FFmpeg does. Composite libass masks straight into pooled premultiplied
BGRA buffers capped at 1080p, feed libass incrementally by cue id, and
fence each selection by a generation the session sets on the layer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
After a seek or a resume into densely typeset ASS, AetherEngine's
embedded subtitle drain fell behind the playhead, so signs stayed
missing until the passage ended, and at the start of a file they
arrived late. Pin the fork to 5b397da6, which lets a text drain catch
up in one tick and stops the #362 hole hold from firing on re-harvest
seams. The pin also brings in AetherEngine#18, already merged on the
fork: a paused seek on the software path shows the target frame.

The platform selector seals project.yml. This change touches only the
AetherEngine revision line, which owns no source path, so the reviewed
build-input snapshot and the selector seal are refreshed for it.

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

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 74696e6a-ec87-4516-aa72-6ddbf93926ad

📥 Commits

Reviewing files that changed from the base of the PR and between 8ea6e89 and d053e90.


⛔ Files ignored due to path filters (1)
  • iosApp/Silo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved is excluded by !**/Package.resolved

📒 Files selected for processing (5)
  • THIRD_PARTY_NOTICES.md
  • iosApp/Resources/OpenSourceLicenses/README.txt
  • iosApp/project.yml
  • scripts/ci/apple-test-selector-contract.json
  • scripts/ci/select-apple-platforms.py

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 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-11T23:21:54.270061Z d053e90 New commits
🔒 Security Review ✅ Completed 2026-10-11T23:22:56.031931Z d053e90 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.

@silo-triage silo-triage Bot added bug Something isn't working dependencies Pull requests that update a dependency file impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish stacked Stacked on another open PR or branch labels Oct 11, 2026
Take the follow-up on the subtitle drain fix: a seam is proven only from
where the forward prefetch first read after its anchor. Refresh the
selector's build-input snapshot and seal for the revision line.

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89093c0f40

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread THIRD_PARTY_NOTICES.md Outdated
the GNU GPL version 3 text incorporated by LGPLv3.

- Exact source: <https://github.com/Silo-Server/AetherEngine/tree/fa70ab5bd2b0e17fdca5b6f19258e98331852778>
- Exact source: <https://github.com/Silo-Server/AetherEngine/tree/35c5d4dff3f93714414d21395df105dc41a7c6ce>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include the new engine changes in the provenance list

For every build using this revision, the notice now identifies 35c5d4df as the exact source but leaves the accompanying engine pull-request list ending at #17, even though this bump explicitly incorporates #18 and #20. That makes the provenance summary incomplete for the paused-seek and dense-subtitle changes being shipped; add those pull-request links and describe the new modifications in both acknowledgement copies.

AGENTS.md reference: AGENTS.md:L64-L65

Useful? React with 👍 / 👎.

Quick104 and others added 4 commits October 11, 2026 16:45
Take the second follow-up on the subtitle drain fix: a seam is judged by
read proof captured with its window, and proof stops short of a display
set still in assembly. Refresh the selector's build-input snapshot and
seal for the revision line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Take the third follow-up on the subtitle drain fix: a display set in
assembly that memory pressure drops still bounds read proof. Refresh the
selector's build-input snapshot and seal for the revision line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Take the fourth follow-up on the subtitle drain fix: every display set
the prefetch drops before storing it bounds read proof. Refresh the
selector's build-input snapshot and seal for the revision line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Take the last follow-up on the subtitle drain fix: read proof stops at a
packet dropped along with an oversized display set. Refresh the
selector's build-input snapshot and seal for the revision line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 and others added 7 commits October 11, 2026 17:21
Recording a frame copied its table out of the schedule's dictionary and
back, so every report copied all retained frames, up to 20,000, under
the lock. Tables are now mutated in place.

Two smaller timing fixes from review: a late cue refills the frame on
screen even when the clock has moved past that frame's stamp, and the
remote-HLS fallback no longer skips the grid frame just after an
off-grid start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Take the latest follow-up on the subtitle drain fix: read proof stops at
prefetch reads it could not store. List AetherEngine#18 and #20 among
the engine pull requests in the notices, and name the dense subtitle
catch-up in the bundled provenance overview. Refresh the selector's
build-input snapshot and seal for the revision line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When the last sign ends and the transparent canvas cannot be allocated,
the frame now renders again next step instead of leaving the sign up.
The overlay log's slowest time is the slowest single frame rather than
the slowest step's average.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Take the latest follow-up on the subtitle drain fix: read proof is
withdrawn at a prefetch packet with no PTS. Refresh the selector's
build-input snapshot and seal for the revision line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nothing prunes the schedule while no overlay is showing, so once a long
playback filled it, every frame report shifted all 20,000 retained
frames under the lock. Past capacity it now drops the oldest quarter at
once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from fix/ass-subtitle-sign-rendering to main October 11, 2026 23:18
@silo-kody

silo-kody Bot commented Oct 11, 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 ❌
⚠️ 3 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:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links
  • Rank subtitles using container capabilities and one stable cross-client policy

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d053e90952

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread iosApp/project.yml
AetherEngine:
url: https://github.com/Silo-Server/AetherEngine
revision: fa70ab5bd2b0e17fdca5b6f19258e98331852778
revision: 87f8574083f96e7d5f3a9cfe07bb2525f708cd4c

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate the revision that is actually pinned

The commit's Approach, engine-test result, and playback evidence all identify 7dabfa4d, but every build of this tree resolves 87f85740. Because that later dependency revision is what will ship, the recorded validation does not cover the committed input; either restore the tested revision or rerun the relevant engine, app, and playback checks at 87f85740 and update the validation record.

AGENTS.md reference: AGENTS.md:L52-L54

Useful? React with 👍 / 👎.

@Quick104
Quick104 merged commit cd99059 into main Oct 11, 2026
9 checks passed
@Quick104
Quick104 deleted the chore/aether-subtitle-drain-pin branch October 11, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish stacked Stacked on another open PR or branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant