Question / Help Game capture does not get video from Team Fortress 2 in fullscreen

879m

New Member
I've sccessfully streamed tf2 in a window using window capture, however mouse movements feel odd and I can't change the gamma so I'd like to play it fullscreen like I normally do. When I try to use game capture and stream, the audio is fine but no video from tf2 is streamed, only a black screen. The preview screen in OBS is also black.

I'm using OBS Studio 0.15.2 64bit on windows 10 running as admin on pc. I have a game capture source that is set to capture any fullscreen window, and one that is set to capture only hl2.exe. Both have capture cursor and anti-cheat compatibility hook on. I've tried them one at a time and neither work. If I toggle either of them on, my frame rate ingame goes down, so OBS is definitely doing something, however neither can change the preview screen or stream something other than audio. I have tried centreing, stretching and fitting to screen with both, as well as starting tf2 before OBS and starting OBS before tf2, with no change in results.

In OBS advanced settings I am using Direct3D 11. I tried using OpenGL, which did make a preview appear in OBS, but the frame rate in game was very low and unstable so I couldn't use it. My log says "Failed to load D3D11" repeatedly, which I assume means Direct3D 11, but I couldn't find anything useful googling this. I've seen in other threads that Razor Synapse or MSI Afterburner can mess with OBS, but I have neither of these.

I would really appreciate a solution, since this has bugged me for a while now and using windowed mode feels sub par.

Log: http://pastebin.com/dx5uu9wy
 
Hi,

Update to the latest OBS as 15.2 is an old release. Also game capture has always been selective to what will work with it, so therefore use monitor / display capture.
 

RytoEX

Forum Admin
Forum Moderator
Developer
Hi,

Update to the latest OBS as 15.2 is an old release. Also game capture has always been selective to what will work with it, so therefore use monitor / display capture.
Display Capture has a huge performance penalty and will use more resources than Game Capture.

There were several changes to Game Capture between OBS Studio 0.15.2 and 0.16.6, including hooking games, especially for DX9 games (which I believe is what TF2 uses). I'd recommended updating first, then trying Game Capture again. If it doesn't work, provide us with a new log.
 

879m

New Member
Ok I updated to OBS Studio 0.16.6, but the same thing still happened. I found that turning on Multi-Adapter Compatibility made game capture work, but it gave me awful frame rates like using OpenGL did.

Log: http://pastebin.com/0G5UsRTd
 

RytoEX

Forum Admin
Forum Moderator
Developer
The only reasons to enable multi-adapter compatibility are usually if you're on a laptop with switchable graphics or if you have an SLI/CrossFire setup. Even in that latter case, it may still cause capture framerates to be halved.

Remove your duplicate Game Capture source. Disable multi-adapter compatibility. Enable anti-cheat compatibility hook. Run OBS Studio as an administrator.
 
Last edited:

879m

New Member
I ran as admin and made a new source with the settings you said, and still got a black screen with audio only. Looking at the log, it now says that it hooked into hl2.exe, so something has changed.

Log: http://pastebin.com/bGCqtU3g
 

RytoEX

Forum Admin
Forum Moderator
Developer
Your other logs also showed that they were trying to hook hl2.exe.

I almost want to say that your DirectX install is corrupt or incomplete. Have you recently upgraded Windows or made any significant hardware/software changes? Does anything else capture successfully in Game Capture? When was the last time you were able to successfully use Game Capture?

Run DxDiag from your start menu and link (or upload) the results here.
 

879m

New Member
Ok here is the results of DxDiag: http://pastebin.com/gNZwRXs1

I tried Borderlands 2 and Portal 2 with game capture, and both of them worked. Since Portal 2 is also a Source based game, TF2 might just have some weird stuff going on. I did recently upgrade to a GTX 1060, but the last time game capture worked for TF2 was a while ago when I still used windows 7.
 
Display Capture has a huge performance penalty and will use more resources than Game Capture.

If you can run game and use OBS game capture great, but from what I've seen if you play alot of games its more hassle trying to get game capture to work than its worth messing with.

In performance terms I've not seen a huge performance penalty using display capture, has someone done some tests vs game capture would be interested to see?
 

RytoEX

Forum Admin
Forum Moderator
Developer
If you can run game and use OBS game capture great, but from what I've seen if you play alot of games its more hassle trying to get game capture to work than its worth messing with.

In performance terms I've not seen a huge performance penalty using display capture, has someone done some tests vs game capture would be interested to see?
I don't know the metrics. The OBS forums staff and the lead developer have stated that Display/Monitor Capture does not perform as well as Game Capture. The performance cost is lower on Windows 8+ than on earlier versions of Windows. The old OBS Classic guide goes over this a bit.



Ok here is the results of DxDiag: http://pastebin.com/gNZwRXs1

I tried Borderlands 2 and Portal 2 with game capture, and both of them worked. Since Portal 2 is also a Source based game, TF2 might just have some weird stuff going on. I did recently upgrade to a GTX 1060, but the last time game capture worked for TF2 was a while ago when I still used windows 7.
Do you have logs of those successful sessions with Borderlands 2 and Portal 2? So this is a system that you upgraded from Windows 7 to Windows 10?

Have you reinstalled your Nvidia drivers since the graphics card upgrade? If not, you may want to consider a clean driver install with DDU.

If you have any of these programs, disable them:
Conflicts with Game Capture: Other capture programs, Razer Synapse (disable heatmaps), graphics mods like ENBSeries and SweetFX, and any type of software or utility that displays an in-game overlay like EVGA Precision, MSI Afterburner, TS3/Mumble overlays, Dolby Axon, Raptr, Overwolf, etc. If you use D3DGear it must be uninstalled completely.


Can you verify that the following files exist on your system:
Code:
C:\Windows\System32\d3d11.dll
C:\Windows\SysWOW64\d3d11.dll


If they don't exist, you may want to try running the DirectX End-User Runtime Web Installer to see if it can patch your DirectX installation.
 

879m

New Member
Out of those programs, I only have mumble, which hasn't been running any of the times I've tried game capture.

I have d3d11.dll in both System32 and SysWOW64. I ran the DirectX End-User Runtime Web Installer to be sure, and it didn't need to install anything.

I removed my drivers with DDU and reinstalled new ones.

After doing all this, I tried game capture for Borderlands 2, Portal 2 and Team Fortress 2 again. Only TF2 didn't work. Here is the log: http://pastebin.com/2ZqTs72q (I did all 3 games in one session).
 

Sr.Spucks

New Member
Hello maybe you don't read this but well... obs won't work in tf2 if you're using the command (mat_dxlevel 80), in short obs only captures games that have directx 9 so it won't capture tf2 if the game is on directx 8 or 8.1
 
Top