Project · Home server
Xenticorp-4 Server
A self-hosted media stack fed by my own DVD and Blu-ray rips. It lives on X4, a bench-built Ubuntu server. Discs are ripped and named on X4 itself; encoding is still done on a separate machine.
Work in progress. X4 and this page are both still being built, so the plans below will change as they turn into hardware and code.
Sorted by status: Running now Planned Ideas
Running now
Running nowCurrent setup
| Host | X4: Ubuntu server, bench build, reachable remotely over Tailscale |
|---|---|
| Containers | Docker: Jellyfin, ErsatzTV, Portainer, cloudflared, my dashboard and a Space Engineers 2 game server |
| Media server | Jellyfin with Movies, TV Shows and Music libraries, exposed through a Cloudflare Tunnel |
| Live TV | ErsatzTV: custom channels and schedules built from my own library |
| Music | Jellyfin as a Spotify replacement: a Spotify playlist ripped to MP3 with CSVMusic to match the existing MP3 library. New music can be uploaded from the dashboard |
| Dashboard | My own control dashboard for X4, private and behind a login. Service status and restarts, Jellyfin stats, system health and power; a Ripping page with per-drive controls and settings; importer status and music uploads; an Updates card for the site, importer, ripper and Ripnamer; a Stats page with commit history and visitors; a Game servers page for the Space Engineers 2 server; and a Home Lab map |
| Storage | NVMe for the OS and Jellyfin config; a 2.0 TB external drive for media; a 250 GB staging SSD and a 125 GB staging USB drive for new rips |
| Optical drives | An LG BU40N (4K UHD, on SATA) and a USB 8-in-1 Blu-ray drive (DVD and regular Blu-ray) |
| Ripping | MakeMKV on X4, automatic. Both drives can rip at the same time. Auto-rip can take every long title, only the first feature-length title (movie mode), or only the episodes (TV mode, matched by runtime). A rip can go to X4, the staging SSD or the staging USB drive, and shows its time left and expected finish. Tried ARM (Automatic Ripping Machine) and dropped it; built my own instead |
| Naming | Ripnamer names TV rips from TMDb. A disc it isn’t sure about is held for me to check on the dashboard |
| Encoding | HandBrake on X1, software x265 |
| Output | MKV with soft subtitles (not burned in) and multiple audio tracks |
| Control | Manual, from the dashboard’s Ripping page: eject, rescan, and start or cancel a rip, for one drive or all of them |
| Alerts | The drive ejects the disc when a rip finishes. That’s the only alert so far |
| Old host | Jellyfin, ErsatzTV and the cloudflared connector moved over from X2, whose copies are retired |
Hardware
| CPU / board / RAM | i5-10400F, MSI MAG Z490 Tomahawk, 32 GB DDR4 (reused from an old rig) |
|---|---|
| GPU | GT 1030, for display only (no hardware encoder) |
| PSU | Corsair CX650M |
| Storage | ~250 GB NVMe + 2 TB Seagate external, plus a 250 GB staging SSD and a 125 GB staging USB drive |
No hardware encoding on X4. The 10400F has no integrated graphics (so no Quick Sync) and the GT 1030 has no NVENC, so every encode is CPU x265.
How media gets onto X4
- RipMakeMKV on X4 reads a disc in either drive. Auto-rip picks the titles, and the rip goes to X4, the staging SSD or the staging USB drive. A disc that was already ripped is skipped.
- NameFor TV, Ripnamer names the files from TMDb. A disc it isn’t sure about is held for me to check on the dashboard.
- LibraryA named show is sent from staging to the Jellyfin TV library from the dashboard’s Ripping page. The Media Importer sorts other media from a USB drive into the same library, and waits while a rip is using the staging drive.
- ServeJellyfin streams the library to devices, and ErsatzTV builds live channels from it.
Encoding is a separate step: HandBrake on X1, software x265.
What I borrowed from Riparr
Riparr gave me a few lessons that are in the ripper now:
- Ripping and encoding are separate stages, so the drives never wait on an encode.
- A rip only appears once it’s finished, so nothing downstream sees a partial one.
- A disc fingerprint remembers what’s already been ripped, and duplicates are skipped.
- For TV, disc 1 sets the numbering and the later discs follow it.
- MakeMKV’s beta key is refreshed automatically.
How a website change goes live
Planned
Decided, not builtEncoding
Tdarr is no longer the plan. I’m planning something different for encoding, and this section will say what once it’s settled.
Optical drive bay (1U)
Only ever two drives:
| Bay 1 | LG BU40N (9.5 mm slim) for 4K UHD, on SATA. |
|---|---|
| Bay 2 | The current 8-in-1 USB Blu-ray drive (hub and card reader combo) for DVD and regular Blu-ray, on a USB extension to X4’s rear port. |
- Enclosed front panel with the drive faces flush; the rest of the 1U stays open, no fan needed.
- Drives sit on printed shelves, tied to the rear posts or gusseted so pushing a tray doesn’t pry the panel.
- The BU40N screws in through its side M2 holes; the 8-in-1 is held with side lips and a strap.
- The 8-in-1’s top LED is rerouted to the panel with 1–2 mm PMMA fiber.
- Pinhole access for emergency eject.
- Printed in PETG/ASA, not PLA, and the panel can be split and assembled.
4K UHD is a drive decision, not a setting. It only works through MakeMKV LibreDrive on specific drives and firmware. The LG BU40N rips 4K UHD discs on X4.
Ideas
Maybe, someday- A DIY LoRa pager for alerts: ESP32, LoRa radio, screen and buzzer in a printed case.
- An Intel Arc A310 if Jellyfin ever needs hardware transcoding (it also does HEVC and AV1 encoding).
- A remote power button: an ESP32 and a relay across the front-panel header.
- Alerts and remote control: one control service on X4 with Discord, ntfy and Claude as front ends, so I get a ping on my phone when a disc needs swapping or something fails. Control is manual today, and the only alert is the drive ejecting when a rip is done.