Bug Report Strange disconnects

dramabomb

Member
Hey all! I'm trying to see if my stream disconnects are on my end, or if it's a setting in OBS I'm missing. Tonight I could stream Bioshock for an hour or so before a disconnect. Here is the log:

Code:
Open Broadcaster Software v0.473b (magnificant test build 11) - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3300MHz
Physical Memory:  4095MB Total, 4095MB 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}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 560 Ti  
  Video Adapter Dedicated Video Memory: 1025966080
  Video Adapter Shared System Memory: 3220779008
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 8
------------------------------------------
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
Total frames rendered: 210, number of frames that lagged: 19 (9.05%) (it's okay for some frames to lag)
Total duplicated frames: 47 (22.38%)
x264: frame I:4     Avg QP:20.42  size: 80153
x264: frame P:49    Avg QP:21.70  size:   515
x264: frame B:133   Avg QP:24.46  size:    42
x264: consecutive B-frames:  3.7%  0.0%  3.2% 93.1%
x264: mb I  I16..4: 30.4% 16.6% 52.9%
x264: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  1.9%  0.9%  0.5%  0.0%  0.0%    skip:96.7%
x264: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:99.9%  L0:47.5% L1:46.7% BI: 5.8%
x264: 8x8 transform intra:16.6% inter:14.2%
x264: coded y,uvDC,uvAC intra: 68.5% 68.7% 52.9% inter: 0.2% 0.1% 0.0%
x264: i16 v,h,dc,p: 86%  4%  3%  7%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 20% 16%  3%  6%  5%  6%  6% 11%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 20% 11%  8%  7%  7%  9%  7%  8%
x264: i8c dc,h,v,p: 55% 16% 19% 10%
x264: Weighted P-Frames: Y:4.1% UV:4.1%
x264: kb/s:907.36
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 8
------------------------------------------
SharedTexCapture hooked
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SharedTexCapture hooked
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
Total frames rendered: 227750, number of frames that lagged: 18898 (8.30%) (it's okay for some frames to lag)
Total duplicated frames: 8708 (3.82%)
okay, this is strange
librtmp error: WriteN, RTMP send error 10053 (79 bytes)
librtmp error: WriteN, RTMP send error 10038 (42 bytes)
Number of times waited to send: 2, Waited for a total of 8194 bytes
Number of b-frames dropped: 8 (0.0034%), Number of p-frames dropped: 88 (0.038%), Total 96 (0.041%)
x264: frame I:1127  Avg QP:22.84  size: 46656
x264: frame P:87607 Avg QP:26.57  size:  4226
x264: frame B:144211 Avg QP:29.99  size:   336
x264: consecutive B-frames: 15.2%  5.7%  3.2% 75.9%
x264: mb I  I16..4: 24.4% 45.6% 30.0%
x264: mb P  I16..4:  3.8%  3.0%  0.2%  P16..4: 13.5%  5.2%  1.7%  0.0%  0.0%    skip:72.6%
x264: mb B  I16..4:  0.2%  0.1%  0.0%  B16..8:  1.9%  0.5%  0.0%  direct: 0.3%  skip:97.0%  L0:37.4% L1:54.4% BI: 8.2%
x264: 8x8 transform intra:43.2% inter:37.0%
x264: coded y,uvDC,uvAC intra: 33.2% 25.6% 6.3% inter: 1.8% 1.7% 0.1%
x264: i16 v,h,dc,p: 47% 28% 18%  7%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 24% 36%  2%  4%  3%  4%  3%  4%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 25% 16%  6%  6%  6%  9%  5%  7%
x264: i8c dc,h,v,p: 64% 18% 16%  2%
x264: Weighted P-Frames: Y:3.8% UV:2.2%
x264: kb/s:971.12
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 8
------------------------------------------
SharedTexCapture hooked
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
SharedTexCapture hooked
Total frames rendered: 15361, number of frames that lagged: 1637 (10.66%) (it's okay for some frames to lag)
Total duplicated frames: 878 (5.72%)
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%)
x264: frame I:145   Avg QP:29.62  size: 41704
x264: frame P:9985  Avg QP:30.41  size:  8774
x264: frame B:5802  Avg QP:32.69  size:  1274
x264: consecutive B-frames: 40.7% 29.1%  9.5% 20.7%
x264: mb I  I16..4: 23.3% 50.8% 25.9%
x264: mb P  I16..4:  6.7%  5.9%  0.5%  P16..4: 25.4% 10.0%  3.6%  0.0%  0.0%    skip:47.8%
x264: mb B  I16..4:  0.5%  0.2%  0.0%  B16..8:  9.2%  2.0%  0.1%  direct: 1.0%  skip:87.0%  L0:36.4% L1:55.9% BI: 7.7%
x264: 8x8 transform intra:45.4% inter:36.5%
x264: coded y,uvDC,uvAC intra: 37.6% 21.1% 3.9% inter: 7.0% 3.8% 0.1%
x264: i16 v,h,dc,p: 44% 27% 21%  8%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 22% 36%  2%  5%  3%  5%  3%  5%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 20% 20%  7%  7%  7%  8%  6%  7%
x264: i8c dc,h,v,p: 70% 15% 14%  1%
x264: Weighted P-Frames: Y:9.1% UV:4.2%
x264: kb/s:3044.31
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 9.314 ms] [avg calls per frame: 1] [children: 96.4%] [unaccounted: 3.55%]
| scene->Preprocess - [0.0429%] [avg time: 0.004 ms] [avg calls per frame: 1]
| video encoding and uploading - [96.4%] [avg time: 8.979 ms] [avg calls per frame: 1] [children: 10.3%] [unaccounted: 86.1%]
| | CopyResource - [0.247%] [avg time: 0.023 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0322%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [9.92%] [avg time: 0.924 ms] [avg calls per frame: 1]
| | sending stuff out - [0.0644%] [avg time: 0.006 ms] [avg calls per frame: 1]
==============================================================

My modem log didn't show any timeouts, so what am I missing here? Any help would be greatly appreciated! I've been trying to deal with some upstream issues with Comcast, but I wanted to also see if it may be an OBS problem.
 

Krazy

Town drunk
Indeed they do! Some of them anyway, and they can be a bit of a pain to access sometimes.
 

dramabomb

Member
Modem logs can list all sorts of things. Namely T3/T4 timeouts that can note a service loss. Do you see anything weird in the OBS log?
 

Zephiris

Member
From what I see, the connection to the streaming server was aborted by OBS because either the socket send queue was full and could not store more data and/or the receiving end did not acknowledge receipt of the data (Socket error 10053). This usually happens when you are experiencing packet loss, or are saturating your upstream so much that your modem is throttling it. Since you mentioned T3/T4 timeouts, I assume you have cable internet. Here are a few things to check on the modem:
- Downstream power level is optimal between -8 to +8 db
- Upstream power level is optimal between 39 to 52 db
- Downstream (and upstream) signal-to-noise ratio (SNR) should generally be above 29 db

I had a very similar situation not long ago where my levels were fine, but I had intermittent packet loss that turned out to be the result of a line noise issue in a residence near me. It took my ISP a few weeks to finally track it down and fix it. Fortunately, I haven't had any problems since.

Also, for anyone else who has cable internet, you can usually see your modem's status page by going to http://192.168.100.1/
 

dramabomb

Member
Thanks, friend. I'm currently deep into the process of attempting to locate the source of intermittent Upstream sNR issues. At times, I can hit as low at 28.5. I need to be 30+ for that to be within spec with the CMTS. I believe this to be a bad amp on a line somewhere, but as you know, it can take a bit to get Maintenance off their ass to go check.

This confirms that OBS is not at fault in any way. Thank you all for your help. :) My UsNR is the only thing that is out of spec, and I believe that to be what is causing the packet loss from time to time. Upstream receive power is at 3.4, which is well within spec. All other modem specs are great.
 
Top