Question / Help Good comp/ Good internet but stream lag spikes?

Alphabetical13

New Member
Hello,
To anyone who can help me out with my stream settings maybe, to have a good quality stream.

Specs: i5 3570k 3.8 turbo
SSD 120 GB
Nvidia GEforce gtx 560 Ti
Windows 7 Home Premium

Internet: Charter/Optimum 30 Down 5 upload

i streamed last week just fine but this week tried streaming league of legends and world of warcraft and was getting lag spikes. Whats the cause of this? And how can i fix it? And what settings so i want to ensure a smooth quality stream
 

Alphabetical13

New Member
18:22:58: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
18:22:58: -------------------------------
18:22:58: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
18:22:58: CPU Speed: 3410MHz
18:22:58: Physical Memory: 4095MB Total, 4095MB Free
18:22:58: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
18:22:58: monitor 1: pos={0, 0}, size={1600, 900}
18:22:58: Windows Version: 6.1 Build 7601 S
18:22:58: Aero is Disabled
18:22:58: -------------------------------
18:22:58: OBS Modules:
18:22:58: Base Address Module
18:22:58: 00230000 OBS.exe
18:22:58: 5F220000 OBSApi.dll
18:22:58: 62C40000 DShowPlugin.dll
18:22:58: 62A40000 GraphicsCapture.dll
18:22:58: 5EFF0000 NoiseGate.dll
18:22:58: 5EFD0000 PSVPlugin.dll
18:22:58: ------------------------------------------
18:22:58: Adapter 1
18:22:58: Video Adapter: NVIDIA GeForce GTX 560 Ti
18:22:58: Video Adapter Dedicated Video Memory: 1025966080
18:22:58: Video Adapter Shared System Memory: 3221106688
18:22:58: =====Stream Start: 2013-08-12, 18:22:58===============================================
18:22:58: Multithreaded optimizations: On
18:22:58: Base resolution: 1600x900
18:22:58: Output resolution: 1600x900
18:22:58: ------------------------------------------
18:22:58: Loading up D3D10...
18:22:58: Playback device Default
18:22:58: ------------------------------------------
18:22:58: Using desktop audio input: Speakers (Realtek High Definition Audio)
18:22:58: ------------------------------------------
18:22:58: Using auxilary audio input: Microphone (Realtek High Definition Audio)
18:22:58: ------------------------------------------
18:22:58: Audio Encoding: AAC
18:22:58: bitrate: 128
18:22:59: Using bitmap image
18:22:59: Using graphics capture
18:22:59: ------------------------------------------
18:22:59: Video Encoding: x264
18:22:59: fps: 45
18:22:59: width: 1600, height: 900
18:22:59: preset: veryfast
18:22:59: CBR: yes
18:22:59: CFR: no
18:22:59: max bitrate: 1000
18:22:59: ------------------------------------------
18:22:59: SharedTexCapture hooked
18:23:00: Using RTMP service: Twitch / Justin.tv
18:23:00: Server selection: rtmp://live.justin.tv/app
18:23:01: SO_SNDBUF was at 8192
18:23:01: SO_SNDBUF is now 65536
18:24:01: x264: VBV parameters cannot be changed when NAL HRD is in use
18:24:07: Total frames rendered: 3099, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
18:24:07: RTMPPublisher::SocketLoop: Aborting due to bStopping
18:24:07: Number of times waited to send: 0, Waited for a total of 0 bytes
18:24:07: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:24:07: =====Stream End: 2013-08-12, 18:24:07=================================================
18:24:08: =====Stream Start: 2013-08-12, 18:24:08===============================================
18:24:08: Multithreaded optimizations: On
18:24:08: Base resolution: 1600x900
18:24:08: Output resolution: 1600x900
18:24:08: ------------------------------------------
18:24:08: Loading up D3D10...
18:24:08: Playback device Default
18:24:08: ------------------------------------------
18:24:08: Using desktop audio input: Speakers (Realtek High Definition Audio)
18:24:08: ------------------------------------------
18:24:08: Using auxilary audio input: Microphone (Realtek High Definition Audio)
18:24:08: ------------------------------------------
18:24:08: Audio Encoding: AAC
18:24:08: bitrate: 128
18:24:08: Using bitmap image
18:24:08: Using graphics capture
18:24:08: ------------------------------------------
18:24:08: Video Encoding: x264
18:24:08: fps: 45
18:24:08: width: 1600, height: 900
18:24:08: preset: veryfast
18:24:08: CBR: yes
18:24:08: CFR: no
18:24:08: max bitrate: 1000
18:24:08: ------------------------------------------
18:24:08: SharedTexCapture hooked
18:24:10: Using RTMP service: Twitch / Justin.tv
18:24:10: Server selection: rtmp://live.justin.tv/app
18:24:11: SO_SNDBUF was at 8192
18:24:11: SO_SNDBUF is now 65536
21:49:13: Total frames rendered: 553633, number of frames that lagged: 28 (0.01%) (it's okay for some frames to lag)
21:49:13: RTMPPublisher::SocketLoop: Aborting due to bStopping
21:49:13: Number of times waited to send: 0, Waited for a total of 0 bytes
21:49:13: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
21:49:13: =====Stream End: 2013-08-12, 21:49:13=================================================
21:49:15:
21:49:15: Profiler results:
21:49:15:
21:49:15: ==============================================================
21:49:15: frame - [100%] [avg time: 2.216 ms (cpu time: avg 1.803 ms, total 1.00399e+006 ms)] [avg calls per frame: 1] [children: 99.8%] [unaccounted: 0.226%]
21:49:15: | frame preprocessing and rendering - [14.9%] [avg time: 0.331 ms (cpu time: avg 0.276 ms, total 154004 ms)] [avg calls per frame: 1] [children: 0.0451%] [unaccounted: 14.9%]
21:49:15: | | scene->Preprocess - [0.0451%] [avg time: 0.001 ms (cpu time: avg 0.001 ms, total 951.606 ms)] [avg calls per frame: 1]
21:49:15: | video encoding and uploading - [84.8%] [avg time: 1.88 ms (cpu time: avg 1.524 ms, total 848864 ms)] [avg calls per frame: 1] [children: 83.6%] [unaccounted: 1.22%]
21:49:15: | | flush - [14.2%] [avg time: 0.315 ms (cpu time: avg 0.047 ms, total 26473.4 ms)] [avg calls per frame: 1]
21:49:15: | | CopyResource - [0.632%] [avg time: 0.014 ms (cpu time: avg 0.01 ms, total 5569.25 ms)] [avg calls per frame: 0]
21:49:15: | | conversion to 4:2:0 - [0.677%] [avg time: 0.015 ms (cpu time: avg 0.004 ms, total 2620.82 ms)] [avg calls per frame: 0]
21:49:15: | | call to encoder - [67.6%] [avg time: 1.497 ms (cpu time: avg 1.438 ms, total 800909 ms)] [avg calls per frame: 0]
21:49:15: | | sending stuff out - [0.542%] [avg time: 0.012 ms (cpu time: avg 0.009 ms, total 5116.83 ms)] [avg calls per frame: 0]
21:49:15: | Convert444Threads - [2.01e+003%] [avg time: 44.446 ms (cpu time: avg 1.355 ms, total 754390 ms)] [avg calls per frame: 1]
21:49:15: ==============================================================
21:49:15:

I dont have problems with my games lagging just the stream its self. Exp: http://www.twitch.tv/alphabetical13/b/451668694
 

Kharay

Member
Could you do a recent log that shows this problem? Because that log looks just fine. But the most recent event in that log is 2 weeks ago.
 

Alphabetical13

New Member
18:15:31: Open Broadcaster Software v0.552b - 32bit (´・ω・`)
18:15:31: -------------------------------
18:15:31: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
18:15:31: CPU Speed: 3410MHz
18:15:31: Physical Memory: 4095MB Total, 4095MB Free
18:15:31: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
18:15:31: monitor 1: pos={0, 0}, size={1600, 900}
18:15:31: Windows Version: 6.1 Build 7601 S
18:15:31: Aero is Disabled
18:15:31: -------------------------------
18:15:31: OBS Modules:
18:15:31: Base Address Module
18:15:31: 00A50000 OBS.exe
18:15:31: 68730000 OBSApi.dll
18:15:31: 71980000 DShowPlugin.dll
18:15:31: 71960000 GraphicsCapture.dll
18:15:31: 6B210000 NoiseGate.dll
18:15:31: 6B1F0000 PSVPlugin.dll
18:15:31: ------------------------------------------
18:15:31: Adapter 1
18:15:31: Video Adapter: NVIDIA GeForce GTX 560 Ti
18:15:31: Video Adapter Dedicated Video Memory: 1025966080
18:15:31: Video Adapter Shared System Memory: 3221106688
18:15:31: =====Stream Start: 2013-08-25, 18:15:31===============================================
18:15:31: Multithreaded optimizations: On
18:15:31: Base resolution: 1600x900
18:15:31: Output resolution: 1600x900
18:15:31: ------------------------------------------
18:15:31: Loading up D3D10 on NVIDIA GeForce GTX 560 Ti...
18:15:31: Playback device Default
18:15:31: ------------------------------------------
18:15:31: Using desktop audio input: Speakers (Realtek High Definition Audio)
18:15:31: ------------------------------------------
18:15:31: Using auxilary audio input: Microphone (Realtek High Definition Audio)
18:15:31: ------------------------------------------
18:15:31: Audio Encoding: AAC
18:15:31: bitrate: 128
18:15:32: Using bitmap image
18:15:32: Using graphics capture
18:15:32: ------------------------------------------
18:15:32: Video Encoding: x264
18:15:32: fps: 50
18:15:32: width: 1600, height: 900
18:15:32: preset: veryfast
18:15:32: CBR: yes
18:15:32: CFR: no
18:15:32: max bitrate: 4000
18:15:32: ------------------------------------------
18:15:32: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
18:15:32: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 352800, samples per sec is 44100
18:15:32: SharedTexCapture hooked
18:15:33: Using RTMP service: Twitch / Justin.tv
18:15:33: Server selection: rtmp://live-ord.justin.tv/app
18:15:33: Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
18:15:34: SO_SNDBUF was at 8192
18:15:34: SO_SNDBUF is now 65536
18:15:35: RTMPPublisher::Socketloop: Increasing send buffer to ISB 131072 (buffer: 15258 / 528384)
18:15:35: RTMPPublisher::Socketloop: Increasing send buffer to ISB 262144 (buffer: 36251 / 528384)
18:15:36: RTMPPublisher::Socketloop: Increasing send buffer to ISB 524288 (buffer: 0 / 528384)
18:16:03: Total frames rendered: 1558, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
18:16:03: RTMPPublisher::SocketLoop: Graceful loop exit
18:16:04: Number of times waited to send: 0, Waited for a total of 0 bytes
18:16:04: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:16:04:
18:16:04: Profiler results:
18:16:04:
18:16:04: ==============================================================
18:16:04: frame - [100%] [avg time: 2.081 ms (cpu time: avg 1.872 ms, total 2917.22 ms)] [avg calls per frame: 1] [children: 99.8%] [unaccounted: 0.24%]
18:16:04: | frame preprocessing and rendering - [20%] [avg time: 0.416 ms (cpu time: avg 0.42 ms, total 655.204 ms)] [avg calls per frame: 1] [children: 0.0481%] [unaccounted: 19.9%]
18:16:04: | | scene->Preprocess - [0.0481%] [avg time: 0.001 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
18:16:04: | video encoding and uploading - [79.8%] [avg time: 1.66 ms (cpu time: avg 1.441 ms, total 2246.41 ms)] [avg calls per frame: 1] [children: 78.8%] [unaccounted: 1.01%]
18:16:04: | | flush - [4.95%] [avg time: 0.103 ms (cpu time: avg 0.06 ms, total 93.601 ms)] [avg calls per frame: 1]
18:16:04: | | CopyResource - [0.577%] [avg time: 0.012 ms (cpu time: avg 0.04 ms, total 62.4 ms)] [avg calls per frame: 0]
18:16:04: | | conversion to 4:2:0 - [1.39%] [avg time: 0.029 ms (cpu time: avg 0.01 ms, total 15.6 ms)] [avg calls per frame: 0]
18:16:04: | | call to encoder - [71.1%] [avg time: 1.48 ms (cpu time: avg 1.331 ms, total 2074.81 ms)] [avg calls per frame: 0]
18:16:04: | | sending stuff out - [0.721%] [avg time: 0.015 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
18:16:04: | Convert444Threads - [1.89e+003%] [avg time: 39.305 ms (cpu time: avg 1.431 ms, total 2230.81 ms)] [avg calls per frame: 1]
18:16:04: ==============================================================
18:16:04:
18:16:04: =====Stream End: 2013-08-25, 18:16:04=================================================
18:16:05: =====Stream Start: 2013-08-25, 18:16:05===============================================
18:16:05: Multithreaded optimizations: On
18:16:05: Base resolution: 1600x900
18:16:05: Output resolution: 1600x900
18:16:05: ------------------------------------------
18:16:05: Loading up D3D10 on NVIDIA GeForce GTX 560 Ti...
18:16:05: Playback device Default
18:16:05: ------------------------------------------
18:16:05: Using desktop audio input: Speakers (Realtek High Definition Audio)
18:16:05: ------------------------------------------
18:16:05: Using auxilary audio input: Microphone (Realtek High Definition Audio)
18:16:05: ------------------------------------------
18:16:05: Audio Encoding: AAC
18:16:05: bitrate: 128
18:16:05: Using bitmap image
18:16:05: Using graphics capture
18:16:05: ------------------------------------------
18:16:05: Video Encoding: x264
18:16:05: fps: 50
18:16:05: width: 1600, height: 900
18:16:05: preset: veryfast
18:16:05: CBR: yes
18:16:05: CFR: no
18:16:05: max bitrate: 4000
18:16:05: ------------------------------------------
18:16:05: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
18:16:05: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 352800, samples per sec is 44100
18:16:05: SharedTexCapture hooked
18:16:07: Using RTMP service: Twitch / Justin.tv
18:16:07: Server selection: rtmp://live-ord.justin.tv/app
18:16:07: Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
18:16:08: SO_SNDBUF was at 8192
18:16:08: SO_SNDBUF is now 65536
18:16:09: RTMPPublisher::Socketloop: Increasing send buffer to ISB 131072 (buffer: 217877 / 528384)
18:16:09: RTMPPublisher::Socketloop: Increasing send buffer to ISB 262144 (buffer: 19085 / 528384)
18:16:10: RTMPPublisher::Socketloop: Increasing send buffer to ISB 524288 (buffer: 90149 / 528384)
18:35:09: RTMPPublisher::Socketloop: Increasing send buffer to ISB 1048576 (buffer: 524999 / 528384)
18:50:29: Capture window 0x00110280 invalid or changing, terminating capture
18:50:40: SharedTexCapture hooked
19:37:31: Total frames rendered: 244196, number of late frames: 126 (0.05%) (it's okay for some frames to be late)
19:37:33: RTMPPublisher::SocketLoop: Graceful loop exit
19:37:34: Number of times waited to send: 2482, Waited for a total of 9161700 bytes
19:37:34: Number of b-frames dropped: 13524 (5.5%), Number of p-frames dropped: 13907 (5.7%), Total 27431 (11%)
19:37:34:
19:37:34: Profiler results:
19:37:34:
19:37:34: ==============================================================
19:37:34: frame - [100%] [avg time: 2.467 ms (cpu time: avg 1.773 ms, total 433074 ms)] [avg calls per frame: 1] [children: 99.7%] [unaccounted: 0.284%]
19:37:34: | frame preprocessing and rendering - [15%] [avg time: 0.369 ms (cpu time: avg 0.281 ms, total 68656 ms)] [avg calls per frame: 1] [children: 0.0405%] [unaccounted: 14.9%]
19:37:34: | | scene->Preprocess - [0.0405%] [avg time: 0.001 ms (cpu time: avg 0.001 ms, total 468.001 ms)] [avg calls per frame: 1]
19:37:34: | video encoding and uploading - [84.8%] [avg time: 2.091 ms (cpu time: avg 1.49 ms, total 363919 ms)] [avg calls per frame: 1] [children: 82.7%] [unaccounted: 2.11%]
19:37:34: | | flush - [19.7%] [avg time: 0.485 ms (cpu time: avg 0.045 ms, total 11107.3 ms)] [avg calls per frame: 1]
19:37:34: | | CopyResource - [1.01%] [avg time: 0.025 ms (cpu time: avg 0.011 ms, total 2714.42 ms)] [avg calls per frame: 0]
19:37:34: | | conversion to 4:2:0 - [1.01%] [avg time: 0.025 ms (cpu time: avg 0.004 ms, total 1138.81 ms)] [avg calls per frame: 0]
19:37:34: | | call to encoder - [60.2%] [avg time: 1.486 ms (cpu time: avg 1.394 ms, total 340457 ms)] [avg calls per frame: 0]
19:37:34: | | sending stuff out - [0.73%] [avg time: 0.018 ms (cpu time: avg 0.014 ms, total 3541.23 ms)] [avg calls per frame: 0]
19:37:34: | Convert444Threads - [1.62e+003%] [avg time: 40.009 ms (cpu time: avg 1.254 ms, total 306464 ms)] [avg calls per frame: 1]
19:37:34: ==============================================================
19:37:34:
19:37:34: =====Stream End: 2013-08-25, 19:37:34=================================================


Last game capture log:
2013-08-25, 18:50:39: we're booting up:
18:50:39: D3D9 Present
18:50:39: DXGI Present
18:50:39: (half life scientist) everything.. seems to be in order
18:50:40: DXGI: Found D3D 11
18:50:40: setting up d3d11 data
18:50:40: ---------------------- Cleared D3D11 Capture ----------------------
18:50:40: found dxgi format (dx11) of: 28, size: {1600, 900}, multisampled: false
18:50:40: DoD3D11Hook: success
18:50:40: successfully capturing d3d11 frames via GPU
19:37:31: stop requested, terminating d3d11 capture
19:37:31: ---------------------- Cleared D3D11 Capture ----------------------

Sorry about that didn't read the dates! ughh
 

Kharay

Member
4000 Kbps is slightly over the unofficial maximum that the Twitch.TV staff will tolerate, which is 3500 Kbps. In fact, I'd imagine that if you were to bring it down to that 3500 Kbps, it'd be completely fine.

At 4000 Kbps you're dropping about 11% of your frames. If we assume a linear progression then that would be 0% at 3560 Kbps. So, just stick with that 3500 Kbps unofficial maximum.
 

Kharay

Member
No. Just disable custom buffer size. A large custom buffer actually has a tendency to make the bitrate more unstable and might end up contributing to those lag spikes.
 

Alphabetical13

New Member
Awesome, my last question is i had the same stream settings last week cause they worked fine so i left them, during raid on world of warcraft and looked virtually perfect but then today i streamed WoW and LoL and had those problems, any reasons why this would happen?
 

Kharay

Member
Twitch...

... thing is, as much as obviously your own PC, connection and OBS configuration contribute to a stable stream, Twitch is by definition 50% of that equation as well. For example, personally I have had issues watching the higher resolution streams at their native resolution for like 2 weeks now. Which is not on my end, my connection is amazing and perfectly stable. Twitch has just been having issues.

For which purpose you may actually want to consider dropping below the unofficial maximum of 3500 Kbps. Just to create some headroom in case Twitch is being... well... twitchy. ;)
 
Top