mirror of
https://github.com/Stinosko/video2ppt.git
synced 2026-03-23 21:16:36 +00:00
Convert videos to Slides, including local, online videos, screen recording.
- Python 100%
|
|
||
|---|---|---|
| .github | ||
| docs | ||
| .gitignore | ||
| LICENSE | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
🎬 Video2PPT
Automatically convert video files to PowerPoint presentations.
🌐 Visit QuickStart | 📖 Full Documentation | 💬 GitHub Issues
🌍 Documentation / 文档 / ドキュメント / Documentación
⚡ Quick Start
# Clone and setup
git clone https://github.com/wangxs404/video2ppt.git
cd video2ppt
pip install -r requirements.txt
# Basic usage (extract 1 frame per second)
python3 main.py video.mp4
# Extract 1 frame every 5 seconds
python3 main.py video.mp4 -i 5 -o output.pptx
# View all options
python3 main.py -h
✨ Key Features
- 🎬 Video Frame Extraction - Extract frames at specified time intervals
- 📊 PPT Generation - Generate beautiful PowerPoint presentations
- ⏱️ Flexible Configuration - Customizable frame extraction intervals (in seconds)
- 🚀 High Performance - Fast processing with small file sizes
- 🖼️ Professional Layout - Full-slide image layouts
- 📋 Auto Cleanup - Automatic temporary file cleanup
📊 Performance
Based on 76MB, 37-minute MP4 video:
| Interval | Processing Time | File Size | Slide Count |
|---|---|---|---|
| -i 10 | ~7 seconds | ~9 MB | ~222 slides |
| -i 5 | ~14 seconds | ~17 MB | ~444 slides |
| -i 2 | ~28 seconds | ~33 MB | ~1110 slides |
| -i 1 | ~55 seconds | ~80+ MB | ~2220 slides |
Recommended: Use -i 5 for best balance between quality and file size.
🛠️ Technology Stack
- OpenCV - Video processing and frame extraction
- python-pptx - PowerPoint generation
- Pillow - Image processing
- NumPy - Numerical computations
📄 License
MIT License - see LICENSE file for details.
🐛 Support
For questions, issues, or suggestions: GitHub Issues
For detailed documentation, please select your language above / 详细文档请选择上方语言