3 ms·
you want an RTMP or FTL server. a source (e.g. something like obs studio, or gstreamer/ffmpeg from command line, or even directly from some action cams like gop
by woodrowbarlow 4y ago
you want an RTMP or FTL server. a source (e.g. something like obs studio, or gstreamer/ffmpeg from command line, or even directly from some action cams like gopro) can publish a video stream, and clients (vlc player, for instance) receive the video as a broadcast (UDP RTP/RTCP, ideally). the protocol handles codecs and keeping the clients in sync (the clients will usually lag slightly behind the source, though -- FTL tries to minimize this). this is how live streams work on twitch/youtube/facebook/etc (except they have to do the media over HTTPS with something like HLS or WebRTC).
for instance, project lightspeed (unaffiliated) is a batteries-included self-hosted FTL streaming server and web client that was posted as a "show hn" some time back.
https://github.com/GRVYDEV/Project-Lightspeed https://github.com/GRVYDEV/Project-Lightspeed