Question / Help Stream disconnects intermittantly. Occasional frame drops.

Status
Not open for further replies.

oghma

New Member
Hi All,

I've been streaming with OBS for a few weeks, and loving it so far, but I am getting stream drops around every 20 or 30 minutes.

I'm using window capture with Starcraft 2, streaming at 720p, 30fps. I was streaming at 60fps before, and having the same issues. I've turned Max Bitrate down from 4000kbps to 3300 kbps after doing a 32Mb upload speedtest. I've also tried a few nearby Twitch servers, specifically, both LA serves and the SF server, but no luck!

Computer specs:
Haswell Core i5 @ 3.4 Ghz
16GB ram
Nvidea 550Ti

Any advice on other settings would be welcome!

Logs below.

Code:
19:01:39: Open Broadcaster Software v0.542b - 64bit ( ^ω^)
19:01:39: -------------------------------
19:01:39: CPU Name: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
19:01:39: CPU Speed: 3400MHz
19:01:39: Physical Memory:  16325MB Total, 12913MB Free
19:01:39: stepping id: 3, model 12, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
19:01:39: monitor 1: pos={0, 0}, size={1920, 1080}
19:01:39: monitor 2: pos={-1920, 0}, size={1920, 1080}
19:01:39: Windows Version: 6.1 Build 7601 S
19:01:39: Aero is Enabled
19:01:39: -------------------------------
19:01:39: OBS Modules:
19:01:39: Base Address     Module
19:01:39: 000000003FAF0000 OBS.exe
19:01:39: 00000000FABC0000 OBSApi.dll
19:01:39: 00000000FAB80000 DShowPlugin.dll
19:01:39: 00000000FAE90000 GraphicsCapture.dll
19:01:39: 00000000FAE10000 NoiseGate.dll
19:01:39: 00000000FAA70000 PSVPlugin.dll
19:01:39: ------------------------------------------
19:01:39: Adapter 1
19:01:39:   Video Adapter: NVIDIA GeForce GTX 550 Ti
19:01:39:   Video Adapter Dedicated Video Memory: 1025179648
19:01:39:   Video Adapter Shared System Memory: 3221106688
19:01:39: Using fixed low latency mode, factor 20
19:01:39: =====Stream Start: 2013-07-27, 19:01:39===============================================
19:01:39:   Multithreaded optimizations: On
19:01:39:   Base resolution: 1920x1080
19:01:39:   Output resolution: 1280x720
19:01:39: ------------------------------------------
19:01:39: Loading up D3D10...
19:01:39: Playback device {0.0.0.00000000}.{5bad48c8-c031-427f-aff3-d53dfdcb153b}
19:01:39: ------------------------------------------
19:01:39: Using desktop audio input: Speakers (Realtek High Definition Audio)
19:01:39: ------------------------------------------
19:01:39: Using auxilary audio input: Microphone (Realtek High Definition Audio)
19:01:39: ------------------------------------------
19:01:39: Audio Encoding: AAC
19:01:39:     bitrate: 128
19:01:39: ------------------------------------------
19:01:39:     device: Logitech HD Webcam C525,
19:01:39:     device id \\?\usb#vid_046d&pid_0826&mi_02#7&219c2d76&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
19:01:39:     chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000, fourCC: 'I420'
19:01:39:     audio device: Disable,
19:01:39:     audio device id Disabled,
19:01:39: 
19:01:39: Using directshow input
19:01:40: Using Window Capture
19:01:40: ------------------------------------------
19:01:40: Video Encoding: x264
19:01:40:     fps: 30
19:01:40:     width: 1280, height: 720
19:01:40:     preset: veryfast
19:01:40:     CBR: yes
19:01:40:     CFR: no
19:01:40:     max bitrate: 3300
19:01:40: ------------------------------------------
19:01:51: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
19:01:51:   New Scene
19:02:04: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
19:02:04:   New Scene
19:02:05: Using RTMP service: Twitch / Justin.tv
19:02:05:   Server selection: rtmp://live-lax.justin.tv/app
19:02:06: SO_SNDBUF was at 8192
19:02:06: SO_SNDBUF is now 65536
20:02:07: RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10054
20:02:07: Total frames rendered: 106705, number of frames that lagged: 1349 (1.26%) (it's okay for some frames to lag)
20:02:08: librtmp error: WriteN, RTMP send error 10054 (79 bytes)
20:02:08: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
20:02:08: Number of times waited to send: 157, Waited for a total of 598654 bytes
20:02:08: Number of b-frames dropped: 78 (0.073%), Number of p-frames dropped: 164 (0.15%), Total 242 (0.23%)
20:02:08: =====Stream End: 2013-07-27, 20:02:08=================================================
20:02:13: Using fixed low latency mode, factor 20
20:02:13: =====Stream Start: 2013-07-27, 20:02:13===============================================
20:02:13:   Multithreaded optimizations: On
20:02:13:   Base resolution: 1920x1080
20:02:13:   Output resolution: 1280x720
20:02:13: ------------------------------------------
20:02:13: Loading up D3D10...
20:02:13: Playback device {0.0.0.00000000}.{5bad48c8-c031-427f-aff3-d53dfdcb153b}
20:02:13: ------------------------------------------
20:02:13: Using desktop audio input: Speakers (Realtek High Definition Audio)
20:02:13: ------------------------------------------
20:02:13: Using auxilary audio input: Microphone (Realtek High Definition Audio)
20:02:13: ------------------------------------------
20:02:13: Audio Encoding: AAC
20:02:13:     bitrate: 128
20:02:13: ------------------------------------------
20:02:13:     device: Logitech HD Webcam C525,
20:02:13:     device id \\?\usb#vid_046d&pid_0826&mi_02#7&219c2d76&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:02:13:     chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000, fourCC: 'I420'
20:02:13:     audio device: Disable,
20:02:13:     audio device id Disabled,
20:02:13: 
20:02:13: Using directshow input
20:02:13: Using Window Capture
20:02:13: ------------------------------------------
20:02:13: Video Encoding: x264
20:02:13:     fps: 30
20:02:13:     width: 1280, height: 720
20:02:13:     preset: veryfast
20:02:13:     CBR: yes
20:02:13:     CFR: no
20:02:13:     max bitrate: 3300
20:02:13: ------------------------------------------
20:02:15: Using RTMP service: Twitch / Justin.tv
20:02:15:   Server selection: rtmp://live-lax.justin.tv/app
20:02:16: SO_SNDBUF was at 8192
20:02:16: SO_SNDBUF is now 65536
20:06:54: RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
20:06:54: Total frames rendered: 7676, number of frames that lagged: 462 (6.02%) (it's okay for some frames to lag)
20:06:54: librtmp error: WriteN, RTMP send error 10053 (79 bytes)
20:06:54: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
20:06:54: Number of times waited to send: 0, Waited for a total of 0 bytes
20:06:54: Number of b-frames dropped: 5 (0.066%), Number of p-frames dropped: 33 (0.44%), Total 38 (0.5%)
20:06:54: =====Stream End: 2013-07-27, 20:06:54=================================================
20:06:59: Using fixed low latency mode, factor 20
20:06:59: =====Stream Start: 2013-07-27, 20:06:59===============================================
20:06:59:   Multithreaded optimizations: On
20:06:59:   Base resolution: 1920x1080
20:06:59:   Output resolution: 1280x720
20:06:59: ------------------------------------------
20:06:59: Loading up D3D10...
20:06:59: Playback device {0.0.0.00000000}.{5bad48c8-c031-427f-aff3-d53dfdcb153b}
20:06:59: ------------------------------------------
20:06:59: Using desktop audio input: Speakers (Realtek High Definition Audio)
20:06:59: ------------------------------------------
20:06:59: Using auxilary audio input: Microphone (Realtek High Definition Audio)
20:06:59: ------------------------------------------
20:06:59: Audio Encoding: AAC
20:06:59:     bitrate: 128
20:06:59: ------------------------------------------
20:06:59:     device: Logitech HD Webcam C525,
20:06:59:     device id \\?\usb#vid_046d&pid_0826&mi_02#7&219c2d76&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:06:59:     chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000, fourCC: 'I420'
20:06:59:     audio device: Disable,
20:06:59:     audio device id Disabled,
20:06:59: 
20:06:59: Using directshow input
20:06:59: Using Window Capture
20:06:59: ------------------------------------------
20:06:59: Video Encoding: x264
20:06:59:     fps: 30
20:06:59:     width: 1280, height: 720
20:06:59:     preset: veryfast
20:06:59:     CBR: yes
20:06:59:     CFR: no
20:06:59:     max bitrate: 3300
20:06:59: ------------------------------------------
20:07:09: Using RTMP service: Twitch / Justin.tv
20:07:09:   Server selection: rtmp://live-lax.justin.tv/app
20:07:10: SO_SNDBUF was at 8192
20:07:10: SO_SNDBUF is now 65536
20:25:27: RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10054
20:25:31: Total frames rendered: 32312, number of frames that lagged: 653 (2.02%) (it's okay for some frames to lag)
20:25:31: librtmp error: WriteN, RTMP send error 10054 (79 bytes)
20:25:31: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
20:25:31: Number of times waited to send: 0, Waited for a total of 0 bytes
20:25:31: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:25:31: =====Stream End: 2013-07-27, 20:25:31=================================================
20:25:36: Using fixed low latency mode, factor 20
20:25:36: =====Stream Start: 2013-07-27, 20:25:36===============================================
20:25:36:   Multithreaded optimizations: On
20:25:36:   Base resolution: 1920x1080
20:25:36:   Output resolution: 1280x720
20:25:36: ------------------------------------------
20:25:36: Loading up D3D10...
20:25:36: Playback device {0.0.0.00000000}.{5bad48c8-c031-427f-aff3-d53dfdcb153b}
20:25:36: ------------------------------------------
20:25:36: Using desktop audio input: Speakers (Realtek High Definition Audio)
20:25:36: ------------------------------------------
20:25:36: Using auxilary audio input: Microphone (Realtek High Definition Audio)
20:25:36: ------------------------------------------
20:25:36: Audio Encoding: AAC
20:25:36:     bitrate: 128
20:25:36: ------------------------------------------
20:25:36:     device: Logitech HD Webcam C525,
20:25:36:     device id \\?\usb#vid_046d&pid_0826&mi_02#7&219c2d76&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:25:36:     chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000, fourCC: 'I420'
20:25:36:     audio device: Disable,
20:25:36:     audio device id Disabled,
20:25:36: 
20:25:36: Using directshow input
20:25:36: Using Window Capture
20:25:36: ------------------------------------------
20:25:36: Video Encoding: x264
20:25:36:     fps: 30
20:25:36:     width: 1280, height: 720
20:25:36:     preset: veryfast
20:25:36:     CBR: yes
20:25:36:     CFR: no
20:25:36:     max bitrate: 3300
20:25:36: ------------------------------------------
20:26:00: Using RTMP service: Twitch / Justin.tv
20:26:00:   Server selection: rtmp://live-lax.justin.tv/app
20:26:01: SO_SNDBUF was at 8192
20:26:01: SO_SNDBUF is now 65536
20:40:06: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
21:09:05: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
21:09:05:   New Scene
21:12:34: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
21:12:34:   New Scene
21:31:41: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
22:37:27: Total frames rendered: 233926, number of frames that lagged: 2529 (1.08%) (it's okay for some frames to lag)
22:37:28: RTMPPublisher::SocketLoop: Aborting due to bStopping
22:37:28: Number of times waited to send: 468, Waited for a total of 1772361 bytes
22:37:28: Number of b-frames dropped: 216 (0.092%), Number of p-frames dropped: 452 (0.19%), Total 668 (0.29%)
22:37:28: =====Stream End: 2013-07-27, 22:37:28=================================================
22:37:29: 
22:37:29: Profiler results:
22:37:29: 
22:37:29: ==============================================================
22:37:29: frame - [100%] [avg time: 12.56 ms (cpu time: avg 4.376 ms, total 1.66578e+006 ms)] [avg calls per frame: 1] [children: 100%] [unaccounted: 0.0239%]
22:37:29: | frame preprocessing and rendering - [88.9%] [avg time: 11.162 ms (cpu time: avg 3.368 ms, total 1.28219e+006 ms)] [avg calls per frame: 1] [children: 85.5%] [unaccounted: 3.34%]
22:37:29: | | scene->Preprocess - [85.5%] [avg time: 10.743 ms (cpu time: avg 3.042 ms, total 1.15786e+006 ms)] [avg calls per frame: 1]
22:37:29: | video encoding and uploading - [11.1%] [avg time: 1.395 ms (cpu time: avg 1.006 ms, total 382951 ms)] [avg calls per frame: 1] [children: 10.5%] [unaccounted: 0.645%]
22:37:29: | | flush - [2.22%] [avg time: 0.279 ms (cpu time: avg 0.035 ms, total 13447.3 ms)] [avg calls per frame: 1]
22:37:29: | | CopyResource - [0.183%] [avg time: 0.023 ms (cpu time: avg 0.012 ms, total 4711.22 ms)] [avg calls per frame: 0]
22:37:29: | | conversion to 4:2:0 - [0.0478%] [avg time: 0.006 ms (cpu time: avg 0.003 ms, total 1248.01 ms)] [avg calls per frame: 0]
22:37:29: | | call to encoder - [7.81%] [avg time: 0.981 ms (cpu time: avg 0.917 ms, total 349115 ms)] [avg calls per frame: 0]
22:37:29: | | sending stuff out - [0.199%] [avg time: 0.025 ms (cpu time: avg 0.017 ms, total 6676.85 ms)] [avg calls per frame: 0]
22:37:29: | Convert444Threads - [539%] [avg time: 67.689 ms (cpu time: avg 0.952 ms, total 362640 ms)] [avg calls per frame: 1]
22:37:29: ==============================================================
22:37:29:
 

oghma

New Member
Re: Stream disconnects intermittantly. Occasional frame dro

I should also mention, in addition to the window capture, I'm also including webcam capture at 720p. I am also frequently using Google Hangouts simultaneously to voice chat with people I'm playing with.
 

Kharay

Member
Re: Stream disconnects intermittantly. Occasional frame dro

RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10054
10054: Connection reset by peer. ( http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx ).

Implying that for some reason or another Twitch is dropping the connection. And given the fact you weren't dropping frames up until then I am inclined to say the problem is not yours to fix. However, I do have a couple of suggestions:
  • Restart your modem and/or router
  • Reset your Twitch.TV stream key
  • Make sure that the timezone for your Twitch.TV account is the same timezone as the server you are streaming to.
 

Krazy

Town drunk
Re: Stream disconnects intermittantly. Occasional frame dro

Kharay said:
RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10054
10054: Connection reset by peer. ( http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx ).

Implying that for some reason or another Twitch is dropping the connection. And given the fact you weren't dropping frames up until then I am inclined to say the problem is not yours to fix. However, I do have a couple of suggestions:
  • Restart your modem and/or router
  • Reset your Twitch.TV stream key
  • Make sure that the timezone for your Twitch.TV account is the same timezone as the server you are streaming to.

I've seen you suggest this multiple times and I'm just curious as to why?
 

Kharay

Member
Re: Stream disconnects intermittantly. Occasional frame dro

Because it has been known that this causes issues with Twitch.TV, on occasion. This recommendation actually comes from Twitch.TV Support. Apparently there are cases where the Twitch.TV servers start misbehaving when there is a mismatch between account timezone and chosen stream server.
 

Krazy

Town drunk
Re: Stream disconnects intermittantly. Occasional frame dro

Interesting, and good to know. Do you have a link to this for reference?
 

Krazy

Town drunk
Re: Stream disconnects intermittantly. Occasional frame dro

Thanks, saved for future reference.
 

oghma

New Member
Re: Stream disconnects intermittantly. Occasional frame dro

Hey, guys. Sorry for no reply on my end! I guess I don't have my OBS forums account set up to send me email notifications, whoops! My IRL timezone, Twitch account settings timezone, and Twitch server timezones all match, and furthermore I have tried all the servers in this timezone!

I guess this is a bug report to send to Twitch then?
 
Status
Not open for further replies.
Top