Question / Help game capture black screen

Pilly

New Member
I have just installed obs and no one game capture functions, if i try to use game capture, obs cannot detect the game (sc2 for example), even if i do refresh. If i try with software capture, it 's always black although I heard sound of the game on the final video. I try with other game and it's always the same.
I launch as admin obs. I have not log folder in obs to show because the folder doesn't exist.
I use win7 64b directx11.
 

Pilly

New Member
i have updated windows before running the last build and i observe that it's better for most part and there is no more crash, but for game capture mode is still unabled, I still have black screen.
If i use software capture, i can see minecraft, or simcity 4 but not game like sc2 or citiexl.
If i use window capture, i cannot record any game but hear sound on the final video.
If i use game capture, game are detected but it's black screen for all game with sound only.

log:
Open Broadcaster Software v0.48.012b (experimental test build) - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD Phenom(tm) II X6 1090T Processor
CPU Speed: 3210MHz
Physical Memory: 5374MB Total, 3000MB Free
stepping id: 0, model 10, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 6, total cores 6
monitor 1: pos={0, 0}, size={1440, 900}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 560 Ti
Video Adapter Dedicated Video Memory: 1041694720
Video Adapter Shared System Memory: 2549182464
=====Stream Start: 2013-04-09, 08:46:13===============================================
Multithreaded optimizations: On
Base resolution: 1440x900
Output resolution: 960x600
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Stereo Mix (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using Monitor Capture
Using Window Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
fps: 30
width: 960, height: 600
preset: veryfast
CBR: no
CFR: no
max bitrate: 5000
buffer size: 5000
quality: 8
------------------------------------------
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, error code = 5
Audio timestamp for device 'Stereo Mix (VIA High Definition Audio)' was behind target timestamp by 1! Had to delete audio segment.

Total frames rendered: 1108, number of frames that lagged: 3 (0.27%) (it's okay for some frames to lag)
Total duplicated frames: 1 (0.09%)
=====Stream End: 2013-04-09, 08:46:50=================================================
=====Stream Start: 2013-04-09, 08:48:42===============================================
Multithreaded optimizations: On
Base resolution: 1440x900
Output resolution: 960x600
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Stereo Mix (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using Monitor Capture
Using Window Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
fps: 30
width: 960, height: 600
preset: veryfast
CBR: no
CFR: no
max bitrate: 5000
buffer size: 5000
quality: 8
------------------------------------------
Total frames rendered: 1283, number of frames that lagged: 2 (0.16%) (it's okay for some frames to lag)
Total duplicated frames: 1 (0.08%)
=====Stream End: 2013-04-09, 08:49:26=================================================
=====Stream Start: 2013-04-09, 08:49:33===============================================
Multithreaded optimizations: On
Base resolution: 1440x900
Output resolution: 960x600
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Stereo Mix (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using Monitor Capture
Using Window Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
fps: 30
width: 960, height: 600
preset: veryfast
CBR: no
CFR: no
max bitrate: 5000
buffer size: 5000
quality: 8
------------------------------------------
Total frames rendered: 1503, number of frames that lagged: 1493 (99.33%) (it's okay for some frames to lag)
Total duplicated frames: 307 (20.43%)
=====Stream End: 2013-04-09, 08:50:35=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 17.424 ms] [avg calls per frame: 1] [children: 95.4%] [unaccounted: 4.65%]
| scene->Preprocess - [85.6%] [avg time: 14.918 ms] [avg calls per frame: 1]
| video encoding and uploading - [9.73%] [avg time: 1.696 ms] [avg calls per frame: 1] [children: 9.61%] [unaccounted: 0.121%]
| | CopyResource - [0.132%] [avg time: 0.023 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.109%] [avg time: 0.019 ms] [avg calls per frame: 0]
| | call to encoder - [9.33%] [avg time: 1.625 ms] [avg calls per frame: 1]
| | sending stuff out - [0.0459%] [avg time: 0.008 ms] [avg calls per frame: 1]
==============================================================


Open Broadcaster Software v0.48.012b (experimental test build) - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD Phenom(tm) II X6 1090T Processor
CPU Speed: 3210MHz
Physical Memory: 5374MB Total, 2647MB Free
stepping id: 0, model 10, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 6, total cores 6
monitor 1: pos={0, 0}, size={1440, 900}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 560 Ti
Video Adapter Dedicated Video Memory: 1041694720
Video Adapter Shared System Memory: 2549182464
=====Stream Start: 2013-04-09, 08:15:15===============================================
Multithreaded optimizations: On
Base resolution: 1440x900
Output resolution: 960x600
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Stereo Mix (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using Monitor Capture
Using Window Capture
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, error code = 5
------------------------------------------
Video Encoding: x264
fps: 30
width: 960, height: 600
preset: veryfast
CBR: no
CFR: no
max bitrate: 5000
buffer size: 5000
quality: 8
------------------------------------------
Total frames rendered: 2, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
=====Stream End: 2013-04-09, 08:15:16=================================================
=====Stream Start: 2013-04-09, 08:15:17===============================================
Multithreaded optimizations: On
Base resolution: 1440x900
Output resolution: 960x600
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Stereo Mix (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using Monitor Capture
Using Window Capture
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, error code = 5
------------------------------------------
Video Encoding: x264
fps: 30
width: 960, height: 600
preset: veryfast
CBR: no
CFR: no
max bitrate: 5000
buffer size: 5000
quality: 8
------------------------------------------
Total frames rendered: 1595, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
=====Stream End: 2013-04-09, 08:16:11=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 1.794 ms] [avg calls per frame: 1] [children: 73.6%] [unaccounted: 26.4%]
| scene->Preprocess - [0.0557%] [avg time: 0.001 ms] [avg calls per frame: 1]
| video encoding and uploading - [73.5%] [avg time: 1.319 ms] [avg calls per frame: 1] [children: 73%] [unaccounted: 0.502%]
| | CopyResource - [1.11%] [avg time: 0.02 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [1.06%] [avg time: 0.019 ms] [avg calls per frame: 0]
| | call to encoder - [70.5%] [avg time: 1.265 ms] [avg calls per frame: 0]
| | sending stuff out - [0.334%] [avg time: 0.006 ms] [avg calls per frame: 0]
==============================================================
 

ThoNohT

Developer
Don't use all three types in one scene. Even unchecking them leaves them loaded and impacts performance a lot.
If you want to try different things, just make more scenes, and switch between them.

Please note that:
- Monitor capture should capture everything on your monitor, but doesn't work well with full screen games. Have aero disabled to use this. In general, for games, either of the other two is preferred.
- Window capture works well with windowed or borderless windowed games, but will not detect full screen games. Have aero enabled to use this.
- Game capture works well with most full screen games. Aero can be on or of.

Minecraft has an issue with full screen capturing, so you should play that windowed if you want to stream it.

Also, your log shows that Game Capture has an error injecting in the game. Which game is it you were playing with this log?
 

Pilly

New Member
i tried severals games but mainly i wanted with sc2, the pb is for all games.
i launch obs as regular user not as admin because when i launch as admin, obs doesn't detect any game in the game capture mode if i want to select a window.
When i launch as regular user, obs detects the game and i can record selecting the scrolling menu but the video recorded is blackscreen with sound.

For example with sc2 hots:
Open Broadcaster Software v0.48.012b (experimental test build) - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD Phenom(tm) II X6 1090T Processor
CPU Speed: 3210MHz
Physical Memory: 5374MB Total, 2889MB Free
stepping id: 0, model 10, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 6, total cores 6
monitor 1: pos={0, 0}, size={1440, 900}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 560 Ti
Video Adapter Dedicated Video Memory: 1041694720
Video Adapter Shared System Memory: 2549182464
=====Stream Start: 2013-04-09, 10:01:53===============================================
Multithreaded optimizations: On
Base resolution: 1440x900
Output resolution: 960x600
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Stereo Mix (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, error code = 5
------------------------------------------
Video Encoding: x264
fps: 30
width: 960, height: 600
preset: veryfast
CBR: no
CFR: no
max bitrate: 2500
buffer size: 2500
quality: 7
------------------------------------------
Total frames rendered: 408, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
=====Stream End: 2013-04-09, 10:02:07=================================================
=====Stream Start: 2013-04-09, 10:03:15===============================================
Multithreaded optimizations: On
Base resolution: 1440x900
Output resolution: 960x600
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Stereo Mix (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using graphics capture
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, error code = 5
------------------------------------------
Video Encoding: x264
fps: 30
width: 960, height: 600
preset: veryfast
CBR: no
CFR: no
max bitrate: 2500
buffer size: 2500
quality: 7
------------------------------------------
Total frames rendered: 418, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
=====Stream End: 2013-04-09, 10:03:30=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 2.454 ms] [avg calls per frame: 1] [children: 71.4%] [unaccounted: 28.6%]
| scene->Preprocess - [0.0815%] [avg time: 0.002 ms] [avg calls per frame: 1]
| video encoding and uploading - [71.3%] [avg time: 1.749 ms] [avg calls per frame: 1] [children: 70.9%] [unaccounted: 0.326%]
| | CopyResource - [0.896%] [avg time: 0.022 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [1.47%] [avg time: 0.036 ms] [avg calls per frame: 0]
| | call to encoder - [68.5%] [avg time: 1.68 ms] [avg calls per frame: 0]
| | sending stuff out - [0.122%] [avg time: 0.003 ms] [avg calls per frame: 0]
==============================================================
 

Pilly

New Member
I found the solution: i must put all my games into windowed mode into the game, then into obs i can record as well software window mode as game capture directly.
Finally, fullscreen doesn't function at all for game, i have to force into game windowed mode fullscreen.
 

ThoNohT

Developer
Window capture with borderless or windowed mode should always work indeed, make sure you keep aero on then indeed.

Why game capture doesn't work is unknown to me, you keep getting an injection error with that. Do you perhaps use some other program that displays an overlay over the games? They can interfere with game capture.
 

Pilly

New Member
i have nothing as program when i run obs with game.
I tried fullscreen into game with game capture mode without aero into obs and it successed with bioshock infinite but not for sc2, nor metro 2033 nor simcity 4 nor other games. I don't know what could be stop the game capture mode.
 
Just to update everyone, i ran into the same issue with the 0.48.013b test build of OBS. The game in question is PlanetSide 2, i would get audio via "Game Capture", but just a black screen with "cannot find window" at the bottom of the OBS window.

I closed the app, and switched over to the 32-bit version of OBS, and Game Capture worked like it should.

I am thinking there *may* be an issue with 64bit OBS trying to capture 32bit games. Not sure if does the same in reverse (32bit OBS not capturing 64bit games) though.
 

CosmicD

New Member
Bioshock infinite and payday 2 both won't stream for me. Valve games do. I tried 64bit and 32 versions but to no avail.
 
Top