Question / Help Black Screen while game capturing. Have tried the posted guide and many other videos. Only Display capture will work.

Narcogen

Active Member
Display capture is only possible on your machine when OBS is running on your Intel GPU. Currently you're running on the Nvidia card:

02:14:37.367: Adapter 0: NVIDIA GeForce GTX 1060
02:14:37.367: Dedicated VRAM: 2051014656
02:14:37.367: Shared VRAM: 4212287488
02:14:37.367: output 0: pos={0, 0}, size={1920, 1080}, attached=true
02:14:37.367: Adapter 1: Intel(R) UHD Graphics 630
02:14:37.367: Dedicated VRAM: 134217728
02:14:37.367: Shared VRAM: 4212287488
02:14:37.369: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 (0)
02:14:37.416: D3D11 loaded successfully, feature level used: 45056

Prior to the 1909 update, this change was made in the Nvidia Control Panel.

After 1909, it is made in the Windows display settings.
 

BigGrimer

New Member
Using display capture is not my problem, I am able to get that to work by switching my settings to integrated graphics. My problem is that I am unable to get game capture to work.
 

Narcogen

Active Member
You've got a display capture source in your scene and it's on top of your game capture. Is it possible that it's a black screen covering your game capture?

I don't see the game capture hooking into any process, or even attempting to. It's in the scene, and then it's deleted.

02:14:39.480: - source: 'Browser' (browser_source)
02:14:39.480: - monitoring: monitor only
02:14:39.480: - source: 'Display Capture' (monitor_capture)
02:14:39.480: - source: 'Game Capture' (game_capture)
02:14:39.480: ------------------------------------------------
02:14:53.263: User Removed source 'Game Capture' (game_capture) from scene 'Scene'
02:14:53.813: ==== Shutting down ==================================================
 

BigGrimer

New Member
Here is a current log, i may have copied the one when i was messing with settings and removed the game capture. I can definitely use display capture and have placed it below game capture in my scenes. I can hide it and then there is just a black screen on my game capture. For example, I just opened hearthstone and I can select hearthstone as the specific application, but the screen does not change.
https://obsproject.com/logs/cgu84RuHGl0AHwcj
 

Narcogen

Active Member
I'm still not seeing that reflected in the logfile:

12:44:16.381: - scene 'Scene':
12:44:16.381: - source: 'Browser' (browser_source)
12:44:16.381: - monitoring: monitor only
12:44:16.381: - source: 'Display Capture' (monitor_capture)
12:44:16.381: - source: 'Game Capture' (game_capture)


Generally speaking, display and game captures shouldn't be mixed in a single scene. They both expect to be able to capture fullscreen, and can interfere with each other.

But again, that log ends with those lines-- there's no output session, no attempt to hook an application-- I can't even see what application you're trying to capture from this logfile.

12:44:13.498: Running as administrator: false

I see you're not running as admin. You might want to try that. Some game captures work better that way, and if your game is running as admin, OBS will need to be in order to capture it.

I have seen multiple complaints about being unable to capture Hearthstone specifically, but I did not see a definitive explanation or workaround, and I'm assuming that's been working for you up until recently?
 

BigGrimer

New Member
I have tried running as administrator as well, but still the same black screen. I am not entirely sure what you mean by no attempt to hook an application though. I have also tried the League of Legends client and Slay the spire which have worked in the past.

Edit: Here we go, I am not sure why it didn't show this before.
https://obsproject.com/logs/kMMjCFRYNbQJYayl
 

Narcogen

Active Member
When a user adds a game capture source to a scene and configures it, the log usually looks like this:

19:23:25.975: User added source 'Game Capture' (game_capture) to scene 'Scene'
19:23:31.391: [game-capture: 'Game Capture'] attempting to hook process: KingOfFighters2002UM.exe
19:23:31.393: [game-capture: 'Game Capture'] using helper (compatibility hook)
19:23:31.400: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
19:23:33.407: [game-capture: 'Game Capture'] attempting to hook process: KingOfFighters2002UM.exe
19:23:33.440: [game-capture: 'Game Capture'] Hooked DXGI
19:23:33.454: [game-capture: 'Game Capture'] d3d9 shared texture capture successful
19:23:33.457: [game-capture: 'Game Capture'] shared texture capture successful


The logfile shows which game was added, and each phase of the process of capturing that process. The log shows which method is being used for capture. If there is a delay, that is reported. When the capture is complete, that is reported.

Your last log looks like this:

12:44:16.381: Loaded scenes:
12:44:16.381: - scene 'Scene':
12:44:16.381: - source: 'Browser' (browser_source)
12:44:16.381: - monitoring: monitor only
12:44:16.381: - source: 'Display Capture' (monitor_capture)
12:44:16.381: - source: 'Game Capture' (game_capture)
12:44:16.381: ------------------------------------------------


and the first looked like this:

02:14:39.480: Loaded scenes:
02:14:39.480: - scene 'Scene':
02:14:39.480: - source: 'Browser' (browser_source)
02:14:39.480: - monitoring: monitor only
02:14:39.480: - source: 'Display Capture' (monitor_capture)
02:14:39.480: - source: 'Game Capture' (game_capture)
02:14:39.480: ------------------------------------------------
02:14:53.263: User Removed source 'Game Capture' (game_capture) from scene 'Scene'


From the logfile, at least, this appears to be a game capture source that hasn't been configured, that is not even attempting to capture an application, and there's no report of either failure or success. I'm not sure if that's because it's the wrong logfile, or for any other reason, but this is what I would expect to see if I added a game capture source and never configured it.

Now, in your first log, OBS was loaded up on the Nvidia card. Which is correct, if the game you want to capture is also running on that card, which it should be:

02:14:37.365: Available Video Adapters:
02:14:37.367: Adapter 0: NVIDIA GeForce GTX 1060
02:14:37.367: Dedicated VRAM: 2051014656
02:14:37.367: Shared VRAM: 4212287488
02:14:37.367: output 0: pos={0, 0}, size={1920, 1080}, attached=true
02:14:37.367: Adapter 1: Intel(R) UHD Graphics 630
02:14:37.367: Dedicated VRAM: 134217728
02:14:37.367: Shared VRAM: 4212287488
02:14:37.369: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 (0)
02:14:37.416: D3D11 loaded successfully, feature level used: 45056


In your second log, though, it's running on the Intel GPU, the way you would need to for a desktop display capture. But in that mode, you can't use game capture on an app that's running on the Nvidia card. On a laptop with two GPUs you can't switch between these capture types without also switching OBS from one GPU to the other.

12:44:14.036: Adapter 0: Intel(R) UHD Graphics 630
12:44:14.036: Dedicated VRAM: 134217728
12:44:14.036: Shared VRAM: 4212287488
12:44:14.037: output 0: pos={0, 0}, size={1920, 1080}, attached=true
12:44:14.037: Adapter 1: NVIDIA GeForce GTX 1060
12:44:14.037: Dedicated VRAM: 2051014656
12:44:14.037: Shared VRAM: 4212287488
12:44:14.039: Loading up D3D11 on adapter Intel(R) UHD Graphics 630 (0)
12:44:14.063: D3D11 loaded successfully, feature level used: 45056
 
Top