Can I run OctoPrint and Plex on the same Pi? reddit / selfhosted ---------------------------------------------------------------------- Sea_Risk_2637 · 2023-10-24 19:33 I've got a RasPi 4 (4GB version). I never really put a whole lot of effort into it and just switch between SD cards as necessary. Obviously, this is not a great solution. I was going to buy a Pi Zero 2 W for the OctoPrint so I could keep both services running simultaneously. But before I do that, I thought it would be cool if I could somehow put both services on my current device. I've seen around this sub that people are running multiple services alongside Plex, but there's not much talk about OctoPrint. ---------------------------------------------------------------------- cr0wstuf · 2023-10-24 19:40 Just try it. ---------------------------------------------------------------------- thekrautboy · 2023-10-24 19:44 Neither of those should be very hungry and should run fine together. Plex only gets very intensive when you start transcoding a lot, especially video. And that is typically too much for the Raspi, even without anyhing else running like OctoPrint. So if your Plex is already running fine just by itself, it shouldnt be a problem to add OctoPrint at the same time. Btw /r/raspberry_pi exists for example. ---------------------------------------------------------------------- DadOfLucifer · 2023-10-24 19:44 I mean you can if both of them are dockerized ---------------------------------------------------------------------- CynicalAltruist · 2023-10-24 19:45 You can, but if you hammer one service too hard the other will also suffer, and for OctoPrint that can cause missed GCode commands, skipped serial transmissions, or just a general crash, losing you the print. If you aren’t hammering either too hard, meh, don’t see why it wouldn’t work, but might want to make OctoPrint less [‘nice’](https://www.howtogeek.com/411979/how-to-set-process- priorities-with-the-nice-and-renice-commands-in-linux/). ---------------------------------------------------------------------- thekrautboy · 2023-10-24 20:02 Why would they **need** to be dockerized? ---------------------------------------------------------------------- lilolalu · 2023-10-24 20:23 Honestly I don't think that's a great idea. Both programs occasionally need to do very CPU intensive stuff, depending on how you are using them. It's technically absolutely no problem to run Plex and Octoprint but ffs why on a RPI? ---------------------------------------------------------------------- Pvaleriano · 2023-10-24 20:24 Plex in a RPi dies quickly if you intend to watch anything with subtitles because those need to be transcoded and, as you said, Plex gets intense. As a non native English speaker, 99% of what I watch has subtitles and that adds unstability to the Pi. If anyone reads this and is thinking of buying a Pi but will watch content with subs, save the money and buy another machine more powerfull ---------------------------------------------------------------------- thekrautboy · 2023-10-24 20:28 > if you intend to watch anything with subtitles because those need to be transcoded Thats not entirely correct. Not all subtitles need to be transcoded. It will depend on the exact scenario, what container is used, what subtitle format and what can the client device actually do. I dont think any Raspi makes for a great Plex server and i wouldnt recommend buying one if that is the main purpose, especially with still terrible Raspi prices. But it sure is possible to do it without much issues if all video can be "directstreamed". ---------------------------------------------------------------------- slykethephoxenix · 2023-10-24 20:38 Pain management. ---------------------------------------------------------------------- thekrautboy · 2023-10-24 20:39 Of course having things in containers can help a lot, but in this case its absolutely not required in any way. ---------------------------------------------------------------------- slykethephoxenix · 2023-10-24 20:41 Just like pain management. Sure, it's not needed, but it's certainly nice to have. ---------------------------------------------------------------------- EndlessHiway · 2023-10-24 20:44 Might be all they have. ---------------------------------------------------------------------- thekrautboy · 2023-10-24 20:47 That analogy is quite flawed but whatever. ---------------------------------------------------------------------- souam666 · 2023-10-24 20:56 Actually if the need is to squeeze as much cpu power as possible. Container isn't the way. It only add simplicity. ---------------------------------------------------------------------- CobreDev · 2023-10-24 22:23 Definitely possible, it’s ideal if you’re not transcoding anything in Plex though. You should also look into klipper with fluidd or mainsail, klipper is (imo) so much better than marlin and fluidd/mainsail are even lighter- weight than octoprint! ---------------------------------------------------------------------- imx3110 · 2023-10-25 00:52 One reason might be to monitor the CPU usage of containers/spin down or de-prioritize Plex if there is a Octoprint job in progress. Though I agree with the recommendation to not use containers for Plex, especially if you have plex pass and planning to do transcoding as well. Hardware transcoding won't work inside a container. ---------------------------------------------------------------------- thekrautboy · 2023-10-25 05:10 Uhm, you can monitor usage and set priorities without containers too. And hw transcoding absolutely can be done in containers too. ---------------------------------------------------------------------- Azelphur · 2023-10-25 06:24 Gonna go against the grain here and say no. Octoprint needs to stream commands in real time to your printer, I'm sure I've read somewhere that putting too much load on the pi results in print quality problems. There's also the reliability factor, I have a decently specced home server (Ryzen 7600, 32GB RAM) and I don't run octoprint on it, because I don't want stuff I'm doing on my home server to interrupt and kill my 36 hour print lol Also, Pi kinda sucks as a media server, how you gonna connect storage to it, USB drives? If so that'll burn even more CPU time. ---------------------------------------------------------------------- lilolalu · 2023-10-25 07:40 Well sure, bad decision. you can get a used minipc with more resources (for less) than a rpi4 on ebay. ---------------------------------------------------------------------- budius333 · 2023-10-25 18:09 I'll agree, but also disagree 😜. Plex is not the only media host around, it's 100% to have media hosted on the pi, with subtitles and only use the I/O (no transcoding). I personally have a DLNA server on my Pi and run VLC on my TV or computer to watch stuff. Let the TV/PC transcode while the PI is just pushing files across the network. Works great and got loads of other stuff running simultaneously on the pi. ---------------------------------------------------------------------- Pvaleriano · 2023-10-25 18:11 That sounds super cool but also way out of my league. My league being "let's see what cool containers the people at linuxserver have" 😅 hehe ---------------------------------------------------------------------- budius333 · 2023-10-25 18:15 For DLNA I have my own container but it's super simple, it's building miniDLNA from the source and put the binary into the image. If you want I can drop some YAML here that would let GitHub build the same container for you ---------------------------------------------------------------------- budius333 · 2023-10-25 18:41 Here: https://www.reddit.com/r/selfhosted/s/hZlOv6jxgG 😜😃😀😬!!! Hope it helps!!! ---------------------------------------------------------------------- Pvaleriano · 2023-10-25 19:22 Damn, thanks!! I'll save that in my bookmarks ---------------------------------------------------------------------- Kevlar578 · 2023-10-25 21:30 I tried that before my old Laptop and IT was absolutly horrible. ---------------------------------------------------------------------- thekrautboy · 2023-10-25 23:24 Sorry but your TV is not transcoding anything in that setup. DLNA is a very very simple basic system. All it basically does is send the pure video file to the client. If that client can actually handle the file and its content, the server doesnt care. So yes, in that sense you are avoiding transcoding on the Raspi, simply because it cannot be done at all. But if your TV can also not handle the content of the file, it simply fails. And then there is no fallback to transcoding. It either works, or it doesnt. In your case i guess you are either very lucky that all your media matches to whatever your TV can handle, or you have your media sources (downloads with *arr suites for example) set up to download in exactly those formats. The exact same thing would be possible with Plex or Jellyfin or Emby too. If the media can directly be handled by the client (the TV), then nothing needs to be transcoded. Thats no magical trick by DLNA.