lyric-video
Skill1 starsChanged 26 days agoMITView on GitHub
Turn lyrics (plus an optional song) into an animated lyric motion video (文字PV / lyric video / kinetic typography) and export MP4, alpha MOV or PNG frames, using the JIZURA engine in headless Chromium. Use when the user asks to make a lyric video, 歌词视频, 歌词动画, 文字PV, リリックビデオ, kinetic typography from lyrics, or to export lyrics as a video with beat sync.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- flintfromthebasement/skillstheir own version, first seen Jul 6, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- flintfromthebasement/skills★ 1same 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.
In this repository2 other files it gives its agents.
- gemini-image-genSkill
- human-writing-craftSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 85
Read references/lyrics-syntax.md and add markup without changing the words:
- Very specific: line 96
Call AskUserQuestion with these questions in a single call (first option = default, Recommended):
- Very specific: line 109
Read and show preview.jpg.
- Very specific: line 111
Ask (with AskUserQuestion) whether to render this look, roll another seed, switch theme / style, or adjust effects (--fx).
- Distinctive: line 123
Run long renders in the background and wait for them to finish.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lyric Video
node <skill-path>/scripts/render.mjs lyrics.txt --audio song.mp3Output: lyric-videos/{timestamp}-{slug}/ containing video.mp4, project.json (the full look, reusable), cuts.json (every cut's text, time and techniques). A JSON summary is printed on stdout; progress on stderr.
The engine lays out every cut from ~860 small parts (layouts, enter / hold / exit motion, decor, text treatments, backgrounds, camera, screen effects, transitions) and 27 styles. A seed picks the combination, so each seed is a different video.
Requirements
- Node.js 18.3+ and
ffmpegon PATH - Playwright with Chromium, installed once next to the script:
npm install --prefix <skill-path>/scripts && npx --prefix <skill-path>/scripts playwright install chromium(An existing global Playwright is found too. A system Chrome works with --chrome PATH or CHROME_PATH.)
- Network for Google Fonts on first use (offline, the system's CJK fonts are used instead).
First-time permission setup:
claude config add permissions.allow "Bash(node */lyric-video/scripts/render.mjs*)"Lyrics come from the user
Use only lyrics the user provides (pasted text, a .txt or an .lrc file). If the user names a published song without giving its lyrics, ask them to paste the lyrics or give the file; do not write out an existing song's lyrics from memory. Rights to the lyrics and the song stay with their owners; rights to the output video belong to the user who made it.
Options
| Flag | Values | Default |
--audio FILE | any format ffmpeg reads | none: timing estimated from line length |
--preview | contact sheet only (preview.jpg, one frame per cut) | off |
--format | mp4 (H.264 + AAC) · mov (ProRes 4444) · png (frame sequence + audio.wav) | mp4 |
--transparent | no background (mov / png only) | off |
--key-bg | green · black (white text and effects only, for compositing) | off |
--aspect | 16:9 9:16 4:3 3:4 1:1 4:5 21:9 | 16:9 |
--res | short side: 720 1080 1440 2160 | 1080 |
--fps | 24 30 60 | 24 |
--theme | lyricpv kinetic wa horror pop ballad | any |
--style | style key, see references/styles.md | from the roll |
--seed N | the look and the cut plan | random (reported) |
--plain | skip the random look; JIZURA defaults (noir) | off |
--parts | extra,wa,typo,kinetic,horror subsets | extra,wa,typo,kinetic |
--fx k=v,… | motion glitch chroma decor density texture bgSwitch (0–1) | from the roll |
--project FILE | reuse a project.json (same look); other flags still override | — |
--title --artist | shown in long interludes | from [ti:] [ar:] |
--start S --end S | render only this time range | whole song |
--crf N | H.264 quality | 18 |
--workers N | parallel renderers | up to 4 |
--share | also write video_share.mp4 (CRF 26, ≤ 8 Mbps; ~5× smaller) | off |
--out-dir DIR | output folder | auto |
Lyrics markup (/ cut split, *emphasis*, ! flash, [間奏 8] interlude, LRC tags): references/lyrics-syntax.md.
Workflow
IMPORTANT:
- You MUST use
AskUserQuestiontool (not plain text) to collect user input. Plain text does NOT pause execution. - Match the user's language for all UI text (questions, labels, descriptions).
Step 1: Lyrics and song
- Get the lyrics from the user (see above). Save them as
lyrics.txt(or use their.lrcas is). - Note the song file path if they have one.
- Song but no LRC timestamps → tell the user that cuts will snap to the beat but line starts are estimated, so lines may not land on the vocals. Offer: an LRC file, or
[mm:ss.xx]tags on a few key lines (untagged lines are spread between them). - LRC from another source (a music platform, another edit of the song) → check it fits this audio: preview a few seconds around the first line with
--start/--end, or compare the first tag with where the intro ends. An LRC made for another version shifts every line.
Step 2: Mark up
Read references/lyrics-syntax.md and add markup without changing the words:
/in lines longer than ~14 CJK characters / 6 words, at a phrase break*…*on 1–2 key words per section;!on the hook or climax line[間奏 N]for instrumental sections when the song has them (from LRC gaps or the user). With LRC, put it untagged right after the line before a long gap (> ~8 s) with N ≈ the gap minus that line's length, and one after the last line to cover the outro up to the end of the song; otherwise those stretches show nothing[ti:…][ar:…]if the user gave title / artist
Show the marked-up lyrics briefly so the user can correct them.
Step 3: Settings
Call AskUserQuestion with these questions in a single call (first option = default, Recommended):
- Ratio — header: "Ratio", options: "16:9 (Recommended)" / "9:16 vertical" / "1:1" / "4:5"
- Look — header: "Look", options: the theme that fits the song best (see the table at the end of references/styles.md) marked Recommended / "Random" / one or two other themes. For a short-video platform (抖音, TikTok, Reels, Shorts), recommend 9:16 in the Ratio question
- Quality — header: "Quality", options: "1080p 24fps (Recommended)" / "720p 24fps (faster)" / "1080p 30fps" / "4K 24fps (slow)"
- Format — header: "Format", options: "MP4 with song (Recommended)" / "Green screen MP4" / "Transparent MOV (ProRes 4444)" / "PNG sequence"
Step 4: Preview
node <skill-path>/scripts/render.mjs lyrics.txt [--audio song.mp3] --preview --theme T --aspect A [--seed N]Read and show preview.jpg. Report the seed, style and mood from the summary. A thumbnail taken mid-transition can look nearly empty; that is normal.
Ask (with AskUserQuestion) whether to render this look, roll another seed, switch theme / style, or adjust effects (--fx). Repeat previews until the user picks one. A preview takes seconds; a full render takes minutes.
Step 5: Render
Reuse the chosen preview's look exactly:
node <skill-path>/scripts/render.mjs lyrics.txt [--audio song.mp3] --project <preview-dir>/project.json --res R --fps F [--format …] [--key-bg …]Speed is roughly 15 frames/s at 1080p on 4 cores (a 4-minute song at 24 fps ≈ 6–7 minutes; 4K ≈ 4× slower). For long songs, tell the user the estimate first; to check something quickly, render a slice with --start / --end.
Run long renders in the background and wait for them to finish.
Step 6: Results
- Report the video path, duration, resolution, seed and style. A full song at CRF 18 can be 200 MB+; render with
--sharewhen the user will send or upload it - Mention
project.json: pass it back with--projectto re-render the same look — another resolution or format gives the identical video; another ratio keeps style, timing and cuts while layouts adapt to the new frame - On
success: false, readerrorand see below
Error Handling
| Error | Cause | Fix |
playwright not found | Playwright not installed | run the install command in Requirements |
could not start Chromium | browser not downloaded | npx playwright install chromium, or --chrome PATH |
ffmpeg not found | ffmpeg missing | install ffmpeg |
unknown style | typo in --style | use a key from references/styles.md |
--transparent needs --format mov or png | MP4 has no alpha | use --format mov or --key-bg green |
| fonts look generic | Google Fonts unreachable | check network; install Noto CJK fonts for offline |
Credits
Engine: JIZURA 字面 by hakoniwa, MIT License (vendor/LICENSE.JIZURA). The bundle in vendor/ is the engine without the editor UI; rebuild it from a newer checkout with python3 scripts/build_engine.py /path/to/JIZURA.
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.

