Skip to content

AI-powered short video generator that automatically creates motivational stories with stock footage, text overlays, voice narration, background music, and uploads to YouTube via n8n automation.

Notifications You must be signed in to change notification settings

ThangakumarC/vdo-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Powered Video Generator

Automated short motivational video generator with YouTube integration.

Overview

This project automatically creates short motivational videos using AI-generated stories, stock footage, text overlays, voice narration, and background music. Videos are then automatically uploaded to YouTube using an n8n workflow, with email notifications upon completion.

Features

  • Generates a motivational story with 6–8 scenes, including title, description, and tags using Mistral.
  • Searches for matching stock videos from Pexels API.
  • Converts story text into voice narration using ElevenLabs TTS.
  • Adds subtitles and background music using MoviePy.
  • Automatically uploads final video to YouTube via n8n.
  • Sends email notifications once the video is uploaded.
  • Handles temporary files cleanup automatically.

Tech Stack

  • Python (MoviePy, Requests)
  • ImageMagick
  • ElevenLabs Text-to-Speech API
  • Pexels Video API
  • OpenRouter API (mistral-7b-instruct)
  • n8n for workflow automation
  • Gmail API for notifications

Installation

  1. Install ImageMagick (make sure it’s added to PATH):

  2. Clone the repository:

git clone https://github.com/ThangakumarC/vdo-gen.git
cd vdo-gen
  1. Install dependencies:
   pip install -r requirements.txt
  1. Set up API keys in .env:

    PEXELS_API_KEY

    ELEVENLABS_API_KEY

    OPENROUTER_API_KEY

Run the Python script to generate videos:

  python app.py

Temporary files are created for each scene and audio, then cleaned automatically. Final video and metadata are saved in C:/n8n_temp for n8n workflow.

n8n Workflow Automation

The n8n workflow (VdoGen) triggers the script, uploads the video to YouTube, and sends an email notification.

Workflow handles reading metadata and video files, merging them, uploading, and cleaning up temporary files.

Import VdoGen.json into your n8n instance. It automates:

  • Running the Python script

  • Reading generated video + metadata

  • Uploading to YouTube with captions and tags

  • Sending notification email

  • Cleaning temp files

Workflow Screenshot: Screenshot 2025-10-12 231127

Final Generated video: https://github.com/user-attachments/assets/170feb77-951b-49d4-b036-7ecba023d301

Email Screenshot: image

About

AI-powered short video generator that automatically creates motivational stories with stock footage, text overlays, voice narration, background music, and uploads to YouTube via n8n automation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages