Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

AI Video Studio

A local, GPU-accelerated AI video creation studio. Generate talking-head videos, voiceovers, images, music, and full ad campaigns — all running on your own hardware with no cloud APIs.

AI Video Studio

Features

  • Agentic Mode — Describe an ad and the system auto-generates a script, character image, voiceover, background music, and lip-synced video
  • Image Generation — Text-to-image via Stable Diffusion XL (1024x1024, customizable)
  • 4K Upscaling — Upscale any image to 4K using Real-ESRGAN
  • Text-to-Speech — Natural voiceovers with Edge TTS or CoquiTTS
  • Voice Cloning — Clone any voice from a sample WAV file
  • Music Generation — AI-generated background music from text prompts
  • Script Generation — Auto-generate ad scripts, stories, and more via local LLM (Ollama)
  • Lip Sync — Sync a face image to audio using SadTalker
  • Image Animation — Animate still images into short video clips
  • Manual Compose — Step-by-step pipeline: character → voiceover → lip sync
  • Timeline — Scene-based timeline for organizing generated content
  • Real-time Progress — WebSocket-based progress updates during generation

Architecture

├── frontend/          React + Vite UI (port 5173)
├── backend/           Node.js/Express API server (port 3001)
├── ai-services/       Python GPU services (port 5000)
│   ├── tts_service.py
│   ├── image_gen_service.py
│   ├── upscale_service.py
│   ├── music_service.py
│   ├── lipsync_service.py
│   ├── animate_service.py
│   ├── script_service.py
│   └── api_server.py
├── outputs/           Generated files (audio, video, images)
├── uploads/           User-uploaded files
├── start.bat          Launch frontend + backend
└── start-ai.bat       Launch Python AI services

Requirements

  • GPU: NVIDIA GPU with 8GB+ VRAM (RTX 3060 or higher recommended)
  • CUDA: CUDA toolkit installed
  • Node.js: v18+
  • Python: 3.10+
  • Ollama: Running locally for script generation

Setup

1. Install backend dependencies

cd backend
npm install

2. Install frontend dependencies

cd frontend
npm install

3. Set up Python AI services

cd ai-services
python -m venv venv
venv\Scripts\activate
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip install diffusers transformers accelerate safetensors
pip install TTS edge-tts
pip install realesrgan
pip install audiocraft
pip install sadtalker

Models are downloaded automatically on first use (~5-10 GB total).

Usage

Quick Start (Windows)

  1. Run start-ai.bat — starts the Python AI server (loads models into GPU)
  2. Run start.bat — starts the backend API + frontend UI
  3. Open http://localhost:5173 in your browser

Agentic Mode (Full Auto)

  1. Select the Agentic tab in the sidebar
  2. Describe your ad (e.g., "A tech startup ad for a productivity app")
  3. Set product name, tone, aspect ratio
  4. Click Create — the system handles everything:
    • Generates a script
    • Creates a character image
    • Produces a voiceover
    • Generates background music
    • Lip-syncs the character to the audio

Individual Tools

Tab What it does
Image Generate images from text prompts, upscale to 4K
Voice Text-to-speech, voice cloning from samples
Music Generate background music from descriptions
Script Auto-generate ad/story scripts
Lip Sync Sync a face image to an audio file
Animate Turn a still image into a short video
Compose Manual pipeline: image → voice → lip sync

API Endpoints

All endpoints available at http://localhost:3001:

Method Endpoint Description
GET /api/health Health check
POST /api/upload Upload a file
POST /api/tts Text to speech
POST /api/voice-clone Voice cloning
POST /api/generate-image Generate image from prompt
POST /api/upscale 4K image upscale
POST /api/generate-music Generate background music
POST /api/generate-script Generate ad/story script
POST /api/lipsync Lip sync face + audio
POST /api/animate Animate an image
POST /api/compose Manual pipeline
POST /api/agentic Full auto ad creation

Author

Built by Colin McDonough — LinkedIn · GitHub

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages