Question / Help Stream runs fine, randomly lags and drops

Chicago Ted

New Member
Hello, my name is Chicago Ted, twitch streamer chicago__ted, and I stream Dota2 for a league. I love the quality that OBS streams at, but once in every 5 or so live streams, in the midst of a stream, all of a sudden FPS will drop to 1-3, as well as the (what I assume is transfer rate ... the number by the green box, which turns yellow or red during the time of the lag). Then, some of the time, the program will just stop the stream, and go through the auto-reconnect process. Once, it has crashed completely, although that was a while ago and do not remember which log it was. For my most recent stream, which I will post the log of, it dropped several times throughout, and made the video feed near unwatchable (although the audio was fine as far as I know). Any help?

Log
Code:
22:01:47: Open Broadcaster Software v0.541b - 64bit ( ^ω^)
22:01:47: -------------------------------
22:01:47: CPU Name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
22:01:47: CPU Speed: 3392MHz
22:01:47: Physical Memory:  8173MB Total, 5594MB Free
22:01:47: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
22:01:47: monitor 1: pos={0, 0}, size={1680, 1050}
22:01:47: monitor 2: pos={1680, 150}, size={1440, 900}
22:01:47: Windows Version: 6.1 Build 7601 S
22:01:47: Aero is Enabled
22:01:47: -------------------------------
22:01:47: OBS Modules:
22:01:47: Base Address     Module
22:01:47: 000000003FC00000 OBS.exe
22:01:47: 00000000EF0F0000 OBSApi.dll
22:01:47: 00000000F7CD0000 DShowPlugin.dll
22:01:47: 00000000FA280000 GraphicsCapture.dll
22:01:47: 00000000F7F30000 NoiseGate.dll
22:01:47: 00000000FA3C0000 PSVPlugin.dll
22:01:47: ------------------------------------------
22:01:47: Adapter 1
22:01:47:   Video Adapter: NVIDIA GeForce GTX 560 Ti  
22:01:47:   Video Adapter Dedicated Video Memory: 1025966080
22:01:47:   Video Adapter Shared System Memory: 3220779008
22:01:47: =====Stream Start: 2013-07-16, 22:01:47===============================================
22:01:47:   Multithreaded optimizations: On
22:01:47:   Base resolution: 1680x1050
22:01:47:   Output resolution: 1120x700
22:01:47: ------------------------------------------
22:01:47: Loading up D3D10...
22:01:47: Playback device Default
22:01:47: ------------------------------------------
22:01:47: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:01:47: ------------------------------------------
22:01:47: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:01:47: ------------------------------------------
22:01:47: Audio Encoding: AAC
22:01:47:     bitrate: 128
22:01:47: Using bitmap image
22:01:47: ------------------------------------------
22:01:47: Video Encoding: x264
22:01:47:     fps: 30
22:01:47:     width: 1120, height: 700
22:01:47:     preset: superfast
22:01:47:     CBR: yes
22:01:47:     CFR: no
22:01:47:     max bitrate: 2000
22:01:47: ------------------------------------------
22:01:59: Total frames rendered: 377, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
22:02:00: =====Stream End: 2013-07-16, 22:02:00=================================================
22:02:56: =====Stream Start: 2013-07-16, 22:02:56===============================================
22:02:56:   Multithreaded optimizations: On
22:02:56:   Base resolution: 1680x1050
22:02:56:   Output resolution: 1120x700
22:02:56: ------------------------------------------
22:02:56: Loading up D3D10...
22:02:56: Playback device Default
22:02:56: ------------------------------------------
22:02:56: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:02:56: ------------------------------------------
22:02:56: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:02:56: ------------------------------------------
22:02:56: Audio Encoding: AAC
22:02:56:     bitrate: 128
22:02:56: Using bitmap image
22:02:56: ------------------------------------------
22:02:56: Video Encoding: x264
22:02:56:     fps: 30
22:02:56:     width: 1120, height: 700
22:02:56:     preset: superfast
22:02:56:     CBR: yes
22:02:56:     CFR: no
22:02:56:     max bitrate: 2000
22:02:56: ------------------------------------------
22:02:58: Using RTMP service: Twitch / Justin.tv
22:02:58:   Server selection: rtmp://live-jfk.justin.tv/app
22:03:00: SO_SNDBUF was at 8192
22:03:00: SO_SNDBUF is now 65536
22:21:32: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
22:21:32:   New Scene
22:21:32: Using Window Capture
22:32:07: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
22:41:16: RTMPPublisher::SocketLoop: Socket error, recv() returned 0, GetLastError() 0
22:41:16: Total frames rendered: 64362, number of frames that lagged: 1200 (1.86%) (it's okay for some frames to lag)
22:41:17: Number of times waited to send: 67, Waited for a total of 262538 bytes
22:41:17: Number of b-frames dropped: 213 (0.33%), Number of p-frames dropped: 414 (0.64%), Total 627 (0.98%)
22:41:17: =====Stream End: 2013-07-16, 22:41:17=================================================
22:41:27: =====Stream Start: 2013-07-16, 22:41:27===============================================
22:41:27:   Multithreaded optimizations: On
22:41:27:   Base resolution: 1680x1050
22:41:27:   Output resolution: 1120x700
22:41:27: ------------------------------------------
22:41:27: Loading up D3D10...
22:41:27: Playback device Default
22:41:27: ------------------------------------------
22:41:27: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:41:27: ------------------------------------------
22:41:27: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:41:27: ------------------------------------------
22:41:27: Audio Encoding: AAC
22:41:27:     bitrate: 128
22:41:27: Using Window Capture
22:41:27: ------------------------------------------
22:41:27: Video Encoding: x264
22:41:27:     fps: 30
22:41:27:     width: 1120, height: 700
22:41:27:     preset: superfast
22:41:27:     CBR: yes
22:41:27:     CFR: no
22:41:27:     max bitrate: 2000
22:41:27: ------------------------------------------
22:41:29: Using RTMP service: Twitch / Justin.tv
22:41:29:   Server selection: rtmp://live-jfk.justin.tv/app
22:41:31: SO_SNDBUF was at 8192
22:41:31: SO_SNDBUF is now 65536
22:41:47: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 1048576
22:44:50: RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
22:44:50: Total frames rendered: 4053, number of frames that lagged: 293 (7.23%) (it's okay for some frames to lag)
22:44:50: librtmp error: WriteN, RTMP send error 10053 (79 bytes)
22:44:50: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
22:44:50: Number of times waited to send: 9, Waited for a total of 33831 bytes
22:44:50: Number of b-frames dropped: 5 (0.13%), Number of p-frames dropped: 0 (0%), Total 5 (0.13%)
22:44:50: =====Stream End: 2013-07-16, 22:44:50=================================================
22:45:00: =====Stream Start: 2013-07-16, 22:45:00===============================================
22:45:00:   Multithreaded optimizations: On
22:45:00:   Base resolution: 1680x1050
22:45:00:   Output resolution: 1120x700
22:45:00: ------------------------------------------
22:45:00: Loading up D3D10...
22:45:00: Playback device Default
22:45:00: ------------------------------------------
22:45:00: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:45:00: ------------------------------------------
22:45:00: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:45:00: ------------------------------------------
22:45:00: Audio Encoding: AAC
22:45:00:     bitrate: 128
22:45:00: Using Window Capture
22:45:00: ------------------------------------------
22:45:00: Video Encoding: x264
22:45:00:     fps: 30
22:45:00:     width: 1120, height: 700
22:45:00:     preset: superfast
22:45:00:     CBR: yes
22:45:00:     CFR: no
22:45:00:     max bitrate: 2000
22:45:00: ------------------------------------------
22:45:02: Using RTMP service: Twitch / Justin.tv
22:45:02:   Server selection: rtmp://live-jfk.justin.tv/app
22:45:04: SO_SNDBUF was at 8192
22:45:04: SO_SNDBUF is now 65536
22:45:18: Total frames rendered: 530, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
22:45:18: RTMPPublisher::SocketLoop: Aborting due to bStopping
22:45:18: Number of times waited to send: 0, Waited for a total of 0 bytes
22:45:18: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:45:18: =====Stream End: 2013-07-16, 22:45:18=================================================
22:45:49: =====Stream Start: 2013-07-16, 22:45:49===============================================
22:45:49:   Multithreaded optimizations: On
22:45:49:   Base resolution: 1680x1050
22:45:49:   Output resolution: 1120x700
22:45:49: ------------------------------------------
22:45:49: Loading up D3D10...
22:45:49: Playback device Default
22:45:49: ------------------------------------------
22:45:49: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:45:49: ------------------------------------------
22:45:49: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:45:49: ------------------------------------------
22:45:49: Audio Encoding: AAC
22:45:49:     bitrate: 128
22:45:49: Using Window Capture
22:45:49: ------------------------------------------
22:45:49: Video Encoding: x264
22:45:49:     fps: 30
22:45:49:     width: 1120, height: 700
22:45:49:     preset: superfast
22:45:49:     CBR: yes
22:45:49:     CFR: no
22:45:49:     max bitrate: 2000
22:45:49: ------------------------------------------
22:46:33: Using RTMP service: Twitch / Justin.tv
22:46:33:   Server selection: rtmp://live-jfk.justin.tv/app
22:46:35: SO_SNDBUF was at 8192
22:46:35: SO_SNDBUF is now 65536
22:47:18: RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
22:47:18: Total frames rendered: 513, number of frames that lagged: 17 (3.31%) (it's okay for some frames to lag)
22:47:18: librtmp error: WriteN, RTMP send error 10053 (79 bytes)
22:47:18: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
22:47:18: Number of times waited to send: 0, Waited for a total of 0 bytes
22:47:18: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:47:18: =====Stream End: 2013-07-16, 22:47:18=================================================
22:47:28: =====Stream Start: 2013-07-16, 22:47:28===============================================
22:47:28:   Multithreaded optimizations: On
22:47:28:   Base resolution: 1680x1050
22:47:28:   Output resolution: 1120x700
22:47:28: ------------------------------------------
22:47:28: Loading up D3D10...
22:47:28: Playback device Default
22:47:28: ------------------------------------------
22:47:28: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:47:28: ------------------------------------------
22:47:28: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:47:28: ------------------------------------------
22:47:28: Audio Encoding: AAC
22:47:28:     bitrate: 128
22:47:28: Using Window Capture
22:47:28: ------------------------------------------
22:47:28: Video Encoding: x264
22:47:28:     fps: 30
22:47:28:     width: 1120, height: 700
22:47:28:     preset: superfast
22:47:28:     CBR: yes
22:47:28:     CFR: no
22:47:28:     max bitrate: 2000
22:47:28: ------------------------------------------
22:47:30: Using RTMP service: Twitch / Justin.tv
22:47:30:   Server selection: rtmp://live-jfk.justin.tv/app
22:47:33: SO_SNDBUF was at 8192
22:47:33: SO_SNDBUF is now 65536
22:47:44: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
22:52:48: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 524288
23:03:13: RTMPPublisher::SocketLoop: Socket error, recv() returned 0, GetLastError() 0
23:03:13: Total frames rendered: 22315, number of frames that lagged: 1125 (5.04%) (it's okay for some frames to lag)
23:03:13: okay, this is strange
23:03:13: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
23:03:13: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
23:03:13: Number of times waited to send: 49, Waited for a total of 182366 bytes
23:03:13: Number of b-frames dropped: 147 (0.66%), Number of p-frames dropped: 289 (1.3%), Total 436 (2%)
23:03:13: =====Stream End: 2013-07-16, 23:03:13=================================================
23:03:23: =====Stream Start: 2013-07-16, 23:03:23===============================================
23:03:23:   Multithreaded optimizations: On
23:03:23:   Base resolution: 1680x1050
23:03:23:   Output resolution: 1120x700
23:03:23: ------------------------------------------
23:03:23: Loading up D3D10...
23:03:23: Playback device Default
23:03:23: ------------------------------------------
23:03:23: Using desktop audio input: Speakers (Realtek High Definition Audio)
23:03:23: ------------------------------------------
23:03:23: Using auxilary audio input: Microphone (Realtek High Definition Audio)
23:03:23: ------------------------------------------
23:03:23: Audio Encoding: AAC
23:03:23:     bitrate: 128
23:03:23: Using Window Capture
23:03:23: ------------------------------------------
23:03:23: Video Encoding: x264
23:03:23:     fps: 30
23:03:23:     width: 1120, height: 700
23:03:23:     preset: superfast
23:03:23:     CBR: yes
23:03:23:     CFR: no
23:03:23:     max bitrate: 2000
23:03:23: ------------------------------------------
23:03:25: Using RTMP service: Twitch / Justin.tv
23:03:25:   Server selection: rtmp://live-jfk.justin.tv/app
23:03:27: SO_SNDBUF was at 8192
23:03:27: SO_SNDBUF is now 65536
23:06:31: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 524288
23:06:31: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 2097152
23:06:43: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 4194304
23:22:35: Total frames rendered: 30877, number of frames that lagged: 756 (2.45%) (it's okay for some frames to lag)
23:22:35: RTMPPublisher::SocketLoop: Aborting due to bStopping
23:22:35: Number of times waited to send: 20, Waited for a total of 78195 bytes
23:22:35: Number of b-frames dropped: 96 (0.31%), Number of p-frames dropped: 132 (0.43%), Total 228 (0.74%)
23:22:35: =====Stream End: 2013-07-16, 23:22:35=================================================
23:45:12: 
23:45:12: Profiler results:
23:45:12: 
23:45:12: ==============================================================
23:45:12: frame - [100%] [avg time: 10.219 ms (cpu time: avg 1.44 ms, total 177233 ms)] [avg calls per frame: 1] [children: 96.1%] [unaccounted: 3.89%]
23:45:12: | scene->Preprocess - [86.3%] [avg time: 8.818 ms (cpu time: avg 0.189 ms, total 23353.3 ms)] [avg calls per frame: 1]
23:45:12: | video encoding and uploading - [9.82%] [avg time: 1.003 ms (cpu time: avg 0.866 ms, total 106658 ms)] [avg calls per frame: 1] [children: 9.56%] [unaccounted: 0.254%]
23:45:12: | | CopyResource - [0.186%] [avg time: 0.019 ms (cpu time: avg 0.02 ms, total 2464.82 ms)] [avg calls per frame: 0]
23:45:12: | | conversion to 4:2:0 - [0.44%] [avg time: 0.045 ms (cpu time: avg 0.003 ms, total 468 ms)] [avg calls per frame: 0]
23:45:12: | | call to encoder - [8.58%] [avg time: 0.877 ms (cpu time: avg 0.808 ms, total 99497.5 ms)] [avg calls per frame: 0]
23:45:12: | | sending stuff out - [0.352%] [avg time: 0.036 ms (cpu time: avg 0.027 ms, total 3416.43 ms)] [avg calls per frame: 0]
23:45:12: | Convert444Threads - [750%] [avg time: 76.624 ms (cpu time: avg 0.834 ms, total 102617 ms)] [avg calls per frame: 1]
23:45:12: ==============================================================
23:45:12:
 

Kharay

Member
The log file suggests you are being dropped by Twitch, not from Twitch. In other words -- the disconnect seems to be on their side. Try a different Twitch.tv server and/or resetting your stream key to see if the problem goes away.

Use this plugin -- viewtopic.php?f=11&t=3226 -- to determine the server that has the combination of best ping and lowest jitter for you. That typically should be the most stable server for you to stream to.

Other than that I personally can't see very much wrong with the log. Maybe one thing of note -- in several cases you have a notable percentage of frames that lagged. Which indicates either your CPU or GPU or both were having trouble keeping up. Try disabling some of the most intense fluff in DOTA2, I would suggest keeping just the textures and the rendering quality high, everything else off/low, looks the same on-stream anyhow.
 
Top