Mini Pi Media Server v7.0.0 Release Notes
🚀 TL;DR: What's New at a Glance
- Cross-Device Watch Resume: Watch positions are now saved server-side on your Pi, allowing seamless switching between your phone, laptop, and TV.
- Ground-Up Subtitle Engine Rewrite: Replaced dead dependencies with direct OpenSubtitles REST API integration, complete with smart backlog queueing to respect daily free quotas. NOTE: You will need an account for subtitles to download for Opensubtitles.org.
- Modular Pipeline Refactor: Split the monolithic mkv-2-mp4.sh script into 4 highly focused, specialised scripts managed by a central orchestrator.
- Bulletproof Concurrency: Upgraded to atomic mkdir locking to entirely eliminate race conditions when multiple files finish processing at once.
- Advanced Filename Robustness: Transitioned to null-delimited processing and proper array handling to natively support spaces and special characters.
- Deep Systemd Logging: Exposed comprehensive processing metrics—including codecs, bitrates, hardware encoders, and full ffmpeg outputs—directly to the systemd journal.
📺 Watch Resume Across Devices via the web browser
Your watch position is now saved back to the server as you stream, rather than being stored locally in the browser.
- Start watching on your phone, continue from the same point on your TV or laptop.
- Works across any device on your home network without any setup.
- Falls back to local browser storage automatically if the server is unreachable.
- No accounts, no cloud — everything stays local on your Pi.
🎬 Media Scraper — Subtitle Engine Rewrite
subliminal-based approach was found to be silently failing across all providers.
- Podnapisi was confirmed dead (DNS no longer resolves globally).
- OpenSubtitles v1 XML-RPC API was shut down in 2023.
- subliminal has been removed as a dependency entirely.
Subtitles now use the OpenSubtitles REST API directly, which is more reliable, faster, and requires no third-party library. Search is completely free and requires no account.
Note on Subtitle Downloads: Downloads require a free OpenSubtitles account (20 downloads/day, resets at midnight UTC). The installer now walks you through setting up your credentials if you want subtitles, or you can skip it entirely — everything else works without an account.
- Smart Authentication: Login happens once per script run and the session token is reused, so a library of 100 films only authenticates once.
- Quota Preservation: Films that already have a .srt file (including those bundled with torrent downloads) are skipped automatically — no wasted quota.
- Progressive Backlog Clearing: For large existing libraries, subtitles download progressively at 20 per day until the backlog is cleared. Since the media scraper runs every day at 5am, this will cleanly handle large libraries over a few days.
- Wikipedia Canonical Checking: A sanity check now validates Wikipedia canonical titles before using them for subtitle searches, preventing wrong matches like "2010" searching as "1984 in film".
- Ambiguous Resolution: Ambiguous film titles (e.g. 2010 (1984).mp4) are now correctly resolved to their full canonical title (2010: The Year We Make Contact) using the Wikipedia page title.
- Quiet Warnings: If no credentials are configured, a single warning is logged at the start of the media scraper run and subtitles are silently skipped for all subsequent films — no per-film error spam.
Developer Note on v7.0.0 Testing: While the core pipeline has been heavily tested for a week, the strict 20-download API limit means intensive multi-day backlog testing hasn't been simulated at scale. The scraper logs beautifully, but if you notice any edge-case bugs over the next few days, please open a GitHub issue!
Media Scraper — IMDB Rating Removed
IMDB bot detection now aggressively blocks automated scraping, so the IMDB rating has been removed. The Rotten Tomatoes score scraped from Wikipedia remains unaffected.
⚙️ MKV and SRT Conversion Pipeline Refactor
mkv-2-mp4.sh script has been split into four focused scripts with a thin orchestrator coordinating them:
- mkv-promote.sh — moves completed downloads out of Transmission folders into the media library and cleans up empty folders.
- mkv-convert.sh — handles MKV to MP4 conversion with hardware acceleration, adaptive bitrate, and automatic software fallback.
- mkv-subtitles.sh — converts standalone SRT subtitle files to VTT format when the matching MP4 is present.
- mkv-scrape.sh — fetches metadata for any MP4s that were promoted directly without needing conversion.
- mkv-common.sh — shared configuration and helper functions used by all scripts.
Race condition fix for encoding
touch plus a file existence check — two separate operations with a gap between them that could allow two conversion instances to start simultaneously under the right timing. The lock is now acquired with mkdir, which is a single atomic operation. Only one pipeline instance can run at a time.
Filename robustness
Files with spaces or special characters in their names could previously cause the conversion pipeline to crash or behave unexpectedly. All file handling now uses null-delimited output throughout and ffmpeg arguments are passed as proper arrays, so unusual filenames are handled safely.
Improved systemd logging
Every stage of the pipeline now logs structured output visible in the systemd journal. For each file processed you will see:
- Detected video/audio codecs, pixel format, and original bitrate.
- Whether the file is being remuxed or re-encoded, and which encoder is being used.
- Conversion speed, final output size, subtitle processing results, and full ffmpeg output for errors.
📥 How to Install / Upgrade
You can download / upgrade by running the following on the Raspberry Pi (either SSH into the Pi or on the actual Pi) :-
wget -qO- https://raw.githubusercontent.com/diddy-boy/mini-pi-media-server/main/install.sh | bash
diddy
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.