Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latency issue #9

Closed
garudaonekh opened this issue Sep 7, 2016 · 6 comments
Closed

Latency issue #9

garudaonekh opened this issue Sep 7, 2016 · 6 comments

Comments

@garudaonekh
Copy link

Hi,
Thanks for sharing the great code. I try it with DigitalOcean server and choose the Singapore Data Center as it's closest to me.

There's a problem with delay in the live video(Latency).

Do you have any suggestion on hosting or configuration to do to reduce it to the minimum?

Thanks

@ltebean
Copy link
Owner

ltebean commented Sep 8, 2016

for how many seconds?

@garudaonekh
Copy link
Author

around 1 second.

@ltebean
Copy link
Owner

ltebean commented Sep 9, 2016

1s delay is already very short
generally, the acceptable range for rtmp delay is 2-4s

@garudaonekh
Copy link
Author

I have seen Bigo Live. its delay is 10-500ms(My guess)--nearly real time. I think it's even better than Facebook live.
Just wonder how they achieve it.

@San-Jeevan
Copy link

San-Jeevan commented Oct 12, 2016

theoretically if you are in same country as the relaying server you can get around 300ms.
Remember the latency will be like this:

  • Capture video, encode, packetize and send to server: 60ms
  • Server to process: 10ms
  • Stream receiving device to decode: 40ms
  • Round trip time forth and back from server: same country ~40-100ms.
  • buffer on server, streaming client or streaming receiver: this can have massive impact on latency

but too many factors here. your device has to have good enough CPU.

Also I dont know Bigo Live, but they may be using webrtc?
Device-2-device streaming without relaying server.

//edit:
jsut seen bigo live, they dont use webrtc as its multicasting.

@garudaonekh
Copy link
Author

@San-Jeevan: Thank you so much for explaining in detail. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants