Question / Help Tweaking settings?

Phantomere

New Member
Hi everyone! I realize that this is my first post, but I wanted to get my stream settings done right. I'm relatively new to actually streaming so I've just been settling myself in. The problem I'm having is that OBS is only picking up ~30fps. Especially during high motion scenes, say for example a team fight in League of Legends, the stream might just flat out freeze for a while. The sound would keep going but there would be no motion on the stream. In-game everything runs fine, but the stream quality suffers, and when I look at how many frames OBS is picking up, it's usually at around 30. Given my pc and net specs, I should be able to run+stream at the same time. I have tried adjusting the quality balance, downscaling to 720p, and of course changing the FPS setting.

Running on an i5-3570k, 8GB RAM, Radeon 7970 Iceq x2 edition. All drivers should be up to date.

Here is one of my logs:
Code:
02:22:35: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
02:22:35: -------------------------------
02:22:35: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
02:22:35: CPU Speed: 3400MHz
02:22:35: Physical Memory:  4095MB Total, 4095MB Free
02:22:35: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
02:22:35: monitor 1: pos={0, 0}, size={1920, 1080}
02:22:35: monitor 2: pos={1920, 0}, size={1280, 1024}
02:22:35: Windows Version: 6.1 Build 7601 S
02:22:35: Aero is Enabled
02:22:35: -------------------------------
02:22:35: OBS Modules:
02:22:35: Base Address     Module
02:22:35: 013E0000         OBS.exe
02:22:35: 60200000         OBSApi.dll
02:22:35: 63160000         DShowPlugin.dll
02:22:35: 73D10000         GraphicsCapture.dll
02:22:35: 63310000         NoiseGate.dll
02:22:35: 63140000         PSVPlugin.dll
02:22:35: ------------------------------------------
02:22:35: Adapter 1
02:22:35:   Video Adapter: AMD Radeon HD 7900 Series
02:22:35:   Video Adapter Dedicated Video Memory: 3202543616
02:22:35:   Video Adapter Shared System Memory: 4002709504
02:22:35: =====Stream Start: 2013-08-09, 02:22:35===============================================
02:22:35:   Multithreaded optimizations: Off
02:22:35:   Base resolution: 1920x1080
02:22:35:   Output resolution: 1280x720
02:22:35: ------------------------------------------
02:22:35: Loading up D3D10...
02:22:35: Playback device Default
02:22:35: ------------------------------------------
02:22:35: Using desktop audio input: Speakers (3- Bose USB Audio)
02:22:35: Using 5.1 surround speaker setup
02:22:35: ------------------------------------------
02:22:35: Using auxilary audio input: Microphone (5- Logitech G35 Headset)
02:22:35: ------------------------------------------
02:22:35: Audio Encoding: AAC
02:22:35:     bitrate: 160
02:22:35: Using text output
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using graphics capture
02:22:35: Using Monitor Capture
02:22:35: Using bitmap image
02:22:35: Using graphics capture
02:22:35: ------------------------------------------
02:22:35: Video Encoding: x264
02:22:35:     fps: 120
02:22:35:     width: 1280, height: 720
02:22:35:     preset: veryfast
02:22:35:     CBR: no
02:22:35:     CFR: no
02:22:35:     max bitrate: 4000
02:22:35:     buffer size: 4000
02:22:35:     quality: 8
02:22:35: ------------------------------------------
02:22:36: SharedTexCapture hooked
02:22:37: Using RTMP service: Twitch / Justin.tv
02:22:37:   Server selection: rtmp://live.justin.tv/app
02:22:38: SO_SNDBUF was at 8192
02:22:38: SO_SNDBUF is now 65536
02:23:07: GraphicsCaptureSource::NewCapture:  eliminating old capture
02:23:07: SharedTexCapture hooked
02:29:39: GraphicsCaptureSource::NewCapture:  eliminating old capture
02:29:39: SharedTexCapture hooked
02:41:57: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
02:49:54: GraphicsCaptureSource::NewCapture:  eliminating old capture
02:49:54: SharedTexCapture hooked
03:08:28: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 524288
03:40:40: Capture window 0x00860CDE invalid or changing, terminating capture
03:40:40: Capture window 0x00860CDE invalid or changing, terminating capture
03:43:21: SharedTexCapture hooked
03:48:27: GraphicsCaptureSource::NewCapture:  eliminating old capture
03:48:27: SharedTexCapture hooked
03:53:15: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 1048576
04:16:21: GraphicsCaptureSource::NewCapture:  eliminating old capture
04:16:21: SharedTexCapture hooked
04:25:27: GraphicsCaptureSource::NewCapture:  eliminating old capture
04:25:27: SharedTexCapture hooked
04:49:39: GraphicsCaptureSource::NewCapture:  eliminating old capture
04:49:39: SharedTexCapture hooked
05:02:20: GraphicsCaptureSource::NewCapture:  eliminating old capture
05:02:20: SharedTexCapture hooked
05:30:31: Capture window 0x021210AE invalid or changing, terminating capture
05:30:31: Capture window 0x021210AE invalid or changing, terminating capture
05:34:17: SharedTexCapture hooked
05:35:58: Exit signal received, terminating capture
05:35:59: Capture window 0x021910AE invalid or changing, terminating capture
05:37:15: Total frames rendered: 320197, number of frames that lagged: 320197 (100.00%) (it's okay for some frames to lag)
05:37:15: RTMPPublisher::SocketLoop: Aborting due to bStopping
05:37:15: Number of times waited to send: 15, Waited for a total of 61455 bytes
05:37:15: Number of b-frames dropped: 89 (0.028%), Number of p-frames dropped: 230 (0.072%), Total 319 (0.1%)
05:37:15: =====Stream End: 2013-08-09, 05:37:15=================================================

As for connection speed, I do not believe that there should be a problem streaming at even 1080p, but I have downscaled it to 720p for faster speeds (Both for me and viewers).
2892366108.png


Any insight on this would be greatly appreciated! Not getting 60fps even when downscaled is quite frustrating! Just let me know if there's any additional information needed.
 

Kharay

Member
Please read through my guide (signature) carefully; one step at a time. You've done something weird to OBS' configuration because 100% of your frames are lagging. This should not be happening on your hardware. It does however help to explain the phenomenon you're experiencing.

As far as LoL specifically goes -- You'll want to set up 2 scenes; one Window Capture of its lobby window and one Game Capture of its match window. There's a plugin in the Work in Progress subforum here on obsproject.com called Simple Scene Switcher that will allow you to switch between the 2 scenes automatically.
 

Phantomere

New Member
Alright, so I've followed the startup guide. Everything was reset, so I reconfigured the settings according to the guide. Now I'm able to hit around 60fps during desktop and other low-motion windows, but when I go in-game, my fps dips considerably, going to around 18fps or so. Again, I tested by spectating a random game in League.

Here's the log from the stream session:
Code:
16:06:23: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
16:06:23: -------------------------------
16:06:23: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
16:06:23: CPU Speed: 3400MHz
16:06:23: Physical Memory:  4095MB Total, 4091MB Free
16:06:23: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
16:06:23: monitor 1: pos={0, 0}, size={1920, 1080}
16:06:23: monitor 2: pos={1920, 0}, size={1280, 1024}
16:06:23: Windows Version: 6.1 Build 7601 S
16:06:23: Aero is Enabled
16:06:23: -------------------------------
16:06:23: OBS Modules:
16:06:23: Base Address     Module
16:06:23: 00160000         OBS.exe
16:06:23: 5EED0000         OBSApi.dll
16:06:23: 70480000         DShowPlugin.dll
16:06:23: 70460000         GraphicsCapture.dll
16:06:23: 70430000         NoiseGate.dll
16:06:23: 70410000         PSVPlugin.dll
16:06:23: ------------------------------------------
16:06:23: Adapter 1
16:06:23:   Video Adapter: AMD Radeon HD 7900 Series
16:06:23:   Video Adapter Dedicated Video Memory: 3202543616
16:06:23:   Video Adapter Shared System Memory: 4002707456
16:06:23: =====Stream Start: 2013-08-10, 16:06:23===============================================
16:06:23:   Multithreaded optimizations: On
16:06:23:   Base resolution: 1920x1080
16:06:23:   Output resolution: 1280x720
16:06:23: ------------------------------------------
16:06:23: Loading up D3D10...
16:06:23: Playback device Default
16:06:23: ------------------------------------------
16:06:23: Using desktop audio input: Speakers (3- Bose USB Audio)
16:06:23: Using 5.1 surround speaker setup
16:06:23: ------------------------------------------
16:06:23: Using auxilary audio input: Microphone (5- Logitech G35 Headset)
16:06:23: ------------------------------------------
16:06:23: Audio Encoding: AAC
16:06:23:     bitrate: 128
16:06:23: ------------------------------------------
16:06:23: Video Encoding: x264
16:06:23:     fps: 60
16:06:23:     width: 1280, height: 720
16:06:23:     preset: veryfast
16:06:23:     CBR: yes
16:06:23:     CFR: no
16:06:23:     max bitrate: 4000
16:06:23: ------------------------------------------
16:06:24: Using RTMP service: Twitch / Justin.tv
16:06:24:   Server selection: rtmp://live.justin.tv/app
16:06:26: SO_SNDBUF was at 8192
16:06:26: SO_SNDBUF is now 65536
16:07:48: Total frames rendered: 5078, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
16:07:48: RTMPPublisher::SocketLoop: Aborting due to bStopping
16:07:48: Number of times waited to send: 0, Waited for a total of 0 bytes
16:07:48: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
16:07:48: =====Stream End: 2013-08-10, 16:07:48=================================================
16:07:49: =====Stream Start: 2013-08-10, 16:07:49===============================================
16:07:49:   Multithreaded optimizations: On
16:07:49:   Base resolution: 1920x1080
16:07:49:   Output resolution: 1280x720
16:07:49: ------------------------------------------
16:07:49: Loading up D3D10...
16:07:49: Playback device Default
16:07:49: ------------------------------------------
16:07:49: Using desktop audio input: Speakers (3- Bose USB Audio)
16:07:49: Using 5.1 surround speaker setup
16:07:49: ------------------------------------------
16:07:49: Using auxilary audio input: Microphone (5- Logitech G35 Headset)
16:07:49: ------------------------------------------
16:07:49: Audio Encoding: AAC
16:07:49:     bitrate: 128
16:07:49: ------------------------------------------
16:07:49: Video Encoding: x264
16:07:49:     fps: 60
16:07:49:     width: 1280, height: 720
16:07:49:     preset: veryfast
16:07:49:     CBR: yes
16:07:49:     CFR: no
16:07:49:     max bitrate: 4000
16:07:49: ------------------------------------------
16:10:24: Using text output
16:11:27: ------------------------------------------
16:11:27:     device: USB2.0 Camera,
16:11:27:     device id \\?\usb#vid_1e4e&pid_0102&mi_00#6&3b8ff2cd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
16:11:27:     chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-333333, fourCC: 'YUY2'
16:11:27:     audio device: Disable,
16:11:27:     audio device id Disabled,
16:11:27: 
16:11:27: Using directshow input
16:14:28: Using Window Capture
16:14:42: Using Monitor Capture
Warning -- Capture BitBlt failed..  just so you know
16:20:03: Using graphics capture
16:20:03: SharedTexCapture hooked
16:26:09: Total frames rendered: 58316, number of frames that lagged: 4357 (7.47%) (it's okay for some frames to lag)
16:26:10: =====Stream End: 2013-08-10, 16:26:10=================================================
16:26:12: =====Stream Start: 2013-08-10, 16:26:12===============================================
16:26:12:   Multithreaded optimizations: On
16:26:12:   Base resolution: 866x797
16:26:12:   Output resolution: 576x530
16:26:12: ------------------------------------------
16:26:12: Loading up D3D10...
16:26:12: Playback device Default
16:26:12: ------------------------------------------
16:26:12: Using desktop audio input: Speakers (3- Bose USB Audio)
16:26:12: Using 5.1 surround speaker setup
16:26:12: ------------------------------------------
16:26:12: Using auxilary audio input: Microphone (5- Logitech G35 Headset)
16:26:12: ------------------------------------------
16:26:12: Audio Encoding: AAC
16:26:12:     bitrate: 128
16:26:12: Using text output
16:26:12: ------------------------------------------
16:26:12:     device: USB2.0 Camera,
16:26:12:     device id \\?\usb#vid_1e4e&pid_0102&mi_00#6&3b8ff2cd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
16:26:12:     chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-333333, fourCC: 'YUY2'
16:26:12:     audio device: Disable,
16:26:12:     audio device id Disabled,
16:26:12: 
16:26:13: Using directshow input
16:26:13: Using graphics capture
16:26:13: Using Monitor Capture
16:26:13: ------------------------------------------
16:26:13: Video Encoding: x264
16:26:13:     fps: 60
16:26:13:     width: 576, height: 530
16:26:13:     preset: veryfast
16:26:13:     CBR: yes
16:26:13:     CFR: no
16:26:13:     max bitrate: 4000
16:26:13: ------------------------------------------
16:26:15: Using RTMP service: Twitch / Justin.tv
16:26:15:   Server selection: rtmp://live.justin.tv/app
16:26:16: SO_SNDBUF was at 8192
16:26:16: SO_SNDBUF is now 65536
16:26:19: Total frames rendered: 303, number of frames that lagged: 1 (0.33%) (it's okay for some frames to lag)
16:26:19: RTMPPublisher::SocketLoop: Aborting due to bStopping
16:26:19: Number of times waited to send: 0, Waited for a total of 0 bytes
16:26:19: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
16:26:20: =====Stream End: 2013-08-10, 16:26:20=================================================
16:26:34: =====Stream Start: 2013-08-10, 16:26:34===============================================
16:26:34:   Multithreaded optimizations: On
16:26:34:   Base resolution: 1920x1080
16:26:34:   Output resolution: 1280x720
16:26:34: ------------------------------------------
16:26:34: Loading up D3D10...
16:26:34: Playback device Default
16:26:34: ------------------------------------------
16:26:34: Using desktop audio input: Speakers (3- Bose USB Audio)
16:26:34: Using 5.1 surround speaker setup
16:26:34: ------------------------------------------
16:26:34: Using auxilary audio input: Microphone (5- Logitech G35 Headset)
16:26:34: ------------------------------------------
16:26:34: Audio Encoding: AAC
16:26:34:     bitrate: 128
16:26:34: Using text output
16:26:34: ------------------------------------------
16:26:34:     device: USB2.0 Camera,
16:26:34:     device id \\?\usb#vid_1e4e&pid_0102&mi_00#6&3b8ff2cd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
16:26:34:     chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-333333, fourCC: 'YUY2'
16:26:34:     audio device: Disable,
16:26:34:     audio device id Disabled,
16:26:34: 
16:26:35: Using directshow input
16:26:35: Using graphics capture
16:26:35: Using Monitor Capture
16:26:35: ------------------------------------------
16:26:35: Video Encoding: x264
16:26:35:     fps: 60
16:26:35:     width: 1280, height: 720
16:26:35:     preset: veryfast
16:26:35:     CBR: yes
16:26:35:     CFR: no
16:26:35:     max bitrate: 4000
16:26:35: ------------------------------------------
16:26:36: Using RTMP service: Twitch / Justin.tv
16:26:36:   Server selection: rtmp://live.justin.tv/app
16:26:38: SO_SNDBUF was at 8192
16:26:38: SO_SNDBUF is now 65536
16:27:13: Using text output
16:27:16: Total frames rendered: 1490, number of frames that lagged: 406 (27.25%) (it's okay for some frames to lag)
16:27:16: RTMPPublisher::SocketLoop: Aborting due to bStopping
16:27:16: Number of times waited to send: 2, Waited for a total of 4578 bytes
16:27:16: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
16:27:17: =====Stream End: 2013-08-10, 16:27:17=================================================
16:27:31: 
16:27:31: Profiler results:
16:27:31: 
16:27:31: ==============================================================
16:27:31: frame - [100%] [avg time: 7.202 ms (cpu time: avg 3.273 ms, total 213363 ms)] [avg calls per frame: 1] [children: 99.9%] [unaccounted: 0.0694%]
16:27:31: | frame preprocessing and rendering - [83.2%] [avg time: 5.989 ms (cpu time: avg 2.256 ms, total 147093 ms)] [avg calls per frame: 1] [children: 74.8%] [unaccounted: 8.32%]
16:27:31: | | scene->Preprocess - [74.8%] [avg time: 5.39 ms (cpu time: avg 1.871 ms, total 121993 ms)] [avg calls per frame: 1]
16:27:31: | video encoding and uploading - [16.8%] [avg time: 1.208 ms (cpu time: avg 1.013 ms, total 66082 ms)] [avg calls per frame: 1] [children: 16.5%] [unaccounted: 0.319%]
16:27:31: | | flush - [2.92%] [avg time: 0.21 ms (cpu time: avg 0.054 ms, total 3525.62 ms)] [avg calls per frame: 1]
16:27:31: | | CopyResource - [0.0972%] [avg time: 0.007 ms (cpu time: avg 0.005 ms, total 343.202 ms)] [avg calls per frame: 0]
16:27:31: | | conversion to 4:2:0 - [0.0972%] [avg time: 0.007 ms (cpu time: avg 0.005 ms, total 327.602 ms)] [avg calls per frame: 0]
16:27:31: | | call to encoder - [13.3%] [avg time: 0.957 ms (cpu time: avg 0.939 ms, total 61214.8 ms)] [avg calls per frame: 0]
16:27:31: | | sending stuff out - [0.0555%] [avg time: 0.004 ms (cpu time: avg 0 ms, total 31.2 ms)] [avg calls per frame: 0]
16:27:31: | Convert444Threads - [523%] [avg time: 37.688 ms (cpu time: avg 0.913 ms, total 59576.8 ms)] [avg calls per frame: 1]
16:27:31: ==============================================================
16:27:31:


EDIT: I messed around with some of the sources and as soon as I turn off my desktop capture the frames skyrocket back up. I was using monitor capture. I know it wasn't recommended but I found no other way to capture the desktop. Is there a way to capture the desktop without sacrificing in-game quality?
 

Kharay

Member
Yes, don't capture the desktop. Which is no joke. I don't see why people would want to share their desktop with the world like that.

If you absolutely must do it, disable Aero. But, Window Capture will start behaving weird when you do. So, either Monitor Capture the lobby and the desktop (with Aero Disabled) or drop the Monitor Capture completely and Window Capture the lobby (with Aero Enabled).

Also, do not use Monitor Capture as a Global Source (in case you did). A Global Source is always active. If you absolutely must use Monitor Capture, please add it as a regular source. So it does not cost you any performance while your game is active.
 

alpinlol

Active Member
yes disable aero

use scene switcher plugin

and go with 2 scenes monitor for literally desktop only and maybe browser and 2nd scene with game capture but since you are about to stream a game i dont see a real reason why you want to stream your desktop... ohh and another way would be windows 8

also use the 64bit version of obs for the few % performance improvement it might give (get everything which might improve ;D)
 
Top