Bug Report Dropped Frames/Low FPS/Connection Crash

Lanubya

New Member
Hello,

I really like this programm but I have some issues and I guess its a problem of my settings.
I try to stream League of Legends on own3d.tv.
If I activate the stream my ingame FPS are about 260 but OBS only transfer 20 FPS.
Sometimes the connection crashes randomly (everytime under 1 hour streaming time in a row) and sometimes are dropping frames randomly.
Today League of Legends got a new patch and now OBS cannot find the game everytime (via game capture).
What am I doing wrong?

Internet connection:
Down: 51,4 Mbit/s
Up: 10,0 Mbit/s

Sorry for the bad englisch :D


Code:
Open Broadcaster Software v0.448a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
CPU Speed: 3510MHz
Physical Memory:  32723MB Total, 26576MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 570
  Video Adapeter Dedicated Video Memory: 1293352960
  Video Adapeter Shared System Memory: 2952937472
Send Buffer Size: 32000
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Logitech G930 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
   device: Logitech HD Webcam C270, chosen type: RGB24, usingFourCC: false, res: 320x240 - 320x240, fps: 5-30, fourCC: 00000000

Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1680, height: 1050
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 4000
    buffer size: 1500
------------------------------------------
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Total frames rendered: 3697, number of frames that lagged: 1276 (34.51%) (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: 32000
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Logitech G930 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
   device: Logitech HD Webcam C270, chosen type: RGB24, usingFourCC: false, res: 320x240 - 320x240, fps: 5-30, fourCC: 00000000

Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1680, height: 1050
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 4000
    buffer size: 1500
------------------------------------------
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 0
Total frames rendered: 18816, number of frames that lagged: 18123 (96.32%) (it's okay for some frames to lag)
Number of b-frames dropped: 185, Number of p-frames dropped: 0
=====Stream End=======================================================================
Send Buffer Size: 11680
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Logitech G930 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1680, height: 1050
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 4000
    buffer size: 1500
------------------------------------------
   device: Logitech HD Webcam C270, chosen type: RGB24, usingFourCC: false, res: 320x240 - 320x240, fps: 5-30, fourCC: 00000000

Total frames rendered: 11208, number of frames that lagged: 11208 (100.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 105, Number of p-frames dropped: 0
=====Stream End=======================================================================
Send Buffer Size: 11680
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Logitech G930 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
   device: Logitech HD Webcam C270, chosen type: RGB24, usingFourCC: false, res: 320x240 - 320x240, fps: 5-30, fourCC: 00000000

------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1680, height: 1050
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 4000
    buffer size: 1500
------------------------------------------
Total frames rendered: 93350, number of frames that lagged: 93350 (100.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 234, Number of p-frames dropped: 0
=====Stream End=======================================================================
Send Buffer Size: 11680
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Logitech G930 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
   device: Logitech HD Webcam C270, chosen type: RGB24, usingFourCC: false, res: 320x240 - 320x240, fps: 5-30, fourCC: 00000000

------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1680, height: 1050
    quality: 10
    preset: veryfast
    i444: no
    max bitrate: 4000
    buffer size: 1500
------------------------------------------
Total frames rendered: 10606, number of frames that lagged: 10606 (100.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: 43.22 ms] [avg calls per frame: 1] [children: 99%] [unaccounted: 0.967%]
| scene->Preprocess - [86.2%] [avg time: 37.275 ms] [avg calls per frame: 1]
| video encoding and uploading - [12.8%] [avg time: 5.527 ms] [avg calls per frame: 1] [children: 4.95%] [unaccounted: 7.84%]
| | CopyResource - [0.0255%] [avg time: 0.011 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.00694%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [4.92%] [avg time: 2.126 ms] [avg calls per frame: 0]
==============================================================

Memory Leaks Were Detected.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Fixes from those daily builds are now officially released in 0.452a as well. Not sure if this particular issue (depending on what it is) is covered though
 

Lanubya

New Member
Thanks for the support!
Round 2:
Didn't get a connection crash but the rest remains.

Code:
Open Broadcaster Software v0.452a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
CPU Speed: 3510MHz
Physical Memory:  32723MB Total, 28223MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 570
  Video Adapter Dedicated Video Memory: 1293352960
  Video Adapter Shared System Memory: 2952937472
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1680x1050
  Output resolution: 1680x1050
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Logitech G930 Headset)
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
   device: Logitech HD Webcam C270, chosen type: RGB24, usingFourCC: false, res: 320x240 - 320x240, fps: 5-30, fourCC: 00000000

------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1680, height: 1050
    preset: veryfast
    CBR: no
    max bitrate: 4000
    buffer size: 1500
    quality: 10
------------------------------------------
Using Send Buffer Size: 11680
bufferTime: 2007, outputRateWindowTime: 1000, dropThreshold: 2507
Total frames rendered: 51803, number of frames that lagged: 51609 (99.63%) (it's okay for some frames to lag)
Number of b-frames dropped: 79 (0.051%), Number of p-frames dropped: 129 (0.084%), Total 208 (0.13%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 45.798 ms] [avg calls per frame: 1] [children: 98.9%] [unaccounted: 1.05%]
| scene->Preprocess - [86.9%] [avg time: 39.806 ms] [avg calls per frame: 1]
| video encoding and uploading - [12%] [avg time: 5.51 ms] [avg calls per frame: 1] [children: 5.06%] [unaccounted: 6.97%]
| | CopyResource - [0.0306%] [avg time: 0.014 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.00437%] [avg time: 0.002 ms] [avg calls per frame: 0]
| | call to encoder - [4.97%] [avg time: 2.278 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0502%] [avg time: 0.023 ms] [avg calls per frame: 0]
==============================================================
 

Joe33345

Member
try changing your output fps to 30fps. you're really almost pushing out 1080p at 60fps while trying to play a PC game. That'd be tough on any PC X_X. if your game doesn't show up on game capture then try putting it either in a window or windowed (no border). Capturing fullscreen games are still tough to do nowadays with all of the graphical glitches. :(
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
you only have 0.13% dropped frames total. Barely any frames seem to have dropped. However, your scene it taking way too long to render. Are you capturing your monitor without aero disabled? You have to make sure aero is disabled before using monitor capture (and restart the app if you do disable it). Having aero on can cause issues.

If you're on windows 8, unfortunately it can't be disabled, I have to write a new windows 8 specific version of monitor capture.
 

Lanubya

New Member
Jim said:
Are you capturing your monitor without aero disabled?

No I didn't. This fixed the problem! Thank You - Good Job!
So reasonable dropped frames, low FPS fixed with disabling Aero and with the newest version no connection crashes anymore!

Since OBS can't find League of Legends as a game, I run it on window mode. The "Game Capture" feature is in the experimental phase so I hope sooner or later it will be fixed.

- Thanks again
 

Krazy

Town drunk
For League of Legends you have to set up two scenes.

One with either Window Capture or Monitor Capture for the PVPClient as it uses Adobe AIR and not DirectX to render.
One with Game Capture (for best performance, though you can also do window mode and run LoL in a window). You'll need to load up a game against bots or something and then do a Preview Stream so that OBS will pick up the game.

Then you can just set a hotkey to each scene and swap back and forth between each scene manually. This is how I did it, anyway.

edit: I just noticed you were using 64bit OBS. You need to use 32bit OBS for 32bit games if you decide to try Game Capture like I suggested (just about everything but Minecraft is 64bit).

edit2: I just tried myself and Game Capture still works, even after the new LoL patch
 

Lanubya

New Member
Thanks for your advice, KrazyTrumpeter05.

Well I know how to set up a scene but I didn't know, that OBS has to be the same Bit structure. I will try it tomorrow!
 
Top