sergey-dryabzhinsky / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
1.02k stars 216 forks source link

OBS-NGINX-Youtube heavy delay on RTMP #305

Open ethaniel opened 4 years ago

ethaniel commented 4 years ago

There is a 20 second delay which gets worse over time when using this module as a relay between obs and nginx. Looks like the problem lies in the TCP territory. Is it possible to add RTMFP? (RTMP over UDP)

Streaming from OBS directly to Youtube produces almost no lag.

golyalpha commented 4 years ago

A 20 second delay in stream-to-playback is actually pretty much normal on any platform, be it Twitch or YouTube. Lately, I've noticed that even when the YouTube stream is set to ultra low latency, the delay can be anywhere from virtually none to 1 minute, and it's very much random (it even changes across reloads of the same live stream), so, it's actually very likely that NGINX/this module is not to blame here.