Remotion Thai Horror Shorts (Cost-Optimized Hybrid Workflow)
Use this workflow to produce vertical 9:16 (1080×1920, 30 fps, ~1:10–1:30) Thai horror episodes in the 2D Flat Vector storytelling style (like Sigma Lens / ร่างทรงตัวปลอม) while keeping external AI API costs minimal.
Core Cost & Pacing Rules
- Voice-Over (Gemini TTS Only,
1.25x, 1 Worker):- Use Google Gemini TTS (
gemini-3.8-flash-tts,th-TH) via therules-horror-short-storytellingTTS helper (gemini_tts.py). - Always pass
--workers 1so requests stay safely under the10 RPMquota limit. - Group narration into 7–9 concise cues per episode (reusing the same speaker voice IDs across episodes, e.g.,
Iapetusfor male narrator,Aoedefor eerie female voice/whisper). - Set playback speed to
1.25xfor both narrator and whisper so pacing feels crisp and natural for short-form video without sounding rushed.
- Use Google Gemini TTS (
- Images (Hybrid ~50% Recycle + 3–4 New Climax Scenes):
- For continuing episodes in the same setting, reuse ~50% of existing scenes from earlier episodes (interior, exterior, CCTV angles, POV blank smartphone).
- Generate only 3–4 new climax/reveal images per episode with
gemini-api image(gemini-nano-banana-2.1,--aspect-ratio 9:16), always passing an existing character/scene anchor image with-ito lock 2D Flat Vector style and character continuity. - Never generate text inside AI images (
No text, no letters); render all Thai text, UI, and clues cleanly inside Remotion.
- BGM & SFX ($0 Offline Procedural Audio):
- Do not call
Lyriaor external music/SFX APIs. - Generate dark horror ambient drones and scene SFX (water drips, muffled phone vibrate, door lock snap, LINE ding, bass drop) offline in Python via mix_episode_audio.py.
- Do not call
- Animation, UI Overlays & Subtitles (Remotion):
- Composite raster artwork (
<Img src={staticFile(...)} />) inside Remotion with smooth 30fps Ken Burns motion (MotionArt), screen shake, red emergency flicker, live ticking CCTV HUD (REC ●), diegetic smartphone UI (Facebook / LINE), animated rules/notes cards, and bold Thai subtitles (Sukhumvit Set/Thonburi) with#FACC15yellow keyword highlights. - See Remotion Patterns for component structure and render flags.
- Composite raster artwork (
Step-by-Step Production Procedure
- Plan Story & Asset Split:
- Keep continuity of protagonist appearance, voices, location, and planted clues from prior episodes.
- List which scenes recycle existing images (~50%) and which 3–4 new climax images to generate.
- Write
dialogue_epN.json& Synthesize Voices:- Run
gemini_tts.py <project>/dialogue_epN.json --out <project>/voice_epN --workers 1. - Reuse cached WAVs when tweaking speed or edits (0 extra API calls).
- Run
- Generate New Climax Images (3–4 max):
- Pass
-i <anchor_image>togemini-api imagefor character/style consistency. - Inspect every generated image with
read_filebefore proceeding.
- Pass
- Build
1.25xAudio Mix & Remotion Timeline:- Run mix_episode_audio.py to trim silence, apply
1.25xspeed (atempo=1.25), synthesize offline BGM/SFX, mixmaster_audio_epN.wav, and writetimeline_epN.jsonwith exact 30fps frame boundaries. - Stage recycled + new images into
remotion/public/epN_img/.
- Run mix_episode_audio.py to trim silence, apply
- Author Remotion Episode Composition:
- Register
EPNinremotion/src/Root.tsxusingtimeline_epN.jsontotalFrames. - Sync
<Sequence>blocks to cue frame boundaries, split each cue into 1–2 short Thai subtitle phrases (max 2 lines per card, bottom safe zone230px).
- Register
- Render MP4 via Remotion CLI (macOS):
Always write to a new filename when revising an already-delivered cut.npx remotion render EPN "../<title>_EPN_1.25x.mp4" \ --browser-executable="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \ --concurrency=4 --codec=h264 --audio-codec=aac
Mandatory Verification Before Delivery
- Stream decode check (must exit 0 with no errors):
ffmpeg -v error -xerror -i <output.mp4> -map 0:v:0 -map 0:a:0 -f null - - Metadata check (
ffprobe): Confirm1080×1920,30 fps,h264+aac48000 Hzstereo, and expected duration (~65–95s). - Visual frame check: Extract 4–5 preview frames across hook, rules/clue reveal, climax UI, and ending, then inspect them with
read_fileto verify Thai tone marks (วรรณยุกต์), UI alignment inside phone bezels, and zero subtitle overlap.