Skip to content
SHANNWDPublic

About

Reference-Image Video Director & Viral Style Cloner with Subject-Aware Kinetic Captions

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

FrameCast

Claude-Skill-Driven Remotion (.tsx/.js) Video Director & Viral Style Cloner with Subject-Aware Kinetic Captions

Connect Claude Code, Antigravity, or Cursor (via CLAUDE.md + SKILL.md + 20 detailed graphic prompt blueprints) OR run standalone via Web Studio / CLI: turn 1 idea + 1 reference image + any style into a multi-scene motion-graphics video with natural human narration and Earshot/Openverse SFX.

CI License: MIT Python 3.10+


Why FrameCast?

Most open-source AI short generators either dump generic stock footage (MoneyPrinterTurbo / ShortGPT) or loop a single static image with subtitles. FrameCast is built to be LLM-First & Code-Driven:

  1. Claude Skill + CLAUDE.md + 20 Detailed Graphic Prompt Blueprints (prompts/styles/*.md):
    • Ships with .claude/skills/framecast/SKILL.md and skills/framecast/SKILL.md encoding deterministic Remotion rules (useCurrentFrame, spring, clamped interpolate, staggered choreography, safe zones).
    • Every one of the 20 graphic styles includes a detailed LLM prompt script specifying exact colors, spring physics, backdrop meshes, SVG/UI callouts, narration cadence, and SFX cues (framecast blueprint <style> or MCP get_style_blueprint).
  2. Code-Based Remotion (.tsx) Multi-Scene Engine (remotion/):
    • Even from 1 reference image, FrameCast composes distinct scenes (hero_reveal → feature_callout → detail_zoom → metric_proof → editorial_quote → cta_end) instead of repeating one flat image.
    • Includes a ready-to-customize Remotion project (remotion/src/FrameCastReel.tsx) plus an upgraded multi-scene local_motion fallback when Node/Remotion isn't installed.
  3. 20 Natural Human Narration Voices + Earshot & Openverse SFX:
    • 20 Curated Voice Profiles: Natural-cadence voices across US, UK, AU, IN, CA, IE, and NZ accents (framecast voices), powered by Edge Neural TTS (free), OpenAI TTS, or ElevenLabs with natural pause shaping.
    • Earshot + Openverse API + Procedural SFX: Automatically adds cut whooshes, pops, risers, and sub-drops via Earshot (local CPU SFX), Openverse API (CC0/commercial sound effects & auto-ducked background music), or offline procedural synthesis.
  4. Clone Any Reference Video + Subject-Aware Kinetic Captions (15 Presets):
    • Upload any .mp4 Reel/Short to clone its cut rhythm, color grade, and caption aesthetic into a .json Style Pack.
    • Detects faces and salient product regions per shot to keep captions out of subjects and Instagram Reels UI dead zones.

Quickstart

1. Install (with uv or pip)

git clone https://github.com/SHANNWD/framecast.git
cd framecast

# Core install (includes bundled FFmpeg, Web Studio, CLI, and Zero-GPU local engine)
uv sync
# Or with pip:
# pip install -e .

Optional extras:

# Add faster-whisper word timestamps, Gemini SDK, and MCP server support
uv sync --extra all

2. Launch the Interactive Web Studio

uv run framecast studio

Open http://127.0.0.1:8787 to:

  • Enter your Idea and drop Reference Image(s)
  • Pick a Viral Style Pack or upload a Reference Video to clone its pacing & look
  • Edit individual storyboard shots, check Vision QA consistency scores, toggle the Instagram Reels Safe-Zone HUD, and export your MP4 + Style Pack JSON.

CLI Usage

# List all 20 graphic Style Packs and 20 natural narration voices
framecast styles
framecast voices

# Search commercial-safe SFX or music via Openverse API
framecast sfx-search "cinematic whoosh" --category sound_effect

# Generate a Reel with a sample image, graphic style, natural voice, and Earshot/Openverse SFX + BGM
framecast create "Launch Reel for a matte-black smart espresso maker" \
  --ref-image ./samples/espresso_sample.jpg \
  --style glassmorphism-saas \
  --voice andrew-creator-warm \
  --sfx auto \
  --auto-bgm \
  --out ./espresso_reel.mp4

# Clone the pacing, color grade & caption feel from ANY reference video
framecast create "3 camera tricks for studio product shots" \
  --ref-image ./camera.png \
  --ref-video ./viral_reference.mp4 \
  --out ./cloned_reel.mp4

# Extract and share a standalone Style Pack JSON from any video
framecast extract-style ./viral_reference.mp4 --out ./style_packs/my-viral-style.json

MCP Server (Claude Code / Cursor / Antigravity)

FrameCast ships with a built-in MCP server (framecast-mcp) exposing:

  • get_style_packs — list available Style Packs
  • clone_style_from_video — extract a Style Pack JSON from a reference video
  • plan_storyboard — direct a multi-shot storyboard from an idea + reference images
  • create_reel — render a complete captioned MP4 end-to-end

Add to your MCP config:

{
  "mcpServers": {
    "framecast": {
      "command": "framecast-mcp"
    }
  }
}

Architecture

Idea + Reference Image(s) + StylePack (or Reference Video)
   │
   ├──► Style Extractor (OpenCV cut rhythm + color/accent + pacing curve)
   ├──► Director Agent (Claude / Gemini / OpenAI / Offline Template) ──► Storyboard
   ├──► Audio & Aligner (EdgeTTS / ElevenLabs / OpenAI + Cut SFX + BGM Ducking + Whisper)
   ├──► Visual Backend (Local 2.5D Motion | Gemini Veo | Fal Wan/Kling | ComfyUI)
   └──► Vision QA + Kinetic Compositor (Face/Subject Safe Placement + Color Grade + MP4)

Docker

cp .env.example .env
docker compose up --build

Then open http://127.0.0.1:8787.


Configuration (.env)

FrameCast runs out-of-the-box with zero API keys. Add keys in .env (see .env.example) to enable cloud LLMs, cloud I2V models, or premium voices:

Variable Purpose Default
ANTHROPIC_API_KEY / GEMINI_API_KEY / OPENAI_API_KEY LLM Storyboard Director Offline director fallback
FRAMECAST_VISUAL_BACKEND local_motion, gemini_veo, fal, comfyui local_motion
FRAMECAST_TTS_BACKEND edge, openai, elevenlabs, silent edge
FRAMECAST_USE_WHISPER Enable faster-whisper word alignment true

Contributing & Community Style Packs

Pull requests are welcome — especially new JSON presets in style_packs/, new visual generator adapters in src/framecast/generators/, and new kinetic caption styles!

License

MIT © ShanWD

About

Reference-Image Video Director & Viral Style Cloner with Subject-Aware Kinetic Captions

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages