Communitygithub.com

remotion-thai-horror-shorts

Produce cost-optimized Thai 2D Flat Vector vertical (9:16) rules-horror short videos and serialized episodes using Remotion, 1.25x Google Gemini TTS, 50% recycled scene artwork, and zero-cost local procedural horror BGM/SFX. Use when creating new Thai horror episodes (e.g. EP.2, EP.3) or vertical 2D vector storytelling shorts with CCTV, LINE/Facebook UI overlays, and Thai subtitles while minimizing external AI API usage and rate limits.

What is remotion-thai-horror-shorts?

remotion-thai-horror-shorts is a Gemini CLI agent skill that produce cost-optimized Thai 2D Flat Vector vertical (9:16) rules-horror short videos and serialized episodes using Remotion, 1.25x Google Gemini TTS, 50% recycled scene artwork, and zero-cost local procedural horror BGM/SFX. Use when creating new Thai horror episodes (e.g. EP.2, EP.3) or vertical 2D vector storytelling shorts with CCTV, LINE/Facebook UI overlays, and Thai subtitles while minimizing external AI API usage and rate limits.

Works with~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/kittipongkp/remotion-thai-horror-shorts/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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

  1. Voice-Over (Gemini TTS Only, 1.25x, 1 Worker):
    • Use Google Gemini TTS (gemini-3.8-flash-tts, th-TH) via the rules-horror-short-storytelling TTS helper (gemini_tts.py).
    • Always pass --workers 1 so requests stay safely under the 10 RPM quota limit.
    • Group narration into 7–9 concise cues per episode (reusing the same speaker voice IDs across episodes, e.g., Iapetus for male narrator, Aoede for eerie female voice/whisper).
    • Set playback speed to 1.25x for both narrator and whisper so pacing feels crisp and natural for short-form video without sounding rushed.
  2. 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 -i to 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.
  3. BGM & SFX ($0 Offline Procedural Audio):
    • Do not call Lyria or 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.
  4. 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 #FACC15 yellow keyword highlights.
    • See Remotion Patterns for component structure and render flags.

Step-by-Step Production Procedure

  1. 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.
  2. 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).
  3. Generate New Climax Images (3–4 max):
    • Pass -i <anchor_image> to gemini-api image for character/style consistency.
    • Inspect every generated image with read_file before proceeding.
  4. Build 1.25x Audio Mix & Remotion Timeline:
    • Run mix_episode_audio.py to trim silence, apply 1.25x speed (atempo=1.25), synthesize offline BGM/SFX, mix master_audio_epN.wav, and write timeline_epN.json with exact 30fps frame boundaries.
    • Stage recycled + new images into remotion/public/epN_img/.
  5. Author Remotion Episode Composition:
    • Register EPN in remotion/src/Root.tsx using timeline_epN.json totalFrames.
    • Sync <Sequence> blocks to cue frame boundaries, split each cue into 1–2 short Thai subtitle phrases (max 2 lines per card, bottom safe zone 230px).
  6. Render MP4 via Remotion CLI (macOS):
    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
    
    Always write to a new filename when revising an already-delivered cut.

Mandatory Verification Before Delivery

  1. 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 -
    
  2. Metadata check (ffprobe): Confirm 1080×1920, 30 fps, h264 + aac 48000 Hz stereo, and expected duration (~65–95s).
  3. Visual frame check: Extract 4–5 preview frames across hook, rules/clue reveal, climax UI, and ending, then inspect them with read_file to verify Thai tone marks (วรรณยุกต์), UI alignment inside phone bezels, and zero subtitle overlap.

Related Skills