Question / Help Minimizing delay?

Fyren

New Member
I set up my own RTMP server using nginx and the RTMP plugin. With a basic setup I get roughly 3s delay, whether the server is running remotely (Linux; about 85ms ping time to server) or locally (on the same machine I'm running OBS on; native Windows and not using a VM).

I tried playing with the video encoding options and using tune=zerolatency slightly improves things to maybe 2s delay, but looks horrible. Nothing else seemed to make a noticable difference.

Is there a reasonable way to reduce this, or is this about the best I'm going to get?
 

dodgepong

Administrator
Community Helper
That's pretty much the best you're going to get. RTMP isn't meant to be a real-time video delivery system, and 3 seconds of delay seems pretty consistent with my experience.
 

Fyren

New Member
Do you happen to know of any alternatives I could play with, whether or not OBS is involved? I don't really know of any besides maybe ffmpeg/ffserver.
 

dodgepong

Administrator
Community Helper
Skype? I mean, it sounds like you're trying to use streaming for a purpose that it's not designed for.
 

Fyren

New Member
Since Twitch's recent changes to their end increased delay substantially (seems like my friend and I get like 15s of delay), I was wondering if I can do better. I'm only streaming for a few friends at most my server can handle the bandwidth. I'm basically on vacation for a while so I have time to spend on it.
 

hilalpro

Member
You can also try reducing the client buffering length, OBS's scenes buffering time to around 400ms and the encoder bufsize which when all combined should allow for up to 1 second less delay.
 
Top