Question / Help Stream turns black after a while

fattywopwop

New Member
Hi!

I've been having this issue ever since I started streaming, but I haven't really bothered too much about it before. It's starting to get a bit annoying now though, so I'm posting here in hope for some help! =) It should be said that I've also googled the problem without any results.

After streaming for a while (usually around 50 minutes), my stream stops working properly. The actual stream turns black (there is still sound), and if you're watching the VODs on twitch, the stream becomes super blurry at the same time instead of turning black.
Here's an example: http://www.twitch.tv/fattywopwop/b/434866658 around 45:08 and forward.
Restarting the stream solves the problem for another ~50 minutes, but it's annoying if I don't notice it has turned black. I don't have a lot of viewers and I'm mostly streaming for my own sake to watch the VODs after, and therefore there's usually nobody to tell me to restart it, so I discover it myself when watching the VODs.

I'm not sure what to try, but I've tried different settings in OBS and I've also tried both the 32 bit and 64 bit version, without success.

I saw that you want a log in order to see more info, so here it is:

Code:
Open Broadcaster Software v0.457a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
CPU Speed: 2494MHz
Physical Memory:  6040MB Total, 2188MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: Intel(R) HD Graphics 4000
  Video Adapter Dedicated Video Memory: 67108864
  Video Adapter Shared System Memory: 1711276032
------------------------------------------
Adapter 2
  Video Adapter: NVIDIA GeForce GT 650M  
  Video Adapter Dedicated Video Memory: 2091712512
  Video Adapter Shared System Memory: 2147479552
=====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
Using Window Capture
Using bitmap image
Using bitmap image
Using bitmap image
------------------------------------------
Video Encoding: x264
    fps: 20
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2800
    buffer size: 3250
    quality: 8
------------------------------------------
bufferTime: 3527, outputRateWindowTime: 1000, dropThreshold: 4027
RTMPPublisher::BufferedSend: Buffer is full (374521 / 374784 bytes), waiting to send 429 bytes
RTMPPublisher::BufferedSend: Buffer is full (374521 / 374784 bytes), waiting to send 429 bytes
RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10054
Total frames rendered: 68136, number of frames that lagged: 284 (0.42%) (it's okay for some frames to lag)
Number of b-frames dropped: 134 (0.062%), Number of p-frames dropped: 139 (0.064%), Total 273 (0.13%)
=====Stream End=======================================================================
=====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
Using Window Capture
Using bitmap image
Using bitmap image
Using bitmap image
------------------------------------------
Video Encoding: x264
    fps: 20
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2800
    buffer size: 3250
    quality: 8
------------------------------------------
Total frames rendered: 338, number of frames that lagged: 2 (0.59%) (it's okay for some frames to lag)
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: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Window Capture
Using bitmap image
Using bitmap image
Using bitmap image
------------------------------------------
Video Encoding: x264
    fps: 20
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2800
    buffer size: 3250
    quality: 8
------------------------------------------
bufferTime: 3121, outputRateWindowTime: 1000, dropThreshold: 3621
Total frames rendered: 10496, number of frames that lagged: 16 (0.15%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 16.643 ms] [avg calls per frame: 1] [children: 93.6%] [unaccounted: 6.4%]
| scene->Preprocess - [21.5%] [avg time: 3.58 ms] [avg calls per frame: 1]
| video encoding and uploading - [72.1%] [avg time: 11.998 ms] [avg calls per frame: 1] [children: 22%] [unaccounted: 50%]
| | CopyResource - [1.12%] [avg time: 0.186 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.511%] [avg time: 0.085 ms] [avg calls per frame: 0]
| | call to encoder - [20%] [avg time: 3.329 ms] [avg calls per frame: 0]
| | sending stuff out - [0.415%] [avg time: 0.069 ms] [avg calls per frame: 0]
==============================================================

Memory Leaks Were Detected.

Thanks in advance! =)
 

fattywopwop

New Member
Update: I missed the thread called "Laptop? Black screen when capturing? Read here first." earlier, but saw it now. Does this include black screens that doesn't appear instantly as well?

If so, could someone please explain how to "Use the nvidia/AMD control panel in windows, and set OBS to use the nvidia/AMD GPU ('performance'), rather than intel ('power saving'). If you're on an optimus you must do this."?

I'm not very good at these kinds of stuff, and all I know is how to open the nvidia control panel pretty much. I don't know where to go from there though!
 
Top