๐ฌ 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