3 ms·
This is awesome! I wanted to make something like this too after Mixer shut down and I didn't have good options anymore to stream low latency gameplay to friends
by lawl 6y ago
This is awesome! I wanted to make something like this too after Mixer shut down and I didn't have good options anymore to stream low latency gameplay to friends. But I was too lazy to do it properly.
I ended up with this hack: https://i.imgur.com/jDeMxly.png https://i.imgur.com/jDeMxly.png
Redirect the "Record" button of obs to make ffmpeg output to an http endpoint, which is a small server that just forwards any bytes it receives to connected consumers. They can then play it back with
ffplay -fflags nobuffer -flags low_delay -framedrop -strict experimental https://stream.server/lawl
I've found that most of the latency is actually coming from the player. I.e. VLC has way more latency, even if you tell it to not buffer. TCP is a bit of an issue since ffplay doesn't speed up playback when it falls behind, but it mostly works and you can just restart ffplay if you fall behind too far. When it works (good network conditions) it also achieves sub second latency.
Will definitely have to give this a try over my hack.
- thedmstdmstdmst 6y agoWhat do you use for your small server for forwarding bytes?
- lawl 6y agohttps://pastebin.com/iywLhh8Y https://pastebin.com/iywLhh8Y Don't expect much. I threw this entire thing together as quickly and lazily as possible.
- thedmstdmstdmst 6y agothank you so much for replying