beat-sync-video
БесплатноЗапускает вложенные скриптыНе проверенLock a picture edit to a music edit: scene boundaries on downbeats and drops, plus irregular camera-punch hits from bass re-entries and vocal hooks…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
beat-sync-video
Input: an approved music-edit/1 from music-edit-to-length. Output:
<stem>_hits.json and a picture edit whose scenes sit on the music grid.
Scripts run in the quick-tier venv (.venv-music); PKG=<this skill dir>/../../...
1. Lock the scene grid
- The composition's root duration = music duration (
durationof_edit.json). - Scene starts come from
downbeats_video— every scene boundary is a downbeat. - Put a scene boundary on each confirmed drop (the drop-aligned boundary): the new scene starts exactly on the drop's video time.
- To land that boundary, compress or stretch the scene before the drop (trim or speed-ramp its shots, drop a shot, or hold the last one) so that it ends exactly on the drop downbeat. Never shift the drop to fit the picture.
2. Pick the hits
.venv-music/bin/python "$PKG/.pi/skills/beat-sync-video/scripts/pick_hits.py" music/track_edit90_edit.json \
[--min-gap 1.5] [--hook-db -30] [--density 7]
- Structural hits: downbeats with the largest 30–150 Hz jump on the edited audio.
One within ±1 downbeat of a confirmed drop (confidence ≥ 0.5) becomes
big, snapped to the drop; the rest aremid. - Hook hits (needs a vocals stem from the deep tier): bars where the vocals bar-RMS
crosses
--hook-dbfrom below. Without stems the script says hook detection was skipped. - Spacing is irregular by construction: a minimum gap (bars), about one hit per
--densityseconds, and a mechanical every-N-bars grid is thinned until ≤ 70 % of intervals are identical. - Hand-placed hits: add
{"t": …, "tier": "big", "source": "manual", "why": "…"}to_hits.json. Manual hits are never thinned and survive every re-run.
music-hits/1: schema, edit (relative path), hits[] {t, tier: big|mid, source: structural|hook|manual, why} sorted by video time, recipe {big, mid}.
3. Punch recipe
| Tier | Scale | y | x | Rotation | Settle | Easing |
|---|---|---|---|---|---|---|
| big | 1.12 | −48 px | ±36 px | 0.8° | 0.6 s | expo.out |
| mid | 1.07 | −28 px | ±18 px | 0.4° | 0.45 s | expo.out |
Read the values from recipe{} in _hits.json — never duplicate the constants in a
generator. Alternate the horizontal jolt direction per hit (+x, −x, +x …).
4. HyperFrames adapter
- Wrap each scene's content in a
.camwrapper INSIDE each sub-composition (<div class="cam" id="s6-cam">…</div>incompositions/s6.html). Root-level transforms do not reach sub-composition content, so a punch on the root host does nothing. - One seek-safe tween per hit, from the recipe values back to identity, at the
scene-local time
hit.t − scene.start:tl.fromTo("#s6-cam", {scale:1.12, y:-48, x:36, rotation:0.8}, {scale:1, y:0, x:0, rotation:0, duration:0.6, ease:"expo.out", immediateRender:false}, 0.000);immediateRender:falsekeeps earlier frames untouched when HyperFrames seeks. - Put
data-layout-allow-overflowon zoomed shots so the scaled content is not clipped by the layout checker. - Generate the adapter code from
_hits.json; never hand-edit generated HTML.
5. Verification
- Snapshot pair per tier: snapshot the hit frame and a settled frame
(
t + settle + 0.1 s), measure the scale and vertical offset between them (they must match the recipe within a few px). - Edge-bleed check: at peak displacement no frame edge may show the background — inspect all four edges of the hit snapshot; raise the shot's zoom or lower the punch if one does.
- Watch the drop and one mid hit in the preview before the final render.
Установить beat-sync-video в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл beat-sync-video?
Lock a picture edit to a music edit: scene boundaries on downbeats and drops, plus irregular camera-punch hits from bass re-entries and vocal hooks (<stem>_hits.json, schema music-hits/1) with a HyperFrames adapter recipe. Use on "sync the video to the beat", "add camera punches on the drops", "cut on the music", "make the edit hit the drop".
Как установить скилл beat-sync-video?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл beat-sync-video запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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