by GOATS- · 4y ago · 0 comments
Overpass is an app I made for self-hosted video live streaming. I originally made the tool for a friend of mine's Patreon service, as he wished to have a private streaming service just for his subscribers. Unlisted YouTube streams were taken down for copyright issues when he did DJ sets, which became a hassle after a while. I originally started with barebones nginx-rtmp, but found it to be too tedious to ask people to open VLC or whatever media player they have to watch the stream.
From that point on, I decided to fully commit to making a live streaming service from "scratch". Overpass is my first venture into making a web application with HTML/CSS, as I've primarily been making CLI apps for my own personal use. It doesn't look all that fancy, but it does the job for us.
Overpass uses Oauth2 via Discord for authentication, as most people subscribed to his Patreon already have access to our server. This is why Overpass can also prevent anyone outside a certain Discord server from gaining access to the app.
There is currently no admin panel, and everyone has the same rights, so it is not intended for deployment in a large public community just yet.
It also automatically records and archives every stream!
The app is written in Python with Flask, however, I am planning to port it to FastAPI as I want to try something else.
I hope you guys find it easy enough to play around with, if not, let me know what I can improve upon. Thank you for reading!
Currently I've been using movienight[1] for this, but it sounds like your app is much more feature rich.
I have considered looking into WebRTC, but it seems a bit more complicated to work with than just running an RTMP server and calling it a day.
Both Apple and Twitch have their own implementation of low latency HLS, so it could be worth looking into how feasible it would be to setup something similar.
https://developer.apple.com/documentation/http_live_streamin...
Since you mentioned WebRTC for streaming to provide even lower latency, this is what I believe Project Lightspeed has achieved[3]. Might be something you'd be interested in, if you hadn't already seen it.
[1] https://wiki.openstreamingplatform.com/Usage/Streaming#osp-n...
[2] https://wiki.openstreamingplatform.com/Usage/Streaming#osp-n...
I'm looking into the latency issues and I've started drafting up possible solutions. Low latency MPEG-DASH might be something to experiment with. It won't reach sub-second latency, but it will definitely be better than HLS.
I've also looked at Cloudflare and BunnyCDN's options. Could be worth thinking about if I ever move away from owning my current server.