Communitygithub.com

Music Slideshow

Create a beat-synced slideshow video from music and photos (events, trips, graduations, appreciation parties, weddings, etc.) using FilmCraft and EffectCraft. This skill handles the entire workflow: music analysis (tempo, bars, chorus positions) → scenario design matching the content → photo selection → effect selection (Ken Burns, dissolves, white flashes, shakes, chapter titles, collages, grids) → automatic timeline generation and assembly → review → export, following specifications and approval gates.

What is Music Slideshow?

This skill, Music Slideshow, automates the creation of professional slideshow videos by synchronizing photos with music beats using FilmCraft and EffectCraft. It analyzes music to detect tempo, bars, and chorus positions, then designs a narrative scenario aligned with the music's structure and the photo content. Users can select from a rich set of effects including Ken Burns, dissolves, white flashes, shakes, chapter titles, collages, and grids. The skill generates a timeline automatically, allows for review and iteration with approval gates, and exports the final video. It is designed for macOS and uses Python, librosa, ffmpeg, and the FilmCraft/EffectCraft tools. The workflow is driven by specifications documents and approval gates, ensuring the final product aligns with the client's memories and expectations.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/yuki-asaka/music-slideshow/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Music & Photo Slideshow

Combine the structure of the music (buildup and release) with the story of the photos (timeline, event highlights, people) to create a video where transitions sync with the beat. Write project-specific values in data/show.json and data/selection.csv; scripts are used as-is without modification.

This skill's folder is referred to as SKILL_DIR (e.g., ~/.claude/skills/music-slideshow). Scripts reside in SKILL_DIR/scripts/.

Core Principles

  • This is the client's memory video. Never guess the narrative axis, copy, teacher names, or music structure. Release documents at each stage and obtain approval before proceeding (see references/process.md).
  • Photos must not leave the local environment. Do not send student or family photos to external services such as image generation AIs. Generated images (backgrounds) must not contain people.
  • Beats are the only ground truth. Cuts occur one frame before the beat; the peak of white flashes and shakes fall exactly on the beat. Acceptance criteria: over 90% of transitions are within ±2 frames (actual results: 100% within ±1 frame).
  • Let the photos tell the story. Use minimal text, avoid placing text at the beginning of choruses, and limit the use of strong effects.
  • Leave it rebuildable. Do not manually edit FilmCraft; instead modify show.json and selection.csv and rebuild with scripts.

Prerequisites

  • macOS (photo conversion uses sips, fonts use Hiragino), Python 3 with Pillow, ffmpeg/ffprobe
  • librosa (for music analysis only; run analyze_music.py and find_hits.py using Python from its virtual environment)
  • filmcraft-cli (headless FilmCraft) and EffectCraft MCP (run_script, command_batch, render_frame, save_project)
  • Work is done in the project root (the folder containing data/, work/, project/, specs/, output/). Scripts resolve relative paths from there.
assets/          Music (assets/bpm/), generated images (assets/generated/G-01.jpg …)
data/            show.json, selection.csv, beats.json, hits.json, photos.csv, photo_stats.csv, clips.csv, timeline.json
project/         slideshow.fcproj (FilmCraft), graphics.ecproj (EffectCraft), make_graphics.js and graphics_plan.js (copies)
work/            photos/ (converted), sheets/, graphics/ (.mov and assets), timeline/, review/, song_map.md
specs/           requirements.md, design.md, task.md, review-log.md, acceptance.md
output/          review_vN.mp4, preview_1080p.mp4, deliverables

Workflow

0. Preparation (tasks that can be done before the interview)

  1. Review assets: photo folders (counts per event), videos, and music. Copy SKILL_DIR/assets/show.example.json to data/show.json, then fill in project, photos, and music.file (other fields come later).
  2. Photos: convert_photos.py → fix_orientation.py work/photos → make_sheets.py. Videos: list_clips.py
  3. Music: analyze_music.py (leave sections empty) → find_hits.py "<song>" → song_map.py
  4. Use the findings (tempo, length, estimated structure, counts per event, usable videos) as material for the interview.

1. Requirements (G1)

Ask about the purpose, audience, screening environment, mandatory people and scenes, allowable text, sequel plans, privacy scope, and whether commits are needed. Write the results in specs/requirements.md. Present questions in a "Question / Our Assumption" table at once.

2. Design (G2) — The core of this skill

Read references/scenario-design.md before proceeding.

  1. Estimate the music structure (work/song_map.md) and have the client verify by ear (whether the first beat is beat 1, section boundaries, beginning of B-melody). Update sections, chorus_bars, end_black_bar, and music in show.json, then re-run analyze_music.py.
  2. Define the narrative axis (a phrase where the music theme and photo content overlap).
  3. Assign roles to sections, create a tempo ramp, and allocate by bar.
  4. Select effects (see references/effects-catalog.md). Document where and why each effect is used.
  5. Draft text copy and prompts for generated images (no people, consistent art style).
  6. Compile everything into specs/design.md (template in references/process.md). The per-bar table must be granular enough to map directly to show.json and selection.csv.

When experimenting with new effects or tool features, validate on a small scale before full implementation (see references/tool-notes.md for known pitfalls).

3. Selection (G4)

Read references/photo-selection.md. Review contact sheets using Read, then write data/selection.csv (columns defined in references/show-json.md). Look up files from IDs using photo_stats.csv. Generate a preview image list with preview_selection.py and have the client confirm it.

4. Implementation

python3 SKILL_DIR/scripts/prep_graphics.py            # Prepare grid, collage, and generated image assets
python3 SKILL_DIR/scripts/graphics_plan.py            # Generate project/graphics_plan.js, project/make_graphics.js, work/graphics/render_steps.json

EffectCraft (first time, save an empty project as project/graphics.ecproj):

  1. Pass the code displayed by graphics_plan.py (two $.evalFile calls and buildAll()) to run_script.
  2. Use render_frame to view chapter titles and text frames one by one.
  3. Pass the content of work/graphics/render_steps.json as steps to command_batch for rendering, then save_project.

To rebuild only a subset, use graphics_plan.py --only CH7,CH8,GRID and pass the same names to buildAll(["CH7","CH8","GRID"]).

python3 SKILL_DIR/scripts/build_timeline.py           # Generate data/timeline.json (fix selection.csv until problems count is 0)
python3 SKILL_DIR/scripts/apply_timeline.py           # Generate project/slideshow.fcproj (with burn-in)
python3 SKILL_DIR/scripts/check_cuts.py project/slideshow.fcproj --timeline data/timeline.json
python3 SKILL_DIR/scripts/export.py frames 12,27,46.5,60 work/review/v1_sheet.jpg   # Inspect specific bars with Read
python3 SKILL_DIR/scripts/export.py video review output/review_v1.mp4               # Use run_in_background

5. Review (G5)

See "Review Process" in references/process.md. Before showing the client, personally verify beat alignment, frame accuracy, duration, and audio levels. Log every issue in review-log.md, identify the root cause, fix it, and check similar sections. Report findings. Finally, produce a screening version with apply_timeline.py --no-burnin → export.py video screen output/preview_1080p.mp4.

6. Delivery (G6)

Export with export.py video screen and export.py video master, verify duration, format, and audio levels, and document acceptance criteria item by item in specs/acceptance.md.

Script Reference

ScriptInput → Output
convert_photos.pyshow.json's photos → work/photos/・data/photos.csv
fix_orientation.pyApply EXIF orientation to pixels in work/photos/
make_sheets.py→ work/sheets/・data/photo_stats.csv (ID, blur, brightness, orientation, similar photo groups)
list_clips.py→ data/clips.csv
analyze_music.pyMusic & show.json → data/beats.json (beats, bars, sections, per-bar intensity)
find_hits.pyMusic → data/hits.json (candidate hit points; confirm by ear)
song_map.py→ work/song_map.md (music map for scenario design)
preview_selection.pyselection.csv → work/review/selection_preview_*.jpg
prep_graphics.py→ work/graphics/grid/・collage_*/・bg/
graphics_plan.pyshow.json・beats.json → EffectCraft configuration and render steps
make_graphics.jsFunctions to create EffectCraft compositions (copied by graphics_plan.py)
build_timeline.pyshow.json・selection.csv・beats.json → data/timeline.json
apply_timeline.pytimeline.json → project/slideshow.fcproj (--no-burnin for screening)
check_cuts.pyBeat alignment inspection
export.pyVideo (review / screen / master) and frame exports
shake_steps.pyShake motion table (used by build_timeline.py)

Reference Materials (read when needed)

  • references/scenario-design.md — Creating music maps, section roles, tempo ramps, text, group photos, event additions (must read before design)
  • references/effects-catalog.md — When and how to use each effect, values, implementation locations, track structure
  • references/show-json.md — Complete reference for show.json and selection.csv fields
  • references/photo-selection.md — Selection criteria, 16:9 cropping, privacy
  • references/tool-notes.md — Known pitfalls in FilmCraft, EffectCraft, and librosa (check when stuck on implementation or export)
  • references/process.md — Stages and approval gates, document templates, review and screening
  • assets/show.example.json — Proven configuration (130 BPM, 109 bars, 8 events, 3 min 21 sec)

Related Skills