Bug Report OBS Game Capture Black Screen

firef0x

New Member
Code:
05:18:43: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
05:18:43: -------------------------------
05:18:43: CPU Name: Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
05:18:43: CPU Speed: 2195MHz
05:18:43: Physical Memory:  4095MB Total, 4095MB Free
05:18:43: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
05:18:43: monitor 1: pos={0, 0}, size={1366, 768}
05:18:43: Windows Version: 6.1 Build 7601 S
05:18:43: Aero is Disabled
05:18:43: -------------------------------
05:18:43: OBS Modules:
05:18:43: Base Address     Module
05:18:43: 00210000         OBS.exe
05:18:43: 64F70000         OBSApi.dll
05:18:43: 6AC90000         DShowPlugin.dll
05:18:43: 6AC70000         GraphicsCapture.dll
05:18:43: 6AC50000         NoiseGate.dll
05:18:43: 6AC30000         PSVPlugin.dll
05:18:43: ------------------------------------------
05:18:43: Adapter 1
05:18:43:   Video Adapter: Intel(R) HD Graphics Family
05:18:43:   Video Adapter Dedicated Video Memory: 134217728
05:18:43:   Video Adapter Shared System Memory: 1711276032
05:18:43: ------------------------------------------
05:18:43: Adapter 2
05:18:43:   Video Adapter: NVIDIA GeForce GT 540M                 
05:18:43:   Video Adapter Dedicated Video Memory: 2096693248
05:18:43:   Video Adapter Shared System Memory: 2147233792
05:18:43: =====Stream Start: 2013-08-07, 05:18:43===============================================
05:18:43:   Multithreaded optimizations: On
05:18:43:   Base resolution: 1366x768
05:18:43:   Output resolution: 1364x768
05:18:43: ------------------------------------------
05:18:43: Loading up D3D10...
05:18:43: Playback device Default
05:18:43: ------------------------------------------
05:18:43: Using desktop audio input: Hoparlör (Realtek High Definition Audio)
05:18:43: ------------------------------------------
05:18:43: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
05:18:43: ------------------------------------------
05:18:43: Audio Encoding: AAC
05:18:43:     bitrate: 128
05:18:43: ------------------------------------------
05:18:43: Video Encoding: x264
05:18:43:     fps: 30
05:18:43:     width: 1364, height: 768
05:18:43:     preset: veryfast
05:18:43:     CBR: yes
05:18:43:     CFR: no
05:18:43:     max bitrate: 1000
05:18:43: ------------------------------------------
05:18:45: Total frames rendered: 54, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
05:18:45: =====Stream End: 2013-08-07, 05:18:45=================================================
05:18:51: =====Stream Start: 2013-08-07, 05:18:51===============================================
05:18:51:   Multithreaded optimizations: On
05:18:51:   Base resolution: 1366x768
05:18:51:   Output resolution: 1364x768
05:18:51: ------------------------------------------
05:18:51: Loading up D3D10...
05:18:51: Playback device Default
05:18:51: ------------------------------------------
05:18:51: Using desktop audio input: Hoparlör (Realtek High Definition Audio)
05:18:51: ------------------------------------------
05:18:51: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
05:18:51: ------------------------------------------
05:18:51: Audio Encoding: AAC
05:18:51:     bitrate: 128
05:18:51: Using graphics capture
05:18:51: ------------------------------------------
05:18:51: Video Encoding: x264
05:18:51:     fps: 30
05:18:51:     width: 1364, height: 768
05:18:51:     preset: veryfast
05:18:51:     CBR: yes
05:18:51:     CFR: no
05:18:51:     max bitrate: 1000
05:18:51: ------------------------------------------
Warning -- D3D10Texture::CreateFromSharedHandle: Failed to open shared handle, result = 0x80070057
Warning -- SharedTexCapture::Init: Could not create shared texture
05:18:53: Total frames rendered: 55, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
05:18:53: =====Stream End: 2013-08-07, 05:18:53=================================================
05:18:53: =====Stream Start: 2013-08-07, 05:18:53===============================================
05:18:53:   Multithreaded optimizations: On
05:18:53:   Base resolution: 1366x768
05:18:53:   Output resolution: 1364x768
05:18:53: ------------------------------------------
05:18:53: Loading up D3D10...
05:18:53: Playback device Default
05:18:53: ------------------------------------------
05:18:53: Using desktop audio input: Hoparlör (Realtek High Definition Audio)
05:18:53: ------------------------------------------
05:18:53: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
05:18:53: ------------------------------------------
05:18:53: Audio Encoding: AAC
05:18:53:     bitrate: 128
05:18:53: Using graphics capture
05:18:53: ------------------------------------------
05:18:53: Video Encoding: x264
05:18:53:     fps: 30
05:18:53:     width: 1364, height: 768
05:18:53:     preset: veryfast
05:18:53:     CBR: yes
05:18:53:     CFR: no
05:18:53:     max bitrate: 1000
05:18:53: ------------------------------------------
05:18:55: Using RTMP service: Twitch / Justin.tv
05:18:55:   Server selection: rtmp://live.justin.tv/app
05:18:58: SO_SNDBUF was at 8192
05:18:58: SO_SNDBUF is now 65536
05:18:58: Total frames rendered: 143, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
05:18:58: RTMPPublisher::SocketLoop: Aborting due to bStopping
05:18:58: Number of times waited to send: 0, Waited for a total of 0 bytes
05:18:58: Number of b-frames dropped: 0 (-1.$%), Number of p-frames dropped: 0 (-1.$%), Total 0 (-1.$%)
05:18:58: =====Stream End: 2013-08-07, 05:18:58=================================================
05:19:07: 
05:19:07: Profiler results:
05:19:07: 
05:19:07: ==============================================================
05:19:07: frame - [100%] [avg time: 4.274 ms (cpu time: avg 3.157 ms, total 795.605 ms)] [avg calls per frame: 1] [children: 99.8%] [unaccounted: 0.164%]
05:19:07: | frame preprocessing and rendering - [57.5%] [avg time: 2.457 ms (cpu time: avg 1.547 ms, total 390.003 ms)] [avg calls per frame: 1] [children: 0.0234%] [unaccounted: 57.5%]
05:19:07: | | scene->Preprocess - [0.0234%] [avg time: 0.001 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
05:19:07: | video encoding and uploading - [42.3%] [avg time: 1.81 ms (cpu time: avg 1.609 ms, total 405.602 ms)] [avg calls per frame: 1] [children: 41.8%] [unaccounted: 0.538%]
05:19:07: | | flush - [2.29%] [avg time: 0.098 ms (cpu time: avg 0.061 ms, total 15.6 ms)] [avg calls per frame: 1]
05:19:07: | | CopyResource - [0.515%] [avg time: 0.022 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
05:19:07: | | conversion to 4:2:0 - [0.0936%] [avg time: 0.004 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
05:19:07: | | call to encoder - [38.9%] [avg time: 1.662 ms (cpu time: avg 1.547 ms, total 390.002 ms)] [avg calls per frame: 0]
05:19:07: | | sending stuff out - [0.0234%] [avg time: 0.001 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
05:19:07: | Convert444Threads - [1.24e+003%] [avg time: 53.124 ms (cpu time: avg 1.176 ms, total 296.4 ms)] [avg calls per frame: 1]
05:19:07: ==============================================================
05:19:07:
Code:
Capture log:

2013-08-07, 05:14:34: we're booting up: 
05:14:34: D3D9 Present
05:14:34: D3D9EndScene called
05:14:34: D3DPRESENT_PARAMETERS {
05:14:34: 	BackBufferWidth: 1366
05:14:34: 	BackBufferHeight: 768
05:14:34: 	BackBufferFormat: D3DFMT_A8R8G8B8
05:14:34: 	BackBufferCount: 1
05:14:34: 	MultiSampleType: D3DMULTISAMPLE_NONE
05:14:34: 	MultiSampleQuality: 0
05:14:34: 	SwapEffect: D3DSWAPEFFECT_DISCARD
05:14:34: 	hDeviceWindow: 66732
05:14:34: 	Windowed: true
05:14:34: 	EnableAutoDepthStencil: true
05:14:34: 	AutoDepthStencilFormat: D3DFMT_D24S8
05:14:34: 	Flags: None
05:14:34: 	FullScreen_RefreshRateInHz: 0
05:14:34: 	PresentationInterval: 1
05:14:34: };
05:14:34: successfully set up d3d9 hooks
05:14:34: D3D9Present called
05:14:36: DXGI Present
05:14:36: DoD3D9GPUHook: success - d3d9ex
05:14:36: D3DSURFACE_DESC {
05:14:36: 	Format: D3DFMT_A8R8G8B8
05:14:36: 	Type: D3DRTYPE_SURFACE
05:14:36: 	Usage: D3DUSAGE_RENDERTARGET 
05:14:36: 	Pool: D3DPOOL_DEFAULT
05:14:36: 	MultiSampleType: D3DMULTISAMPLE_NONE
05:14:36: 	MultiSampleQuality: 0
05:14:36: 	Width: 1366
05:14:36: 	Height: 768
05:14:36: };
05:14:36: successfully capturing d3d9 frames via GPU
05:14:36: NV Capture available
05:14:36: FBO available
05:14:36: GL Present
05:14:36: (half life scientist) everything..  seems to be in order
05:14:59: ---------------------- Cleared D3D9 Capture ----------------------
05:14:59: received restart event, but couldn't find window
05:14:59: D3D9EndScene called
05:14:59: D3D9Present called
05:15:08: received restart event, capturing
05:15:08: DoD3D9GPUHook: success - d3d9ex
05:15:08: D3DSURFACE_DESC {
05:15:08: 	Format: D3DFMT_A8R8G8B8
05:15:08: 	Type: D3DRTYPE_SURFACE
05:15:08: 	Usage: D3DUSAGE_RENDERTARGET 
05:15:08: 	Pool: D3DPOOL_DEFAULT
05:15:08: 	MultiSampleType: D3DMULTISAMPLE_NONE
05:15:08: 	MultiSampleQuality: 0
05:15:08: 	Width: 1366
05:15:08: 	Height: 768
05:15:08: };
05:15:08: successfully capturing d3d9 frames via GPU
05:15:22: ---------------------- Cleared D3D9 Capture ----------------------
05:15:22: received restart event, but couldn't find window
05:15:22: D3D9EndScene called
05:15:22: D3D9Present called
05:18:51: received restart event, capturing
05:18:51: DoD3D9GPUHook: success - d3d9ex
05:18:51: D3DSURFACE_DESC {
05:18:51: 	Format: D3DFMT_A8R8G8B8
05:18:51: 	Type: D3DRTYPE_SURFACE
05:18:51: 	Usage: D3DUSAGE_RENDERTARGET 
05:18:51: 	Pool: D3DPOOL_DEFAULT
05:18:51: 	MultiSampleType: D3DMULTISAMPLE_NONE
05:18:51: 	MultiSampleQuality: 0
05:18:51: 	Width: 1366
05:18:51: 	Height: 768
05:18:51: };
05:18:51: successfully capturing d3d9 frames via GPU
05:19:07: ---------------------- Cleared D3D9 Capture ----------------------
05:19:07: received restart event, but couldn't find window
05:19:07: D3D9EndScene called
05:19:07: D3D9Present called
 

dodgepong

Administrator
Community Helper
Make sure that OBS is set to run on your nVidia GPU instead of the integrated graphics.
 

belboz

Member
Looks like you have a laptop.

I posted on another thread what I have to do to get game capture to work on my gaming laptop, let me get the link.

viewtopic.php?f=5&t=6220#p34515

But basically it is this.

1) Games and OBS are set to use Nvidia in the nvidia control panel (also have nvidia set as default device in said panel)
2) Run OBS (as normal user or admin, depending on game being streamed), select Intel chipset in OBS
3) Preview or Stream and it works.
4) If I stop the preview or stream, I just close OBS, rerun as in #2 and make sure Intel is still selected
5) Stream or Preview again
6) Go back to #4 if needed

Biggest thing is to make sure your Nvidia is set to be default device (so make sure the game you want to stream is using it). Then select the Intel chipset INSIDE the OBS app.

It seems like it shouldn't work, but I think on at least laptops with Nvidia and Intel chipsets for graphics, they share the same video memory and the intel does the actual display of the picture to your laptop's screen.

It has worked excellent for me with this approach.
 
Top