Back

AI Video Solution Generator

2024

View Code

Overview

AI-powered system that automatically generates educational physics/math videos with synchronized Manim animations and AI voiceover. Takes questions and produces 60-120 second videos with step-by-step animated solutions paired with natural speech narration.

Technologies

PythonOpenAI APIManimFFmpegDockerPydantic

Detailed Features

Core Pipeline

  • Six-stage generation: solution generation, voiceover script, TTS conversion, Manim code generation, video rendering, and audio-video sync
  • GPT-5 powered solution and animation code generation
  • TTS-1-HD for natural voiceover synthesis
  • Manim Community Edition for mathematical animations

Output & Deliverables

  • Final MP4 video with synchronized animations and voiceover
  • Structured solution data in JSON format
  • Voiceover scripts with precise timestamps
  • Generated Manim animation code files

Deployment

  • Docker-based containerization for easy deployment
  • Local development support with Python 3.11
  • Cost-efficient: ~$0.22 per 90-second video
  • Sample questions covering rotational motion, projectile motion, and SHM