Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SlasshyOverhere/StreamVault/llms.txt
Use this file to discover all available pages before exploring further.
Overview
StreamVault uses MPV as its primary video player for:- Native playback of all formats (MKV, MP4, AVI, HDR, etc.)
- No transcoding required
- Resume playback tracking via IPC
- Subtitle and audio track selection
- Hardware acceleration support
MPV is a free, open-source media player known for high-quality video playback and extensive format support.
Supported Formats
MPV supports all common video formats:| Format | Extension | Notes |
|---|---|---|
| Matroska | .mkv | Preferred for high-quality rips |
| MPEG-4 | .mp4, .m4v | Universal compatibility |
| AVI | .avi | Legacy format |
| QuickTime | .mov | macOS native |
| WebM | .webm | Web-optimized |
| Windows Media | .wmv | Windows native |
| Flash Video | .flv | Legacy streaming |
| MPEG-TS | .ts, .m2ts | Broadcast/Blu-ray |
database.rs:773-782:
Installation by Platform
- Windows
- macOS
- Linux
Option 1: Official Installer
Download MPV
Go to mpv.io/installation or use the SourceForge builds
Run Installer
- Download the latest 64-bit installer
- Run the
.exefile - Follow the installation wizard
- Choose installation directory (default:
C:\Program Files\mpv\)
Option 2: Package Managers
Scoop
Chocolatey
StreamVault automatically searches Scoop and Chocolatey installation paths.
Auto-Detection in StreamVault
StreamVault automatically searches for MPV on Windows in these locations (fromconfig.rs:10-29):
Detection Process
Fromconfig.rs:33-80:
Configuring MPV Path in Settings
Auto-Detect (Recommended)
Click the Detect button next to the MPV Path field. StreamVault will:
- Search all common installation locations
- Check system PATH
- Display the found path if detected
SettingsModal.tsx:327-354:Manual Entry (Alternative)
If auto-detection fails:
- Click the Browse folder icon
- Navigate to your MPV installation
- Select
mpv.exe(Windows) ormpvbinary (Linux/macOS) - Click Open
IPC Configuration
StreamVault communicates with MPV using a Lua script for progress tracking.Progress Tracking Script
Frommpv_ipc.rs:32-130:
How Resume Works
Progress is cleared automatically when you watch 95% or more of the video.
Cloud Streaming with Disk Cache
For Google Drive streaming, MPV can use disk caching to improve playback. Frommpv_ipc.rs:181-188:
Cache Configuration
In Settings → Cloud Storage:- Enable Cloud Cache: Toggles disk caching
- Cache Directory: Custom cache location (default:
%APPDATA%/StreamVault/cloud_cache/) - Max Cache Size: Per-movie cache limit (default: 1024 MB = 1 GB)
- Cache Expiry: Auto-cleanup after 24 hours
config.rs:186-192:
Troubleshooting
MPV Not Found
MPV Not Found
- Run auto-detection in Settings → General
- Verify MPV is installed: Open terminal and run
mpv --version - Manually browse to
mpv.exelocation - Add MPV to system PATH (see installation steps above)
Playback Doesn't Start
Playback Doesn't Start
- Check MPV path is correct in settings
- Verify file exists and isn’t corrupted
- Test MPV manually:
mpv "path\to\video.mp4" - Check Developer Console for error messages
Resume Not Working
Resume Not Working
- Ensure Lua script is loading (check MPV console:
`key) - Verify progress directory exists:
%APPDATA%/StreamVault/mpv_progress/ - Check file permissions (script needs write access)
- Clear old progress: Settings → Advanced → Clean Up Missing Titles
Subtitles Not Loading
Subtitles Not Loading
MPV auto-loads subtitles in the same directory as the video. To manually load:
- Press
vduring playback to cycle subtitle tracks - Drag and drop
.srtfile onto MPV window - Use MPV config file (
%APPDATA%/mpv/mpv.conf) to set default subtitle preferences
Hardware Acceleration Issues
Hardware Acceleration Issues
Edit
%APPDATA%/mpv/mpv.conf to configure GPU acceleration:Advanced MPV Configuration
Custom Config File
Create%APPDATA%/mpv/mpv.conf (Windows) or ~/.config/mpv/mpv.conf (Linux/macOS):
Key Bindings
Default MPV shortcuts:| Key | Action |
|---|---|
Space | Play/Pause |
→ / ← | Seek forward/backward 5s |
↑ / ↓ | Volume up/down |
f | Toggle fullscreen |
v | Cycle subtitle tracks |
# | Cycle audio tracks |
s | Screenshot |
` | Show console (debug) |
q | Quit |
Next Steps
TMDB Setup
Configure metadata API
Google Drive Setup
Connect cloud storage
Cloud Streaming
Stream from Google Drive
Playback Features
Resume and progress tracking