Skip to content

Latest commit

ย 

History

History
81 lines (59 loc) ยท 1.94 KB

README.md

File metadata and controls

81 lines (59 loc) ยท 1.94 KB

๐ŸŽฌ 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.

image

๐Ÿ“ Project Structure:

image

๐Ÿš€ 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

  1. Clone the repository git clone https://github.com/your-username/video-shorts-ai.git cd video-shorts-ai
  2. 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 โ–ถ๏ธ Run the project python app.py

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