Question / Help Light rapidly flashes between green/yellow, then red

Hello, sometimes when I stream, the little connection light in the corner will start pulsing between green and yellow, before finally dropping down to red for a few seconds. Then it will go back to pulsing between green and yellow. I'm not sure if this is an OBS problem or a connection problem on my end. It only occurs sometimes, and it doesn't happen with xsplit as far as I know, but xsplit doesn't have a little connection light like OBS does.

This has happened with previous versions before, and it happens after I switch Twitch servers, as well.

Here's my log file. You'll notice that the third and fourth streams have "librtmp error: WriteN, RTMP send error" 10035 and 10038:
Code:
Open Broadcaster Software v0.48.003b (experimental test build) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3300MHz
Physical Memory:  8085MB Total, 5869MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 249}, size={1600, 900}
Windows Version: 6.2 Build 9200 
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 570
  Video Adapter Dedicated Video Memory: 1293352960
  Video Adapter Shared System Memory: 2952343552
------------------------------------------
Adapter 2
  Video Adapter: Intel(R) HD Graphics 3000
  Video Adapter Dedicated Video Memory: 33554432
  Video Adapter Shared System Memory: 1711276032
------------------------------------------
Adapter 3
  Video Adapter: Microsoft Basic Render Driver
  Video Adapter Dedicated Video Memory: 0
  Video Adapter Shared System Memory: 268435456
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 960x540
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (ASUS Xonar DX Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio CODEC )
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 960, height: 540
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2700
    buffer size: 250
    quality: 8
------------------------------------------
SharedTexCapture hooked
Total frames rendered: 1714, number of frames that lagged: 3 (0.18%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 960x540
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (ASUS Xonar DX Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio CODEC )
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 960, height: 540
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2700
    buffer size: 250
    quality: 8
------------------------------------------
SharedTexCapture hooked
SharedTexCapture hooked
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SO_SNDBUF was at 65536
SO_SNDBUF is now 65536
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
Total frames rendered: 3549, number of frames that lagged: 10 (0.28%) (it's okay for some frames to lag)
Total duplicated frames: 26 (0.73%)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 960x540
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (ASUS Xonar DX Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio CODEC )
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 960, height: 540
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2700
    buffer size: 250
    quality: 8
------------------------------------------
SharedTexCapture hooked
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-jfk.justin.tv/app
SharedTexCapture hooked
SO_SNDBUF was at 65536
SO_SNDBUF is now 65536
Total frames rendered: 1223, number of frames that lagged: 2 (0.16%) (it's okay for some frames to lag)
Total duplicated frames: 7 (0.57%)
okay, this is strange
RTMPPublisher::SocketLoop: Aborting due to loop exit
librtmp error: WriteN, RTMP send error 10035 (79 bytes)
librtmp error: WriteN, RTMP send error 10038 (42 bytes)
Number of times waited to send: 13, Waited for a total of 47738 bytes
Number of b-frames dropped: 74 (6.7%), Number of p-frames dropped: 258 (24%), Total 332 (30%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 960x540
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (ASUS Xonar DX Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio CODEC )
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 960, height: 540
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 2700
    buffer size: 250
    quality: 8
------------------------------------------
SharedTexCapture hooked
SharedTexCapture hooked
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-dfw-backup.justin.tv/app
SO_SNDBUF was at 65536
SO_SNDBUF is now 65536
Total frames rendered: 1140, number of frames that lagged: 6 (0.53%) (it's okay for some frames to lag)
Total duplicated frames: 9 (0.79%)
RTMPPublisher::SocketLoop: Aborting due to loop exit
librtmp error: WriteN, RTMP send error 10035 (79 bytes)
librtmp error: WriteN, RTMP send error 10038 (42 bytes)
Number of times waited to send: 5, Waited for a total of 20506 bytes
Number of b-frames dropped: 10 (0.95%), Number of p-frames dropped: 63 (6%), Total 73 (6.9%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 1.093 ms] [avg calls per frame: 1] [children: 75.5%] [unaccounted: 24.5%]
| scene->Preprocess - [0.732%] [avg time: 0.008 ms] [avg calls per frame: 1]
| video encoding and uploading - [74.7%] [avg time: 0.817 ms] [avg calls per frame: 1] [children: 53.2%] [unaccounted: 21.5%]
| | CopyResource - [1.01%] [avg time: 0.011 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [2.01%] [avg time: 0.022 ms] [avg calls per frame: 0]
| | call to encoder - [48.7%] [avg time: 0.532 ms] [avg calls per frame: 0]
| | sending stuff out - [1.56%] [avg time: 0.017 ms] [avg calls per frame: 0]
==============================================================
 

secretply

Member
Your max bitrate is set at 2700 kbps. When the color starts turning from green to yellow to red then that means the current bitrate (which could be higher than or lower than 2700, especially if CBR is off) is starting to get too high for your current upload speed. I had this once but this was when someone was using the Internet while I was streaming so my Internet speed dropped causing inconsistency streaming. Since it happens a lot, you may need to lower your bitrate and also test your upload speed and make sure the bitrate is not set too high.
 
Top