| Crates.io | vuio |
| lib.rs | vuio |
| version | 0.0.22 |
| created_at | 2026-01-06 18:21:43.363451+00 |
| updated_at | 2026-01-07 04:15:52.163385+00 |
| description | A cross-platform DLNA/UPnP media server with advanced audio features, real-time file monitoring, and robust database management |
| homepage | https://github.com/vuiodev/vuio |
| repository | https://github.com/vuiodev/vuio |
| max_upload_size | |
| id | 2026446 |
| size | 1,106,437 |
A cross-platform DLNA/UPnP media server written in Rust. Streams video, audio, and images to any DLNA-compatible device (smart TVs, receivers, game consoles).
Built with Tokio, Axum, and Redb for high performance and reliability.
Supported platforms: Windows, Linux, macOS, Docker (x64 and ARM64)
git clone https://github.com/vuiodev/vuio.git
cd vuio
cargo build --release
./target/release/vuio /path/to/media
# Run with default settings (scans ~/Videos, ~/Music, ~/Pictures)
./vuio
# Specify media directory
./vuio /path/to/media
# Custom port and name
./vuio -p 9090 -n "My Media Server" /path/to/media
# Multiple directories
./vuio /movies --media-dir /music --media-dir /photos
Usage: vuio [OPTIONS] [MEDIA_DIR]
Arguments:
[MEDIA_DIR] Directory containing media files
Options:
-p, --port <PORT> Port to listen on [default: 8080]
-n, --name <NAME> DLNA server name
-c, --config <CONFIG> Path to config file
--media-dir <DIR> Additional media directories
--debug Enable debug logging
-h, --help Print help
-V, --version Print version
Docker does not work on macOS due to multicast limitations.
git clone https://github.com/vuiodev/vuio.git
cd vuio
docker-compose -f docker-compose.yml up
services:
vuio:
image: vuio:latest
container_name: vuio-server
restart: unless-stopped
network_mode: host # Required for DLNA multicast
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
- ./vuio-config:/config
- /path/to/media:/media:ro
environment:
- VUIO_IP=192.168.1.100 # Your host IP (required)
- VUIO_PORT=8080
- VUIO_MEDIA_DIRS=/media
- VUIO_SERVER_NAME=VuIO
- VUIO_DB_PATH=/data/vuio.redb
Single directory:
volumes:
- ./vuio-config:/config
- /path/to/media:/media:ro
Multiple directories:
volumes:
- ./vuio-config:/config
- /home/user/Movies:/media/movies:ro
- /home/user/Music:/media/music:ro
- /home/user/Pictures:/media/pictures:ro
- /mnt/nas/media:/media/nas:ro
environment:
- VUIO_MEDIA_DIRS=/media/movies,/media/music,/media/pictures,/media/nas
Network storage (NFS/SMB):
volumes:
- type: bind
source: /mnt/nas/media
target: /media
read_only: true
docker run -d \
--name vuio-server \
--restart unless-stopped \
--network host \
--cap-add NET_ADMIN \
--cap-add NET_RAW \
-v /path/to/media:/media:ro \
-v ./vuio-config:/config \
-e VUIO_IP=192.168.1.100 \
-e VUIO_PORT=8080 \
-e VUIO_MEDIA_DIRS=/media \
-e VUIO_DB_PATH=/data/vuio.redb \
vuio:latest
| Variable | Default | Description |
|---|---|---|
VUIO_IP |
- | Required. Host IP for DLNA announcements |
VUIO_PORT |
8080 | HTTP server port |
VUIO_SERVER_NAME |
VuIO | DLNA server name |
VUIO_UUID |
random | Device UUID (set for persistence) |
VUIO_MEDIA_DIRS |
/media | Comma-separated media paths |
VUIO_SCAN_ON_STARTUP |
true | Scan media on startup |
VUIO_WATCH_CHANGES |
true | Monitor for file changes |
VUIO_CLEANUP_DELETED |
true | Remove deleted files from DB |
VUIO_SCAN_PLAYLISTS |
true | Import M3U/PLS playlists |
VUIO_DB_PATH |
/data/vuio.redb | Database file path |
VUIO_MULTICAST_TTL |
4 | Multicast TTL |
VUIO_ANNOUNCE_INTERVAL |
30 | SSDP announce interval (seconds) |
Find your host IP:
# Linux
ip route get 1.1.1.1 | grep -oP 'src \K[0-9.]+'
# macOS
ipconfig getifaddr en0
# Windows
ipconfig | findstr "IPv4"
Generate UUID for multiple instances:
uuidgen # Linux/macOS
[System.Guid]::NewGuid() # Windows PowerShell
VuIO uses TOML configuration files on native platforms. Config location: ./config/config.toml
[server]
port = 8080
interface = "0.0.0.0"
name = "VuIO Server"
uuid = "auto-generated"
[network]
interface_selection = "Auto"
multicast_ttl = 4
announce_interval_seconds = 30
[media]
scan_on_startup = true
watch_for_changes = true
cleanup_deleted_files = true
scan_playlists = true
supported_extensions = ["mp4", "mkv", "avi", "mp3", "flac", "wav", "jpg", "png"]
[[media.directories]]
path = "/home/user/Videos"
recursive = true
extensions = ["mp4", "mkv", "avi", "mov", "wmv", "webm"]
exclude_patterns = ["*.tmp", ".*"]
validation_mode = "Warn" # Strict, Warn, or Skip
[[media.directories]]
path = "/home/user/Music"
recursive = true
extensions = ["mp3", "flac", "wav", "aac", "ogg", "wma", "m4a", "opus"]
exclude_patterns = ["*.tmp", ".*"]
[[media.directories]]
path = "/home/user/Pictures"
recursive = true
extensions = ["jpg", "jpeg", "png", "gif", "bmp", "webp"]
exclude_patterns = ["*.tmp", ".*"]
[database]
path = "~/.local/share/vuio/media.redb"
vacuum_on_startup = false
backup_enabled = true
Server:
port - HTTP server portinterface - Network interface to bind (0.0.0.0 for all)name - DLNA server friendly nameuuid - Device UUID (auto-generated if not set)ip - Specific IP for DLNA announcements (optional)Network:
interface_selection - "Auto", "All", or specific interface namemulticast_ttl - Multicast time-to-liveannounce_interval_seconds - SSDP announcement intervalMedia:
scan_on_startup - Scan directories on startupwatch_for_changes - Real-time file monitoringcleanup_deleted_files - Auto-remove deleted files from databasescan_playlists - Import M3U/PLS playlist filessupported_extensions - Global list of media extensionsMedia Directories:
path - Directory pathrecursive - Scan subdirectoriesextensions - Override extensions for this directoryexclude_patterns - Patterns to exclude (e.g., ".tmp", ".")validation_mode - Path validation: "Strict" (fail if missing), "Warn" (log warning), "Skip" (no validation)Database:
path - Database file locationvacuum_on_startup - Compact database on startupbackup_enabled - Enable automatic backupsVuIO automatically extracts metadata from audio files:
VuIO automatically discovers and imports playlist files:
Playlists are scanned from media directories on startup and made available to DLNA clients.
Configure: scan_playlists = true or VUIO_SCAN_PLAYLISTS=true
Recommended directory structure:
/music/
├── Artist Name/
│ └── Album Name (Year)/
│ ├── 01 - Track.flac
│ └── folder.jpg
└── playlists/
├── favorites.m3u
└── workout.pls
VuIO uses Redb, an embedded ACID-compliant database.
| Platform | Default Path |
|---|---|
| Windows | [exe dir]\config\database\media.redb |
| Linux | ~/.local/share/vuio/media.redb |
| macOS | ~/Library/Application Support/vuio/media.redb |
| Docker | /data/vuio.redb (or VUIO_DB_PATH) |
When running from source on Windows:
C:\Users\Welcome\Downloads\code\rust\vuio\target\release\config\database\media.redb
# Windows (PowerShell)
Remove-Item -Force .\target\release\config\database\media.redb
# Linux
rm -f ~/.local/share/vuio/media.redb
# macOS
rm -f ~/Library/Application\ Support/vuio/media.redb
# Docker
docker exec vuio-server rm -f /data/vuio.redb
VuIO will create a new database and rescan media on next startup.
\\server\share)Thumbs.db, desktop.ini/Volumes.DS_Store, .AppleDouble/media, /mntlost+found, .Trash-*┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Web Server │ │ SSDP Service │ │ File Watcher │
│ (Axum/HTTP) │ │ (Discovery) │ │ (Real-time) │
└────────┬────────┘ └────────┬────────┘ └────────┬────────┘
│ │ │
└──────────────────────┼──────────────────────┘
│
┌──────────────────────┴──────────────────────┐
│ Application Core │
│ ┌─────────┐ ┌─────────┐ ┌─────────────┐ │
│ │ Config │ │ Database│ │ Platform │ │
│ │ Manager │ │ (Redb) │ │ Abstraction │ │
│ └─────────┘ └─────────┘ └─────────────┘ │
└──────────────────────┬──────────────────────┘
│
┌──────────────────────┴──────────────────────┐
│ Platform Layer │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Windows │ │ macOS │ │ Linux │ │
│ └─────────┘ └─────────┘ └─────────┘ │
└─────────────────────────────────────────────┘
cargo test
Debug logging:
RUST_LOG=debug ./vuio 2>&1 | tee vuio-debug.log
Contributions welcome! Please ensure cross-platform compatibility is maintained. CLA is required for contributions.
Dual-licensed under: