Question / Help Frequent disconnects with OBS

flavored

Member
Hello,

I've switched to try OBS from xsplit only today, and was immediately impressed with the fps gain. However, after streaming for a little while I've encountered a huge (breaking) issue: after a little while of streaming (from 5 to 20 minutes) framedrop rate would start rising quickly (unnaturally) to 50-70-100% and eventually a connection would drop. After a reconnect, the video might be all black (or it might not be, seems to be a random effect). At first I thought it might be my internet, lowered my bitrate, resolution, etc etc, switched to a scene with only one picture in it and left it alone for a little while to stream - same thing, after a short while, framedrop would go sky high and I would get disconnected. I then ran ping, traceroute as well I tried it back with xsplit - everything was normal. I stream to twitch.tv and thought I might be having certain issues with particular server, then I tried all 4 european servers but every time the result was the same. I tried going through google or this board but haven't found a similar issue (yet). Could someone provide any support? Thank you!

P.S. Tried with both stable latest version as well as the latest alpha, no change.

P.P.S. Another important thing I forgot to mention is that when this glitch occurs, the video on the stream freezes completely, but audio continue uninterrupted. That is, until it disconnects.
 

Krazy

Town drunk
Please post a log.

Based on the symptoms you have described, it certainly sounds like the connection to whatever servers you are trying is being choked. This unfortunately seems to happen to a lot of people on weekends in Europe. Could you do me a favor and try one of the Ashburn servers just to see what happens?
 

flavored

Member
Hello,

Thank you for your reply, posting the log at the end. As I mentioned before, Xsplit performs just fine, no disconnects or frame drops. Same overall settings, just lower fps ingame. I will try the servers you mentioned.

=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (High Definition Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using bitmap image
------------------------------------------
Video Encoding: x264
fps: 30
width: 1280, height: 720
preset: faster
CBR: no
CFR: no
max bitrate: 1800
buffer size: 1800
quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-lhr-backup.justin.tv/app
bufferTime: 3040, outputRateWindowTime: 1000, dropThreshold: 3540
RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
Total frames rendered: 34902, number of frames that lagged: 4 (0.01%) (it's okay for some frames to lag)
librtmp error: WriteN, RTMP send error 10053 (79 bytes)
librtmp error: WriteN, RTMP send error 10038 (42 bytes)
Number of b-frames dropped: 12383 (15%), Number of p-frames dropped: 12427 (15%), Total 24810 (30%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (High Definition Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using bitmap image
------------------------------------------
Video Encoding: x264
fps: 30
width: 1280, height: 720
preset: faster
CBR: no
CFR: no
max bitrate: 1800
buffer size: 1800
quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-lhr-backup.justin.tv/app
bufferTime: 2945, outputRateWindowTime: 1000, dropThreshold: 3445
Total frames rendered: 17185, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 4049 (9.8%), Number of p-frames dropped: 4082 (9.8%), Total 8131 (20%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (High Definition Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using bitmap image
------------------------------------------
Video Encoding: x264
fps: 30
width: 1920, height: 1080
preset: faster
CBR: no
CFR: no
max bitrate: 1800
buffer size: 1800
quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-lhr-backup.justin.tv/app
bufferTime: 2920, outputRateWindowTime: 1000, dropThreshold: 3420
Total frames rendered: 10807, number of frames that lagged: 26 (0.24%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 903 (3.5%), Number of p-frames dropped: 882 (3.4%), Total 1785 (6.8%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (High Definition Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using bitmap image
------------------------------------------
Video Encoding: x264
fps: 30
width: 1920, height: 1080
preset: superfast
CBR: no
CFR: no
max bitrate: 1800
buffer size: 1800
quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-lhr-backup.justin.tv/app
bufferTime: 3108, outputRateWindowTime: 1000, dropThreshold: 3608
Total frames rendered: 10596, number of frames that lagged: 5 (0.05%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 1154 (4.5%), Number of p-frames dropped: 1125 (4.4%), Total 2279 (8.9%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 9.416 ms] [avg calls per frame: 1] [children: 96.6%] [unaccounted: 3.42%]
| scene->Preprocess - [14.3%] [avg time: 1.346 ms] [avg calls per frame: 1]
| video encoding and uploading - [82.3%] [avg time: 7.748 ms] [avg calls per frame: 1] [children: 17.6%] [unaccounted: 64.7%]
| | CopyResource - [0.542%] [avg time: 0.051 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.138%] [avg time: 0.013 ms] [avg calls per frame: 0]
| | call to encoder - [16.7%] [avg time: 1.569 ms] [avg calls per frame: 1]
| | sending stuff out - [0.223%] [avg time: 0.021 ms] [avg calls per frame: 1]
==============================================================

Memory Leaks Were Detected.

P.S. I have tested the servers you suggested and the result is the same, this time faster though. Every 1-3 minutes I get framedrops and a disconnect.
 

flavored

Member
OK, wanted to add in that version 0.465a is perfectly stable. But I can only capture all the desktop there, game capture doesn't work at all. But I can stream without disconnecting.. More testing to come.
 
Top