Initial Thoughts

Hello friends!

This is something that’s been muddling around in my mind for a bit, in part because I now have a decent collection of DVDs, and I am starting get a digital collection of shows that are a bit hard to find. I’m also interested in the fact that there’s a TubeArchivist plugin for Jellyfin, as media archival interests me and YouTube is starting to suck with Google’s position on ad-blocking. It would be nice to be able to access this stuff anywhere as well, so creating a media/Jellyfin server seems like a good solution.

Thing is I’d rather have a physical server than pay a bunch of monthly fees for VPS hosting. Not knocking it of course, but on top of monthly fees I also have my skepticism about VPS hosts and if they’re sharing data with people regarding my use of their service.

Completely wishful thinking setup

I’m not so much of a hardware guy as I am a software guy, funnily enough, but to give you an idea of what I would like here’s my admittedly wishful thinking of what I’d like for a setup:

  • DragonflyBSD as the server OS, utilizing it’s HAMMER2 filesystem and swapcache as I’ve heard great things about those.
  • Jellyfin, obviously.
  • NVMe SSD storage with some level of RAID.
  • Intel GPU, as I’ve heard they’re very good at video decoding, but I’ve not looked into evidence of this.
  • Whatever CPU and RAM I can get good performance out of without wasting money.
  • Add it to the Wireguard network so I can watch stuff anywhere.

A few things with this:

  1. I don’t know how up-to-date DragonflyBSD’s dport of Jellyfin is, but maybe this is something worth contributing to.
  2. God only knows if the new Intel graphics card drivers work well on the BSDs. I know all of the BSDs basically just pull from the official Linux firmware for graphics (I think?).
  3. I’d have to figure out if any other hardware would not play well with DragonflyBSD, probably not too big of an issue but it’s still something to look out for.
  4. Cost of hardware.

Wrap up

Overall it probably be just me and my wife who would use the server, mostly me. Maybe some immediate family, a few friends, maybe down the line use it for kids when we have them.

What are your recommendations?

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    7 months ago

    If you really want Intel, just get an N100 or N300. Low power, Intel HW transcoding on iGPU on Linux kernels 6.3+, and can handle Jellyfin no problem. You can get a minipc with everything you for $175 for a no name brand, or maybe $250 for a more well-known brand.

    • AlecStewart1st@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      7 months ago

      If you really want Intel, just get an N100 or N300. Low power, Intel HW transcoding on iGPU on Linux kernels 6.3+, and can handle Jellyfin no problem.

      Didn’t think about that either. I’m finding I didn’t give this as much thought as I should’ve.

      You can get a minipc with everything you for $175 for a no name brand, or maybe $250 for a more well-known brand.

      But why do that when I could spend +$600? 😜

      • entropicdrift@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        7 months ago

        If you’re gonna spend that level of money, you may as well go for an M1 Mac Mini. MacOS is a Unix flavor and in the new 10.9 version of Jellyfin it actually has the best hardware transcoding support. The M-series chips are video processing beasts for the money/electricity

        • AlecStewart1st@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 months ago

          If you’re gonna spend that level of money, you may as well go for an M1 Mac Mini.

          I was joking. I don’t feel like shelling out $600 for a starting media server.

      • TedZanzibar@feddit.uk
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        I just recently put in an N100 mini PC to run as a Plex server. Cost me about £160, pulls all of 6W when idle, and it doesn’t break a sweat when transcoding no matter what I throw at it. As a media server I can’t recommend them highly enough.

    • kevincox@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      7 months ago

      Although getting something that supports AV1 hardware decoding could be forward thinking. For now you are probably fine without it and if you are ripping DVDs you may consider just keeping the original encoding. But most likely you will start to see more AV1 files coming in the future, and having a server that can transcode AV1 to older formats easily will keep everything on your network working properly.

  • loutr@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    7 months ago

    As it seems nobody’s linked it yet, have you read Jellyfin’s hardware selection page? They go into great details about which HW features are required/desired.

    In my case I’m running it on a NUC with an i3 8109U + 16GB RAM, it runs great with 2 or 3 transcoding jobs at once. Media are stored on 5400-RPM HDDs.

      • kevincox@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        7 months ago

        Video serving is a very sequential workload so hard drives will be more than sufficient and you can typically get storage at a lower price.

        SSD may give you slightly faster start and seeking but it is unlikely to be noticeable.

        • niemcycle@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 months ago

          Agreed, you’re probably going to run into network bottlenecks before storage read times become an issue

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    6
    ·
    7 months ago

    Don’t do this

    Install a stable Linux distro and then setup Jellyfin. I would recommend a minipc with an Intel CPU for hardware acceleration. If you are feeling spicy you could use Podman

    • AlecStewart1st@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      7 months ago

      Ah, okay. So, if I understand correctly, unless I’m trying to have Jellyfin do what YouTube does with offering multiple resolutions and bitrates for video, I don’t need to bother with looking for a GPU that’s good at video transcoding?

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        8
        ·
        7 months ago

        Or streaming to a device that doesn’t support your encoding. Something like an android tv that isn’t as flexible and may need on the fly transcoding. You can be careful to select a well supported encoding on the server if needed.

      • kevincox@lemmy.ml
        link
        fedilink
        English
        arrow-up
        6
        ·
        7 months ago

        If you want to serve multiple resolutions and bitrates you will probably want hardware that can do transcoding. However basically any graphics card (even integrated) will be able to transcode a video stream in real-time at a decent quality.

        (If you wanted you can try to pre-transcode offline, but Jellyfin doesn’t support this well)

      • AtariDump@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        7 months ago

        Pretty much, so long as your clients support the bitrate and resolution. (As others have said) see below

      • AtariDump@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        Why is it a bad idea?

        What the breakdown of cost of Pi (and accessories) vs mini pc? What’s the power consumption breakdown?

        I’m certainly not say it has to be a Pi; I’m trying to point out that a Pi could host a Jellyfin server without transcoding.

        • Possibly linux@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          7 months ago

          It could but a Raspberry Pi these days will cost you $100 by the time you buy one, a case, a powers supply and SD card. Not to mention the raspberry pi does not have hardware acceleration so your CPU usage is going to be very high and your video may be choppy.

          By comparison you can pickup a minipc for around the same price and it will be much more efficient as it has hardware acceleration.

          • AtariDump@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 months ago

            How much does it cost in power to run the Pi? The computer?

            I’ve got a Pi3B running Plex and, with one stream and no transcoding, there is no choppiness to any video.

  • hperrin@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    7 months ago

    Basically anything will work if you pop an Intel A380 in there and set up hardware encoding.

    Honestly, a decently fast CPU with QuickSync will work just fine without a GPU. Something like a mini PC with an Intel N100 would work great.

    There’s also no reason to use an NVMe RAID. Either just buy a big NVMe or use a HDD raid. Either way, have a backup solution if that’s what you’re going for, cause RAID is not backup.

    As far as BSD, I have no idea if that will work. I guess if it runs Docker, you can use the Jellyfin Docker image. What makes you want to use it over Linux?

  • Pyrosis@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    7 months ago

    Hardware support can be a bit of an issue with bsd in my experience. But if you’re asking for hardware it doesn’t take as much as you may think for jellyfin.

    It can transcode just fine with Intel quic sync.

    So basically any moden Intel CPU or slightly older.

    What you need to consider more is storage space for your system and if your system will do more than just Jellyfin.

    I would recommend a bare bones server from super micro. Something you could throw in a few SSDs.

    If you are not too stuck on bsd maybe have a look at Debian or proxmox. Either way I would recommend docker-ce. Mostly because this particular jellyfin instance is very well maintained.

    https://fleet.linuxserver.io/image?name=linuxserver/jellyfin

    • AlecStewart1st@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      If you are not too stuck on bsd

      Not really. It’s more out of the curious of how DragonflyBSDs HAMMER2 filesystem works. I’ve good things about it and ZFS on FreeBSD. ZFS on Linux I’ve heard is still getting up to where it is on FreeBSD.

      • Pyrosis@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        That’s somewhat true. However, the hardware support in bsd especially around video has been blah. If you are interesting in playing with zfs on linux I would recommend proxmox. That particular os is one of the few that allows you to install on a zfs rpool from the installer. Proxmox is basically a debian kernel that’s been modified a bit more for virtualization. One of the mods made was including zfs support from the installer.

        Depending on what you get if you go the prox route you could still install bsd in a vm and play with filesystem. You may even find some other methods to get jellyfin the way you like it with lxc, vm, or docker.

        I started out on various operating systems and settled on debian for a long time. The only reason I use prox is the web interface is nice for management and the native zfs support. I change things from time to time and snapshots have saved me from myself.

  • lightrush@lemmy.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    7 months ago
    • Lenovo ThinkCentre / Dell OptiPlex USFF machine like the M710q.
    • Secondary NVMe or SATA SSD for a RAID1 mirror
      • Use LVMRAID for this. It uses mdraid underneath but it’s easier to manage
    • External USB disks for storage
      • WD Elements generally work well when well ventilated
      • OWC Mercury Elite Pro Quad has a very well implemented USB path and has been problem-free in my testing
    • Debian / Ubuntu LTS
    • ZFS for the disk storage
    • Backups may require a second copy or similar of this setup so keep that in mind when thinking about the storage space and cost

    Here’s a visual inspiration:

    • AlecStewart1st@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      Is ZFS on Linux getting better? I’ve heard mixed things. I use BTRFS on my daily driver, and I really like (ab)using the file compression with zstd.

      • JuvenoiaAgent@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        I’ve been using ZFS for the past 3 years without any major issues. For my server, all my media is stored on a group of HDDs in an external HDD enclosure using RAIDz2. I currently use Proxmox, since I wanted a stable OS and it has support for ZFS baked-in.

        My personal laptop has root on ZFS, running Arch. ZFS is a kernel module installed separately in this case. Since Arch is a rolling distro and I like messing around with it, I appreciate running a FS with snapshots where I can easily rollback when something breaks. Plus, ZFS supports native encryption!

        • AlecStewart1st@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 months ago

          Plus, ZFS supports native encryption!

          Hmm, I think that was the one I was wondering about. I use Gentoo, and when I was initially setting everything up on my machine, I saw there were a lot of caveats for using ZFS on linux from the Gentoo wiki entry on it. Maybe that’s changed or those issues are no longer related to native encryption specifically.

          • JuvenoiaAgent@lemmy.ca
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 months ago

            Those caveats/issues are definitely worrying. I don’t think I have enough expertise to comment on them, unfortunately.

            The wiki also says that native encryption is “unofficially discouraged by the community” and I’d be interested in learning more about that, but there’s no source for that statement.

            If you’re interested in ZFS, I think it’s definitely worth trying out on a secondary machine. There’s a lot to learn, but I’ve found it worthwhile.

  • mipadaitu@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 months ago

    Feels like some of that stuff, like the SSD’s are a bit overkill for a media server. Most of them still use spinning disks to maximize size vs. cost.

    Additionally, the CPU/GPU needs of a media server are pretty minor, unless you need to transcode on the fly, and even then, single streams aren’t very intensive either.

    So unless you’re capping the outgoing bandwidth to multiple external sources, you’re most likely just streaming the video source as-is to the destination, which just needs a stable network stream. If you don’t need to transcode at all, you don’t really even need a GPU on the hardware.

    • AlecStewart1st@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      7 months ago

      I’m beginning to realize I haven’t looked into this as much as I should’ve. 😅 So for most people, with what @[email protected] has mentioned, a raspberry pi with 1 or multiple hard drives (if you really want) is a good start.

      • mipadaitu@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        7 months ago

        Price in a backup solution too, you don’t want to have all your movies disappear because of one hard drive crash, or an accidental reformat gone wrong.

        RAID is not a backup.

  • catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    I don’t think anyone here would recommend BSD, but since your requirements are low you could run that on pretty much anything, including a relatively recent surplus PC.

    • AlecStewart1st@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      I don’t think anyone here would recommend BSD

      I’m guessing this is due to issues of support, compared to Linux?

      • entropicdrift@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        Yeah. Linux, Mac, and Windows are all officially supported by the Jellyfin server project. Everything else is not.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 months ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    DNS Domain Name Service/System
    LTS Long Term Support software version
    NAS Network-Attached Storage
    NFS Network File System, a Unix-based file-sharing protocol known for performance and efficiency
    NUC Next Unit of Computing brand of Intel small computers
    NVMe Non-Volatile Memory Express interface for mass storage
    Plex Brand of media server package
    RAID Redundant Array of Independent Disks for mass storage
    SATA Serial AT Attachment interface for mass storage
    SSD Solid State Drive mass storage
    VPN Virtual Private Network
    ZFS Solaris/Linux filesystem focusing on data integrity

    [Thread #732 for this sub, first seen 1st May 2024, 16:05] [FAQ] [Full list] [Contact] [Source code]

  • Fedegenerate@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 months ago

    Aoostar n100 2 Bay nas is what I’m currently thinking about. Or the same device but rebadged.

    Pros: n100 for quicksync. 2 bays of HDD for media storage. Low power at idle. Cheap for a box with all relevant codecs + sata storage. High WAF compared to other HTPCs

    Cons: Unknown brand for build quality and bios updates. General Chinese security anxieties. Idle power, while low, is higher than other n100 options. Fan isn’t pwm. Personally don’t like the aesthetics.

  • Moonrise2473@feddit.it
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    nvme for videos seems expensive for nothing, unless you are serving 4k videos over a 10gbit connection to multiple users

    • AlecStewart1st@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      I mean, right now, that’s definitely not on the table.

      4K would be nice, obiviously, but I don’t think I myself am to act nor do I want to act as the alternative to Plex for a bunch of family and friends. 😆

  • Appoxo@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months ago

    What I personally use and what I plan to do. Maybe it’s worth something for you:

    Currently in production:

    • Intel Nuc 11th gen i5-1135G7 wirh 8gb single Sodimm
    • Storage: 8TB external hdd via USB 3.0
    • OS: Debian with OMV6
    • Jellyfin running in docker. Media is organized with the *arr suite

    HW transcoding is fine for single 4K HDR -> 1080p but I probably misconfigured something and it could be better or the linuxserver container is bad.
    Don’t care enough to fix it :p

    Planned in the future:

    • Ugreen DX4800+ NAS as NFS or iSCSI storage with 8-10TB of Raid1 (for now) storage.

    Btw: This is my hardware (literal) stack :)