Question / Help Starting streamer OBS

OathGG

New Member
Hello,

Lets start by a small introduction.
Recently I have discovered the art of streaming. It first started with watching other "pro" players stream the game League of Legends. I decided to take a look at the world of streaming myself. Firstly I googled free streaming software which gave me the link to FFsplit. Most people already know this software, its a great program but not very CPU sufficient. I started watching more streams and then I came across a streamer which HIGHLY recommended OBS.

The program is great on itself and is very CPU efficient.
Despite all this I do have some minor issues regarding the stream I'm posting on twitch.tv.
Sometimes when there is alot of action I notice a fluctuation on my stream, which gives a small to large "freeze" spike.
The entire stream stops responding and continues after 3-5 secconds.

I have played around with the program for nearly a week and I'm still not able to figure out what it is.
Currently I'm using the setup below, this setup gives "almost" no freezes. The question is, do you see something which is off or should be changed to enhance the speed of the stream? The moments the stream "freeze" is when the green square at the bottom of the OBS program turns yellow. Is it my connection, because I am on a 100mbit line and this should not be the issue.


Open Broadcaster Software v0.472b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
CPU Speed: 3518MHz
Physical Memory: 16334MB Total, 12595MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={-1440, 0}, size={1440, 900}
Windows Version: 6.1 Build 7600
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: ATI Radeon HD 5900 Series
Video Adapter Dedicated Video Memory: 2099920896
Video Adapter Shared System Memory: 4000722944
=====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)
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using text output
Using Window Capture
Using Window Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: no
CFR: no
max bitrate: 4000
buffer size: 2000
quality: 8
------------------------------------------
Syncing audio to video time
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-ams.justin.tv/app
bufferTime: 1888, outputRateWindowTime: 1000, dropThreshold: 2388
Total frames rendered: 25970, number of frames that lagged: 1027 (3.95%) (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%)
x264: frame I:108 Avg QP:22.27 size:111023
x264: frame P:8903 Avg QP:26.57 size: 8721
x264: frame B:16908 Avg QP:33.06 size: 1775
x264: consecutive B-frames: 11.1% 2.8% 9.1% 77.1%
x264: mb I I16..4: 12.0% 25.9% 62.0%
x264: mb P I16..4: 1.9% 2.0% 0.8% P16..4: 17.0% 5.0% 2.7% 0.0% 0.0% skip:70.7%
x264: mb B I16..4: 0.1% 0.0% 0.0% B16..8: 2.5% 1.4% 0.4% direct: 0.9% skip:94.6% L0:33.4% L1:44.8% BI:21.7%
x264: 8x8 transform intra:38.7% inter:27.1%
x264: coded y,uvDC,uvAC intra: 65.8% 54.8% 31.2% inter: 4.0% 3.3% 0.9%
x264: i16 v,h,dc,p: 24% 30% 36% 10%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 15% 33% 7% 6% 6% 7% 6% 9%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 19% 8% 8% 7% 7% 7% 8%
x264: i8c dc,h,v,p: 60% 21% 14% 6%
x264: Weighted P-Frames: Y:0.1% UV:0.0%
x264: kb/s:1652.87
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 19.042 ms] [avg calls per frame: 1] [children: 99.3%] [unaccounted: 0.656%]
| scene->Preprocess - [57.3%] [avg time: 10.91 ms] [avg calls per frame: 1]
| video encoding and uploading - [42%] [avg time: 8.007 ms] [avg calls per frame: 1] [children: 6.84%] [unaccounted: 35.2%]
| | CopyResource - [0.0735%] [avg time: 0.014 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0105%] [avg time: 0.002 ms] [avg calls per frame: 0]
| | call to encoder - [6.65%] [avg time: 1.267 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0998%] [avg time: 0.019 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Well, hmm. Everything seems to be in order. I do have one recommendation to increase performance though; If you're using window capture for the main LoL game window, I would actually recommend having aero on (and using the window aero theme). It actually causes the capture to use hardware acceleration which can increase performance quite a bit, though I don't know if that's your problem specifically. Also, you appear to have two window captures active. That might also be contributing to the problem. From your preprocessing time, it seems that these two things are the biggest factors, though I couldn't say for sure.

Other than that everything else checks out.
 

OathGG

New Member
Jim,

I have been going through some older logs from my OBS client. It seems when i turn the X264 CPU feature to "Faster" the frame drops are like 0.04% all of a sudden, I guess the CPU is giving out on me?
Currently I'm trying the game capture aswel. To see if this will help. I will keep you posted.

Off the record, going to try Version 0.473b to see if everything works smoothly with that 1 ;).
Thanks for the help. Ill keep you posted.
 

OathGG

New Member
Okay Jim,

Hereby an update.
Currently using the following setup, this is causing almost no frame drops nor does it create freeze on the stream.

Code:
Open Broadcaster Software v0.473b (network test 1) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
CPU Speed: 3518MHz
Physical Memory:  16334MB Total, 12996MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={-1440, 0}, size={1440, 900}
Windows Version: 6.1 Build 7600 
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5900 Series
  Video Adapter Dedicated Video Memory: 2099920896
  Video Adapter Shared System Memory: 4000722944
=====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)
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 192
Using text output
Using Monitor Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 45
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 8
------------------------------------------
Syncing audio to video time
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-ams.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Monitor Capture
Using graphics capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using graphics capture
Using Monitor Capture
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
SharedTexCapture hooked
Using text output
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Window Capture
Using graphics capture
SharedTexCapture hooked
Total frames rendered: 145102, number of frames that lagged: 14 (0.01%) (it's okay for some frames to lag)
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:595   Avg QP:20.73  size:121278
x264: frame P:46263 Avg QP:23.88  size:  9323
x264: frame B:98187 Avg QP:30.71  size:  1802
x264: consecutive B-frames:  7.4%  4.1%  9.2% 79.4%
x264: mb I  I16..4: 18.0% 18.6% 63.4%
x264: mb P  I16..4:  1.6%  2.5%  2.2%  P16..4: 15.4%  4.0%  1.7%  0.0%  0.0%    skip:72.5%
x264: mb B  I16..4:  0.1%  0.1%  0.2%  B16..8:  2.7%  1.5%  0.3%  direct: 0.8%  skip:94.4%  L0:37.2% L1:46.6% BI:16.2%
x264: 8x8 transform intra:35.5% inter:29.0%
x264: coded y,uvDC,uvAC intra: 74.3% 66.7% 44.3% inter: 4.0% 3.0% 0.8%
x264: i16 v,h,dc,p: 26% 29% 32% 14%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 15% 28%  8%  7%  7%  8%  7% 10%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 19% 19%  9%  8%  8%  8%  7%  9%
x264: i8c dc,h,v,p: 57% 22% 14%  8%
x264: Weighted P-Frames: Y:0.1% UV:0.1%
x264: ref P L0: 82.9% 17.1%
x264: ref B L0: 86.8% 13.2%
x264: ref B L1: 95.2%  4.8%
x264: kb/s:1688.04
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 8.25 ms] [avg calls per frame: 1] [children: 95.9%] [unaccounted: 4.13%]
| scene->Preprocess - [27.5%] [avg time: 2.269 ms] [avg calls per frame: 1]
| video encoding and uploading - [68.4%] [avg time: 5.64 ms] [avg calls per frame: 1] [children: 14.5%] [unaccounted: 53.9%]
| | CopyResource - [0.182%] [avg time: 0.015 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0364%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [14.2%] [avg time: 1.17 ms] [avg calls per frame: 0]
| | sending stuff out - [0.097%] [avg time: 0.008 ms] [avg calls per frame: 0]
==============================================================
 
Top