frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: I MitM'd Plex to make remote streaming suck less

https://github.com/inhumantsar/plex-proxy/
2•inhumantsar•1h ago
I've been hoarding media for a long time. Longer than I care to think about honestly. At this point the collection is large enough that several of the friends and family members I've shared my Plex server with have cancelled their streaming service subscriptions.

After getting laid off a while back, I started working on a degree online. It seemed like a good opportunity to spend some time traveling too, so I signed up for Starlink and got a friend to host my Plex server in his basement for the duration. Surely that would be good enough to watch whatever from where-ever.

Turns out that no, it's not. Plex really doesn't like streaming over Starlink. It would top out at 8-9mbps in good conditions, often dropping down to 2 or 3, while other streams and downloads would happily hum along at 100mbps+.

I spent a little time looking into the issue early on. None of the remote or server network changes I could think of made a noticable difference. Customizing Plex's internal MPV configuration to increase the chunk size and buffer limit helped a bit, but it was still too slow to watch anything in realtime.

My best guess was that the problem largely boiled down to a combination of Starlink's fairly frequent latency spikes and Plex's short timeouts. With things at school winding down, I decided to finally put that to the test by building some kind of caching proxy.

Initially the plan was to MITM the client/server connections so it could serve everything out of a cache and set it up to proactively cache things in the background. Once the client and server were talking reliably through the proxy, I realised those features wouldn't really be necessary. All it needed was a bit of parallelism and patience.

With my particular setup, 5 workers can reliably pull down segments at ~35-40mbps, adding another 5 pushes that up to about 60mbps. Either is more than enough to stream anything 1080p in realtime and 60mbps can handle almost anything 4K HDR. Ended up building the prefetching features despite that, because at that point why not?

Fast-forward a few days and I'm willing to call this a Good Enough first version. There are plenty of significant limitations and rough edges. It's almost entirely vibecoded and far from my best work ever. There's enough spaghetti under the hood that I have to actively avoid thinking about it. It works well enough that I don't have to start buffering a TV show 2 hours before I plan to watch it though, and that's what matters.

This is a niche tool for a niche problem. I don't really expect this to be of much use to anyone. It was a fun project though and a satisfying solution to an irritating problem, so thought I'd share it anyway.

Comments

toomuchtodo•1h ago
https://arxiv.org/html/2409.09846v1
inhumantsar•29m ago
looks like an interesting paper and the abstract seems to confirm my theory about latency spikes and packet loss. i'll have to give it a thorough read tonight. thanks!

Zig Creator Calls Spade a Spade, Anthropic Blows Smoke

https://raymyers.org/post/zig-creator-calls-spade-a-spade/
1•plinkplonk•39s ago•0 comments

China's Robotics Dream Began in 1972

https://www.chinatalk.media/p/chinas-father-of-robotics
1•gwintrob•1m ago•0 comments

Poorly Aged 80s Commercials [video]

https://www.youtube.com/watch?v=3rxiEaJbxnI
1•Bender•2m ago•0 comments

What will be left for us to work on?

https://www.normaltech.ai/p/what-will-be-left-for-us-to-work
1•randomwalker•2m ago•0 comments

Show HN: Melodusk – AI Music Generator and music tools in the browser

https://melodusk.ai
1•akseli_ukkonen•4m ago•0 comments

Lessons of Darkness

https://en.wikipedia.org/wiki/Lessons_of_Darkness
1•throwoutway•4m ago•0 comments

Building Food Metadata with LLM Juries

https://careersatdoordash.com/blog/building-food-metadata-with-llm-juries-context-optimization-mu...
1•tie-in•5m ago•0 comments

Boom? If AI Sales in the US Go South, Let's Not Bail Out Big Money Bettors

https://www.nationalmemo.com/ai-bubble-2677214150
1•baranul•6m ago•0 comments

Be a Star or a Janitor

https://99d.substack.com/p/be-a-star-or-a-janitor
1•iacguy•9m ago•0 comments

Token overhead in coding agents: the task used 0.67% but overhead used the rest

https://praveenvijayan.substack.com/p/your-agent-spends-99-of-its-tokens
1•praveenvijayan•10m ago•0 comments

Is x86 ready to ACE it?

https://chipsandcheese.com/p/is-x86-ready-to-ace-it
1•mfiguiere•11m ago•0 comments

The Economics of Recursive Self-Improvement [pdf]

https://elasticity.institute/rsi-paper.pdf
1•apsec112•12m ago•0 comments

A better rsync based on fountain codes

https://twitter.com/doodlestein/status/2075711880426062074
1•MrBuddyCasino•14m ago•0 comments

Automated Moderation Is Here to Stay–Accountability Must Keep Pace

https://www.eff.org/deeplinks/2026/07/part-2-automated-moderation-here-stay-accountability-must-k...
1•Jimmc414•14m ago•0 comments

Lobste.rs is now running on SQLite

https://lobste.rs/s/ko1ji1/lobste_rs_is_now_running_on_sqlite
2•y1n0•20m ago•0 comments

The first commercial human-like robot is here. Are replicants next?

https://www.fastcompany.com/91570086/ubtech-first-commercial-human-like-robot
2•baranul•26m ago•0 comments

Show HN: Free and open source browser extension for web automation

https://waffy.io
2•aravind-manoj•28m ago•0 comments

MorphoHDL: A minimalistic language for growing circuits

https://paradigms-of-intelligence.github.io/morpho/
8•jacktang•29m ago•0 comments

Fred: A text editor that uses C for everything – Handmade Network Expo 2026 [video]

https://www.youtube.com/watch?v=xz5aPCRxsv4
3•linkdd•30m ago•0 comments

SCOTUS slip opinion: Grabbing Google geofence Location History is a 4th A search

https://www.courtlistener.com/opinion/10881683/chatrie-v-united-states/
8•Jimmc414•32m ago•1 comments

A Trip to 90s Kansai: Exploring the XD FirstClass Network BBS

https://cdrom.ca/games/2026/05/30/xd.html
2•zetamax•38m ago•0 comments

Palantir CEO Karp: "If my family hadn't left Germany, I would be a lampshade."

https://twitter.com/infolibnews/status/2076738939080102155
3•logcode•42m ago•2 comments

Show HN: MemStitch – Zero-copy context bridging for vLLM (25x TTFT speedup)

https://github.com/DaqulaLin/MemStitch
2•daqulalin•43m ago•0 comments

FCC Approves Reflect Orbital's Space Mirror Satellite

https://au.pcmag.com/networking/118695/fcc-approves-reflect-orbitals-giant-mirror-satellite-that-...
4•bushwart•43m ago•0 comments

Distributed Development

https://reticulum.network/manual/distributed.html
2•sporkl•46m ago•0 comments

ESBMC-Arduino: Closing the Deployment Gap for Formal Verification

https://arxiv.org/abs/2607.08550
4•Jimmc414•48m ago•0 comments

The Git history command deserves more attention

https://lalitm.com/post/git-history/
24•turbocon•50m ago•3 comments

Why Smucker's $5B Bet on the Twinkie Flopped

https://www.wsj.com/business/retail/smucker-hostess-twinkies-365614e5
5•doctaj•56m ago•1 comments

I built Snapchat without a webserver and with better privacy

https://github.com/jay23606/mayfly
3•joeydavis0068•56m ago•0 comments

The Future Worth Building Is Human

https://thinkingmachines.ai/blog/the-future-worth-building-is-human/
2•doppp•59m ago•0 comments