Question / Help NL Server causes lag

sevenRA1

Member
Hi,
i streamed yesterday and suddenly i noticed a strong lag and many dropped frames.

Here is my log from the NL Server
Code:
22:34:02: Open Broadcaster Software v0.583b - 32bit (´・ω・`)
22:34:02: -------------------------------
22:34:02: CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
22:34:02: CPU Speed: 3400MHz
22:34:02: Physical Memory:  3702MB Total, 2697MB Free
22:34:02: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
22:34:02: monitor 1: pos={0, 0}, size={1920, 1080}
22:34:02: Windows Version: 6.1 Build 7601 S
22:34:02: Aero is Enabled
22:34:02: -------------------------------
22:34:02: OBS Modules:
22:34:02: Base Address     Module
22:34:02: 012C0000         OBS.exe
22:34:02: 5A270000         OBSApi.dll
22:34:02: 6EE30000         DShowPlugin.dll
22:34:02: 6EA10000         GraphicsCapture.dll
22:34:02: 6E9F0000         NoiseGate.dll
22:34:02: 6E9D0000         PSVPlugin.dll
22:34:02: ------------------------------------------
22:34:02: Adapter 1
22:34:02:   Video Adapter: NVIDIA GeForce GTX 570 
22:34:02:   Video Adapter Dedicated Video Memory: 1293352960
22:34:02:   Video Adapter Shared System Memory: 1672822784
22:34:02:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
22:34:02: =====Stream Start: 2013-11-09, 22:34:02===============================================
22:34:02:   Multithreaded optimizations: On
22:34:02:   Base resolution: 1920x1080
22:34:02:   Output resolution: 640x360
22:34:02: ------------------------------------------
22:34:02: Loading up D3D10 on NVIDIA GeForce GTX 570...
22:34:02: ------------------------------------------
22:34:02: Audio Format: 48000hz
22:34:02: Playback device Default
22:34:02: ------------------------------------------
22:34:02: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
22:34:02: ------------------------------------------
22:34:02: Audio Encoding: AAC
22:34:02:     bitrate: 128
22:34:02: Using graphics capture
22:34:02: Using Window Capture
22:34:02: Scene buffering time set to 400
22:34:02: ------------------------------------------
22:34:02: Video Encoding: x264
22:34:02:     fps: 48
22:34:02:     width: 640, height: 360
22:34:02:     preset: veryfast
22:34:02:     profile: high
22:34:02:     keyint: 96
22:34:02:     CBR: yes
22:34:02:     CFR: yes
22:34:02:     max bitrate: 800
22:34:02:     buffer size: 800
22:34:02: ------------------------------------------
22:34:02: MMDeviceAudioSource: Frequency for device 'Lautsprecher (Realtek High Definition Audio)' is 384000, samples per sec is 48000
22:34:04: Using RTMP service: Twitch / Justin.tv
22:34:04:   Server selection: rtmp://live-ams.justin.tv/app
22:34:04:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
22:34:04: Completed handshake with rtmp://live-ams.justin.tv/app in 351 ms.
22:34:05: SO_SNDBUF was at 8192
22:34:05: SO_SNDBUF is now 65536
22:34:13: SharedTexCapture hooked
22:35:09: RTMPPublisher::SocketLoop: Stalled for 1823 ms to write 129777 bytes (buffer: 0 / 131072), unstable connection?
22:35:12: RTMPPublisher::SocketLoop: Stalled for 2585 ms to write 129156 bytes (buffer: 0 / 131072), unstable connection?
22:35:37: RTMPPublisher::SocketLoop: Stalled for 1775 ms to write 130588 bytes (buffer: 0 / 131072), unstable connection?
22:36:07: RTMPPublisher::SocketLoop: Stalled for 2100 ms to write 128351 bytes (buffer: 0 / 131072), unstable connection?
22:36:10: RTMPPublisher::SocketLoop: Stalled for 1708 ms to write 130349 bytes (buffer: 0 / 131072), unstable connection?
22:36:12: RTMPPublisher::SocketLoop: Stalled for 2395 ms to write 127558 bytes (buffer: 0 / 131072), unstable connection?
22:36:16: RTMPPublisher::SocketLoop: Stalled for 1848 ms to write 130859 bytes (buffer: 0 / 131072), unstable connection?
22:36:20: RTMPPublisher::SocketLoop: Stalled for 1577 ms to write 129644 bytes (buffer: 0 / 131072), unstable connection?
22:36:24: RTMPPublisher::SocketLoop: Stalled for 1871 ms to write 128066 bytes (buffer: 0 / 131072), unstable connection?
22:36:26: RTMPPublisher::SocketLoop: Stalled for 1788 ms to write 127825 bytes (buffer: 0 / 131072), unstable connection?
22:36:29: RTMPPublisher::SocketLoop: Stalled for 1560 ms to write 131052 bytes (buffer: 0 / 131072), unstable connection?
22:36:31: RTMPPublisher::SocketLoop: Stalled for 1792 ms to write 130053 bytes (buffer: 0 / 131072), unstable connection?
22:36:43: RTMPPublisher::SocketLoop: Stalled for 1559 ms to write 127746 bytes (buffer: 0 / 131072), unstable connection?
22:36:47: RTMPPublisher::SocketLoop: Stalled for 1559 ms to write 130960 bytes (buffer: 0 / 131072), unstable connection?
22:36:50: RTMPPublisher::SocketLoop: Stalled for 2580 ms to write 130951 bytes (buffer: 0 / 131072), unstable connection?
22:36:52: RTMPPublisher::SocketLoop: Stalled for 1721 ms to write 130768 bytes (buffer: 0 / 131072), unstable connection?
22:36:55: RTMPPublisher::SocketLoop: Stalled for 2540 ms to write 128591 bytes (buffer: 0 / 131072), unstable connection?
22:36:56: RTMPPublisher::SocketLoop: Stalled for 1692 ms to write 127855 bytes (buffer: 0 / 131072), unstable connection?
22:36:59: RTMPPublisher::SocketLoop: Stalled for 2576 ms to write 130081 bytes (buffer: 0 / 131072), unstable connection?
22:37:01: RTMPPublisher::SocketLoop: Stalled for 2096 ms to write 128621 bytes (buffer: 0 / 131072), unstable connection?
22:37:04: RTMPPublisher::SocketLoop: Stalled for 1599 ms to write 128203 bytes (buffer: 0 / 131072), unstable connection?
22:37:09: RTMPPublisher::SocketLoop: Stalled for 1561 ms to write 129545 bytes (buffer: 0 / 131072), unstable connection?
22:48:42: Exit signal received, terminating capture
22:53:54: RTMPPublisher::SocketLoop: Stalled for 3182 ms to write 129915 bytes (buffer: 0 / 131072), unstable connection?
22:53:57: RTMPPublisher::SocketLoop: Stalled for 2940 ms to write 130622 bytes (buffer: 0 / 131072), unstable connection?
22:53:59: RTMPPublisher::SocketLoop: Stalled for 2412 ms to write 128043 bytes (buffer: 0 / 131072), unstable connection?
22:54:01: RTMPPublisher::SocketLoop: Stalled for 1760 ms to write 129392 bytes (buffer: 0 / 131072), unstable connection?
22:54:03: RTMPPublisher::SocketLoop: Stalled for 1914 ms to write 127941 bytes (buffer: 0 / 131072), unstable connection?
22:54:05: RTMPPublisher::SocketLoop: Stalled for 1751 ms to write 130247 bytes (buffer: 0 / 131072), unstable connection?
22:54:07: RTMPPublisher::SocketLoop: Stalled for 2147 ms to write 130149 bytes (buffer: 0 / 131072), unstable connection?
22:54:09: RTMPPublisher::SocketLoop: Stalled for 1773 ms to write 130871 bytes (buffer: 0 / 131072), unstable connection?
22:54:11: RTMPPublisher::SocketLoop: Stalled for 2371 ms to write 127967 bytes (buffer: 0 / 131072), unstable connection?
22:54:14: RTMPPublisher::SocketLoop: Stalled for 2732 ms to write 127218 bytes (buffer: 0 / 131072), unstable connection?
22:54:16: RTMPPublisher::SocketLoop: Stalled for 2096 ms to write 128491 bytes (buffer: 0 / 131072), unstable connection?
22:54:17: RTMPPublisher::SocketLoop: Stalled for 1608 ms to write 128549 bytes (buffer: 0 / 131072), unstable connection?
22:54:20: RTMPPublisher::SocketLoop: Stalled for 1609 ms to write 128718 bytes (buffer: 0 / 131072), unstable connection?
22:54:22: RTMPPublisher::SocketLoop: Stalled for 1776 ms to write 130928 bytes (buffer: 0 / 131072), unstable connection?
22:54:27: RTMPPublisher::SocketLoop: Stalled for 4828 ms to write 130331 bytes (buffer: 0 / 131072), unstable connection?
22:54:30: RTMPPublisher::SocketLoop: Stalled for 2725 ms to write 130753 bytes (buffer: 0 / 131072), unstable connection?
22:54:33: RTMPPublisher::SocketLoop: Stalled for 2895 ms to write 130066 bytes (buffer: 0 / 131072), unstable connection?
22:54:35: RTMPPublisher::SocketLoop: Stalled for 2304 ms to write 127508 bytes (buffer: 0 / 131072), unstable connection?
22:54:38: RTMPPublisher::SocketLoop: Stalled for 2805 ms to write 128865 bytes (buffer: 0 / 131072), unstable connection?
22:54:41: RTMPPublisher::SocketLoop: Stalled for 2417 ms to write 127798 bytes (buffer: 0 / 131072), unstable connection?
22:54:43: RTMPPublisher::SocketLoop: Stalled for 2575 ms to write 128537 bytes (buffer: 0 / 131072), unstable connection?
22:54:48: RTMPPublisher::SocketLoop: Stalled for 4400 ms to write 130732 bytes (buffer: 0 / 131072), unstable connection?
22:54:52: RTMPPublisher::SocketLoop: Stalled for 4672 ms to write 130761 bytes (buffer: 0 / 131072), unstable connection?
22:54:59: RTMPPublisher::SocketLoop: Stalled for 6785 ms to write 130839 bytes (buffer: 0 / 131072), unstable connection?
22:55:02: RTMPPublisher::SocketLoop: Stalled for 2840 ms to write 129802 bytes (buffer: 0 / 131072), unstable connection?
22:55:04: RTMPPublisher::SocketLoop: Stalled for 2172 ms to write 128587 bytes (buffer: 0 / 131072), unstable connection?
22:55:06: RTMPPublisher::SocketLoop: Stalled for 1776 ms to write 130924 bytes (buffer: 0 / 131072), unstable connection?
22:55:08: RTMPPublisher::SocketLoop: Stalled for 1688 ms to write 129560 bytes (buffer: 0 / 131072), unstable connection?
22:55:09: RTMPPublisher::SocketLoop: Stalled for 1668 ms to write 130946 bytes (buffer: 0 / 131072), unstable connection?
22:55:12: RTMPPublisher::SocketLoop: Stalled for 2092 ms to write 127201 bytes (buffer: 0 / 131072), unstable connection?
22:55:15: RTMPPublisher::SocketLoop: Stalled for 3585 ms to write 130725 bytes (buffer: 0 / 131072), unstable connection?
22:55:22: RTMPPublisher::SocketLoop: Stalled for 2243 ms to write 129614 bytes (buffer: 0 / 131072), unstable connection?
22:55:25: RTMPPublisher::SocketLoop: Stalled for 2900 ms to write 130404 bytes (buffer: 0 / 131072), unstable connection?
22:55:29: RTMPPublisher::SocketLoop: Stalled for 3532 ms to write 127361 bytes (buffer: 0 / 131072), unstable connection?
22:55:34: RTMPPublisher::SocketLoop: Stalled for 4686 ms to write 129461 bytes (buffer: 0 / 131072), unstable connection?
22:55:40: RTMPPublisher::SocketLoop: Stalled for 5948 ms to write 131037 bytes (buffer: 0 / 131072), unstable connection?
22:55:44: RTMPPublisher::SocketLoop: Stalled for 4352 ms to write 130713 bytes (buffer: 0 / 131072), unstable connection?
22:55:49: RTMPPublisher::SocketLoop: Stalled for 4345 ms to write 129203 bytes (buffer: 0 / 131072), unstable connection?
22:55:52: RTMPPublisher::SocketLoop: Stalled for 2900 ms to write 129044 bytes (buffer: 0 / 131072), unstable connection?
22:55:54: RTMPPublisher::SocketLoop: Stalled for 2580 ms to write 130835 bytes (buffer: 0 / 131072), unstable connection?
22:55:57: RTMPPublisher::SocketLoop: Stalled for 2896 ms to write 130894 bytes (buffer: 0 / 131072), unstable connection?
22:56:00: RTMPPublisher::SocketLoop: Stalled for 2848 ms to write 128545 bytes (buffer: 0 / 131072), unstable connection?
22:56:03: RTMPPublisher::SocketLoop: Stalled for 2899 ms to write 130754 bytes (buffer: 0 / 131072), unstable connection?
22:56:05: Total frames encoded: 63441, total frames duplicated: 26 (0.04%)
22:56:05: Total frames rendered: 63427, number of late frames: 4 (0.01%) (it's okay for some frames to be late)
22:56:06: RTMPPublisher::SocketLoop: Stalled for 3545 ms to write 128574 bytes (buffer: 0 / 131072), unstable connection?
22:56:10: RTMPPublisher::SocketLoop: Stalled for 3260 ms to write 129421 bytes (buffer: 0 / 131072), unstable connection?
22:56:13: RTMPPublisher::SocketLoop: Stalled for 3704 ms to write 130964 bytes (buffer: 0 / 131072), unstable connection?
22:56:16: RTMPPublisher::SocketLoop: Stalled for 3064 ms to write 129536 bytes (buffer: 0 / 131072), unstable connection?
22:56:20: RTMPPublisher::SocketLoop: Stalled for 3192 ms to write 130765 bytes (buffer: 0 / 131072), unstable connection?
22:56:22: RTMPPublisher::SocketLoop: Stalled for 2256 ms to write 130285 bytes (buffer: 0 / 131072), unstable connection?
22:56:24: RTMPPublisher::SocketLoop: Stalled for 2220 ms to write 25832 bytes (buffer: 0 / 131072), unstable connection?
22:56:24: RTMPPublisher::SocketLoop: Graceful loop exit

After i changed to the UK Server the problem was solved
log
Code:
23:14:58: Open Broadcaster Software v0.583b - 32bit (´・ω・`)
23:14:58: -------------------------------
23:14:58: CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
23:14:58: CPU Speed: 3400MHz
23:14:58: Physical Memory:  3702MB Total, 2340MB Free
23:14:58: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
23:14:58: monitor 1: pos={0, 0}, size={1920, 1080}
23:14:58: Windows Version: 6.1 Build 7601 S
23:14:58: Aero is Enabled
23:14:58: -------------------------------
23:14:58: OBS Modules:
23:14:58: Base Address     Module
23:14:58: 01200000         OBS.exe
23:14:58: 57FE0000         OBSApi.dll
23:14:58: 6BBB0000         DShowPlugin.dll
23:14:58: 6CE00000         GraphicsCapture.dll
23:14:58: 66F70000         NoiseGate.dll
23:14:58: 66F50000         PSVPlugin.dll
23:14:58: ------------------------------------------
23:14:58: Adapter 1
23:14:58:   Video Adapter: NVIDIA GeForce GTX 570 
23:14:58:   Video Adapter Dedicated Video Memory: 1293352960
23:14:58:   Video Adapter Shared System Memory: 1672822784
23:14:58:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
23:14:58: =====Stream Start: 2013-11-09, 23:14:58===============================================
23:14:58:   Multithreaded optimizations: On
23:14:58:   Base resolution: 1920x1080
23:14:58:   Output resolution: 640x360
23:14:58: ------------------------------------------
23:14:58: Loading up D3D10 on NVIDIA GeForce GTX 570...
23:14:59: ------------------------------------------
23:14:59: Audio Format: 48000hz
23:14:59: Playback device Default
23:14:59: ------------------------------------------
23:14:59: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
23:14:59: ------------------------------------------
23:14:59: Audio Encoding: AAC
23:14:59:     bitrate: 128
23:14:59: Using graphics capture
23:14:59: Using Window Capture
23:14:59: Scene buffering time set to 400
23:14:59: ------------------------------------------
23:14:59: Video Encoding: x264
23:14:59:     fps: 48
23:14:59:     width: 640, height: 360
23:14:59:     preset: veryfast
23:14:59:     profile: high
23:14:59:     keyint: 96
23:14:59:     CBR: yes
23:14:59:     CFR: yes
23:14:59:     max bitrate: 800
23:14:59:     buffer size: 800
23:14:59: ------------------------------------------
23:14:59: MMDeviceAudioSource: Frequency for device 'Lautsprecher (Realtek High Definition Audio)' is 384000, samples per sec is 48000
23:15:00: Using RTMP service: Twitch / Justin.tv
23:15:00:   Server selection: rtmp://live-lhr.justin.tv/app
23:15:00:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
23:15:00: Completed handshake with rtmp://live-lhr.justin.tv/app in 403 ms.
23:15:02: SO_SNDBUF was at 8192
23:15:02: SO_SNDBUF is now 65536
23:16:52: RTMPPublisher::SocketLoop: Stalled for 1590 ms to write 128872 bytes (buffer: 0 / 131072), unstable connection?
23:16:54: RTMPPublisher::SocketLoop: Stalled for 1500 ms to write 127758 bytes (buffer: 0 / 131072), unstable connection?
23:16:56: RTMPPublisher::SocketLoop: Stalled for 1889 ms to write 121492 bytes (buffer: 0 / 131072), unstable connection?
23:30:44: SharedTexCapture hooked
23:48:58: Exit signal received, terminating capture
23:53:18: Total frames encoded: 110324, total frames duplicated: 30 (0.03%)
23:53:18: Total frames rendered: 110312, number of late frames: 4 (0.00%) (it's okay for some frames to be late)
23:53:18: RTMPPublisher::SocketLoop: Graceful loop exit
23:53:18: Average send payload: 2488 bytes, average send interval: 21 ms
23:53:18: Number of times waited to send: 12, Waited for a total of 35562 bytes
23:53:18: Number of b-frames dropped: 50 (0.045%), Number of p-frames dropped: 41 (0.037%), Total 91 (0.083%)
23:53:18: Number of bytes sent: 268715278
23:53:18: 
23:53:18: Profiler time results:
23:53:18: 
23:53:18: ==============================================================
23:53:18: video thread frame - [100%] [avg time: 0.951 ms] [children: 69.5%] [unaccounted: 30.5%]
23:53:18: | scene->Preprocess - [63.1%] [avg time: 0.6 ms]
23:53:18: | GPU download and conversion - [6.41%] [avg time: 0.061 ms] [children: 5.47%] [unaccounted: 0.946%]
23:53:18: | | flush - [3.47%] [avg time: 0.033 ms]
23:53:18: | | CopyResource - [1.89%] [avg time: 0.018 ms]
23:53:18: | | conversion to 4:2:0 - [0.105%] [avg time: 0.001 ms]
23:53:18: Convert444Threads - [100%] [avg time: 0.1 ms] [children: 99%] [unaccounted: 1%]
23:53:18: | Convert444toNV12 - [99%] [avg time: 0.099 ms]
23:53:18: encoder thread frame - [100%] [avg time: 0.245 ms]
23:53:18: ==============================================================
23:53:18: 
23:53:18: 
23:53:18: Profiler CPU results:
23:53:18: 
23:53:18: ==============================================================
23:53:18: video thread frame - [cpu time: avg 0.275 ms, total 30435.8 ms] [avg calls per frame: 1]
23:53:18: | scene->Preprocess - [cpu time: avg 0 ms, total 93.601 ms] [avg calls per frame: 1]
23:53:18: | GPU download and conversion - [cpu time: avg 0.025 ms, total 2854.82 ms] [avg calls per frame: 1]
23:53:18: | | flush - [cpu time: avg 0.01 ms, total 1185.61 ms] [avg calls per frame: 1]
23:53:18: | | CopyResource - [cpu time: avg 0.009 ms, total 998.407 ms] [avg calls per frame: 1]
23:53:18: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 78 ms] [avg calls per frame: 1]
23:53:18: Convert444Threads - [cpu time: avg 0.134 ms, total 29640.2 ms] [avg calls per frame: 2]
23:53:18: | Convert444toNV12 - [cpu time: avg 0.133 ms, total 29343.8 ms] [avg calls per frame: 2]
23:53:18: encoder thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:53:18: ==============================================================
23:53:18: 
23:53:18: =====Stream End: 2013-11-09, 23:53:18=================================================


Last game capture log:
2013-11-09, 23:30:44: we're booting up: 
23:30:44: NV Capture available
23:30:44: FBO available
23:30:44: GL Present
23:30:44: (half life scientist) everything..  seems to be in order
23:30:44: SwapBuffers(1174475217) Called
23:30:44: setting up gl data
23:30:44: share device: 27095024
23:30:44: share texture: 27210152
23:30:44: share device handle: 3499024318
23:30:44: share texture handle: 3502215730
23:30:44: DoGLGPUHook: success
23:30:44: wglSwapBuffers(1174475217) Called
23:48:57: wglDeleteContext Called
23:48:57: ---------------------- Cleared OpenGL Capture ----------------------

And everytime when i tried to close OBS when i was streaming to the NL server the whole program chrashed.
 

dodgepong

Administrator
Community Helper
So if it's working to UK, why not just stream there? The typical solution if you're having trouble streaming to a particular server is to switch servers. It sounds like you already discovered the correct solution.
 
Top