Close

Version 6.0 is out

A project log for Mini-PI Media Server

Mini-PI Media Server for use on home network or as a wifi access point to stream media from

diddydiddy 04/28/2026 at 15:120 Comments

Version 6 Update :

mkv-watcher.sh

A persistent systemd service that monitors /var/lib/minidlna/Video for new video files.

Triggers:

Guards against:

File stability check: Before triggering conversion, the watcher confirms the file is fully written by checking it is not held open by any process (lsof), passes 3 consecutive size-stable checks 30 seconds apart, and passes ffprobe validation.

mkv-2-mp4.sh

A one-shot conversion script triggered by the watcher (or manually via systemctl start mkv-conversion).

Phase 1 — Promote: Scans all subfolders under the Video directory for completed Transmission downloads and moves them up to the root Video folder ready for conversion. Skips the protected Web folder (Google Drive sync). Only promotes subfolders containing exactly one video file — multiple files are left for manual review. Uses a PROMOTING_ prefix during the move for power-loss protection.

Phase 2 — Convert: Processes every *.mkv in the Video folder sequentially:

On completion logs:

Post-conversion:

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

Discussions