Question / Help Lag Spikes while Stream is on

zadarkus

New Member
Hello, I wanted to ask you guys with more experience about a problem I am facing.

When I stream League of Legends I tend to have lagg spikes, nothing that takes more than a single second or 2 but enough to raise the MS(ping) bar on the top for a sec, for those familiar to the game.

Now I already tried to use 900 bitrate up to 1500 bitrate (I have 2 mb Upload)
And of course it gets a lot better at 900, but there is a tendency of lag spikes never the less.

What I find strange is that even when I stream , lets say, at 1300 Bitrakes CBR activates Costum Bitrate Disabled .
I round the flat 90´s ms/ping but get those lagspikes up to 200/300 that just take 1 second or 2.

my question is on how to fix this , I think there is a little thing i need to do to fix it as I imagine I can stream 720p League of Legends with my internet/computer.

Thank you.

///May I ask if the Latency Tuning Factor should be used and/or modified?

Thank you for the answers,
(My computer handles this easily , so the only issue could be on the internet, yet I imagine 2 MB upload should be enough)
 
Unfortunately, 2Mbit may not be enough. But, we'll see...

... could you:
  • Post a log of a session that had these lag spikes?
  • Run an upload test, making sure to pick a server near the one you've been streaming to. Obviously both should be as near to you as possible.

You see, one particular problem you're facing -- you're playing LoL and LoL has a somewhat poorly optimized way of communicating with the Internet. You'd imagine a game that's been out for as long as it has would be more optimized but sadly it's not. It's a bandwidth hog, quite bad too. So, it doesn't really play well with others. ;)

Which is why we need to know your real world upload speed. To push the stream to its limits whilst also letting LoL have its fair share.
 
Kharay said:
Unfortunately, 2Mbit may not be enough. But, we'll see...

... could you:
  • Post a log of a session that had these lag spikes?
  • Run an upload test, making sure to pick a server near the one you've been streaming to. Obviously both should be as near to you as possible.

You see, one particular problem you're facing -- you're playing LoL and LoL has a somewhat poorly optimized way of communicating with the Internet. You'd imagine a game that's been out for as long as it has would be more optimized but sadly it's not. It's a bandwidth hog, quite bad too. So, it doesn't really play well with others. ;)

Which is why we need to know your real world upload speed. To push the stream to its limits whilst also letting LoL have its fair share.


Will in a second. Please reply as soon possible as I really wanted to use the weekend as soon as possible to put the stream on air again (yet, now fixed)

THANK YOU FOR YOUR TIME!
 
Here is my speedtest.net results:
<a href="http://www.speedtest.net/my-result/2863263922"><img src="http://www.speedtest.net/result/2863263922.png" /></a>



Here is the results of the link you game me:
Upload :: 1.1 Mbps 135 kB/s




This is the log from my last Stream Test (small video)

9:57:41: Browser Source plugin strings not found, dynamically loading 22 strings
10:10:30: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
10:10:30: -------------------------------
10:10:30: CPU Name: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
10:10:30: CPU Speed: 2395MHz
10:10:30: Physical Memory: 4095MB Total, 4095MB Free
10:10:30: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
10:10:30: monitor 1: pos={0, 0}, size={1920, 1080}
10:10:30: Windows Version: 6.2 Build 9200
10:10:30: Aero is Enabled
10:10:30: -------------------------------
10:10:30: OBS Modules:
10:10:30: Base Address Module
10:10:30: 009C0000 OBS.exe
10:10:30: 69900000 OBSApi.dll
10:10:30: 73E20000 BrowserSourcePluginWrapper.dll
10:10:30: 6B640000 DShowPlugin.dll
10:10:30: 6E3F0000 GraphicsCapture.dll
10:10:30: 6B580000 NoiseGate.dll
10:10:30: 6B110000 PSVPlugin.dll
10:10:30: ------------------------------------------
10:10:30: Adapter 1
10:10:30: Video Adapter: Intel(R) HD Graphics 4000
10:10:30: Video Adapter Dedicated Video Memory: 33554432
10:10:30: Video Adapter Shared System Memory: 1711276032
10:10:30: ------------------------------------------
10:10:30: Adapter 2
10:10:30: Video Adapter: NVIDIA GeForce GTX 680M
10:10:30: Video Adapter Dedicated Video Memory: 3221225472
10:10:30: Video Adapter Shared System Memory: 1073676288
10:10:30: =====Stream Start: 2013-07-27, 10:10:30===============================================
10:10:30: Multithreaded optimizations: On
10:10:30: Base resolution: 1920x1080
10:10:30: Output resolution: 1280x720
10:10:30: ------------------------------------------
10:10:30: Loading up D3D10...
10:10:30: Playback device Default
10:10:30: ------------------------------------------
10:10:30: Using desktop audio input: Altifalantes (Dispositivo de áudio USB)
10:10:30: ------------------------------------------
10:10:30: Using auxilary audio input: Microfone (Yeti Stereo Microphone)
10:10:30: ------------------------------------------
10:10:30: Audio Encoding: AAC
10:10:30: bitrate: 128
10:10:30: Using text output
10:10:30: Using text output
10:10:30: Using text output
10:10:30: Using bitmap image
10:10:30: Using text output
10:10:30: Using text output
10:10:30: Using bitmap image
10:10:30: Using bitmap image
10:10:30: Using Window Capture
10:10:30: Using bitmap image
10:10:31: Using bitmap image
10:10:31: ------------------------------------------
10:10:31: Video Encoding: x264
10:10:31: fps: 30
10:10:31: width: 1280, height: 720
10:10:31: preset: medium
10:10:31: CBR: yes
10:10:31: CFR: no
10:10:31: max bitrate: 1400
10:10:31: ------------------------------------------
10:10:32: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
10:10:32: New Scene
10:10:32: Using text output
10:10:32: Using text output
10:10:32: Using bitmap image
10:10:32: Using text output
10:10:32: Using text output
10:10:32: Using text output
10:10:32: Using bitmap image
10:10:32: Using bitmap image
10:10:32: Using text output
10:10:32: Using bitmap image
10:10:32: Using bitmap image
10:10:32: Using graphics capture
10:10:32: SharedTexCapture hooked
10:10:33: Using RTMP service: Twitch / Justin.tv
10:10:33: Server selection: rtmp://live-fra.justin.tv/app
10:10:35: SO_SNDBUF was at 65536
10:10:35: SO_SNDBUF is now 65536
10:11:27: Total frames rendered: 1699, number of frames that lagged: 2 (0.12%) (it's okay for some frames to lag)
10:11:27: RTMPPublisher::SocketLoop: Aborting due to loop exit
10:11:27: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
10:11:27: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
10:11:27: Number of times waited to send: 0, Waited for a total of 0 bytes
10:11:27: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:11:27: =====Stream End: 2013-07-27, 10:11:27=================================================
10:12:28: =====Stream Start: 2013-07-27, 10:12:28===============================================
10:12:28: Multithreaded optimizations: On
10:12:28: Base resolution: 1920x1080
10:12:28: Output resolution: 1280x720
10:12:28: ------------------------------------------
10:12:28: Loading up D3D10...
10:12:28: Playback device Default
10:12:28: ------------------------------------------
10:12:28: Using desktop audio input: Altifalantes (Dispositivo de áudio USB)
10:12:28: ------------------------------------------
10:12:28: Using auxilary audio input: Microfone (Yeti Stereo Microphone)
10:12:28: ------------------------------------------
10:12:28: Audio Encoding: AAC
10:12:28: bitrate: 128
10:12:28: Using text output
10:12:28: Using text output
10:12:28: Using bitmap image
10:12:28: Using text output
10:12:28: Using text output
10:12:28: Using text output
10:12:28: Using bitmap image
10:12:28: Using bitmap image
10:12:28: Using text output
10:12:28: Using bitmap image
10:12:28: Using bitmap image
10:12:28: Using graphics capture
10:12:28: ------------------------------------------
10:12:28: Video Encoding: x264
10:12:28: fps: 30
10:12:28: width: 1280, height: 720
10:12:28: preset: medium
10:12:28: CBR: yes
10:12:28: CFR: no
10:12:28: max bitrate: 1100
10:12:28: ------------------------------------------
10:12:28: SharedTexCapture hooked
10:12:31: Using RTMP service: Twitch / Justin.tv
10:12:31: Server selection: rtmp://live-fra.justin.tv/app
10:12:33: SO_SNDBUF was at 65536
10:12:33: SO_SNDBUF is now 65536
10:13:41: Total frames rendered: 2178, number of frames that lagged: 1 (0.05%) (it's okay for some frames to lag)
10:13:41: RTMPPublisher::SocketLoop: Aborting due to bStopping
10:13:41: Number of times waited to send: 0, Waited for a total of 0 bytes
10:13:41: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:13:41: =====Stream End: 2013-07-27, 10:13:41=================================================
10:19:23: =====Stream Start: 2013-07-27, 10:19:23===============================================
10:19:23: Multithreaded optimizations: On
10:19:23: Base resolution: 1920x1080
10:19:23: Output resolution: 1280x720
10:19:23: ------------------------------------------
10:19:23: Loading up D3D10...
10:19:23: Playback device Default
10:19:23: ------------------------------------------
10:19:23: Using desktop audio input: Altifalantes (Dispositivo de áudio USB)
10:19:23: ------------------------------------------
10:19:23: Using auxilary audio input: Microfone (Yeti Stereo Microphone)
10:19:23: ------------------------------------------
10:19:23: Audio Encoding: AAC
10:19:23: bitrate: 128
10:19:23: Using text output
10:19:23: Using text output
10:19:23: Using bitmap image
10:19:23: Using text output
10:19:23: Using text output
10:19:23: Using text output
10:19:23: Using bitmap image
10:19:23: Using bitmap image
10:19:23: Using text output
10:19:23: Using bitmap image
10:19:23: Using bitmap image
10:19:23: Using graphics capture
10:19:23: ------------------------------------------
10:19:23: Video Encoding: x264
10:19:23: fps: 45
10:19:23: width: 1280, height: 720
10:19:23: preset: slow
10:19:23: CBR: yes
10:19:23: CFR: yes
10:19:23: max bitrate: 1400
10:19:23: ------------------------------------------
10:19:23: SharedTexCapture hooked
10:19:25: Using RTMP service: Twitch / Justin.tv
10:19:25: Server selection: rtmp://live-fra.justin.tv/app
10:19:27: SO_SNDBUF was at 65536
10:19:27: SO_SNDBUF is now 65536
10:20:18: Total frames rendered: 1941, number of frames that lagged: 123 (6.34%) (it's okay for some frames to lag)
10:20:18: Total duplicated frames: 539 (27.77%)
10:20:18: RTMPPublisher::SocketLoop: Aborting due to loop exit
10:20:18: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
10:20:18: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
10:20:18: Number of times waited to send: 0, Waited for a total of 0 bytes
10:20:18: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:20:18: =====Stream End: 2013-07-27, 10:20:18=================================================
10:20:33: =====Stream Start: 2013-07-27, 10:20:33===============================================
10:20:33: Multithreaded optimizations: On
10:20:33: Base resolution: 1920x1080
10:20:33: Output resolution: 1280x720
10:20:33: ------------------------------------------
10:20:33: Loading up D3D10...
10:20:33: Playback device Default
10:20:33: ------------------------------------------
10:20:33: Using desktop audio input: Altifalantes (Dispositivo de áudio USB)
10:20:33: ------------------------------------------
10:20:33: Using auxilary audio input: Microfone (Yeti Stereo Microphone)
10:20:33: ------------------------------------------
10:20:33: Audio Encoding: AAC
10:20:33: bitrate: 128
10:20:33: Using text output
10:20:33: Using text output
10:20:33: Using bitmap image
10:20:33: Using text output
10:20:33: Using text output
10:20:33: Using text output
10:20:33: Using bitmap image
10:20:33: Using bitmap image
10:20:33: Using text output
10:20:33: Using bitmap image
10:20:33: Using bitmap image
10:20:33: Using graphics capture
10:20:33: ------------------------------------------
10:20:33: Video Encoding: x264
10:20:33: fps: 45
10:20:33: width: 1280, height: 720
10:20:33: preset: slow
10:20:33: CBR: yes
10:20:33: CFR: yes
10:20:33: max bitrate: 1400
10:20:33: ------------------------------------------
10:20:33: SharedTexCapture hooked
10:20:36: Using RTMP service: Twitch / Justin.tv
10:20:36: Server selection: rtmp://live-fra.justin.tv/app
10:20:38: SO_SNDBUF was at 65536
10:20:38: SO_SNDBUF is now 65536
10:21:18: Total frames rendered: 1812, number of frames that lagged: 51 (2.81%) (it's okay for some frames to lag)
10:21:18: Total duplicated frames: 215 (11.87%)
10:21:18: RTMPPublisher::SocketLoop: Aborting due to bStopping
10:21:18: Number of times waited to send: 0, Waited for a total of 0 bytes
10:21:18: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:21:18: =====Stream End: 2013-07-27, 10:21:18=================================================
10:21:28: =====Stream Start: 2013-07-27, 10:21:28===============================================
10:21:28: Multithreaded optimizations: On
10:21:28: Base resolution: 1920x1080
10:21:28: Output resolution: 1280x720
10:21:28: ------------------------------------------
10:21:28: Loading up D3D10...
10:21:28: Playback device Default
10:21:28: ------------------------------------------
10:21:28: Using desktop audio input: Altifalantes (Dispositivo de áudio USB)
10:21:28: ------------------------------------------
10:21:28: Using auxilary audio input: Microfone (Yeti Stereo Microphone)
10:21:28: ------------------------------------------
10:21:28: Audio Encoding: AAC
10:21:28: bitrate: 128
10:21:28: Using text output
10:21:28: Using text output
10:21:28: Using bitmap image
10:21:28: Using text output
10:21:28: Using text output
10:21:28: Using text output
10:21:28: Using bitmap image
10:21:28: Using bitmap image
10:21:28: Using text output
10:21:28: Using bitmap image
10:21:29: Using bitmap image
10:21:29: Using graphics capture
10:21:29: ------------------------------------------
10:21:29: Video Encoding: x264
10:21:29: fps: 45
10:21:29: width: 1280, height: 720
10:21:29: preset: slow
10:21:29: CBR: yes
10:21:29: CFR: yes
10:21:29: max bitrate: 1200
10:21:29: ------------------------------------------
10:21:29: SharedTexCapture hooked
10:21:31: Using RTMP service: Twitch / Justin.tv
10:21:31: Server selection: rtmp://live-fra.justin.tv/app
10:21:33: SO_SNDBUF was at 65536
10:21:33: SO_SNDBUF is now 65536
10:22:47: Total frames rendered: 3240, number of frames that lagged: 91 (2.81%) (it's okay for some frames to lag)
10:22:47: Total duplicated frames: 279 (8.61%)
10:22:47: RTMPPublisher::SocketLoop: Aborting due to bStopping
10:22:47: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
10:22:47: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
10:22:47: Number of times waited to send: 0, Waited for a total of 0 bytes
10:22:47: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:22:47: =====Stream End: 2013-07-27, 10:22:47=================================================
10:32:08: =====Stream Start: 2013-07-27, 10:32:08===============================================
10:32:08: Multithreaded optimizations: On
10:32:08: Base resolution: 1920x1080
10:32:08: Output resolution: 1280x720
10:32:08: ------------------------------------------
10:32:08: Loading up D3D10...
10:32:08: Playback device Default
10:32:08: ------------------------------------------
10:32:08: Using desktop audio input: Altifalantes (Dispositivo de áudio USB)
10:32:08: ------------------------------------------
10:32:08: Using auxilary audio input: Microfone (Yeti Stereo Microphone)
10:32:08: ------------------------------------------
10:32:08: Audio Encoding: AAC
10:32:08: bitrate: 128
10:32:08: Using text output
10:32:08: Using text output
10:32:08: Using bitmap image
10:32:08: Using text output
10:32:08: Using text output
10:32:08: Using text output
10:32:08: Using bitmap image
10:32:08: Using bitmap image
10:32:08: Using text output
10:32:08: Using bitmap image
10:32:08: Using bitmap image
10:32:08: Using graphics capture
10:32:08: ------------------------------------------
10:32:08: Video Encoding: x264
10:32:08: fps: 45
10:32:08: width: 1280, height: 720
10:32:08: preset: medium
10:32:08: CBR: yes
10:32:08: CFR: yes
10:32:08: max bitrate: 1200
10:32:08: ------------------------------------------
10:32:08: SharedTexCapture hooked
10:32:10: Using RTMP service: Twitch / Justin.tv
10:32:10: Server selection: rtmp://live-fra.justin.tv/app
10:32:12: SO_SNDBUF was at 65536
10:32:12: SO_SNDBUF is now 65536
10:33:34: Total frames rendered: 3894, number of frames that lagged: 2 (0.05%) (it's okay for some frames to lag)
10:33:34: Total duplicated frames: 5 (0.13%)
10:33:34: RTMPPublisher::SocketLoop: Aborting due to bStopping
10:33:34: Number of times waited to send: 0, Waited for a total of 0 bytes
10:33:34: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:33:35: =====Stream End: 2013-07-27, 10:33:35=================================================
10:35:38: =====Stream Start: 2013-07-27, 10:35:38===============================================
10:35:38: Multithreaded optimizations: On
10:35:38: Base resolution: 1920x1080
10:35:38: Output resolution: 1280x720
10:35:38: ------------------------------------------
10:35:38: Loading up D3D10...
10:35:38: Playback device Default
10:35:38: ------------------------------------------
10:35:38: Using desktop audio input: Altifalantes (Dispositivo de áudio USB)
10:35:38: ------------------------------------------
10:35:38: Using auxilary audio input: Microfone (Yeti Stereo Microphone)
10:35:38: ------------------------------------------
10:35:38: Audio Encoding: AAC
10:35:38: bitrate: 128
10:35:38: Using text output
10:35:38: Using text output
10:35:38: Using bitmap image
10:35:38: Using text output
10:35:38: Using text output
10:35:38: Using text output
10:35:38: Using bitmap image
10:35:38: Using bitmap image
10:35:38: Using text output
10:35:38: Using bitmap image
10:35:38: Using bitmap image
10:35:38: Using graphics capture
10:35:38: ------------------------------------------
10:35:38: Video Encoding: x264
10:35:38: fps: 45
10:35:38: width: 1280, height: 720
10:35:38: preset: medium
10:35:38: CBR: no
10:35:38: CFR: yes
10:35:38: max bitrate: 1100
10:35:38: buffer size: 1100
10:35:38: quality: 10
10:35:38: ------------------------------------------
10:35:38: SharedTexCapture hooked
10:35:41: Using RTMP service: Twitch / Justin.tv
10:35:41: Server selection: rtmp://live-fra.justin.tv/app
10:35:43: SO_SNDBUF was at 65536
10:35:43: SO_SNDBUF is now 65536
10:36:42: Total frames rendered: 2869, number of frames that lagged: 7 (0.24%) (it's okay for some frames to lag)
10:36:42: Total duplicated frames: 4 (0.14%)
10:36:42: RTMPPublisher::SocketLoop: Aborting due to bStopping
10:36:42: Number of times waited to send: 0, Waited for a total of 0 bytes
10:36:42: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:36:42: =====Stream End: 2013-07-27, 10:36:42=================================================
10:41:12: Browser Source plugin instance deleted; removing dynamically loaded localization strings
10:41:13:
10:41:13: Profiler results:
10:41:13:
10:41:13: ==============================================================
10:41:13: frame - [100%] [avg time: 4.328 ms (cpu time: avg 2.382 ms, total 42015.6 ms)] [avg calls per frame: 1] [children: 99.8%] [unaccounted: 0.208%]
10:41:13: | frame preprocessing and rendering - [19.6%] [avg time: 0.85 ms (cpu time: avg 0.64 ms, total 11296.9 ms)] [avg calls per frame: 1] [children: 0.254%] [unaccounted: 19.4%]
10:41:13: | | scene->Preprocess - [0.254%] [avg time: 0.011 ms (cpu time: avg 0.012 ms, total 218.75 ms)] [avg calls per frame: 1]
10:41:13: | video encoding and uploading - [80.2%] [avg time: 3.469 ms (cpu time: avg 1.738 ms, total 30656.3 ms)] [avg calls per frame: 1] [children: 79.2%] [unaccounted: 0.947%]
10:41:13: | | flush - [3.67%] [avg time: 0.159 ms (cpu time: avg 0.157 ms, total 2781.25 ms)] [avg calls per frame: 1]
10:41:13: | | CopyResource - [0.254%] [avg time: 0.011 ms (cpu time: avg 0.007 ms, total 140.625 ms)] [avg calls per frame: 0]
10:41:13: | | conversion to 4:2:0 - [0.139%] [avg time: 0.006 ms (cpu time: avg 0.01 ms, total 187.5 ms)] [avg calls per frame: 0]
10:41:13: | | call to encoder - [74.6%] [avg time: 3.229 ms (cpu time: avg 1.532 ms, total 27031.3 ms)] [avg calls per frame: 1]
10:41:13: | | sending stuff out - [0.531%] [avg time: 0.023 ms (cpu time: avg 0.015 ms, total 265.625 ms)] [avg calls per frame: 1]
10:41:13: | Convert444Threads - [1.19e+003%] [avg time: 51.502 ms (cpu time: avg 1.385 ms, total 24421.9 ms)] [avg calls per frame: 1]
10:41:13: ==============================================================
10:41:13:
 
1.1 Mbps is really fairly little room to work with. Try the following:
  • Encoding
    • Enable CBR
    • Enable CBR Padding
    • Disable Custom Buffer Size
    • Max Bitrate: 650
  • Video:
    • Resolution Downscale: 480p
    • FPS: 24
 
Is there really the need to downscale everything so much?
The lag I have is minimal, just some spikes, of course in a "last hit" game makes the difference, I though something like the Latency Factor would do the trick.

Going for 480p makes me kind of sad , as I wished for the minimal quality on the stream, being it 720p.

Would you have some time I could provide you the stream , turn it on for a bit and you could see by yourself whats the case we are talking about.
 
As I said, 1.1Mbps is really very little to work with. It's not OBS that is the issue, it's LoL in combination with your Internet connection. The reason I chose 480p is so you could have some room to actually maintain some quality. 480p with the Lanczos filter could potentially actually look better than 720p. On a low bandwidth, that is.

Just try my suggestion and see what you end up with.
 
As I said, 1.1Mbps is really very little to work with. It's not OBS that is the issue, it's LoL in combination with your Internet connection. The reason I chose 480p is so you could have some room to actually maintain some quality. 480p with the Lanczos filter could potentially actually look better than 720p. On a low bandwidth, that is.

Just try my suggestion and see what you end up with.

I just want to say, THANK YOU!
My stream was an absolute TRAIN WRECK, then I found this. I, quite oddly, have the EXACT same down and up speed as him, and I've had the same problem. Also, while the stream quality isn't the greatest you could say, it's purely my internet, so thank you for saving me on this one!
OBS ROCKS!
 
Back
Top