Welcome to the AI Video Generator! This app helps create educational videos easily. Just give it a title, and it does the rest!
- 🎥 Create educational videos from a title
- 🖼️ Create visually stunning slides with background images and engaging text content tailored to the topic
- 🔊 Convert text to natural-sounding speech using Microsoft Edge TTS, bringing the content to life with a variety of voice options available
- 📧 Get an email with the video download link (optional)
- ⏱️ Automatic deletion of the video file after 24 hours for efficient storage management
- 🌐 User-friendly web interface with a clean and modern design
Before starting, make sure you have:
- Python 3.11 🐍
- Required Python packages (see
requirements.txt
) - A Gmail account for email notifications 📨
Here's how to get started:
- Clone the repository: 🔥
git clone https://github.com/Harshit-shrivastav/AI-Video-Generator
- Go to the project directory: 📂
cd AI-Video-Generator
- Install required packages: 📦
pip install -r requirements.txt
- Update environment variables in
.env
file. 📧
Here are the variables you need to define before using the AI Video Generator:
EMAIL_ADDRESS
: Your Gmail address for SMTPEMAIL_PASSWORD
: You Gmail app Password For SMTPGOOGLE_API_KEY
: Gemini API KeyGROQ_API_KEY
: Groq API Key(Optional if Gemini is working in your region)
To generate a video:
- Start the Web App: 🏃♂️
python3 -m main
-
Open your web browser and go to
http://localhost:8000
. 🌐 -
Enter the video title, choose a speaker voice, and optionally provide an email for the download link. 📝
-
Click "Generate Video" to start. 🎬
-
Wait for the video to be created. You'll get a success message with the video link (and an email if you provided one). 📨
-
Click "Download Video" to get your video.
Check out this sample video generated by our AI Video Generator:
Here are some features that i will implement in future (You can also contribute):
- Adding support for Images in slides
- Adding Title on Video slide
- Providing chat history to LLM Model each time on generation of new slide in a video.
- Fix bugs in slide generation(if any)
We welcome contributions! If you find issues or have suggestions, please let us know. Your help makes this project better! 💪
This project is licensed under the permissive MIT License. Feel free to use, modify, and distribute the code. 🔑
Get ready to create and enjoy educational content in a whole new way! 🌟 Happy video making! 🎉