Repository navigation
Cut fade, steadier Apple TV sync, no stall at start - #37
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three changes found while watching with the WLED Strip (logs of 15/11).
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.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.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