SirAndrewGotham/rutube-downloader-subtitles
Python tool to download Rutube videos + generate AI subtitles. Features rate limiting, batch downloads, and faster-whisper transcription for Russian/English content.
๐ฌ Rutube Video Downloader with Subtitle Generator
Download videos from Rutube.ru and generate AI-powered subtitles automatically.
A comprehensive Python tool for downloading videos from Rutube.ru with advanced features including rate limiting, error handling, and integrated subtitle generation using AI transcription.
โจ Features
-
๐ฅ Smart Video Downloading
- Single & batch downloads from Rutube
- Configurable rate limiting to avoid blocks (5-60 second delays)
- Automatic retry for failed downloads with logging
- Clean filename handling for filesystem compatibility
-
๐ฌ Integrated Subtitle Generation
- AI-powered transcription using faster-whisper
- Russian & English language support with auto-detection
- Multiple model sizes (tiny, base, small, medium, large)
- Professional SRT format with accurate timestamps
-
๐ Complete Management
- Download statistics & real-time progress tracking
- Organized folder structure (auto-created downloads/ & subtitles/)
- Failed downloads logging with automatic retry option
- User-friendly menu interface with intuitive navigation
๐ Quick Start
Method 1: Run Directly (Recommended)
# Clone the repository
git clone https://github.com/yourusername/rutube-downloader-subtitles.git
cd rutube-downloader-subtitles
# Run the script - it will auto-install yt-dlp if needed
python rutube_downloader.pyMethod 2: Install Dependencies First
# Install all dependencies including subtitle tools
pip install -r requirements-full.txt
# Run the application
python rutube_downloader.py๐ Main Menu Options
Run python rutube_downloader.py and choose from:
- ๐ฅ Download single video - One video at a time
- ๐ Download multiple videos - Batch download with rate limiting
- ๐ Retry failed downloads - Automatic retry of failed downloads
- ๐๏ธ Delete failed downloads log - Remove failed downloads record
- ๐งน Clear failed downloads log - Clear contents but keep file
- ๐ฌ Generate subtitles - Create subtitles for downloaded videos
- ๐ Show download statistics - View download and subtitle counts
- ๐ Open downloads folder - Browse downloaded videos
- ๐ช Exit - Quit the application
๐ Project Structure
rutube_downloader/
โโโ rutube_downloader.py # Main application (v2.0.0)
โโโ create_subtitles.py # Interactive subtitle generator
โโโ quick_subtitles.py # Quick subtitle generator
โโโ requirements.txt # Core dependencies (yt-dlp only)
โโโ requirements-full.txt # Complete dependencies
โโโ README.md # This documentation
โโโ COMPLETE_DOCUMENTATION.md # Detailed developer guide
โโโ downloads/ # Auto-created: Downloaded videos
โโโ subtitles/ # Auto-created: Generated subtitle files
โโโ failed_downloads.txt # Auto-created: Log of failed downloads
๐ฆ Installation Options
Minimal Installation
# Just run the script - auto-installs yt-dlp if missing
python rutube_downloader.pyComplete Installation
# Install all dependencies (video download + subtitle generation)
pip install -r requirements-full.txt
# or
pip install yt-dlp faster-whisperSubtitle Generator Only
# If you only need subtitle generation for existing videos
pip install faster-whisper
python create_subtitles.py๐ฏ Basic Usage
1. Download Videos
python rutube_downloader.py
# Choose option 1 (single) or 2 (batch)
# Paste Rutube URLs (e.g., https://rutube.ru/video/8e06c530938f25bf791a71251fe0f04d/)
# Videos save to 'downloads/' folder2. Generate Subtitles
python rutube_downloader.py
# Choose option 6 from main menu
# Or run subtitle tools directly:
# Interactive: python create_subtitles.py
# Quick: python quick_subtitles.py
# Subtitles save to 'subtitles/' folder3. Watch with Subtitles
- Place
.srtfiles in same folder as videos (already done automatically) - Open video in VLC, MPC-HC, or any subtitle-supporting player
- Subtitles load automatically if file names match
๐ง Dependencies
Core (requirements.txt)
yt-dlp>=2023.11.16(Auto-installs when you run the script)
Complete (requirements-full.txt)
yt-dlp>=2023.11.16
faster-whisper>=0.9.0Note: faster-whisper is only needed for subtitle generation and is large (150MB-6GB). The main script works without it.
๐จ Troubleshooting
Common Issues
| Issue | Solution |
|---|---|
| 403 Forbidden errors | Use "Very Slow" delay setting (30-60s), wait between batches |
| "No module named yt_dlp" | Script auto-installs it, or run pip install yt-dlp |
| YouTube URLs not working | This tool is optimized for Rutube. Use yt-dlp directly for YouTube |
| Subtitles not generating | Install faster-whisper: pip install faster-whisper |
| Low disk space | Clear downloads/ folder or choose smaller whisper models |
Platform Notes
- Windows: Works out of the box
- macOS:
brew install ffmpegrecommended for best performance - Linux:
sudo apt install ffmpegrecommended for subtitle processing
๐ Subtitle Models Comparison
| Model | Size | Speed | Accuracy | RAM Usage | Best For |
|---|---|---|---|---|---|
| tiny | ~150MB | โกโกโกโกโก | โญโญ | ~1GB | Testing, quick previews |
| base | ~300MB | โกโกโกโก | โญโญโญ | ~1.5GB | General use (recommended) |
| small | ~1GB | โกโกโก | โญโญโญโญ | ~3GB | Better accuracy |
| medium | ~3GB | โกโก | โญโญโญโญโญ | ~6GB | High accuracy needs |
| large | ~6GB | โก | โญโญโญโญโญ | ~10GB | Best possible accuracy |
๐ Privacy & Security
- 100% Local Processing: All videos and subtitles stay on your computer
- No Data Collection: No personal information is collected or transmitted
- No External Servers: Audio never sent to cloud services (unlike online tools)
- Open Source: Full transparency - inspect the code yourself
๐ค Support
Getting Help
- Check Documentation: Read this README and COMPLETE_DOCUMENTATION.md
- Check Logs: Look in
failed_downloads.txtfor error details - Contact Author: For issues not covered in documentation
Author Information
Andrew Gotham
๐ง Email: andreogotema@gmail.com
๐ฑ Telegram: https://t.me/SirAndrewGotham
๐ License
MIT License - Free to use, modify, and distribute for personal and commercial use.
Copyright (c) 2023 Andrew Gotham
๐ Star History
If you find this project useful, please consider giving it a star on GitHub!
Note: This tool is designed specifically for Rutube.ru. For YouTube, use yt-dlp directly. Always respect copyright laws and platform terms of service.