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 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
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.
Comments (138) 17 threads
Show all comments
Showing thread 3 of 17
I ended up with this hack: https://i.imgur.com/jDeMxly.png
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.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
Will definitely have to give this a try over my hack.
Don't expect much. I threw this entire thing together as quickly and lazily as possible.