Question / Help Help w/ Configuring Stream for CS:GO

CritDev

New Member
Hey guys, I'm CritDev and I've been streaming on Twitch for over 6 months now. I've been having some sporadic FPS while streaming CS:GO. One second it's almost 200, and the next moment it's 50. It jumps back and forth, which really messes with how I play, leading to a lower quality play and lower quality stream.

My current OBS settings are:
CBR is on
CBR padding is on
2500 Max Bitrate

1280x720 resolution downscale
Bilinear Filter
30 FPS
Disable Aero

Use Multithreaded Optimizations
Process Priority Class Normal
Scene Buffering Time 700 ms
veryfast x264 CPU Preset
high x264 Encoding Profile
Keyframe Interval 2
No CFR

Here's my OBS log file:
Code:
17:00:46: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
17:00:46: -------------------------------
17:00:46: CPU Name: Intel(R) Core(TM) i5-3550 CPU @ 3.30GHz
17:00:46: CPU Speed: 3309MHz
17:00:46: Physical Memory:  4095MB Total, 4095MB Free
17:00:46: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
17:00:46: monitor 1: pos={0, 0}, size={1920, 1080}
17:00:46: monitor 2: pos={-1280, 0}, size={1280, 1024}
17:00:46: Windows Version: 6.1 Build 7600 
17:00:46: Aero is Disabled
17:00:46: -------------------------------
17:00:46: OBS Modules:
17:00:46: Base Address     Module
17:00:46: 01300000         OBS.exe
17:00:46: 67F50000         OBSApi.dll
17:00:46: 73810000         DShowPlugin.dll
17:00:46: 73D20000         GraphicsCapture.dll
17:00:46: 73910000         NoiseGate.dll
17:00:46: 737F0000         PSVPlugin.dll
17:00:46: ------------------------------------------
17:00:46: Adapter 1
17:00:46:   Video Adapter: NVIDIA GeForce GTX 560 Ti  
17:00:46:   Video Adapter Dedicated Video Memory: 1024917504
17:00:46:   Video Adapter Shared System Memory: 3221106688
17:00:46:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
17:00:46:   Video Adapter Output 2: pos={-1280, 0}, size={1280, 1024}, attached=true
17:00:46: =====Stream Start: 2014-01-29, 17:00:46===============================================
17:00:46:   Multithreaded optimizations: On
17:00:46:   Base resolution: 1920x1080
17:00:46:   Output resolution: 1280x720
17:00:46: ------------------------------------------
17:00:46: Loading up D3D10 on NVIDIA GeForce GTX 560 Ti (Adapter 1)...
17:00:49: ------------------------------------------
17:00:49: Audio Format: 48000hz
17:00:49: Playback device Default
17:00:49: ------------------------------------------
17:00:49: Using desktop audio input: Speakers (USB PnP Sound Device)
17:00:49: ------------------------------------------
17:00:49: Using auxilary audio input: Microphone (USB PnP Sound Device)
17:00:49: ------------------------------------------
17:00:49: Audio Encoding: AAC
17:00:49:     bitrate: 128
17:00:50: Using bitmap image
17:00:51: ------------------------------------------
17:00:51:     device: Logitech HD Pro Webcam C920,
17:00:51:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&29f63464&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
17:00:51:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000
17:00:51:     use buffering: false - 0, fourCC: 'I420'
17:00:51:     audio device: Disable,
17:00:51:     audio device id Disabled,
17:00:51: 
17:00:52: Using directshow input
17:00:53: Using graphics capture
17:00:53: Scene buffering time set to 700
17:00:53: ------------------------------------------
17:00:53: Video Encoding: x264
17:00:53:     fps: 30
17:00:53:     width: 1280, height: 720
17:00:53:     preset: veryfast
17:00:53:     profile: high
17:00:53:     keyint: 60
17:00:53:     CBR: yes
17:00:53:     CFR: no
17:00:53:     max bitrate: 2500
17:00:53:     buffer size: 2500
17:00:53: ------------------------------------------
17:00:53: MMDeviceAudioSource: Frequency for device 'Speakers (USB PnP Sound Device)' is 352800, samples per sec is 44100
17:00:53: MMDeviceAudioSource: Frequency for device 'Microphone (USB PnP Sound Device)' is 176400, samples per sec is 44100
17:00:55: Using RTMP service: Twitch / Justin.tv
17:00:55:   Server selection: rtmp://live-dfw.justin.tv/app
17:00:55:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
17:00:55: Completed handshake with rtmp://live-dfw.justin.tv/app in 169 ms.
17:00:56: SO_SNDBUF was at 8192
17:00:56: SO_SNDBUF is now 65536
17:00:58: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 335872)
17:01:02: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
17:01:44: SharedTexCapture hooked
17:05:33: Capture window 0x000202F6 invalid or changing, terminating capture
17:06:12: Total frames encoded: 9548, total frames duplicated: 60 (0.63%)
17:06:12: Total frames rendered: 9538, number of late frames: 5 (0.05%) (it's okay for some frames to be late)
17:06:12: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
17:06:12: Average send payload: 7636 bytes, average send interval: 23 ms
17:06:12: Number of times waited to send: 0, Waited for a total of 0 bytes
17:06:12: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:06:12: Number of bytes sent: 102889579
17:06:12: 
17:06:12: Profiler time results:
17:06:12: 
17:06:12: ==============================================================
17:06:12: video thread frame - [100%] [avg time: 3.066 ms] [children: 56.9%] [unaccounted: 43.1%]
17:06:12: | scene->Preprocess - [42.6%] [avg time: 1.306 ms]
17:06:12: | GPU download and conversion - [14.3%] [avg time: 0.438 ms] [children: 11.9%] [unaccounted: 2.38%]
17:06:12: | | flush - [9.13%] [avg time: 0.28 ms]
17:06:12: | | CopyResource - [2.64%] [avg time: 0.081 ms]
17:06:12: | | conversion to 4:2:0 - [0.13%] [avg time: 0.004 ms]
17:06:12: Convert444Threads - [100%] [avg time: 0.541 ms] [children: 98.7%] [unaccounted: 1.29%]
17:06:12: | Convert444toNV12 - [98.7%] [avg time: 0.534 ms]
17:06:12: encoder thread frame - [100%] [avg time: 1.013 ms]
17:06:12: ==============================================================
17:06:12: 
17:06:12: 
17:06:12: Profiler CPU results:
17:06:12: 
17:06:12: ==============================================================
17:06:12: video thread frame - [cpu time: avg 1.462 ms, total 13946.5 ms] [avg calls per frame: 1]
17:06:12: | scene->Preprocess - [cpu time: avg 1.054 ms, total 10062.1 ms] [avg calls per frame: 1]
17:06:12: | GPU download and conversion - [cpu time: avg 0.063 ms, total 608.401 ms] [avg calls per frame: 1]
17:06:12: | | flush - [cpu time: avg 0.027 ms, total 265.201 ms] [avg calls per frame: 1]
17:06:12: | | CopyResource - [cpu time: avg 0.013 ms, total 124.8 ms] [avg calls per frame: 1]
17:06:12: | | conversion to 4:2:0 - [cpu time: avg 0.003 ms, total 31.2 ms] [avg calls per frame: 1]
17:06:12: Convert444Threads - [cpu time: avg 0.518 ms, total 9859.26 ms] [avg calls per frame: 2]
17:06:12: | Convert444toNV12 - [cpu time: avg 0.513 ms, total 9781.26 ms] [avg calls per frame: 2]
17:06:12: encoder thread frame - [cpu time: avg 0.319 ms, total 3042.02 ms] [avg calls per frame: 1]
17:06:12: ==============================================================
17:06:12: 
17:06:12: =====Stream End: 2014-01-29, 17:06:12=================================================
17:06:13: =====Stream Start: 2014-01-29, 17:06:13===============================================
17:06:13:   Multithreaded optimizations: On
17:06:13:   Base resolution: 1920x1080
17:06:13:   Output resolution: 1280x720
17:06:13: ------------------------------------------
17:06:13: Loading up D3D10 on NVIDIA GeForce GTX 560 Ti (Adapter 1)...
17:06:13: ------------------------------------------
17:06:13: Audio Format: 48000hz
17:06:13: Playback device Default
17:06:13: ------------------------------------------
17:06:13: Using desktop audio input: Speakers (USB PnP Sound Device)
17:06:13: ------------------------------------------
17:06:13: Using auxilary audio input: Microphone (USB PnP Sound Device)
17:06:13: ------------------------------------------
17:06:13: Audio Encoding: AAC
17:06:13:     bitrate: 128
17:06:13: Using bitmap image
17:06:13: ------------------------------------------
17:06:13:     device: Logitech HD Pro Webcam C920,
17:06:13:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&29f63464&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
17:06:13:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000
17:06:13:     use buffering: false - 0, fourCC: 'I420'
17:06:13:     audio device: Disable,
17:06:13:     audio device id Disabled,
17:06:13: 
17:06:13: Using directshow input
17:06:13: Using graphics capture
17:06:13: Scene buffering time set to 700
17:06:13: ------------------------------------------
17:06:13: Video Encoding: x264
17:06:13:     fps: 30
17:06:13:     width: 1280, height: 720
17:06:13:     preset: veryfast
17:06:13:     profile: high
17:06:13:     keyint: 60
17:06:13:     CBR: yes
17:06:13:     CFR: no
17:06:13:     max bitrate: 2500
17:06:13:     buffer size: 2500
17:06:13: ------------------------------------------
17:06:13: MMDeviceAudioSource: Frequency for device 'Speakers (USB PnP Sound Device)' is 352800, samples per sec is 44100
17:06:13: MMDeviceAudioSource: Frequency for device 'Microphone (USB PnP Sound Device)' is 176400, samples per sec is 44100
17:06:15: Using RTMP service: Twitch / Justin.tv
17:06:15:   Server selection: rtmp://live-dfw.justin.tv/app
17:06:15:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
17:06:16: Completed handshake with rtmp://live-dfw.justin.tv/app in 164 ms.
17:06:16: SO_SNDBUF was at 8192
17:06:16: SO_SNDBUF is now 65536
17:06:18: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 335872)
17:06:19: SharedTexCapture hooked
17:06:21: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
17:06:27: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 335872)
17:09:42: Total frames encoded: 6242, total frames duplicated: 2 (0.03%)
17:09:42: Total frames rendered: 6247, number of late frames: 1 (0.02%) (it's okay for some frames to be late)
17:09:43: RTMPPublisher::SocketLoop: Graceful loop exit
17:09:43: Average send payload: 7299 bytes, average send interval: 22 ms
17:09:43: Number of times waited to send: 0, Waited for a total of 0 bytes
17:09:43: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:09:43: Number of bytes sent: 67335163
17:09:43: 
17:09:43: Profiler time results:
17:09:43: 
17:09:43: ==============================================================
17:09:43: video thread frame - [100%] [avg time: 3.161 ms] [children: 54%] [unaccounted: 46%]
17:09:43: | scene->Preprocess - [39.7%] [avg time: 1.256 ms]
17:09:43: | GPU download and conversion - [14.3%] [avg time: 0.451 ms] [children: 12.5%] [unaccounted: 1.74%]
17:09:43: | | flush - [9.27%] [avg time: 0.293 ms]
17:09:43: | | CopyResource - [3.1%] [avg time: 0.098 ms]
17:09:43: | | conversion to 4:2:0 - [0.158%] [avg time: 0.005 ms]
17:09:43: Convert444Threads - [100%] [avg time: 0.535 ms] [children: 98.7%] [unaccounted: 1.31%]
17:09:43: | Convert444toNV12 - [98.7%] [avg time: 0.528 ms]
17:09:43: encoder thread frame - [100%] [avg time: 0.885 ms]
17:09:43: ==============================================================
17:09:43: 
17:09:43: 
17:09:43: Profiler CPU results:
17:09:43: 
17:09:43: ==============================================================
17:09:43: video thread frame - [cpu time: avg 1.278 ms, total 7987.25 ms] [avg calls per frame: 1]
17:09:43: | scene->Preprocess - [cpu time: avg 0.869 ms, total 5428.83 ms] [avg calls per frame: 1]
17:09:43: | GPU download and conversion - [cpu time: avg 0.069 ms, total 436.804 ms] [avg calls per frame: 1]
17:09:43: | | flush - [cpu time: avg 0.027 ms, total 171.601 ms] [avg calls per frame: 1]
17:09:43: | | CopyResource - [cpu time: avg 0.017 ms, total 109.201 ms] [avg calls per frame: 1]
17:09:43: | | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 15.6 ms] [avg calls per frame: 1]
17:09:43: Convert444Threads - [cpu time: avg 0.517 ms, total 6442.84 ms] [avg calls per frame: 2]
17:09:43: | Convert444toNV12 - [cpu time: avg 0.516 ms, total 6427.24 ms] [avg calls per frame: 2]
17:09:43: encoder thread frame - [cpu time: avg 0.223 ms, total 1388.41 ms] [avg calls per frame: 1]
17:09:43: ==============================================================
17:09:43: 
17:09:43: =====Stream End: 2014-01-29, 17:09:43=================================================
17:09:43: =====Stream Start: 2014-01-29, 17:09:43===============================================
17:09:43:   Multithreaded optimizations: On
17:09:43:   Base resolution: 1920x1080
17:09:43:   Output resolution: 1280x720
17:09:43: ------------------------------------------
17:09:43: Loading up D3D10 on NVIDIA GeForce GTX 560 Ti (Adapter 1)...
17:09:43: ------------------------------------------
17:09:43: Audio Format: 48000hz
17:09:43: Playback device Default
17:09:43: ------------------------------------------
17:09:43: Using desktop audio input: Speakers (USB PnP Sound Device)
17:09:43: ------------------------------------------
17:09:43: Using auxilary audio input: Microphone (USB PnP Sound Device)
17:09:43: ------------------------------------------
17:09:43: Audio Encoding: AAC
17:09:43:     bitrate: 128
17:09:43: Using bitmap image
17:09:43: ------------------------------------------
17:09:43:     device: Logitech HD Pro Webcam C920,
17:09:43:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&29f63464&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
17:09:43:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000
17:09:43:     use buffering: false - 0, fourCC: 'I420'
17:09:43:     audio device: Disable,
17:09:43:     audio device id Disabled,
17:09:43: 
17:09:43: Using directshow input
17:09:44: Using graphics capture
17:09:44: Scene buffering time set to 700
17:09:44: ------------------------------------------
17:09:44: Video Encoding: x264
17:09:44:     fps: 30
17:09:44:     width: 1280, height: 720
17:09:44:     preset: veryfast
17:09:44:     profile: high
17:09:44:     keyint: 60
17:09:44:     CBR: yes
17:09:44:     CFR: no
17:09:44:     max bitrate: 2500
17:09:44:     buffer size: 2500
17:09:44: ------------------------------------------
17:09:44: MMDeviceAudioSource: Frequency for device 'Speakers (USB PnP Sound Device)' is 352800, samples per sec is 44100
17:09:44: MMDeviceAudioSource: Frequency for device 'Microphone (USB PnP Sound Device)' is 176400, samples per sec is 44100
17:09:44: SharedTexCapture hooked
17:09:46: Using RTMP service: Twitch / Justin.tv
17:09:46:   Server selection: rtmp://live-dfw.justin.tv/app
17:09:46:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
17:09:46: Completed handshake with rtmp://live-dfw.justin.tv/app in 158 ms.
17:09:47: SO_SNDBUF was at 8192
17:09:47: SO_SNDBUF is now 65536
17:09:48: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 7754 / 335872)
17:14:24: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
17:21:04: Capture window 0x000304A8 invalid or changing, terminating capture
17:24:17: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:24:17:   New Scene
17:24:59: Using Monitor Capture
17:44:06: SharedTexCapture hooked
17:44:07: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
17:44:07:   New Scene
17:47:44: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:47:44: SharedTexCapture hooked
17:50:47: Capture window 0x000B100E invalid or changing, terminating capture
17:51:16: SharedTexCapture hooked
17:53:04: GraphicsCaptureSource::NewCapture:  eliminating old capture
17:53:04: SharedTexCapture hooked
17:53:11: Capture window 0x00101012 invalid or changing, terminating capture
17:53:28: SharedTexCapture hooked
18:56:36: Using text output
22:00:27: Total frames encoded: 523278, total frames duplicated: 198 (0.04%)
22:00:27: Total frames rendered: 523272, number of late frames: 5 (0.00%) (it's okay for some frames to be late)
22:00:28: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
22:00:28: Average send payload: 6563 bytes, average send interval: 19 ms
22:00:28: Number of times waited to send: 0, Waited for a total of 0 bytes
22:00:28: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:00:28: Number of bytes sent: 5743902879
22:00:28: 
22:00:28: Profiler time results:
22:00:28: 
22:00:28: ==============================================================
22:00:28: video thread frame - [100%] [avg time: 2.923 ms] [children: 56%] [unaccounted: 44%]
22:00:28: | scene->Preprocess - [45.4%] [avg time: 1.328 ms]
22:00:28: | GPU download and conversion - [10.5%] [avg time: 0.308 ms] [children: 8.96%] [unaccounted: 1.57%]
22:00:28: | | flush - [5.92%] [avg time: 0.173 ms]
22:00:28: | | CopyResource - [2.98%] [avg time: 0.087 ms]
22:00:28: | | conversion to 4:2:0 - [0.0684%] [avg time: 0.002 ms]
22:00:28: Convert444Threads - [100%] [avg time: 0.598 ms] [children: 98.7%] [unaccounted: 1.34%]
22:00:28: | Convert444toNV12 - [98.7%] [avg time: 0.59 ms]
22:00:28: encoder thread frame - [100%] [avg time: 0.89 ms]
22:00:28: ==============================================================
22:00:28: 
22:00:28: 
22:00:28: Profiler CPU results:
22:00:28: 
22:00:28: ==============================================================
22:00:28: video thread frame - [cpu time: avg 1.513 ms, total 791924 ms] [avg calls per frame: 1]
22:00:28: | scene->Preprocess - [cpu time: avg 1.103 ms, total 577329 ms] [avg calls per frame: 1]
22:00:28: | GPU download and conversion - [cpu time: avg 0.07 ms, total 37128.2 ms] [avg calls per frame: 1]
22:00:28: | | flush - [cpu time: avg 0.03 ms, total 16052.5 ms] [avg calls per frame: 1]
22:00:28: | | CopyResource - [cpu time: avg 0.016 ms, total 8782.85 ms] [avg calls per frame: 1]
22:00:28: | | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 1092.01 ms] [avg calls per frame: 1]
22:00:28: Convert444Threads - [cpu time: avg 0.557 ms, total 583038 ms] [avg calls per frame: 2]
22:00:28: | Convert444toNV12 - [cpu time: avg 0.554 ms, total 580137 ms] [avg calls per frame: 2]
22:00:28: encoder thread frame - [cpu time: avg 0.282 ms, total 147983 ms] [avg calls per frame: 1]
22:00:28: ==============================================================
22:00:28: 
22:00:28: =====Stream End: 2014-01-29, 22:00:28=================================================


Last game capture log:
2014-01-29, 17:53:27: we're booting up: 
17:53:27: CaptureThread: attached to process csgo.exe
17:53:27: D3D9 Present
17:53:27: NV Capture available
17:53:27: FBO available
17:53:27: GL Present
17:53:27: (half life scientist) everything..  seems to be in order
17:53:28: D3D9EndScene called
17:53:28: D3DPRESENT_PARAMETERS {
17:53:28: 	BackBufferWidth: 1920
17:53:28: 	BackBufferHeight: 1080
17:53:28: 	BackBufferFormat: D3DFMT_A8R8G8B8
17:53:28: 	BackBufferCount: 1
17:53:28: 	MultiSampleType: D3DMULTISAMPLE_2_SAMPLES
17:53:28: 	MultiSampleQuality: 0
17:53:28: 	SwapEffect: D3DSWAPEFFECT_DISCARD
17:53:28: 	hDeviceWindow: 528478
17:53:28: 	Windowed: true
17:53:28: 	EnableAutoDepthStencil: true
17:53:28: 	AutoDepthStencilFormat: D3DFMT_D24S8
17:53:28: 	Flags: None
17:53:28: 	FullScreen_RefreshRateInHz: 0
17:53:28: 	PresentationInterval: 2147483648
17:53:28: };
17:53:28: successfully set up d3d9 hooks
17:53:28: D3D9Present called
17:53:28: DoD3D9GPUHook: success
17:53:28: D3DSURFACE_DESC {
17:53:28: 	Format: D3DFMT_A8R8G8B8
17:53:28: 	Type: D3DRTYPE_SURFACE
17:53:28: 	Usage: D3DUSAGE_RENDERTARGET 
17:53:28: 	Pool: D3DPOOL_DEFAULT
17:53:28: 	MultiSampleType: D3DMULTISAMPLE_2_SAMPLES
17:53:28: 	MultiSampleQuality: 0
17:53:28: 	Width: 1920
17:53:28: 	Height: 1080
17:53:28: };
17:53:28: successfully capturing d3d9 frames via GPU
22:00:28: ---------------------- Cleared D3D9 Capture ----------------------
22:00:28: received restart event, capturing
22:00:28: DoD3D9GPUHook: success
22:00:28: D3D9EndScene called
22:00:28: D3D9Present called

Oops, almost forgot my specs, sorry!
Video Card: GeForce GTX 560 Ti
Resolution: 1920 x 1080 (60hz)
Processor: Intel Core i5-3550 CPU @ 3.30 GHz (Quad Core)
Memory: 8192MB RAM

Thanks for all the help!
 
The first thing I'd recommend is lowering the resolution of your webcam. Presumably your webcam is shrunk down in a corner so that people can see the game? If you lower the resolution of the webcam from 1080p, you'll probably get a surprising performance increase. Just go in and change the custom resolution of the camera in the video capture device settings. See if that helps!
 
Back
Top