What does Horror Storybook 9:16 Short Film Workflow do?
Produce mobile-ready vertical (720x1280 @ 30fps, H.264 Main L3.1, AAC-LC 48kHz) dark-storybook horror films featuring Hybrid/Full True Character Animation (Google Flow Omni 1.2 Flash anchored on locked Start Frames) alongside subtle 4-frame Line Boil fallback, zero subtitle drift, and verified visual/audio quality.
Keep
SKILL.mdworkflow-level. Read style-bible.md before authoringproject.jsonor generating images, horror-sfx-recipes.md before writing each project's soundscape script, and omni-flash-animation.md before animating shots in Google Flow.
Phase 0 — Source Crawl & Story Approval Gate
- For web threads or multi-part search results (e.g., PTT Marvel links), use the
browsersubagent to open every chapter in chronological order and capture complete body text plus pivotal author comments/edits. Verify visited origins againstBROWSER_HOST_FACTS. - Present to the user BEFORE starting production:
- Full list of verified source URLs and chronological beat-by-beat summary.
- 2 ending options when applicable (e.g., Option A: pure chilling horror linger vs. Option B: full documentary epilogue).
- Wait for explicit confirmation before generating audio or visuals.
Phase 1 — Project Config & Sample-Locked Multi-Voice TTS
- Initialize workspace
<project_dir>/{shots,audio/cues,scripts}. - Author
<project_dir>/project.jsonfollowing style-bible.md:- Every cue line
<= 15CJK characters; 2 lines max; 1:1 literal parity between spoken narration and subtitle text. - Never use
・(U+30FB) intitle_tag(Songti TC Boldlacks it and renders□); use|(U+FF5C) or·(U+00B7). - Configure gentle static Line Boil (
"boil": {"amp": 0.35, "wavelength": 115.0, "hold_frames": 6}) and optional multi-voice"tts.roles"map (narrator,boss_room,boss_phone,protag_casual,protag_panic,master, etc.) plus per-cue"role"/"instructions"(backward-compatible with single-voicetts.voiceprojects).
- Every cue line
- Run per-cue narration synthesis (
OPENROUTER_API_KEYenv var or--key-file, never log or print keys):python3 ~/.gemini/config/skills/horror-storybook-video/scripts/gen_tts_locked.py "<project_dir>"- Checks
Songti TC Bold&Heiti TC Mediumglyphs against.notdeftofu mask (\uffff) and enforces line width<= 600px. - Calls
google/gemini-3.8-flash-ttsper cue with role voice/fallback + pre-stitch acoustic FX (narrator,warehouse_room,phone_rx,stall_reverb,temple_reverb,hall_far), trims silence (areverse), retries outliers up to 3 attempts, clamps tail via-t, stitchesaudio/vo_full.wav, and writesaudio/vo_timeline.json.
- Checks
Phase 2 — 3-Tier Horror SFX Architecture & Pre-AAC Limiter
- Read horror-sfx-recipes.md and write
<project_dir>/scripts/make_horror_bgm.pyreadingaudio/vo_timeline.jsonandaudio/vo_full.wav. - Follow the 3-Tier Horror SFX Architecture:
- Tier 1 — Flow
Omni 1.2 Flashnative synced foley (0extra credits): Extract synced SFX from animated hero shots viascripts/extract_flow_audio.pyduring Phase 3.5, then re-runmake_horror_bgm.pybefore final Phase 4 render so Flow foley ducks cleanly intoaudio/master_mix.wav. - Tier 2 — Higgsfield
seed_audioCLI: Use ONLY for static-shot SFX gaps afterhiggsfield workspace set <id>(higgsfield generate create seed_audio --prompt "..." --format wav --sample_rate 48000 --wait --json; note no--durationflag). Never bypass Cloudflare (cf-mitigated: challenge) or CAPTCHAs on Pixabay. - Tier 3 — Procedural Python/FFmpeg beds: Dissonant sub-drones, 60Hz hum,
1.8s–2.2sambient vacuum drop before the core scare,-13 dBreverse-reverb whisper shadows, zero-asset foley, and hard silence cut atfinal_blackout_time.
- Tier 1 — Flow
- End the ffmpeg master
amixfilter chain withloudnorm=I=-14.0:TP=-2.0:LRA=10,alimiter=limit=0.6310:attack=5:release=50:level=false:latency=trueso AAC inter-sample overshoot stays< -1.5 dBTPon the first render. - Run
make_horror_bgm.py(initially with Tier 2/3, and re-run after Phase 3.5 Tier 1 extraction) and verifyaudio/master_mix.wavduration matchesvo_full.wav.
Phase 3 — 9:16 Illustrations (Google Flow First) & Contact Sheet Gate
- Read style-bible.md for architecture/cast locks and Hitchcockian psychological-horror substitutions (zero readable text, zero borders/split panels, zero corpses/nooses/gore, dark uncluttered lower 25%).
- Generate all 16 shots Google Flow FIRST (never bypass CAPTCHAs or bot checks):
- Open ONE clean Flow project (
https://flow.google.com/->Image->Nano Banana 2.1->9:16->1K->x1,0Flow credits), sending at most 2 prompts per browser batch and downloading borderless1K Original sizeframes (all 16 stills remain inside Flow's library for Phase 3.5). - Quota fallbacks ONLY: Gemini Web (
9:16, 4x4 batches,801x1011lightbox screenshot) or Higgsfieldnano_banana_flash(higgsfield generate create nano_banana_flash --aspect_ratio 9:16 --image <anchor> --wait --json).
- Open ONE clean Flow project (
- Normalize every shot into
<project_dir>/shots/<shot_id>.png(768x1376RGB PNG):python3 ~/.gemini/config/skills/horror-storybook-video/scripts/normalize_shot.py "<raw_img>" "<project_dir>/shots/<shot_id>.png" - Build and inspect all 16 shots BEFORE animation or rendering:
Callpython3 ~/.gemini/config/skills/horror-storybook-video/scripts/make_contact_sheet.py "<project_dir>/shots"read_fileon<project_dir>/shots/contact_sheet.png. Regenerate any frame with stray text, borders, artifacts, or bright lower-25% clutter.
Phase 3.5 — True Character Animation via Google Flow (Omni 1.2 Flash)
Read omni-flash-animation.md before launching Flow animation:
- Budgeting & Cost Guard: Select 8–11 key action/climax shots in Hybrid Hero Mode (~3–5 min episodes) or all 6/6 in tight ~60s shorts. NEVER auto-call Higgsfield
Seedance 2.5(seedance_2_5) without explicit user approval. - Flow Protocol (
9:16 / 720p / 8s / x1,24credits/clip):- Pick Start Frames directly from the same Flow
Nano Banana 2.1project library (use User Upload Handoff only when importing external stills). - Send 1 clip per browser batch using the 4-block formula (Style/Identity Lock + No-Dialogue/Native-Foley Guard + Adult-Safe Hitchcockian Guard + Timed
0-3s / 3-6s / 6-8sBeats). - If a safety false-positive hits, avoid trigger terms (
crouched,minor, etc.), state"adult male/female ... in their twenties", and perform at most 1 safe atmospheric rewrite; stop immediately on CAPTCHAs.
- Pick Start Frames directly from the same Flow
- QC Previews & Tier-1 Foley Extraction:
- Download each clip to
<project_dir>/shots/<shot_id>_anim.mp4, generate480x854 @ 15fpspreview.gifs + 4-frameshots/<shot_id>_flow_qc.pngstrips, and inspect every strip viaread_file. - Extract native synced foley and refresh
audio/master_mix.wavbefore Phase 4:python3 ~/.gemini/config/skills/horror-storybook-video/scripts/extract_flow_audio.py "<project_dir>" python3 "<project_dir>/scripts/make_horror_bgm.py"
- Download each clip to
Phase 4 — Hybrid Animation / Gentle Line Boil Render & Mobile Encode
Run the renderer (typically 4–8 minutes in background; wait passively without polling):
python3 ~/.gemini/config/skills/horror-storybook-video/scripts/render_9x16.py "<project_dir>"
Automatically detects <project_dir>/shots/<sid>_anim.mp4 (decodes at 24fps with native audio stripped -an so audio/master_mix.wav remains the single mastered audio track, plays strictly once with 30fps sub-frame linear interpolation, tail deceleration + seamless creeping zoom hold on final frame if span > 1.65× clip_dur — never replaying an animation twice, while keeping redundant Line Boil off), and falls back cleanly to static PNG + gentle Line Boil (amp=0.35, wavelength=115.0, hold_frames=6) on remaining establishing shots. Ensure shot cut boundaries align tightly to spoken cues so visual subjects never linger past their cue. Writes sample-locked .srt beside the MP4 and adds bottom-edge lower scrim, night motes, vignette, subtitles, crossfades, and hard #000000 blackout at final_blackout_time.
Phase 5 — Post-Render QA Gate
- Confirm background Python/
ffmpegprocesses have completely exited (ps aux | grep -E "ffmpeg|render_9x16" | grep -v grep) before probing. - Run technical QA and extract the 8-frame rendered QA contact sheet:
Enforces:python3 ~/.gemini/config/skills/horror-storybook-video/scripts/qa_verify.py \ "<project_dir>/<output_name>.mp4" \ "<project_dir>/audio/vo_timeline.json" \ "<project_dir>/final_qa_sheet.png"h264 Main L3.1,720x1280,yuv420p,30/1,aac LC 48000Hz 2ch,moovfaststart header,Input Integratedin[-15.5, -13.5] LUFS, andInput True Peak < -1.0 dBTP. - Call
read_fileon<project_dir>/final_qa_sheet.pngand verify: centered two-line title with zero tofu glyphs (□), legible white-on-navy subtitles inside dark bottom margins, clean FX, and solid black final frame.
Phase 6 — Private Google Drive Mobile Delivery
- Upload privately using
gdriveCLI (Shared: false; do NOT runmutate share --type anyoneunless the user explicitly asks to make it public):gdrive mutate upload "<project_dir>/<output_name>.mp4" --mime-type "video/mp4" --json - Verify sharing state (
Shared: false) and exact byte size viagdrive readonly url "<FILE_ID>"andgdrive readonly info "<FILE_ID>". - Reply in Traditional Chinese with the clickable Google Drive mobile link at the top, clickable URL-encoded
file://links to the MP4,.srt,shots/contact_sheet.png, andfinal_qa_sheet.png, plus ONLY directly observed metrics. Leave idle browser subagents untouched and never print API keys.