Question / Help Twitch choppyness + random lag

Jakeycakeyyay

New Member
Code:
Open Broadcaster Software v0.466a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
CPU Speed: 2809MHz
Physical Memory:  12279MB Total, 9123MB Free
stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 560 Ti  
  Video Adapter Dedicated Video Memory: 2096562176
  Video Adapter Shared System Memory: 2147364864
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1600x900
  Output resolution: 1600x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1600, height: 900
    preset: veryfast
    CBR: no
    max bitrate: 2000
    buffer size: 2000
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: 
bufferTime: 2148, outputRateWindowTime: 1000, dropThreshold: 2648
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Total frames rendered: 3764, number of frames that lagged: 3764 (100.00%) (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=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1680, height: 1050
    preset: veryfast
    CBR: no
    max bitrate: 1000
    buffer size: 1500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: 
bufferTime: 1831, outputRateWindowTime: 1000, dropThreshold: 2331
Total frames rendered: 336, number of frames that lagged: 336 (100.00%) (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=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1680, height: 1050
    preset: veryfast
    CBR: no
    max bitrate: 1000
    buffer size: 1500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: 
bufferTime: 1666, outputRateWindowTime: 1000, dropThreshold: 2166
Total frames rendered: 3228, number of frames that lagged: 3228 (100.00%) (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: 67.121 ms] [avg calls per frame: 1] [children: 99.1%] [unaccounted: 0.933%]
| scene->Preprocess - [78.8%] [avg time: 52.911 ms] [avg calls per frame: 1]
| video encoding and uploading - [20.2%] [avg time: 13.584 ms] [avg calls per frame: 1] [children: 4.02%] [unaccounted: 16.2%]
| | CopyResource - [0.0328%] [avg time: 0.022 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0358%] [avg time: 0.024 ms] [avg calls per frame: 0]
| | call to encoder - [3.89%] [avg time: 2.61 ms] [avg calls per frame: 0]
| | sending stuff out - [0.067%] [avg time: 0.045 ms] [avg calls per frame: 0]
==============================================================
 

hilalpro

Member
it seems Like you're using aero with monitor capture.. a compatibility issue occur if you leave aero on. there's an option to disable it on settings>video then restart obs to take effect.

note that if you want to capture 32bit games with game capture you should currently switch to the 32bit version of obs.
 

Jakeycakeyyay

New Member
Code:
Open Broadcaster Software v0.466a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
CPU Speed: 2809MHz
Physical Memory:  12279MB Total, 9217MB Free
stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 560 Ti  
  Video Adapter Dedicated Video Memory: 2096562176
  Video Adapter Shared System Memory: 2147364864
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1680, height: 1050
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: ǖ
bufferTime: 1845, outputRateWindowTime: 1000, dropThreshold: 2345
Total frames rendered: 2414, number of frames that lagged: 625 (25.89%) (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=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1680, height: 1050
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: ǖ
bufferTime: 1686, outputRateWindowTime: 1000, dropThreshold: 2186
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Total frames rendered: 19996, number of frames that lagged: 14624 (73.13%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
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: 40.785 ms] [avg calls per frame: 1] [children: 98.5%] [unaccounted: 1.45%]
| scene->Preprocess - [30.4%] [avg time: 12.405 ms] [avg calls per frame: 1]
| video encoding and uploading - [68.1%] [avg time: 27.788 ms] [avg calls per frame: 1] [children: 8.19%] [unaccounted: 59.9%]
| | CopyResource - [0.0785%] [avg time: 0.032 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.319%] [avg time: 0.13 ms] [avg calls per frame: 0]
| | call to encoder - [7.74%] [avg time: 3.157 ms] [avg calls per frame: 0]
| | sending stuff out - [0.049%] [avg time: 0.02 ms] [avg calls per frame: 0]
==============================================================
 

hilalpro

Member
Jakeycakeyyay said:
Code:
Open Broadcaster Software v0.466a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
CPU Speed: 2809MHz
Physical Memory:  12279MB Total, 9217MB Free
stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 560 Ti  
  Video Adapter Dedicated Video Memory: 2096562176
  Video Adapter Shared System Memory: 2147364864
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1680, height: 1050
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: ǖ
bufferTime: 1845, outputRateWindowTime: 1000, dropThreshold: 2345
Total frames rendered: 2414, number of frames that lagged: 625 (25.89%) (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=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1680, height: 1050
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: ǖ
bufferTime: 1686, outputRateWindowTime: 1000, dropThreshold: 2186
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Total frames rendered: 19996, number of frames that lagged: 14624 (73.13%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
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: 40.785 ms] [avg calls per frame: 1] [children: 98.5%] [unaccounted: 1.45%]
| scene->Preprocess - [30.4%] [avg time: 12.405 ms] [avg calls per frame: 1]
| video encoding and uploading - [68.1%] [avg time: 27.788 ms] [avg calls per frame: 1] [children: 8.19%] [unaccounted: 59.9%]
| | CopyResource - [0.0785%] [avg time: 0.032 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.319%] [avg time: 0.13 ms] [avg calls per frame: 0]
| | call to encoder - [7.74%] [avg time: 3.157 ms] [avg calls per frame: 0]
| | sending stuff out - [0.049%] [avg time: 0.02 ms] [avg calls per frame: 0]
==============================================================
it appears that you're now having a lot less frame lags.. things you can do to further eliminate the fame lags are downscaling your output resolution. punting obs threads on a higher priority from advanced options and obs.exe from task manager. you could also overclock your CPU to gain more performance and less frame lags.

pausing or closing your stream when streaming would also help.

if none of the above helps at at all post a link to your channel so we can analyze the VODs.
 

dodgepong

Administrator
Community Helper
You're streaming at a pretty high resolution for that CPU, imo. Try reducing the base resolution to 1280x800 or less.
 

Krazy

Town drunk
If at all possible avoid using monitor capture entirely, stick to just Game Capture. I think you will need to downscale your resolution as suggested above, though. You really need to get your frame times down and your processor seems to be overloaded with your current settings.
 

TimmyShire

New Member
Hi, sorry to thread steal.

I had the same choppyness and lag as the OP, so I've started messing around with the various settings (quality balance, base resolution etc).

However, when I set the base resolution to one lower than the resolution I am playing at (1080p) it simply zooms into the video picture rather than fitting the screen properly. Below are a couple of examples at different resolutions.

http://www.twitch.tv/timmyshire/b/356750752 (540p, maybe less)
http://www.twitch.tv/timmyshire/b/356726544 (720p I think)

Then when I downscale the resolution instead, it doesn't fill the whole Twitch screen. Though admittedly I'm not sure what resolution I was running that at and have since deleted it. I can try again, however, it needs be.

Am I doing something wrong?
 

dodgepong

Administrator
Community Helper
If you change your base resolution, you will have to resize the input to fit inside the smaller viewing area. Right click the source and say Fit to Screen to do this easily, or select it and press Ctrl+F.
 
Top