Skip to content

A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的

1.5 KB
Raw Blame
#!/bin/sh
# Rebuild the film from scratch: sh styles/stained-glass/demo/build.sh (from any directory)
set -e
cd "$(dirname "$0")/../../.."
PY=.venv/bin/python; D=styles/stained-glass/demo; O=styles/stained-glass
$PY core/tts/tts.py $D/lines.json $D/voices                    # 1. Kokoro narration (bf_alice)
$PY core/tts/asr_check.py $D/lines.json $D/voices              # 2. whisper check (asr field: knight/night homophone)
node core/render/events.mjs $D                                 # 3. timeline -> events.json (voice, foley, subtitle cues)
$PY $D/music/score.py                                          # 4. original score (D Dorian; recorder, organ, harp, chimes, bells, timpani, glass)
$PY $D/mix.py                                                  # 5. foley + narration + ducked score -> mix.wav
$PY $D/subs_export.py                                          # 6. subtitles -> stained-glass.srt
node core/render/video.mjs $D --fps 24 --workers 3 --out $D/out/video24.mp4   # 7. frames (~3 min with 3 workers)
CRF=22 sh $D/tools/mux.sh $D/out/video24.mp4 $D/mix.wav $O/stained-glass.mp4 24 4   # 8. mux: two-pass loudnorm -14 LUFS, grain 4
still() { for i in 1 2 3; do node core/render/still.mjs "$@" && return 0; echo "retry $i"; done; return 1; }
still $D 8.2 --prefix poster_ --out $D/out/st && cp $D/out/st/poster_8.2.jpg $O/poster.jpg            # 9. poster (title reveal)
still $D 40.6 --q 'nosub=1' --prefix sf_ --out $D/out/st && cp $D/out/st/sf_40.6.jpg $D/stills/styleframe.jpg