video-beat-glow
БесплатноЗапускает вложенные скриптыНе проверенBeat-synced edge glow for a video — beat tracking from a song, glow render, and a browser tuner page for the look. Use when making a video's edges pulse to…
от laurigates★ 61 звезда на GitHubОб этом скилле
Beat-Synced Edge Glow
Make a video's edges glow on a song's beats, in each chapter's colour. Three scripts share one beat tracker and one envelope:
| Script | Does |
|---|---|
beats.py |
Tempo and beats of a song; the per-frame pulse envelope |
glow_tuner.py |
Writes a browser page that plays the video with the glow drawn live, for tuning by eye |
beat_glow.py |
Renders the glow into the video |
Ported from shoreline-recon's work/karaoke/ (beats.py, the glow inside
karaoke.py, glow-tuner.template.html), with the glow made standalone.
When to Use This Skill
| Use this skill when... | Use something else when... |
|---|---|
| A video with a song under it should pulse with the music | Burning in lyrics — video-karaoke; glow first, then karaoke on the glowed video |
| Choosing glow strength, width, decay, and which beats pulse | Checking a finished glow frame by frame — video-frame-review |
Execution
Scripts need only numpy, which uv run --with supplies; each step shows the
full command.
Beats. Print the tempo, beat count and gaps:
uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/beats.py song.m4a --json beats.jsonOn the shoreline-recon demo song it found 127.39 BPM, 492 beats over 231 s. Sanity-check the tempo against the song before going on.
Tune by eye. Mux the song under the video first (
video-add-music), so the page plays it, then write the tuner beside that video:uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/glow_tuner.py \ video-music.mp4 --song song.m4a --margin-bottom 80 --accent splat=#14b8a6 --accent mesh=#f59e0bPass
--songwith the original file. Beats taken from the muxed AAC drift (127.43 BPM, 493 beats on the same song), and the tuner would then disagree with the render. Hand the user the page path to open in a browser. Its bottom line isbeat_glow.py's options, to paste back.Render.
uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/beat_glow.py \ video.mp4 song.m4a out.mp4 --margin-bottom 80 --accent splat=#14b8a6 --accent mesh=#f59e0b \ --intensity 0.54 --width 31 --decay 0.46 --floor 0.12 --every 2 --phase 2 --kickPreview a stretch first:
--start 45 --duration 20 --preset 10 --with-song. A preview carries no chapters.
Options
| Option | Default | Effect |
|---|---|---|
--intensity |
0.54 |
Peak opacity on the strongest beat |
--width |
31 |
px at 1920 wide for the glow to fall to 1/e from the nearest edge |
--decay |
0.46 |
s for a pulse to fall to 1/e (30 ms rise into each beat) |
--floor |
0.12 |
Steady glow between pulses, as a share of the peak |
--every, --phase |
2, 2 |
Pulse on beats where (index - phase) % every == 0 |
--kick / --no-kick |
--kick |
Scale each pulse by the kick's strength, or pulse at full height |
--margin-bottom |
0 |
px at 1920 under the picture kept out of the glow (a timeline bar) |
--accent KEY=COLOUR, --default-colour, --sep |
none, #6366f1, " · " |
Chapter colours, the same rules as video-timeline-bar |
--with-song |
off | Mux the song as AAC; otherwise the input's audio is copied |
The defaults are the values Lauri picked in the tuner for the shoreline-recon demo (2026-10-28): a narrow glow on every second beat that lingers, over a faint floor.
How It Works
- Beats: onsets are the bass band's (35–160 Hz) spectral flux, the kick
drum. The tempo is the strongest autocorrelation lag between 90 and 180 BPM,
and beats are placed by dynamic programming (Ellis 2007). A beat's strength
is its peak flux over the 90th-percentile beat's, clipped to 1 and raised to
1.5;
--kickscales each pulse by it. - Glow:
exp(-d / width)of the distance to the nearest edge, screen-blended towards the chapter colour:255 - (255 - f) * (1 - a * colour). The tuner draws the same thing on a canvas withmix-blend-mode: screen. - Agreement: the tuner's JS pulse and the Python envelope agreed within
0.014 over 1003 frames of the real song (measured when the tuner was built).
scripts/tests/test_beat_glow.pyextractspulseAtfrom the shipped template and holds it to the envelope withinexp(-5). That is where the two cut a pulse's tail.
Cost
The glow was the costly part of the original karaoke render: about 60 s of
77 s at 1280 wide, from full-frame float maths. beat_glow.py computes only the
edge bands where the glow can change an 8-bit value. Past
1 + width * ln(255 * intensity) px from an edge the change is under one level,
so the output is identical to the full-frame result (the test checks this pixel
for pixel). Measured on the 234 s, 1280x774 demo:
| Glow per frame | Whole render | |
|---|---|---|
| Full frame | 7.44 ms | — |
| Edge bands (103 px) | 2.94 ms | 49.0 s, agains |
Установить video-beat-glow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/beats.py *)Bash(uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/glow_tuner.py *)Bash(uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/beat_glow.py *)ReadВложенные файлы
FAQ
Что делает скилл video-beat-glow?
Beat-synced edge glow for a video — beat tracking from a song, glow render, and a browser tuner page for the look. Use when making a video's edges pulse to music.
Как установить скилл video-beat-glow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл video-beat-glow запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub