🎬 AI Video Shorts Generator
An AI-powered tool that converts long videos into short, engaging clips using transcription and segment detection. Built with Python, Gradio, and MoviePy.
📁 Project Structure:
🚀 Features 📤 Upload long videos 🧠 AI-based transcript generation (customizable) ✂️ Automatic segment detection 🎬 Generates multiple short clips 🌐 Simple Gradio web interface 💾 Downloads output as MP4 files
🏗️ Tech Stack Python 3.10+ Gradio MoviePy (Optional) Whisper / NLP model for transcription FFmpeg
📦 Installation
- Clone the repository git clone https://github.com/your-username/video-shorts-ai.git cd video-shorts-ai
- Create virtual environment python -m venv .venv
Activate it:
Windows (PowerShell) .venv\Scripts\Activate.ps1 Windows (CMD) .venv\Scripts\activate 3. Install dependencies pip install -r requirements.txt
Or manually:
pip install gradio moviepy
4. Install FFmpeg (Important
MoviePy requires FFmpeg.
Windows: https://ffmpeg.org/download.html
Or using chocolatey:
choco install ffmpeg
Then open: http://127.0.0.1:7860
🧠 How it works 1.Upload a long video 2.The system transcribes audio → text 3.Detects important segments 4.Extracts clips using MoviePy 5.Returns top short videos
🔮 Future Improvements 🎯 AI viral moment detection (Whisper + GPT) 📱 Auto TikTok/YouTube Shorts formatting (9:16) 🔥 Face/object-based highlight detection ☁️ Cloud deployment (HuggingFace / Render) 🎵 Auto background music addition 🤝 Contributing
Pull requests are welcome. For major changes, please open an issue first.
👨💻 Author Sneha Mule Built with ❤️ using Python & AI