π Intelligent video clipper powered by Gemini AI - Automatically analyze YouTube videos and create viral-worthy clips with AI-suggested timestamps.
- π€ AI-Powered Analysis: Gemini AI automatically identifies viral-worthy moments
- πΊ YouTube Integration: Direct download and processing from YouTube URLs
- β‘ High Performance: Built with Rust for maximum speed and efficiency
- π― Smart Clipping: Generates 3-5 optimized clips (10-30 seconds each)
- π Flexible Configuration: Support both AI mode and manual JSON configuration
- π Secure: Environment-based API key management
- π¨ User-Friendly: Beautiful progress indicators and emoji feedback
# Ubuntu/Debian
sudo apt install rustc cargo ffmpeg yt-dlp curl
# macOS
brew install rust ffmpeg yt-dlp curl
# Windows (using Chocolatey)
choco install rust ffmpeg yt-dlp curl- Clone the repository
git clone https://github.com/Hans02-Neo/clipper-rust.git
cd clipper-rust- Set up environment
cp .env.example .env
# Edit .env and add your Gemini API key- Build the project
cargo build --release./target/release/auto-clipper "https://www.youtube.com/watch?v=dQw4w9WgXcQ"./target/release/auto-clipper config.json- π Full Documentation
- π οΈ Installation Guide
- π― Usage Examples
- π§ Configuration
- π€ Contributing
- π API Reference
# Download and analyze a YouTube video
$ ./target/release/auto-clipper "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
π Analyzing YouTube video...
π₯ Downloading video...
β±οΈ Video duration: 213.0s
π€ Getting AI analysis...
π AI suggested clips:
{
"input_video": "video.mp4",
"clips": [
{
"start": "00:00:07",
"end": "00:00:22",
"output": "viral_clip_1.mp4"
},
// ... more clips
]
}
π¬ Processing 4 clips from video.mp4
β Created: viral_clip_1.mp4
β Created: viral_clip_2.mp4
β Created: viral_clip_3.mp4
β Created: viral_clip_4.mp4
π Done!βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β YouTube URL βββββΆβ yt-dlp βββββΆβ Video File β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βββββββββββββββββββ βββββββββββββββββββ β
β Gemini AI ββββββ AI Analysis βββββββββββββββ
βββββββββββββββββββ βββββββββββββββββββ
β β
βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β JSON Config βββββΆβ FFmpeg βββββΆβ Viral Clips β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
We welcome contributions! Please see our Contributing Guide for details.
# Clone and setup
git clone https://github.com/Hans02-Neo/clipper-rust.git
cd clipper-rust
# Install dependencies
cargo install --path .
# Run tests
cargo test
# Format code
cargo fmt
# Lint
cargo clippyThis project is licensed under the MIT License - see the LICENSE file for details.
- Gemini AI for intelligent video analysis
- FFmpeg for video processing
- yt-dlp for YouTube integration
- Rust Community for the amazing ecosystem