Bug Report Stream disconnects constantly after 2 hours

defunct

Member
I use both ffsplit and OBS, but I just want to use OBS (as it feels as though it almost isn't there in terms of lag/cpu usage).

This has been present for me for the last few versions and I want to see if we can find the bug. Today I went 4 hours before my viewers told me my stream randomly disconnected. My upload was in the green as I had OBS on my other monitor. Basically sometime after the 2 hour mark of streaming, I will get disconnected to Twitch.

Last version I was using the screen capture, but now I'm using the new DX capture (which is awesome).

I have numerous 10 hour plus streams with ffsplit, and in fact never had it DC me unless my internet died.

Is this some kind of memory leak since it takes a while to happen?

If there is anything else I can provide, please let me know as I would love to help solve this problem in any way possible.

Here is the video that disconnected: http://www.twitch.tv/defunct_/b/343568913

2246823041.png


Thank you for this amazing software.

Log of the session.

Code:
Open Broadcaster Software v0.448a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
CPU Speed: 3818MHz
Physical Memory:  4095MB Total, 2318MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 670
  Video Adapeter Dedicated Video Memory: 2091581440
  Video Adapeter Shared System Memory: 2147479552
Send Buffer Size: 5840
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 2000
    buffer size: 2000
------------------------------------------
using shared texture capture
Total frames rendered: 489103, number of frames that lagged: 13 (0.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 0, Number of p-frames dropped: 0
=====Stream End=======================================================================
Send Buffer Size: 5840
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 2000
    buffer size: 2000
------------------------------------------
using shared texture capture
Total frames rendered: 40174, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 0, Number of p-frames dropped: 0
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 3.231 ms] [avg calls per frame: 1] [children: 92.7%] [unaccounted: 7.27%]
| scene->Preprocess - [0.031%] [avg time: 0.001 ms] [avg calls per frame: 1]
| video encoding and uploading - [92.7%] [avg time: 2.995 ms] [avg calls per frame: 1] [children: 38.6%] [unaccounted: 54.1%]
| | CopyResource - [0.588%] [avg time: 0.019 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.279%] [avg time: 0.009 ms] [avg calls per frame: 0]
| | call to encoder - [37.7%] [avg time: 1.219 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Unfortunately, I don't really have much data to go on it would seem -- and If there were a memory leak, there would actually been a message at the end of the log file indicating such. I'm not entirely sure why it would be disconnecting you. Everything you're doing checks out, and you have no dropped frames.
 

defunct

Member
Heya Jim. Anything else I can do to help diagnose the problem? Anything I can run while streaming that could help you get more data? It's pretty steady after about 2 hours, although this 4.5 hour run is the longest I've had yet. My friend who streams as well has had the same issue. The things we have in common are we both use the first gen i7 CPU (920 in my case, 930 in his).

Thanks!
 

defunct

Member
Could it be something to do with the send buffer? I've actually never tried it with it off. I've run it at 1460/2920/5840 and a much higher value in the last version. Could it be in there, maybe it sends some strange packets down the road to Twitch that disconnects me?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Well, I actually can't think of any suggestions at the moment, your FPS is great, you have no dropped frames.. everything seems to be in order. But if you do find something that seems to help prevent the problem for you, please let me know.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
There are many reason why twitch can decide to disconnect you. For example, it can decide to disconnect usually if it feels it's having connectivity issues, or the stream is fluctuating past its expectations.. Or let me rephrase -- too many frame drops, highly inconsistent FPS. I couldn't say for sure why it would be happening in this particular case unfortunately.
 

defunct

Member
Sorry to keep bothering you Jim. Does Twitch not send a streaming client any kind of error code or reason for a disconnect? I have no clue about their API, but I'm just wondering.

Thanks
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Actually, from my tests, they don't seem to very often unfortunately. The server just outright closes the connection in many cases.
 

defunct

Member
So far with "Use Send Buffer" off I have had no disconnects. I will try a few more days to be sure that the issue lies in there (at least for me).
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Be careful with that, you'll probably get less bandwidth throughput with it off. It really shouldn't be causing any disconnects.
 

defunct

Member
Unchecking Use Send Buffer still hasn't fixed this for me. I get a least 1 disconnect in a 2 hour stream. Going to use send buffer again at the lowest setting again.

I don't know what else I can provide as I never had a single disconnect with ffsplit.

I'll just list of anything I can think of?

1) My processor is overclocked to 4ghz (i7 920).
2) I have a Realtek PCIe GBE Network Card

What I'm trying now:

1) In the advanced settings of the adapter, I have disabled the following: IPv4 Checksum Offload, Large Send Offload (IPv4), Large Send Offload v2 (IPv4), Large Send Offload v2 (IPv6), TCP Checksum Offload (IPv4), TCP Checksum Offload (IPv6).

Maybe it will help...
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
yea, send buffer is actually off by default in newer versions at the moment. will be keeping an eye on things, but I know people who stream like 6+ hours both with and without send buffer, so I can't really say for sure what's going on.
 

defunct

Member
I didn't actually get a chance to stream last night. What if I capture the network packets with Wireshark or something. Would that help get to the bottom of it?
 

Morello

New Member
I also seem to get this, it usually happens to me between 1.5 hours and 2. The stream will be perfect and then just suddenly I notice that it is building .mp4 (as I have saving a video locally on) and it's disconnected from Twitch. In my case could saving a video be an issue? I should say that XSplit never drops the connection, I regularly stream 6+ hours with it.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
xsplit has a silent reconnect if I recall. Also, I just watched someone stream for 7 hours 30 minutes the other night without much of a problem, so I'm not sure I'm going to be able to say if I can place blame on my application at this point yet.
 

defunct

Member
I had 4 hours last night with my adjusted nic settings and had to log off, but no disconnect. I'll obviously have to do many more tests but we shall see.
 

defunct

Member
JIm, can you link their VOD? I'd be curious to see their PC specs if they have them up on their twitch profile.
 
Top