Question / Help Frames dropping in game when using OBS

DanielCurtis

New Member
Hey guys,

I've used OBS for quite a while to streaming Infestation: Survivor Stories and my frames were great and nothing dropped, but I've decided to stream Counter-Strike: Global Offensive and my frames in game are dropping...a lot. They will be alright for the first few seconds, and then drop to maybe 20 frames and shoot back up to 200 frames. This happens near enough every 2 seconds. Here's a VoD from earlier http://www.twitch.tv/danielcurtistv/b/509566119 around 45 seconds in, you see that my frames start off perfectly fine, but as the VoD goes on, it's all jumpy and you can see the frames (top left) turning red and going green again. (red obviously indicates low, and green high). I stream with the game in Fullscreen mode and using Game Capture

Here's the settings I'm using on OBS;

Encoding - http://puu.sh/7p5qZ.png
Video - http://puu.sh/7p5sA.png
Audio - http://puu.sh/7p5tW.png
Advanced - http://puu.sh/7p5wV.png

And here's a recent speedtest - http://www.speedtest.net/my-result/3359198134
And here's my PC specs;
CPU - Intel Core i7 4770k @ 3.5ghz
Motherboard - Asus Maximus VI Formula
RAM - Corsair Vengeance 16GB 18667mhz
SSD - Samsung Evo 840 260GB
GPU - Asus GeForce 660ti 2GB
OS - Windows 7 Home Premium


Any help on this issue would be greatly appreciated. I've been using Nvidia's ShadowPlay to stream for now, but it turns the stream off every time I tab out of the game and is rather annoying.

Thanks guys,

- Daniel
 

DanielCurtis

New Member
Oops, forgot about the log file. Here we go.

Code:
21:50:33: Settings::Video: Enabling Aero
21:51:48: Open Broadcaster Software v0.613b - 64bit ( ^ω^)
21:51:48: -------------------------------
21:51:48: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
21:51:48: CPU Speed: 3500MHz
21:51:48: Physical Memory:  16321MB Total, 11288MB Free
21:51:48: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
21:51:48: monitor 1: pos={0, 0}, size={1920, 1080}
21:51:48: monitor 2: pos={-1920, 0}, size={1920, 1080}
21:51:48: monitor 3: pos={1920, 0}, size={1920, 1080}
21:51:48: Windows Version: 6.1 Build 7601 S
21:51:48: Aero is Enabled
21:51:48: -------------------------------
21:51:48: OBS Modules:
21:51:48: Base Address     Module
21:51:48: 000000003FC60000 OBS.exe
21:51:48: 00000000E8590000 OBSApi.dll
21:51:48: 00000000F83D0000 DShowPlugin.dll
21:51:48: 00000000F8470000 GraphicsCapture.dll
21:51:48: 00000000F1A10000 NoiseGate.dll
21:51:48: 00000000F0A60000 PSVPlugin.dll
21:51:48: ------------------------------------------
21:51:48: Adapter 1
21:51:48:   Video Adapter: NVIDIA GeForce GTX 660 Ti
21:51:48:   Video Adapter Dedicated Video Memory: 2086469632
21:51:48:   Video Adapter Shared System Memory: 2147807232
21:51:48:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
21:51:48:   Video Adapter Output 2: pos={-1920, 0}, size={1920, 1080}, attached=true
21:51:48:   Video Adapter Output 3: pos={1920, 0}, size={1920, 1080}, attached=true
21:51:48: =====Stream Start: 2014-03-09, 21:51:48===============================================
21:51:48:   Multithreaded optimizations: On
21:51:48:   Base resolution: 1920x1080
21:51:48:   Output resolution: 1280x720
21:51:48: ------------------------------------------
21:51:48: Loading up D3D10 on NVIDIA GeForce GTX 660 Ti (Adapter 1)...
21:51:48: ------------------------------------------
21:51:48: Audio Format: 48000 Hz
21:51:48: ------------------------------------------
21:51:48: Audio Channels: 2 Ch
21:51:48: Playback device {0.0.0.00000000}.{79cc0556-1241-4174-b7f0-d59e8d4ad94b}
21:51:48: ------------------------------------------
21:51:48: Using desktop audio input: Speakers (2- Realtek High Definition Audio)
21:51:48: ------------------------------------------
21:51:48: Using auxilary audio input: Microphone (3- AT2020 USB               )
21:51:48: ------------------------------------------
21:51:48: Audio Encoding: AAC
21:51:48:     bitrate: 128
21:51:48: Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:51:48: Scene buffering time set to 700
21:51:48: ------------------------------------------
21:51:48: Video Encoding: x264
21:51:48:     fps: 60
21:51:48:     width: 1280, height: 720
21:51:48:     preset: veryfast
21:51:48:     profile: high
21:51:48:     keyint: 120
21:51:48:     CBR: yes
21:51:48:     CFR: yes
21:51:48:     max bitrate: 2500
21:51:48:     buffer size: 8000
21:51:48: ------------------------------------------
21:51:48: Capture window 0x00000000 invalid or changing, terminating capture
21:51:50: Using RTMP service: Twitch / Justin.tv
21:51:50:   Server selection: rtmp://live-lhr.justin.tv/app
21:51:50:   Interface: Intel(R) Ethernet Connection I217-V (ethernet, 100 mbps)
21:51:51: Completed handshake with rtmp://live-lhr.justin.tv/app in 339 ms.
21:51:52: SO_SNDBUF was at 8192
21:51:52: SO_SNDBUF is now 65536
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:51:52: Capture window 0x00000000 invalid or changing, terminating capture
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:51:56: Capture window 0x00000000 invalid or changing, terminating capture
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:52:00: Capture window 0x00000000 invalid or changing, terminating capture
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:52:04: Capture window 0x00000000 invalid or changing, terminating capture
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:52:08: Capture window 0x00000000 invalid or changing, terminating capture
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:52:12: Capture window 0x00000000 invalid or changing, terminating capture
Warning -- GraphicsCaptureSource::BeginScene: OpenProcess failed, GetLastError = 5
21:52:16: Capture window 0x00000000 invalid or changing, terminating capture
21:52:18: Total frames encoded: 1711, total frames duplicated: 667 (38.98%)
21:52:18: Total frames rendered: 1644, number of late frames: 28 (1.70%) (it's okay for some frames to be late)
21:52:18: RTMPPublisher::SocketLoop: Graceful loop exit
21:52:18: Average send payload: 6424 bytes, average send interval: 19 ms
21:52:18: Number of times waited to send: 0, Waited for a total of 0 bytes
21:52:18: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
21:52:18: Number of bytes sent: 8376905
21:52:18: 
21:52:18: Profiler time results:
21:52:18: 
21:52:18: ==============================================================
21:52:18: video thread frame - [100%] [avg time: 5.524 ms] [children: 4.71%] [unaccounted: 95.3%]
21:52:18: | scene->Preprocess - [0.0362%] [avg time: 0.002 ms]
21:52:18: | GPU download and conversion - [4.67%] [avg time: 0.258 ms] [children: 2.48%] [unaccounted: 2.19%]
21:52:18: | | flush - [1.3%] [avg time: 0.072 ms]
21:52:18: | | CopyResource - [1.1%] [avg time: 0.061 ms]
21:52:18: | | conversion to 4:2:0 - [0.0724%] [avg time: 0.004 ms]
21:52:18: Convert444Threads - [100%] [avg time: 0.612 ms] [children: 99.5%] [unaccounted: 0.49%]
21:52:18: | Convert444toNV12 - [99.5%] [avg time: 0.609 ms]
21:52:18: encoder thread frame - [100%] [avg time: 0.911 ms] [children: 1.43%] [unaccounted: 98.6%]
21:52:18: | sending stuff out - [1.43%] [avg time: 0.013 ms]
21:52:18: ==============================================================
21:52:18: 
21:52:18: 
21:52:18: Profiler CPU results:
21:52:18: 
21:52:18: ==============================================================
21:52:18: video thread frame - [cpu time: avg 0.189 ms, total 312.002 ms] [avg calls per frame: 1]
21:52:18: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:52:18: | GPU download and conversion - [cpu time: avg 0.056 ms, total 93.601 ms] [avg calls per frame: 1]
21:52:18: | | flush - [cpu time: avg 0.037 ms, total 62.401 ms] [avg calls per frame: 1]
21:52:18: | | CopyResource - [cpu time: avg 0.009 ms, total 15.6 ms] [avg calls per frame: 1]
21:52:18: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:52:18: Convert444Threads - [cpu time: avg 0.396 ms, total 1263.61 ms] [avg calls per frame: 2]
21:52:18: | Convert444toNV12 - [cpu time: avg 0.396 ms, total 1263.61 ms] [avg calls per frame: 2]
21:52:18: encoder thread frame - [cpu time: avg 0.243 ms, total 405.602 ms] [avg calls per frame: 1]
21:52:18: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:52:18: ==============================================================
21:52:18: 
21:52:18: =====Stream End: 2014-03-09, 21:52:18=================================================
21:52:23: Settings::Video: Disabling Aero


Last game capture log:
2014-03-09, 18:37:31: we're booting up: 
18:37:31: CaptureThread: attached to process csgo.exe
18:37:31: D3D9 Present
18:37:32: NV Capture available
18:37:32: FBO available
18:37:32: GL Present
18:37:32: (half life scientist) everything..  seems to be in order
18:37:34: D3D9EndScene called
18:37:34: D3DPRESENT_PARAMETERS {
18:37:34: 	BackBufferWidth: 1920
18:37:34: 	BackBufferHeight: 1080
18:37:34: 	BackBufferFormat: D3DFMT_A8R8G8B8
18:37:34: 	BackBufferCount: 1
18:37:34: 	MultiSampleType: D3DMULTISAMPLE_NONE
18:37:34: 	MultiSampleQuality: 0
18:37:34: 	SwapEffect: D3DSWAPEFFECT_DISCARD
18:37:34: 	hDeviceWindow: 2165180
18:37:34: 	Windowed: false
18:37:34: 	EnableAutoDepthStencil: true
18:37:34: 	AutoDepthStencilFormat: D3DFMT_D24S8
18:37:34: 	Flags: None
18:37:34: 	FullScreen_RefreshRateInHz: 144
18:37:34: 	PresentationInterval: 2147483648
18:37:34: };
18:37:34: successfully set up d3d9 hooks
18:37:34: D3D9Present called
18:37:34: DoD3D9GPUHook: success
18:37:34: D3DSURFACE_DESC {
18:37:34: 	Format: D3DFMT_A8R8G8B8
18:37:34: 	Type: D3DRTYPE_SURFACE
18:37:34: 	Usage: D3DUSAGE_RENDERTARGET 
18:37:34: 	Pool: D3DPOOL_DEFAULT
18:37:34: 	MultiSampleType: D3DMULTISAMPLE_NONE
18:37:34: 	MultiSampleQuality: 0
18:37:34: 	Width: 1920
18:37:34: 	Height: 1080
18:37:34: };
18:37:34: successfully capturing d3d9 frames via GPU
18:39:05: ---------------------- Cleared D3D9 Capture ----------------------
18:39:05: received restart event, capturing
18:39:06: DoD3D9GPUHook: success
18:39:06: D3D9Reset called
18:39:06: ---------------------- Cleared D3D9 Capture ----------------------
18:39:06: successfully set up d3d9 hooks
18:39:09: D3D9EndScene called
18:39:09: D3D9Present called
18:39:09: DoD3D9GPUHook: success
18:39:49: D3D9Reset called
18:39:49: ---------------------- Cleared D3D9 Capture ----------------------
18:39:49: successfully set up d3d9 hooks
18:40:16: D3D9Present called
18:40:16: DoD3D9GPUHook: success
18:40:16: D3D9Reset called
18:40:16: ---------------------- Cleared D3D9 Capture ----------------------
18:40:16: successfully set up d3d9 hooks
18:40:19: D3D9EndScene called
18:40:19: D3D9Present called
18:40:19: DoD3D9GPUHook: success
18:40:19: D3DSURFACE_DESC {
18:40:19: 	Format: D3DFMT_A8R8G8B8
18:40:19: 	Type: D3DRTYPE_SURFACE
18:40:19: 	Usage: D3DUSAGE_RENDERTARGET 
18:40:19: 	Pool: D3DPOOL_DEFAULT
18:40:19: 	MultiSampleType: D3DMULTISAMPLE_NONE
18:40:19: 	MultiSampleQuality: 0
18:40:19: 	Width: 1920
18:40:19: 	Height: 1080
18:40:19: };
18:40:19: successfully capturing d3d9 frames via GPU
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Could you do me a favor, and let me know if this changes anything? Try right clicking preview window in OBS, turn off the preview, and see if that affects anything.
 
Top