Hm I wonder how hard it is to proxy/cache mjpegstreamer. I want to make a publicly-viewable stream of the webcam of Princess...

Follow

@s0 There should be a few options with varying complexity.
I'm not familiar with the current state of things, but probably would go into two directions:
Have something chop the stream into chunks for DASH or HLS. Potentially ffmpeg. To avoid constant bandwidth use you could have a local HTTP server that hosts those and a caching reverse proxy on a server (exclude playlist from cache!).
Something really simple around Icecast and (on-demand) relaying. "Legacy" mode where just passes bitstream.

· · Web · 1 · 0 · 1

@tbr I'm happy with what I found -- a go server that just proxy-caches the MJPEG stream from the OctoPrint source and handles sending to clients. That way if there are no clients, there's no additional transcoding happening. I don't care quite enough to have ffmpeg transcoding 24/7. I've implemented that kind of HLS proxy server before but it is more complex. I don't really care about the worse performance & browser support of MJPEG compared to HLS.

@s0 Great that you found something simple that fits the bill!

Sign in to participate in the conversation
Society of Trolls

A nice little Mastodon instance. Mild trolling encouraged (keep it local), but not required. Malicious behaviour is not tolerated. Follow Wheaton's law and you'll be fine.