lyric-video
Skill3 starsChanged 16 days agoMITView on GitHub
Turn a song, a cover image and (optionally) plain lyrics text into a finished lyric video — no SRT needed, timings are generated automatically with offline speech recognition and fuzzy alignment that tolerates typos in the lyrics. Two looks: Spotify "now playing" and cinematic motivational (Kalam Hindi font, word highlight). Use when the user asks for a lyric video, karaoke video, Spotify-style lyrics edit, or a motivational lyrics reel.
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- bitwize-music-studio/claude-ai-music-skillstheir own version, first seen Nov 29, 2026
- WEBGRS/skillstheir own version, first seen Nov 29, 2026
- Rudywizz/rudywizz-motiontheir own version, first seen Nov 15, 2026
- boltguo/skillstheir own version, first seen Nov 1, 2026
- flintfromthebasement/skillstheir own version, first seen Jul 6, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- bitwize-music-studio/claude-ai-music-skills★ 723same name
- Rudywizz/rudywizz-motion★ 4same name
- flintfromthebasement/skills★ 1same name
- boltguo/skills★ 0same name
- WEBGRS/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
No cover? One is generated from the title.
- Distinctive: line 77
Check: no clipped lines, one active line, no tofu/boxes (font problem), progress time correct, audio in sync, bars/grade consistent.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lyric Video skill
Input the user gives you: an audio file, a cover image, and the lyrics as plain text
(optional). You deliver: one finished .mp4. The user never has to supply an SRT —
auto_srt.py builds it from the audio.
Do this
pip install pillow imageio-ffmpeg vosk # ffmpeg ships with imageio-ffmpeg
python scripts/make_video.py \
--audio song.mp3 --cover cover.png --lyrics lyrics.txt \
--title "Song Name" --artist "Artist Name" \
--style spotify --out lyric_video.mp4That single command: recognises speech → aligns the user's lyrics to it → writes the SRT →
renders the video in chunks → concatenates → writes lyric_video.mp4.
--style spotify(default) — blurred cover background, album card, progress bar, smoothly scrolling lyrics.--style cinematic— full-bleed background (pass--bg plate.png, or one is generated), 2.35:1 letterbox, Kalam font, word-by-word highlight.--start 9.6 --duration 20— teaser clip.- No cover? One is generated from the title. No lyrics? ASR text is used.
Inputs, and what to do when they are missing
| Input | Notes | If missing |
| Audio | mp3 / m4a / wav | required — ask for it |
| Cover | square ≥1000×1000 | generated procedurally; or make one in Figma (generate_image, prompt in PROMPTS.md) |
| Lyrics text | plain text, one line per lyric line | ASR text is used, timings still automatic |
| Title / artist | text | inferred from the cover or left generic |
| Language | --lang hi (default) or en | pick from the lyrics script |
Typos are expected and handled: both sides are normalised (punctuation, nukta, case) and words are matched with a fuzzy ratio, so "कोलम्बस" vs "कोलंबस" or "आईंस्टीन" vs "आइंस्टाइन" still line up. Words that cannot be matched get interpolated between their neighbours.
Pipeline (what the scripts do)
auto_srt.py— decodes audio to 16 kHz PCM, runs Vosk (offline, downloads a ~40–80 MB model once), optionally constrains decoding with the user's lyric lines as a grammar, aligns them withdifflib+ fuzzy matching, and writes one SRT cue per lyric line.spotify_lyrics.py/motivational_render.py— render frames with Pillow, pipe raw frames into ffmpeg.make_video.py— chunks the render (45 s per chunk by default, keeps memory < 2 GB), concatenates withffmpeg -f concat -c copy.
Quality bar
- Continuous motion, never stepped: interpolate the camera/scroll per frame.
- Active line bigger and brighter; neighbours shrink and dim in tiers.
- Auto-shrink long lines to a safe width; never clip text at the frame edge.
- Correct font per script: Devanagari lines need a Devanagari font (bundled in
assets/fonts/), Latin lines need a Latin font. Never mix them in one string. - One idea per frame: either the background moves or the text moves, not both hard.
Verify before delivering
ffmpeg -ss 12 -i out.mp4 -frames:v 1 check.jpg # 2–3 spotsCheck: no clipped lines, one active line, no tofu/boxes (font problem), progress time correct, audio in sync, bars/grade consistent.
Pitfalls
| Symptom | Cause | Fix |
| Boxes instead of text | wrong font for the script | use font_for(text, …); Devanagari fonts are in assets/fonts/ |
mkl_malloc: failed to allocate memory | 2 GB RAM + big model/audio | Vosk (used here) avoids this; if using whisper, chunk to 8–10 s |
ffmpeg Cannot allocate memory | too many frames in flight | --chunk 40, -threads 2, rc-lookahead=4 |
| Lyrics drift over time | alignment failed on a long instrumental gap | pass --lyrics; keep one lyric line per line of text |
| Background jumps | pre-rendered keyframes swapped, not blended | the bundled renderers blend/interpolate |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

