feat: add skill-seekers video --setup for GPU auto-detection and dependency installation
Auto-detects NVIDIA (CUDA), AMD (ROCm), or CPU-only GPU and installs the correct PyTorch variant + easyocr + all visual extraction dependencies. Removes easyocr from video-full pip extras to avoid pulling ~2GB of wrong CUDA packages on non-NVIDIA systems. New files: - video_setup.py (835 lines): GPU detection, PyTorch install, ROCm config, venv checks, system dep validation, module selection, verification - test_video_setup.py (60 tests): Full coverage of detection, install, verify Updated docs: CHANGELOG, AGENTS.md, CLAUDE.md, README.md, CLI_REFERENCE, FAQ, TROUBLESHOOTING, installation guide, video dependency plan All 2523 tests passing (15 skipped). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
- [unified](#unified) - Multi-source scraping
|
||||
- [update](#update) - Incremental updates
|
||||
- [upload](#upload) - Upload to platform
|
||||
- [video](#video) - Video extraction & setup
|
||||
- [workflows](#workflows) - Manage workflow presets
|
||||
- [Common Workflows](#common-workflows)
|
||||
- [Exit Codes](#exit-codes)
|
||||
@@ -1035,6 +1036,44 @@ skill-seekers upload output/react-weaviate.zip --target weaviate \
|
||||
|
||||
---
|
||||
|
||||
### video
|
||||
|
||||
Extract skills from video tutorials (YouTube, Vimeo, or local files).
|
||||
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
# Setup (first time — auto-detects GPU, installs PyTorch + visual deps)
|
||||
skill-seekers video --setup
|
||||
|
||||
# Extract from YouTube
|
||||
skill-seekers video --url https://www.youtube.com/watch?v=VIDEO_ID --name my-skill
|
||||
|
||||
# With visual frame extraction (requires --setup first)
|
||||
skill-seekers video --url VIDEO_URL --name my-skill --visual
|
||||
|
||||
# Local video file
|
||||
skill-seekers video --url /path/to/video.mp4 --name my-skill
|
||||
```
|
||||
|
||||
### Key Flags
|
||||
|
||||
| Flag | Description |
|
||||
|------|-------------|
|
||||
| `--setup` | Auto-detect GPU and install visual extraction dependencies |
|
||||
| `--url URL` | Video URL (YouTube, Vimeo) or local file path |
|
||||
| `--name NAME` | Skill name for output |
|
||||
| `--visual` | Enable visual frame extraction (OCR on keyframes) |
|
||||
| `--vision-api` | Use Claude Vision API as OCR fallback for low-confidence frames |
|
||||
|
||||
### Notes
|
||||
|
||||
- `--setup` detects NVIDIA (CUDA), AMD (ROCm), or CPU-only and installs the correct PyTorch variant
|
||||
- Requires `pip install skill-seekers[video]` (transcripts) or `skill-seekers[video-full]` (+ whisper + scene detection)
|
||||
- EasyOCR is NOT included in pip extras — it is installed by `--setup` with the correct GPU backend
|
||||
|
||||
---
|
||||
|
||||
### workflows
|
||||
|
||||
Manage enhancement workflow presets.
|
||||
|
||||
Reference in New Issue
Block a user