this post was submitted on 08 Jul 2025
128 points (99.2% liked)

Selfhosted

49336 readers
516 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Background: I've been writing a new media server like Jellyfin or Plex, and I'm thinking about releasing it as an OSS project. It's working really well for me already, so I've started polishing up the install process, writing getting started docs, stuff like that.

I'm interested in how other folks have set up their media libraries. Especially the technical details around how files are encoded and organized.

My media library currently has about 1,100 movies and just shy of 200 TV shows. I've encoded everything as high quality AV1 video with Opus audio, in a WebM container. Subtitles and chapters are in a separate WebVTT file alongside the video. The whole thing is currently about 9TB. With few exceptions, I sourced everything directly from Blu-ray or DVD using MakeMKV. It's organized pretty close to how Jellyfin wants it.

What about you?

you are viewing a single comment's thread
view the rest of the comments
[–] SirMaple__@lemmy.ca 39 points 2 days ago* (last edited 2 days ago) (3 children)

My Jellyfin library:

1,152 - Movies

552 - Shows

37, 062 - Episodes

491 - Albums

6,558 - Songs

362 - Music Videos

14 - Concert Films

Files are a mix of 1080p and 4K. 264 and 265. Standard and REMUX.

Total space used is currently 149.90TiB

[–] SpookyMulder@lemmy.4d2.org 5 points 2 days ago

Ahh, I like how you split Concert Films and Music Videos. I've been pigeon-holing my Short Films, Mini-Series, and TV Movies into just the two categories: Shows and Movies. Makes way more sense having separate categories.

[–] marighost@piefed.social 4 points 2 days ago (1 children)

Kinda unrelated to OOP, but out of curiosity, what does your storage setup look like? Do you keep stuff reasonably backed up with that much data?

[–] SirMaple__@lemmy.ca 13 points 2 days ago* (last edited 2 days ago) (2 children)

Ah yes. My storage system is 2 x Supermicro CSE-846 cases. Only one has a CPU and motherboard, the other is acting as a plain Jane JBOD.

Hard drives I have 21 x 8TB 7200RPM mix of Seagate and Western Digital and 4 x 16TB 7200RPM from Seagate. I use mergerfs and snapraid. Mergerfs presents all the 21 8TB drives as one mount point. Snapraid uses the 4 16TB drives to provide 4 parity drives. Note that snapraid is not live and the parity is only updated after running a "snapraid sync" which I run nightly.

I only backup my songs and music videos. The rest is easy to get again. I have a script that generates a list of every single file I have each night. So if the day comes it wouldn't take too long to get back to where I was. The other reason I use mergerfs is if 1 drive dies, I only lose the files on that one drive and not the entire array. The truely important stuff such as tax documents, mortgage details, family pictures, will & estate documents are stored on a 2 x 8TB RAID1 and all backed up nice a safe using Proxmox PBS. The PBS datastore is synced to 2 remote locations as well as to external drives that I keep offline and rotate.

[–] Policeshootout@lemmy.ca 4 points 1 day ago (1 children)

Nice write-up. I thought I had a large library (24TB) and my off site backup is starting to get full. I backup everything though but I have long debated on if there's a point of keeping movies and TV since they'll likely always be available. Anyway, I never thought of generating a list of files and eliminating the stuff that's not particularly important. Good idea.

[–] SirMaple__@lemmy.ca 6 points 1 day ago

I used to back everything up before I broke the 50TB mark. Just can't justify it now. I even looked at LTO drives for backing up the multimedia but they're still to expensive for the higher capacity drives. And then you need tapes..

All the truely good content will always be out there somewhere on the net.

The script I use to generate the file lists is very very basic. Nothing special no formatting the lists or anything since it's just for that oh balls, everything is gone scenario.

ls -alR /mnt/volume1/media > /mnt/volume2/backups/file_lists/media.txt

ls -alR /mnt/snapraid/data* > /mnt/volume2/backups/file_lists/snapraid.txt

Those text files are also part of the files backed up with PBS so I can always go back and restore previous versions of them. You may ask why I generate the list twice? The first is just everything inside the media folder on the volume1 mount point. The second let's me see what files are on each individual drive so if only 1 drive dies I can just grep the text file and output to another text file and show me what is on that 1 drive.

[–] marighost@piefed.social 2 points 2 days ago

Thanks for the detailed write up!

[–] curbstickle@lemmy.dbzer0.com 4 points 2 days ago (1 children)

About the same here, minus the music videos (only a few dozen there for the kids), plus a fitness library, so I'd say it evens out to roughly equal.

Mostly HEVC but I still have some h.264 floating around that I have no interest in reencoding.

No AV1 at all until I get a new Intel GPU or newer Intel CPU to handle transcoding it nicely.

[–] SpookyMulder@lemmy.4d2.org 4 points 2 days ago (3 children)

There's some relatively inexpensive NVIDIA cards now with AV1 hardware encoding. I'm on my third round of re-encoding my whole library (HEVC, then VP9, now AV1). For 1080p NTSC, I get about 13x speeds on NVENC AV1, whereas with VP9 I was CPU-bound at around 4x. Definitely worth the upgrade, in case you're on the fence.

[–] TheYang@lemmy.world 4 points 2 days ago (1 children)

You do realize that you lose quality with wach encode, right?

It's not AS bad when bitrates are high, but it's still there.

[–] SpookyMulder@lemmy.4d2.org 3 points 2 days ago

True.

When I migrated off of Jellyfin, I re-encoded everything up to that point directly from the Blu-ray rips wherever possible. Because I'd already started culling those for space, I did end up just doing another pass on the first round of encoding for a portion of the library. There's some noticable degradation on those, and I'll want to re-rip those at some point.

Fortunately, I've got my process pretty dialed in for ripping and I actually enjoy it, so if I ever have a quality issue, it's not a huge ordeal to re-rip and encode.

[–] Onomatopoeia@lemmy.cafe 2 points 2 days ago (1 children)
[–] SpookyMulder@lemmy.4d2.org 1 points 2 days ago (1 children)

I went with a GeForce RTX 4060. Cost was about $300.

[–] Onomatopoeia@lemmy.cafe 2 points 1 day ago
[–] curbstickle@lemmy.dbzer0.com 2 points 2 days ago

Yeah I just dont have a need with no devices to handle it natively, while the rest of my library can be. Building a new htpc media player for the living room next, new server after that.

New because I'm using a lenovo tiny as the server, which means either I build a new box completely, or I find the right used workststion tiny/mini/micro that can handle av1. Complete build will do a lot more (well, the t/m/m does too, but not to the extent my big box builds are set up for).