A Science Topic → One Vox-Style Collage Science Video
Reference episode: ep21-nobel-physics (2026 Nobel Prize in Physics: Trapping Neutrinos Under Antarctic Ice). The effect the user liked in that episode: the voiceover sounds like a conversation, has a strong hook at the beginning and a lingering ending; black-card text and real footage alternate with hard cuts; the music has rhythm and follows the editing.
Work through steps 0–8 in one go, without waiting for user confirmation in between. After each step, give a one‑sentence progress update. Do not export or commit to git unless the user explicitly asks. Before you start, read CLAUDE.md and src/library/README.md in the project root. Prefix all npm / npx / node commands with export NODE_OPTIONS=--max-old-space-size=4096.
Dependencies (open‑source notes)
The voiceover and subtitle steps use the author's private tools, which are not included in the repository:
- Voiceover:
scripts/tts_expressive.pyrequires a Doubao speech synthesis wrapper module. Use environment variableDOUBAO_VOICE_PYto point to it andDOUBAO_TTS_SPEAKER_IDto specify the cloned voice (see script header). If you don't use Doubao, replace it with any TTS that can output MP3, or use a real recording. - Subtitles: The
weilanx-doubao-voice-srtmentioned in Step 5 is the author's private skill. Replace it with any speech‑to‑text tool that can output SRT. - All other steps (research, media search via
commons.py, rendering, music) are in the repository.
Specifications
| Item | Default |
|---|---|
| Aspect ratio | Widescreen 16:9 (1920×1080), VoxShow skeleton, no host |
| Duration | ~1 minute (script 400–430 characters, voiceover 58–63 seconds); use user's duration if specified |
| A-roll | Black card with large text (BlackCard) |
| B-roll | Real footage pinned on a desktop (VoxFootage): videos, photos, official illustrations |
| Voiceover | Doubao cloned voice + mood cues + speaking rate +30; no post‑1.2× speed‑up |
| Music | 124 BPM electronic rhythm, sidechain pumping, heavy hits on cuts, level 0.071 (sits under the voice) |
| Cover | 16:9 first frame + 3:4 vertical version |
0. Determine episode number and directories
- Episode number: take the next number after the largest in
src/episodes/. Work ID:epNN-shortEnglishName, hereafter<ep>. - Code in
src/episodes/<ep>/, footage inpublic/footage/<ep>/(not committed to git), audio inpublic/audio/<ep>/, raw materials and script inmaterials/<ep>/. - Add one row to the "Done" table in
materials/topicCandidatePool.mdwith status 🎬.
1. Research: only authoritative sources
- Use WebSearch to look up the topic; prioritize primary sources: official press releases (e.g., nobelprize.org's press‑release / popular‑information), NASA, institutional websites, top journals; news media only for cross‑checking.
- If WebFetch returns 403 on an official website, use
curl -A "Mozilla/5.0 ..."to fetch the page, then use Python to strip tags and extract the body. - Record every number, year, claim, and its source in
materials/<ep>/research.md. Do not include uncertain claims (e.g., absolute statements like "the first time…" must be verified).
2. Find real footage (B‑roll foundation)
See references/media.md for details. Key points:
- Source priority: NASA / U.S. government agencies (public domain) > Wikimedia Commons (CC0 / CC BY / CC BY‑SA) > official press release illustrations (check terms, usually "free for non‑commercial, needs attribution"). Do not use images from unknown sources; do not rip YouTube videos.
- Use
scripts/commons.py search / info / getto search, check licensing and the real author (Artistfield, not the uploader's username), and download originals. - For videos, first extract one frame every 5 seconds to build a contact sheet, select segments to use, then extract one frame per second around the target to confirm the exact content, then cut to 720p H.264 clips (
-an -vf scale=1280:720,fps=30 -c:v libx264 -crf 20 -pix_fmt yuv420p -movflags +faststart). - Shrink large images with
sips -Z 1800; place everything inpublic/footage/<ep>/. - Write each footage item's filename, content, author, and license into
materials/<ep>/sourceList.md; on screen, each footage item has a note in the bottom‑left corner with "Author / License".
3. Write the voiceover script: like talking to a friend
See references/toneAndScript.md. Hard rules:
- Strong hook: The first sentence pulls the viewer into the scene—use contrasts directly relevant to the viewer, like "Right now, as you hear these words…" or "You feel nothing at all, right?"
- Add tone: Every 1–2 paragraphs include a conversational trigger—a question ("So how do you catch a ghost?"), a twist ("Sounds crazy, but they actually did it."), or a guide ("Think about it…").
- Deep ending, no "OK that's it for this video": The last 2–3 sentences elevate from fact to meaning ("This Nobel Prize rewards not just an instrument, but a new way for humanity to see the universe—with eyes that don't need light."). The final sentence must be short and standalone.
- 400–430 characters; numbers in Arabic digits (TTS reads them accurately), but rough numbers like "两千米" use Chinese characters; avoid colons, parentheses, and dashes.
- Save the script as
materials/<ep>/voiceoverScript.txtand display the full text and character count in your reply.
4. Voiceover: mood cues + model speaking rate
python3 .claude/skills/weilanx-creator-vox-video/scripts/tts_expressive.py \
--text-file materials/<ep>/voiceoverScript.txt --output materials/<ep>/<ep>-voiceover-natural.mp3
- Default mood cue: "Natural, relaxed, like a science communicator chatting with a friend, with variation in emphasis and pace; questions carry curiosity and tease; surprising moments carry awe; slower and reflective at the end; no announcer tone." Default rate: +30.
- Do not use
atempo=1.2: forced speed‑up makes the voice sound stiff; to make it faster, increase--rateor remove words. - Duration target: 58–63 seconds. If it's too long, first remove modifiers, then increase
--rateto 35–40; if too short, do the opposite. - Measure with
scripts/voice_stats.py(uv run --with numpy python ...): pitch range ≥15 semitones, about 40 pauses = acceptable. When comparing two versions, report the numbers to the user. - The user can only hear the audio themselves: keep the test audio and tell the user the file location.
5. Generate subtitles, process voice
- Use the three scripts of
weilanx-doubao-voice-srtto transcribe this mp3 (convert to 16kHz mono first), proofread against the script, each line 6–16 characters with one complete meaning, outputmaterials/<ep>/subtitles.srtandsubtitleScript.md. Record any discrepancies for the user to hear. - Voice processing:
ebur128measure loudness →volume=<gain>dB,alimiter=limit=0.8:level=falseadjust to −16 LUFS (±0.5) → 48kHz stereo 16‑bit →public/audio/<ep>/voice.wav. - Leave room for the ending fade‑out: set
VOICE_SECONDSincues.tsto the end time of the last subtitle + ~2 seconds, and useapad=whole_dur=<VOICE_SECONDS>to pad voice.wav to the same length, so the music can fill the fade‑out. - Run
npm run cues -- materials/<ep>/subtitles.srt src/episodes/<ep>/cues.json, then print the start and end frames for each subtitle (used later for shot layout).
6. Visuals: A‑roll black cards + B‑roll real footage, hard cuts on subtitles
See references/visuals.md, and copy the skeleton from src/episodes/ep21-nobel-physics/film.tsx. Core:
- The whole video is a shot table
SHOTS: {from, kind: 'A' | 'B', C}[].Filmrenders only the current shot. All shots use hard cuts, with the cut point at the subtitle start (cf(n), up to 2–6 frames early). - A‑roll black cards hold the voiceover's "hook numbers, reveal nouns, questions, twists, conclusions": one card per sentence, font size 150–330, key words in yellow text + red hand‑drawn underline (do not use
Highlighton black cards—it's invisible on a black background). - B‑roll is
VoxFootagepinned to an old paper desktop (white border, two tape strips, attribution in the bottom‑left corner). The whole shot slowly zooms in 5%, accompanied by Vox annotations:Labelblack background label,IndexCardindex card,PostItsticky note,Stampstamp,RedCirclered circle,HandLinehand‑drawn arrow / checkmark, handwritten red text. - Rhythm: cut every 2–4 seconds; alternate black cards and real footage—no more than three consecutive shots of the same type. For video clips, you must provide
start(the global frame at which playback begins). - Abstract concepts get a hand‑drawn diagram (e.g., light blocked by dust, neutrinos passing straight through), with elements appearing step‑by‑step as the voiceover progresses.
- Each shot gets a sound effect (
paperfor real footage,stampfor black card,dingfor a number landing,magicfor a reveal,questionfor a question).
7. Music: rhythmic, follows the editing
See references/music.md, and copy the code from audio/episodes/ep21-nobel-physics.mjs (using instruments from audio/score.mjs). Only run node audio/episodes/<ep>.mjs. Core:
- Single 124 BPM beat grid from start to finish. Section transitions snap to the nearest bar line (
snapBar) relative to the subtitle. - Four‑on‑floor kick, snare on beats 2 and 4, sixteenth‑note hi‑hat. Pads and square‑wave arpeggio do sidechain-style pumping (compress on each beat, release).
- During explanatory sections, switch to half‑time. Leave a gap before the ending (e.g., when a turn phrase like "Think about it…" plays, use only pads), then build back up to a heavy hit on the last sentence, and let the music fade over the tail.
- Before every cut to a black card, ramp up a 0.9‑second crescendo, and land a low‑frequency hit exactly on the cut. Pick 3–4 climax words (reveal, shocking number, conclusion) and add a crash cymbal + heavy hit.
level 0.071,depth 0.7; the whole track is about −32 to −34 LUFS. Only adjust globally if the user wants the rhythm more prominent.
8. Cover, copy, preview
- Write
src/episodes/<ep>/Cover.tsx: a 16:9 first‑frame cover (black‑card title on the left + two real footage items on the right + one sticker) and a 3:4 vertical cover. Register<ep>-cover-tallas aStillinRoot.tsx. Render and save asmaterials/<ep>/cover-16x9.pngandcover-3x4.png(the export script will do this automatically). Ep*.tsxusesVoxShow, withcover: {C, frames: start frame of first sentence − 5},subY: 965, andkeywordsfor the episode's highlight words. Mimictests/episodes/ep21-nobel-physics.test.tsto add tests.npm run typecheckandnpm testmust pass.- Frame‑by‑frame check: render at least one frame per shot (
--scale=0.25, one frame at a time in order, wrap inbash -cloop). Assemble into a composite: check if videos are black, if text overlaps footage or subtitles, if elements attached to the last word of a sentence flash by, if the black‑card underline overlaps text. - Use
dbs-xhs-titleto generate 1 main title and 2 alternatives (note the formula number, ≤20 characters). The first sentence of the description is the hook, then a bullet list of key points, then sources and licenses, and finally a topic hashtag. Save asmaterials/<ep>/publishCopy.md. - Run
lsof -i :3000 -sTCP:LISTENto check if Studio is running. If not, start it in the background withnpm run studio. Give the user the URLhttp://localhost:3000/<ep>, and report: full script text and character count, duration, voice loudness, tone stats, number of subtitle lines, shot table, music structure, footage licenses (especially any non‑commercial clauses), and factual/pronunciation items needing user confirmation. Remind the user that they can only judge the audio by listening. - After user confirmation, run
npm run export -- <ep>. Check duration, 1920×1080, −16 LUFS, peak < −1 dBFS. Copy the final render tomaterials/<ep>/and update the candidate pool status to ✅.
Pitfalls we've hit
- In long NASA videos, the scene can change multiple times. After locating the approximate time with a 5‑second contact sheet, extract one frame per second around the target to confirm; otherwise the clip might be a black frame or a different scene.
- Use
Artistfrom Commons (the real author), not the uploader's username. - Elements attached via
cw(n, 'word')at the end of a sentence can flash by invisibly: attach them to the beginning of the sentence withcf(n) + k, or delay the next cut by a few frames. - The
startof a shot must match itsfrom, otherwise the video will start playing mid‑clip. - The music length follows voice.wav, so you must pad voice.wav with silence to
VOICE_SECONDS; otherwise the ending fade‑out will have no music. - For sentences like "Not just X, but Y", do not draw a strikethrough on X (it would be read as "not X"); simply dim X.