Build System Features
Complete build and interactive CLI system for the Video-to-Knowledge Pipeline.
๐ New Componentsโ
1. Interactive Build Script (build.py)โ
Features:
- โ System requirement checks (Python, FFmpeg, RAM, Disk, CUDA)
- ๐ฆ Virtual environment creation and management
- ๐ฅ Whisper model downloads (tiny, base, small, medium, large-v3)
- ๐ Interactive API key configuration
- ๐ Launcher script creation
- โ Installation verification
Usage:
python build.py # Full interactive setup
python build.py --quick # Quick setup with defaults
python build.py --check # Check requirements only
python build.py --clean # Clean build artifacts
python build.py --models small medium # Download specific models
2. One-Line Installer (install.sh)โ
Features:
- ๐ง Automated environment setup
- ๐ฆ Dependency installation
- ๐ฏ Creates
video-pipelineandvpcommands - ๐ Adds to PATH automatically
Usage:
# From repository
./install.sh
# Or via curl (when published)
curl -sSL https://example.com/install.sh | bash
3. Makefileโ
Targets:
| Command | Description |
|---|---|
make install | Full interactive installation |
make quick | Quick setup |
make check | System requirements check |
make models | Download Whisper models |
make clean | Clean artifacts |
make run | Run interactive mode |
make test | Run tests |
make lint | Run linters |
make all | Complete setup |
4. Enhanced Main CLI (src/main_cli.py)โ
Features:
- ๐จ Rich UI with banners and tables
- ๐ Quick Start Wizard for first-time users
- ๐ System status dashboard
- ๐ Automatic setup detection
Commands:
vp # Launch interactive mode
vp quickstart # Run setup wizard
vp process <url> # Process video
vp models # Manage models
vp config # Show configuration
vp deck <file.html> # Open presentation
5. Interactive CLI (src/interactive_cli.py)โ
Features:
- ๐ฌ Process new video (full wizard)
- โก Quick process (saved defaults)
- ๐ฆ Model management
- โ๏ธ Configuration management
- ๐พ Persistent settings
Configuration Location:
- Config:
~/.config/video-pipeline/config.json - Cache:
~/.cache/whisper/
6. Model Manager (src/model_manager.py)โ
Features:
- ๐ Model listing with specs
- โฌ๏ธ Individual model downloads
- โฌ๏ธ Batch downloads
- ๐งน Cache management
- ๐ฏ Auto-selection recommendations
Interactive Interface:
Whisper Model Manager
| Model | RAM | Speed | Accuracy | Status |
|----------|------|-------|----------|-------------|
| tiny | 0.5GB| 32x | 58% | โ Not installed |
| base | 1GB | 16x | 68% | โ Installed |
| small | 2GB | 6x | 76% | โ Installed |
Options:
1. Download specific model
2. Download recommended models (base, small, medium)
3. Download all models
4. Clean cache
5. Exit
๐ง System Requirements Checkโ
Checked Components:โ
- Python Version (3.9+ required)
- FFmpeg (required for audio/video)
- Disk Space (10GB recommended)
- RAM (4GB minimum, 8GB+ recommended)
- CUDA/GPU (optional, for faster processing)
Output Format:โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ System Check Results โ
โโโโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโโโค
โ Component โ Status โ Details โ
โโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโค
โ PYTHON โ โ
Passโ 3.11.0 โ
โ FFMPEG โ โ
Passโ Installed โ
โ DISK โ โ
Passโ 145GB free โ
โ RAM โ โ
Passโ 16GB total โ
โ CUDA โ โ
Passโ Available โ
โโโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโโโ
๐ฏ Quick Start Wizardโ
Steps:โ
-
Welcome Banner
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ ๐ฝ๏ธ Video-to-Knowledge Pipeline โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ -
System Check
- Auto-detects hardware
- Shows recommendations
-
Model Download
- Recommends model based on RAM
- Shows download progress
-
API Configuration
- Prompts for Kimi/Claude keys
- Offers to save to shell config
-
First Video
- Optionally processes video immediately
๐ File Structureโ
video_analysis_pipeline/
โโโ build.py # Main build script
โโโ install.sh # One-line installer
โโโ Makefile # Make targets
โโโ setup.py # Python package setup
โโโ BUILD_README.md # Build documentation
โโโ BUILD_FEATURES.md # This file
โโโ config.example.json # Config template
โ
โโโ src/
โ โโโ main_cli.py # Enhanced CLI entry
โ โโโ interactive_cli.py # Interactive menu
โ โโโ model_manager.py # Model management
โ โโโ ...
โ
โโโ docs/
โโโ 00_document_inventory.md
๐ Usage Examplesโ
First Time Setupโ
# Interactive setup
python build.py
# Or with make
make install
Quick Processโ
# After setup, process a video
vp process "https://youtube.com/watch?v=..."
# With options
vp process "video.mp4" --whisper-model small --vision kimi --deck
Model Managementโ
# List available models
vp models
# Download specific model
python build.py --models small
# Interactive model manager
python -m src.model_manager
Configurationโ
# Show current config
vp config
# Reset configuration
vp config --reset
# Or edit directly
nano ~/.config/video-pipeline/config.json
๐ ๏ธ Developmentโ
# Setup development environment
make install
source .venv/bin/activate
# Run tests
make test
# Check code
make lint
make typecheck
# Clean and rebuild
make clean
make build
๐ Configuration Fileโ
Location: ~/.config/video-pipeline/config.json
Example:
{
"version": "1.2.0",
"last_url": "https://...",
"whisper_model": "small",
"whisper_priority": "balanced",
"frame_rate": 0.5,
"vision_provider": "kimi",
"create_deck": true,
"deck_format": "html",
"setup_complete": true
}
๐ Environment Variablesโ
# Required (one of):
export KIMI_API_KEY="..."
export ANTHROPIC_API_KEY="..."
# Optional:
export OPENAI_API_KEY="..."
export SERPER_API_KEY="..."
# Whisper configuration:
export WHISPER_MODEL_SIZE=medium
export WHISPER_PRIORITY=quality
export WHISPER_DEVICE=cuda
๐ Success Indicatorsโ
After successful installation:
============================================================
๐ Setup Complete!
============================================================
Next steps:
1. Source your shell config: source ~/.bashrc
2. Run interactive mode: python -m src.pipeline
3. Or use launcher: ./vp
Quick start:
./vp process "https://youtube.com/watch?v=..."
============================================================
See BUILD_README.md for detailed installation instructions.