So I’ve been googling to find out what to buy for a jellyfin/game server and the problem is almost all posts are about buying hardware in the US or EU. I checked the second hand market and it SUCKS around here, like 10 year old+ CPUs being sold as ‘intel i7’ for stupid prices.

I’ve decided to buy new stuff, at least I get warranty. When I searched around for info on that I also got a lot of useless (for me) advice like buying mini pcs that are either not available around here or very expensive. Basically I think I just need to build something myself using non server hardware, is that a bad idea?

What I have in mind right now, please tell me if there is anything that will cause issues later:

  • i5-12400 (mainly for the integrated graphics to use jellyfin’s hardware transcoding. Is the UHD 730 enough for that?)

  • No idea what to get for MB, I usually buy AMD. H610 boards seem cheap enough but very limited on storage options (sometimes only a single pcie slot even), I do want to eventually add lots of storage to it.

  • Server quality storage is extremely expensive, not sure if its worth buying. Was think about getting some WD blue 2tb drives, but really not sure here either.

  • For case I saw some suggestion for cases with a ton of hotswappable drive bays but sadly I couldnt find any to buy in my country, will probably get whatever cheap one I can find.

  • PSU I want to get any gold PSU with low wattage from a reputable brand but its been hard to find 500W or lower here, usually shops only offer brand PSUs that are 650W+.

  • 16gb of any decent ram I suppose?

Btw I live in Brazil, if you feel like searching around even tho the websites are in portuguese:
www.kabum.com.br
www.pichau.com.br
www.terabyteshop.com.br

Any help is appreciated, its gonna be my first server so I have no idea what I’m doing

  • coconut@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 hours ago

    Just want to point out you don’t need beefy hardware if you’ll use jellyfin only in your network or if you won’t stream very heavy media over the internet. If your library is mostly 1080p, you’ll be able to stream that without transcoding for the most part.

    • Dagnet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      Will stream over the internet and being in a developing country a lot of devices can’t even handle h265 so los of transcoding. Will also host foundryVTT and maybe some game servers

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 hours ago

    I think Brazil has very high tariffs so that is probably what is driving up prices.

    10 year old hardware may not be that bad. It depends on what it is and how much electricity costs.

    • Dagnet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 hours ago

      No need to think, I mention in another comment that we have 50% tariff on all imported stuff. And I’m not buying 10 year old stuff for that price lol

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

        Any libraries, businesses or other places looking to get rid of hardware?

        I would start on the cheaper end as you will waste money with mistakes

        • Dagnet@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          8 hours ago

          I live in a developing country, when libraries/business and other places get rid of hardware its because its literally useless, Im talking single core 32bit cpus useless. I made this thread so I hopefully wont make any mistakes hahaha

  • monkeyman512@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 hours ago

    To make sure there is not a misunderstanding, the wattage of a PSU is not how much power it will draw. The wattage is how much is can supply. So if you have a 1000w PSU, but all your components draw 200w of power it will use about 200w of power.

    Additionally, if you plan to get a lot of HDDs in the future, do some research on power rails. Some PSUs are designed to only be able to supply a small amount of power to things like HDDs because most people only have 1 or 2.

    • Dagnet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      9 hours ago

      Its my first server but not my first pc, so I know I can use a 700W PSU with no issue except most of them have the highest efficiency at around 50% so less potent PSU would be ideal in the long run, if not only to save money on electricity bills but also for the enviroment

  • twinnie@feddit.uk
    link
    fedilink
    English
    arrow-up
    18
    ·
    13 hours ago

    I spent a few years living in a developing country in Africa so I have some appreciation of what you’re going through. I used to find lots of technology shops on Google Maps, etc, then when I got there they just sold phone covers and SIM cards and knock-off iPhones.

    I can’t really offer much advice but have you considered just making something based on a second hand laptop? A lot of them are still pretty powerful just with old batteries and they’re designed to run efficiently.

    • Dagnet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      9 hours ago

      a laptop would extremely limiting as far as storage goes, I prefer not having to add a NAS later. Thanks for the info tho

  • verstra@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    15 hours ago

    Hmmm, I repurposed an old PC of mine, only buying large WD red HDDs. If I were to expand, I’d ask friends/family if anyone has an old box to sell. And maybe buy a server rack. Second option would be “used goods websites” and only after that I would be looking to buy new.

    That’s because jellyfin+immich+planka+a few static websites really don’t need that much compute power. The heaviest work to be done is playing a movie, which could be done by a laptop. Unless you are planning for many users to use the server at the same time.

    I live in slovenia

    • Dagnet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      15 hours ago

      Eh, sadly not an option otherwise I wouldve gone for it right away, most of my family would never buy desktop pc hardware for anything

  • oopsallnaps@piefed.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    14 hours ago

    This is all off the top of my head, as I’m not at my server atm…

    I believe the 12400 should be good for hardware transcoding. I have a dell optiplex (i5 9th gen, can’t remember exacts) running a low traffic server (my wife and I), with no issues running at least 2 4k streams concurrently. It comes down to what you encode your videos to.

    Additionally I’d grab at least one new NAS drive, as they tend to be rated for long term use. If options aren’t great there, then maybe a few drives in a raid configuration may also work. If you do get a NAS drive make sure its fairly quiet, my server is located in a common room, and the hdd fan is fairly audible. oops.

    • Dagnet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      What would be some options for NAS drives? The ones I found were quite expensive to the point I think it would be cheaper to just replace damaged drives and run them in RAID. Was also thinking about using a M.2 drive to run programs on and HDDs for file storage, I wonder how beneficial and how hard it is to do that

      • oopsallnaps@piefed.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        Western Digital Reds or Seagate Ironwolf iirc. Yeah they’re expensive because they’re rated for a different use case than traditional drives. I’m no expert though! I believe I’ve got a WD Red.

        I believe thats what I do though, I have a ssd in there as well for the base os. And I just have the nas drive mounted. Jellyfin docker container setup to point to the nas drive as the media storage folder, as well as a samba share setup so I can throw stuff like bandcamp purchases easily.

        • Dagnet@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 hours ago

          Man, 7200 version of those drives are all over 400 USD here, my poor bank account

          • oopsallnaps@piefed.ca
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 hours ago

            oof. Yeah I think I have the 5400 rpm one. Maybe start with the regular hdd in raid and see how that fairs long term. Just make sure to backup your media in more than one place!

  • nesc@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    15 hours ago

    Building on a nonserver hw is a good idea. You could look things up at aliexpress, they almost always have free shipping. Alternatively you can buy stuff in US/EU for cheap and use some service for parcel delivery from there (meest/shipito etc.), often they deliver super cheap (like us$10-20 for something that would be two timesmore expensive locally)

    • Dagnet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      15 hours ago

      Government started taxing imports by 50% a few years back, buying from other countries is expensive and means I get no warranty, worst of both worlds sadly

      • nesc@lemmy.cafe
        link
        fedilink
        English
        arrow-up
        2
        ·
        15 hours ago

        Your decision, we have import tax as well starting from 150 euros or something, I’ve just always written 100 or less. With used hw you often don’t get warranty beyound week or 10 days anyway.

        • Dagnet@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 hours ago

          Does matter what you write unfortunately, they checking everything now. I plan on buy new so I can get longer warranty

  • Dran@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    14 hours ago

    Generally power supplies are the most electrically efficient at 20-60% utilization, so there’s no issue with over-provisioning power, other than the (generally minor) upfront extra cost, which might very well pay for itself in the first months/years of usage. I’ll take a look and see what I can find on those sites.

    Edit: okay, trying to shop through google translate / currency calculator is actually aids so I’m gonna teach a man to fish instead. This is what I should have done from the start anyway.

    Power supply: Anything from a decent brand, at basically anything >450W. a 650W or 850W is totally fine if it’s at a decent price. They only draw the power they need, they don’t just constantly pull 850W if the downstream components aren’t calling for it.

    CPU: 12400 is a fine cpu for what you’re doing. You’ll transcode at 720p no problem, 1080p maybe a single stream in real-time. I wouldn’t bank on more than that. Only downsides here are the relatively shallow core counts if you ever expanded into other workloads. Without access to used xeon boards/cpus, it might be a reasonable choice though. What I would say is look for something older but with more cores/threads if you can. For example, a 10900 or even 10700k would probably be a better server cpu than a 12400.

    Memory: DDR4 platforms are a great way to save money, as long as you aren’t planning on expanding to inferencing on cpu. Get as much as you can. 32-64gb of ddr4 should be dirt cheap, especially if you find a cheap motherboard with 4 memory sockets.

    Motherboard: If you want this thing to be versatile, you want 2x pci-e slots. Old gaming full-sized ATX boards are the way to go here. 1 slot for an HBA, 1 slot for a GPU, and that should be all you need. Bonus for as many open sata sockets as possible. 6-8 is pretty typical on 10th-12th gen gaming ATX boards.

    GPU: gpus will be much more efficient at transcoding than an igpu, especially from older intel CPUs. A 1050, 2060, 3050, basically anything from the 10-series onward has a decent nvenc encoder that would work well with plex/jellyfin. My goto is generally old workstation cards, I use a p620 myself and it handles a single 4k encode job no problem. I’m not sure if they’re viably purchasable anywhere in your area, but I’d definitely look out for a P620, P1000, or T400. Great value in those cards.

    Drives/HBA: there are inexpensive LSI HBA cards to expand how many drives you can attach to a system if you need them, all you need is a spare pci-e slot and a place to physically mount the drives. The cheapest way to start here is to look for a motherboard with 4-6 sata slots and use those. Hardware raid is functionally dead these days in the real world, just use zfs or mdadm under linux to create an array with your desired level of resiliency/capacity.

    Once you’ve priced out what it would cost to buy all of this new, look for prebuilt gaming PCs and office PCs that might be able to be expanded to fit these requirements. Prices look kind of steep on those markets you listed, but I’m sure something exists if you look hard enough.

    • prembil@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 hours ago

      Let me expand on that.

      there is a really nice wiki article about intel hw encoding with color table https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video#Hardware_decoding_and_encoding

      1.1. the color does not show in dark mode on mobile

      1.2. Your CPU is under the Alder Lake, so HEVC 12b encode/decode and AV1 decoding. This means you can encode big things into HEVC 12b to save space and also play back AV1 without issues in the future.

      my setup and experience

      2.1. I have an i5-8400 so I encode everything too big into HEVC 10b. I sometimes watch with 4 other people, so i had to tweak the config a lot to make it work fine when 5 people are watching at once. From my experience, the jelly sometimes just puts everything into decoding the first stream while others just wait. I recommend just setting only 1 core per stream and only like 300s transcoder buffer.

      2.2. playback devices do a lot, when using firefox, everything has to be transcoded except h264

      on chrome, it usually just remuxes (mkv container is converted into something more compatible) easy on resources

      when playing using a jellyfin client, it is played directly

      dedicated GPU

      3.1. I disagree with the dedicated GPU recommendation as long as you tweak the settings, you’ll be fine.

      Test iGPU first, play around with it, see how many streams at once you actually have to serve.

      The dedicated GPU is an extra investment for a start and a constant power consumer for later.

      • Dagnet@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 hours ago

        yeah, dont think the dedicated GPU will be necessary, most posts Ive seen clain that intel’s igpu can handle multiple 4k streams, tho I could try to find a cpu with the 770 instead of the 730? Not sure how much of a diff it would make tho

        • prembil@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 hours ago

          My guess is the 770 would be a bit better. Could not find anything that could compare the two based on video performance and not strictly on gaming/rendering. So my opinion is not to care about it too much.

      • Dran@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 hours ago

        I’m with you that he doesn’t strictly need a gpu, but if the price is right (free from old gaming PC, cheap from a friend’s old gaming PC, cheap old workstation card, etc) I stand by that he probably wants one. A lot less fussy, a lot more capable, nad nvenc does better quality encoding at lower bitrates (and probably less power too if you take into account time spent encoding at full tilt.)

  • Drunk & Root@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 hours ago

    u can prob get by with using old devices an connecting to storage like old laptops may be enough depending what your needs are

  • Mordikan@kbin.earth
    link
    fedilink
    arrow-up
    1
    ·
    12 hours ago

    Depending on how much storage you are needing for media, one possible option there (if nothing else until you can find a more cost effective solution) is to host the media remotely. You can use rclone to sync remotely to a local mount point and then point your Jellyfin library to that mount. pCloud is a popular choice for stuff like that.

  • ᗪᗩᗰᑎ@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 hours ago

    I’ve been running my server on an old laptop and a 20TB external hard drive connected via USB. it’s not fast, there’s a multi-second delay when the drive goes to “sleep” if nobody has used jellyfin in a while, which makes it appear to not work, but once it spins up it works like normal. this has let me keep things simple and cheap. I back up to another 20TB hard drive, which I recently bought as I could finally afford it. beefy hardware is great but not necessary, if you’re okay with some limits.

    • nesc@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      Spinning down and up actually kills drives more than constant non-stop work, I have a setup close to yours, it just seeds torrents (linux isos ofc.) 24/7.

  • catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    14 hours ago

    I know in the US, local government, schools, universities, etc. will hold surplus sales when they get rid of old equipment. Maybe you can see if they do something similar near you?

    You might also compare the price of a local system vs cloud hosting. That might work out to be cheaper.