Installation¶
This guide covers all the ways to install StreamPack on your system.
System Requirements¶
Required Software¶
- Python 3.8 or higher
- FFmpeg 4.0+ with desired encoders
- FFprobe (usually included with FFmpeg)
Recommended System Specs¶
- RAM: 4GB minimum, 8GB+ recommended for 4K videos
- CPU: Multi-core processor (4+ cores recommended)
- Storage: SSD recommended for better I/O performance
- GPU: Optional, for hardware acceleration support
Installing Python Dependencies¶
Option 1: Install from PyPI (Recommended)¶
Virtual Environment Recommended
It's recommended to install in a virtual environment to avoid conflicts:
Option 2: Install from Source¶
For the latest development version:
Option 3: Development Installation¶
For contributors and developers:
This installs additional tools for development:
pytest
- Testing frameworkblack
- Code formattingisort
- Import sortingflake8
- Code lintingmypy
- Type checkingpre-commit
- Git hooks
Installing FFmpeg¶
FFmpeg is required for video processing. Choose your platform:
Using Homebrew (Recommended):
Using MacPorts:
Verify Installation:
Option 1: Download Pre-built Binaries
- Download from FFmpeg.org
- Extract to
C:\ffmpeg
- Add
C:\ffmpeg\bin
to your PATH environment variable - Restart your command prompt
Option 2: Using Package Manager
With Chocolatey:
With Scoop:
Verify Installation:
Hardware Acceleration Setup¶
StreamPack automatically detects available hardware encoders. Here's how to enable them:
VideoToolbox (macOS)¶
VideoToolbox is built into macOS and should work automatically:
NVIDIA NVENC¶
Requirements: - NVIDIA GPU with NVENC support (GTX 600 series or newer) - Latest NVIDIA drivers
Installation:
Intel QuickSync (QSV)¶
Requirements: - Intel CPU with integrated graphics - Intel Media SDK or oneVPL
Linux Setup:
AMD AMF (Windows only)¶
Requirements: - AMD GPU with VCE support - AMD drivers
Check Availability:
Verification¶
After installation, verify everything works:
1. Test Python Package¶
2. Test CLI¶
3. Test Encoder Detection¶
Expected output should show available encoders:
Available Encoders
┏━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Type ┃ Category ┃ Codec ┃ Name ┃ Selected ┃
┡━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Video │ Hardware │ h264_videotoolbox │ VideoToolbox (macOS) │ ✅ │
│ Video │ Software │ libx264 │ x264 Software │ │
│ Audio │ Hardware │ aac_at │ AudioToolbox AAC (macOS) │ ✅ │
└───────┴──────────┴───────────────────┴──────────────────────────┴──────────┘
4. Run Installation Test¶
This runs comprehensive tests to ensure everything is working correctly.
Troubleshooting¶
Common Issues¶
FFmpeg not found
Error: FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
Solution:
1. Verify FFmpeg is installed: ffmpeg -version
2. Check if FFmpeg is in PATH: which ffmpeg
(Unix) or where ffmpeg
(Windows)
3. Restart terminal/command prompt after installation
4. On Windows, ensure FFmpeg bin directory is in PATH environment variable
Permission denied errors
Error: PermissionError: [Errno 13] Permission denied
Solutions:
1. Use virtual environment: python -m venv venv && source venv/bin/activate
2. Install with --user
flag: pip install --user streampack
3. On Linux/macOS, avoid using sudo
with pip
Hardware encoders not detected
Issue: Only software encoders are available
Solutions: 1. Update GPU drivers to latest version 2. Verify GPU supports hardware encoding 3. Check FFmpeg was compiled with hardware support:
Import errors after installation
Error: ModuleNotFoundError: No module named 'hls_converter'
Solutions:
1. Verify installation: pip list | grep streampack
2. Check Python version: python --version
(requires 3.8+)
3. If using virtual environment, ensure it's activated
4. Try reinstalling: pip uninstall streampack && pip install streampack
Slow conversion performance
Issues: Conversion is slower than expected
Solutions:
1. Enable hardware acceleration (check --list-encoders
)
2. Use faster preset: --preset ultrafast
3. Reduce parallel workers if system is constrained: --workers 2
4. Convert to SSD storage instead of network drives
5. Close other resource-intensive applications
Getting Help¶
If you're still having issues:
- Check the logs with
--debug
flag for detailed error information - Search existing issues on GitHub Issues
- Create a new issue with:
- Your operating system and version
- Python version (
python --version
) - FFmpeg version (
ffmpeg -version
) - Complete error message
- Steps to reproduce the problem
Next Steps¶
Once installation is complete:
- 📚 Quick Start Guide - Convert your first video
- ⚙️ Configuration - Customize settings
- 🔧 CLI Reference - Explore all options
- 🐍 Python API - Integrate into your code