Skip to content

feat(track): finer Edges at 24 fps, so a Strip follows the picture - #33

Merged
mathieuletyrant merged 1 commit into
mainfrom
claude/lueur-bandeau-led-s77mlq
Nov 15, 2026
Merged

mathieuletyrant merged 1 commit into
mainfrom
claude/lueur-bandeau-led-s77mlq

Conversation

@mathieuletyrant

Copy link
Copy Markdown
Owner

A WLED Strip read the 16×9 grid at 12 fps. Five LEDs shared each column, so the colors blurred along each side, and a cut could land 80 ms late.

What changes

  • Edges: a Track now also holds a band 10% deep along each side of the picture. It is cut into 64 cells on the top and bottom and 36 on each side. Each Strip LED reads the cells right in front of it, corners included. A Hue Area still reads the grid.
  • 24 fps analysis, sampled at 128×72 (was 96×54).
  • Dominant color: colorful pixels count more than grey ones when a cell is averaged, so a red object on a grey wall stays red. This applies to the grid too.
  • Track format v2: the header now carries the Edge sizes. Each frame is stored as its difference from the previous one, which zstd packs much better. Tested on 10 min of Big Buck Bunny: 3.6 MB against 1.6 MB for a v1 Track, with the same CPU time.
  • Older Tracks: v1 Tracks still play, and a Strip reads their grid as before. They are no longer fresh, so Scans analyze the Library again. A film played with a v1 Track goes first in the queue.

Before (grid) / after (Edges), Strip 35/65/35: each LED follows its own part of the edge instead of a blur along each side.

Refs #28, #29, #30


Generated by Claude Code

A WLED Strip read the 16×9 grid, 12 times a second: five LEDs shared a
column, the colors blurred along each side, and a cut could land 80 ms
late. A Track now also holds the Edges: a band 10% deep along each side
of the picture, in 64 cells on the top and bottom and 36 on each side,
and every Track is analyzed at 24 fps.

- Analysis: frames are sampled at 128×72 (was 96×54). A cell's color
  counts colorful pixels more than grey ones, so a red object on a grey
  wall stays red instead of a dull pink (Hue's grid too).
- Rendering: each Strip LED takes the Edge cells right in front of it,
  around the corners too; the Look's spread still widens it. A Hue Area
  keeps reading the grid.
- Track format version 2: Edge sizes in the header, frames stored as
  their difference from the previous one, which keeps the file at about
  2× a version 1 Track (3.6 MB for 10 min of Big Buck Bunny, against
  1.6 MB) for 2× the frames and the Edges. Decoding costs the same.
- Version 1 Tracks still play (a Strip reads their grid as before), but
  are no longer fresh: Scans analyze the Library again, and a film
  played with an older Track goes first in the queue.

Refs #28, #29, #30

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDYFwNv4NMRRJyLea93
@mathieuletyrant
mathieuletyrant merged commit b3f7e42 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