Skip to content

Cut fade, steadier Apple TV sync, no stall at start - #37

Merged
mathieuletyrant merged 3 commits into
mainfrom
feat/cut-fade-clock-load
Nov 15, 2026
Merged

mathieuletyrant merged 3 commits into
mainfrom
feat/cut-fade-clock-load

Conversation

@mathieuletyrant

Copy link
Copy Markdown
Owner

Three changes found while watching with the WLED Strip (logs of 15/11).

  • Cut fade (feat(look)): a Track finds its Cuts when it loads. Near a Cut, centered smoothing widens to the new Look setting Cut fade (default 400 ms, in the presets too), so Smoothing can stay low to follow the picture while cuts still fade softly. Centered smoothing's weights now reach zero at the window's edge, so the wider window shows no jump.
  • Steadier sync (fix(sync)): an Apple TV's reports swing about ±0.4 s around the truth every few seconds, and the clock nudged itself toward each one (about once a second). It now corrects only when the mean error of the last 30 reports (~40 s) is off. Seeks, pauses and new films still re-sync at once.
  • No stall at start (fix(player)): Tracks are read on a blocking thread instead of the frame loop, which froze the lights ~0.7 s at every start.

Tests: cargo test (38 passed, including new tests for cut detection, cut fade continuity and the swinging reports), pnpm --filter web typecheck.


Generated by Claude Code

… picture

A Track now finds its Cuts when it loads (a frame that changes much more
than the frames around it). Near a Cut, centered smoothing widens to the
Look's new Cut fade, so Smoothing can stay low and still soften cuts.
Centered smoothing's weights now reach zero at the window's edge, so the
wider window shows no jump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDWJeHn6fgxQ346FAdH
An Apple TV's reports swing about ±0.4 s around the truth every few
seconds, and the clock nudged itself toward each of them, about once a
second. It now corrects only when the mean error of the last 30 reports
(about 40 s) is off, so the swings cancel out and the lights stay put.
Seeks, pauses and new films still re-sync at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDWJeHn6fgxQ346FAdH
Decompressing a Track (and finding its Cuts) takes most of a second for a
long film; done on the frame loop, it froze the lights at every start
("frame loop stalled 0.69 s at 0:01"). Tracks are now read on a blocking
thread and picked up by the loop when ready, at start and when an
Analysis ends during playback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDWJeHn6fgxQ346FAdH
@mathieuletyrant
mathieuletyrant merged commit fbcd44e into main Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants