MrSpideyNihal GitHub avatar

lecture-video-maker

MrSpideyNihal

Lecture Video Maker is an AI-powered tool that turns any topic into a full lecture video with AI-generated scripts, natural voiceover, stock visuals, and animated subtitles via a web UI or CLI.

Stars

10

7-day growth

No data

Forks

6

Open issues

0

License

No data

Last updated

2026-06-27

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It combines local AI (Ollama), free TTS (Edge-TTS), and free stock media (Pexels) into a single automated pipeline, requiring no paid APIs or cloud subscriptions.

Who it is for

  • Educators and trainers creating lecture videos
  • Content producers needing quick video narration with visuals
  • Students or hobbyists exploring AI-generated media
  • Developers looking for a customizable open‑source video generation tool

Use cases

  • Produce educational course videos from a single topic prompt
  • Generate narrated slideshows with stock footage for social media
  • Rapidly create multilingual lecture prototypes using different TTS voices
  • Automate video creation for online learning platforms

Strengths

  • Fully local LLM and TTS – no recurring API costs or data privacy concerns
  • Dual interface (web UI + CLI) with live progress tracking and preview
  • Automated pipeline from script generation to final MP4 with subtitles
  • Fallback for missing media (solid‑colour background) and editable script before rendering

Considerations

  • Requires local setup of Ollama, FFmpeg, and a Pexels API key
  • Script quality depends on the chosen Ollama model size and capability
  • Stock visuals are limited to what Pexels provides; no custom image/video upload

README quick start

🎓 Lecture Video Maker

An AI-powered tool that converts any topic into a full lecture video with voiceover, stock visuals, and subtitles — all from a beautiful web UI or the terminal.


✨ Features

  • AI Script Generation — Uses your local Ollama model to write a multi-segment lecture script
  • Natural Voiceover — Microsoft Edge-TTS synthesizes speech (no API costs)
  • Stock Visuals — Automatically fetches relevant videos and images from Pexels
  • Subtitle Bar — Pillow renders animated subtitle overlays (no libass needed)
  • Web UI — Full browser-based interface with live progress tracking and video preview
  • CLI Mode — Fully interactive terminal alternative

📋 Requirements

System

  • Python 3.8+
  • FFmpeg (must be in PATH)
  • Ollama running locally with at least one model pulled

Python Packages

pip install edge-tts requests pillow numpy

🚀 Quick Start

1. Clone the repo

git clone https://github.com/YOUR_USERNAME/lecture-video-maker.git
cd lecture-video-maker

2. Install Python dependencies

pip install edge-tts requests pillow numpy

3. Start Ollama and pull a model

ollama serve          # in a separate terminal
ollama pull llama3    # or mistral, gemma2, etc.

4. Get a free Pexels API key

Sign up at https://www.pexels.com/api/ — it's free.

5. Launch the Web UI

python lecture_gen.py

Opens automatically at http://localhost:8080

Or use CLI mode

python lecture_gen.py --cli

🖥️ Web UI Walkthrough

  1. Settings Card — Enter your Pexels API key, Ollama URL, and select a voice
  2. Topic & Parameters — Set your lecture topic, choose duration and media preference
  3. Edit Script — Review/edit the AI-generated narration per segment before rendering
  4. Render — Watch live progress with log output
  5. Download — Preview and download the final .mp4

📁 Output Structure

lecture_output/
├── _.mp4       ← final lecture video
└── /
    ├── script.txt                ← full generated script
    ├── audio/seg_00.mp3 …        ← TTS audio per segment
    ├── media/visual_00.mp4 …     ← downloaded Pexels media
    ├── subs/seg_00/frame_*.png   ← subtitle frames
    └── segments/se

Description

AI-powered lecture video generator: Ollama + Edge-TTS + Pexels + FFmpeg. Web UI with live progress tracking.

Related repositories

Similar projects matched by category, topics, and programming language.

lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,390
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
littledivy
Featured
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI & Machine Learning
1,482