ipfs-live-streaming icon indicating copy to clipboard operation
ipfs-live-streaming copied to clipboard

Live stream latencies

Open benhylau opened this issue 6 years ago • 3 comments

We have touched on the topic of how real-time this stream is, so I want to start documenting here.

Playing from ipfs-server m3u8 (origin):

screen shot 2018-12-03 at 5 27 34 pm

Playing from m3u8 on ipfs-mirror:

screen shot 2018-12-03 at 5 27 57 pm

Playing from m3u8 on ipfs-mirror but ts chunks from ipfs.infura.io:

screen shot 2018-12-03 at 5 30 41 pm

In all cases observed latency is between 1 to 1.5 min, although I have seen as much as 2 min occasionally.

benhylau avatar Dec 03 '18 22:12 benhylau

Latency improved a bit when we removed FFMPEG re-encoding form the pipeline #76

Last test test i did show 20-30 seconds

darkdrgn2k avatar Aug 18 '19 02:08 darkdrgn2k

apparently the RTMP server is setup to create 20s fragments so i am going to assume that's where most of the latency comes from. is there a good reason not to go lower with the fragments length?

mercora avatar Jan 27 '21 14:01 mercora

It's the minimum we can go based on how fast IPFS can pin. If we go much lower we build up a queue IPFS can't consume fast enough. 20s is what we found acceptable.

benhylau avatar Jan 27 '21 17:01 benhylau