Question / Help twitch stream delay and lagg [resolved]

Status
Not open for further replies.

imagine123

New Member
I've been having two problems. The first one is that my stream is constantly at 10 seconds delay. I have set the delay to 0 in OBS, but its all the same.

Next problem is lagg. I stream league of legends. I play at a stable 60-70 fps while streaming but still the game laggs, anyone have any idea why? I have a good enough connection to stream too with a 50/1 line
 

Nirrudn

Member
Re: twitch stream delay and lagg

imagine123 said:
I've been having two problems. The first one is that my stream is constantly at 10 seconds delay. I have set the delay to 0 in OBS, but its all the same.

This can't really be helped, due to the nature of streaming. You're encoding then sending data out to a Twitch server, which then has to process that data, and send it back out to viewers, none of which will ever be instantaneous.
 

FerretBomb

Active Member
Re: twitch stream delay and lagg

1) Streaming is not instantaneous. There will always be about a 6-20 second delay.
In that 10 seconds:
Your video is captured from all sources, composited, encoded, buffered, uploaded to the local ingest, rebuffered, replicated to the central/remote nodes across the Twitch infrastructure, buffered again, transmitted to your viewer, rebuffered, decoded, and displayed. 10 seconds for all that work is FAST. This isn't a peer-to-peer Skype call, which just sends a low-quality video camera feed directly peer to peer.

2) 50/1 is bad, for streaming. For streaming, nearly ALL of your concern is on the UPstream side, so that 1mbps. For a decent 720p@30fps standard stream, 1500kbps (1.5mbps) video bitrate is the recommended minimum. That doesn't count extra for your audio, network communication for your game, or any network fluctuation. Realistically you need closer to 2mbps to swing that. It's also just what your ISP is telling you that you SHOULD get, not necessarily what you ACTUALLY get.

So. Hello, reality.

Run a 6MB test at http://www.testmy.net/upload to see what you actually get as constant upstream throughput. Speedtest.net is next to worthless for livestreamers, as it measures overall averaged transfer speed, not constant (which streaming and video games rely on).

Post a log file. There's a sticky at the top of the forum, a link to it when you submit a new thread, and a link to it when you use the 'Post Reply' button (as opposed to the 'quick reply'). We'll be able to get a better idea of what you're trying to do, and where the problem may be originating from, once we have that logfile to look through. Make sure it's one from a live streaming session, not just an offline test.

I'll say in advance though, the most common mistake that new LoL streamers make is using Monitor Capture, instead of a Game Capture for the in-game client, and a Window Capture (with Aero on) for the out-of-game PVP.net client. Under Win7, Monitor Capture is ridiculously bad... to the point it can (and does) cause in-game lag, low framerates, stutter, and other problems.
With 1mbps upstream, you're probably looking at a 360p or 480p stream at most, using about 500kbps for video, and 48kbps AAC audio, with the remaining ~450kbps reserved for the game and network fluctuations, assuming you're even getting the full 1mbps upstream that your ISP is telling you. LoL is very bandwidth-greedy on the upstream, and will lag like crazy if something else is using too much of the network bandwidth (which livestreaming DEFINITELY does).
 

imagine123

New Member
Re: twitch stream delay and lagg

Yea, kinda dumb questions and I realized that I wasnt thinking completely straight yesterday.

My friend using xsplit and twitch, streams with something like 3s, is there a difference between the programs?

About the lagg and upload speed, this was pretty ignorant of me. Of course both LoL and live streams use large amount of upload speed. My stream was running perfectly with a pretty nice quality, but the game not so much. I use the window or game campture source.

Theese are my test results http://testmy.net/db/O5kxGyl. I think I need a better connection.
And i actually have a 50/10 line.

BTW: Thanks for an awesome answer ferretbomb!
 

imagine123

New Member
Re: twitch stream delay and lagg

After some help from some of the guys at the IRC and from R1CH analyzer I belive I got it working correctly.
 

FerretBomb

Active Member
Glad to hear! And yeah, with 1.7mbps on a '10' connection, it looks like either your ISP is using a ridiculously bursty connection, or you're not using a Twitch(/testmy) server close to you.
The friend's connection may be set to use a closer server (and you may be downloading from the one they upload to, cutting out much of the replication and retransmission time), or using a lower bitrate... really should be no difference between the two, otherwise. Possibly scene buffering time? But that's really grasping at straws.

And true; if you got things sorted out, please do post up what the fix was so others can learn too! :)
 
Status
Not open for further replies.
Top