Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

GordenSun/marble-drop-mv

Media & DesignVideo making

Turn an audio file into a vertically looping marble-drop music video with beat-synced visuals and on-wall lyrics.

This project ships 1 agent skillsSkill list and install →
148
34
JavaScript
MIT
1 day old
+20 stars in 24h

What it does

marble-drop-mv takes an existing song and renders a vertical 1080×1920, 60 fps music video in which a glass marble bounces down a wall of 3D props while the camera follows. Each sung syllable triggers a marble hit, and instrumental sections fall back to beat points. The wall displays real lyrics fetched from Kugou, NetEase Cloud Music, or lrclib, while props, wall colors, ambience (rain, wind, snow, petals, leaves) and sticker sets are chosen from lyric keywords.

No speech-recognition or image-generation model is required for the core pipeline: it uses audio analysis plus Three.js rendering driven by a headless Chrome/Edge browser. The output is a vertical video plus cover image, and the last frame matches the first so the clip loops seamlessly.

Quick start

You need Python 3.9+ with numpy and Pillow, ffmpeg with libx264, Node.js 18+, and Chrome or Edge with WebGL2 support. On Windows, use python instead of python3.

git clone https://github.com/GordenSun/marble-drop-mv.git
cd marble-drop-mv
python3 -m pip install numpy Pillow
cd scripts && npm install && cd ..
python3 scripts/doctor.py

When every check passes, render a song by title and artist:

python3 scripts/make.py song.mp3 --title "Song Title" --artist "Artist Name"

The tool creates a project folder named 小球坠落_<song> in the current directory, containing the rendered MP4, 封面.png (cover) and a production report. To preview in a browser before rendering the whole song, run node scripts/render.mjs serve <project-dir> and open the local preview page.

Useful flags: --stop shots renders only 24 sample frames, --stop plan writes the section plan for manual editing, --seed 2 changes the prop rotation and wall, and --no-lyrics treats the track as instrumental. See SKILL.md for the full plan.json schema and manual overrides; a sample output is available in the demo video.

Constraints

  • Rendering depends on a headless Chromium-family browser and WebGL2. Machines without a usable GPU can set BALL_GL=swiftshader, but CPU rendering is much slower.
  • Accurate syllable-level timing depends on finding lyric data online. If lyrics are missing or a song is a cover/remix, supply your own time-stamped .lrc with --lrc or run as instrumental.
  • The optional --separate flag installs Demucs/torch in a separate virtual environment (about 500 MB plus an 80 MB model) and requires Python 3.10–3.12. Without it, vocal onsets are estimated from the full mix.
  • Lyrics are fetched from public third-party endpoints and are stated as intended for personal study. The output contains the original song and lyrics, so music copyright must be checked before public release.
  • The bundled sticker and prop library is fixed; adding custom icons is supported through scripts, and an optional image-generation model is only for expanding that library. The project is MIT-licensed.

HotRepo's take

The repository appeared on HotRepo's new-project list on 2026-12-03 with 103 stars and 23 forks gained over a growth window of roughly 15 hours. That is a small sample from a single day, and no GitHub all-language daily rank was recorded, so it does not by itself establish a trend.

What stands out is the packaging: a one-command renderer, a doctor script, a headless browser pipeline and an agent-oriented SKILL.md lower the setup cost for a visually specific, repeatable video format. The main technical risk is timing quality when no stem-separation model is installed; the project documents that gap rather than hiding it, and offers an opt-in upgrade path.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. 0xpratzyy/subtleLocally renders animated talking-head captions and lyric videos in 35 styles, as a Codex/Claude Code skill or standalone CLI.TypeScript109
  2. andyhuo520/vibe-knowledgeA Claude Code skill that turns one knowledge point into a narrated, sourced short explainer video, rendered frame by frame from code.JavaScript110
  3. Moessif/code-video-showcaseA recipe for producing 30–90s beat-synced showcase videos with code-drawn frames and synthesized audio, aimed at coding agents.JavaScript128
  4. fahniazz/claude-shorts-skillsFour Claude Code skills for producing vertical cartoon and Minecraft shorts with three.js and Remotion rendering.TypeScript114
  5. Vincentwei1021/video-shotcraftGives Claude Code and Codex a library of coded motion recipes so agents can storyboard and render editable product promo videos from your own screenshots.TypeScript13,427