Question / Help Black Screen when broadcasting Game Capture

Kyosji

New Member
I've tried to get some help with others that do this already, and I can't seem to find much help online about this. I have all my settings set to broadcast TF2 on Twitch. I can view everything fine (desktop, etc), except for any games I try and play. When broadcasting everyone gets a black screen, but they can hear any sounds that happen in game fine. The only issue is that they can't see anythign but a black screen. Does anyone know how to fix this issue?

Latest Log:

Code:
------------------------------------------
Open Broadcaster Software v0.51b - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD Phenom(tm) II X6 1055T Processor
CPU Speed: 2809MHz
Physical Memory:  16381MB Total, 10389MB 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={1920, 1080}
Windows Version: 6.0 Build 6002 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: AMD Radeon HD 7800 Series
  Video Adapter Dedicated Video Memory: 1045635072
  Video Adapter Shared System Memory: 4025577472
=====Stream Start: 2013-04-29, 19:01:46===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{dc0a0d31-d255-4f68-bd80-8bfca4225406}
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 1800
    buffer size: 2000
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
Total frames rendered: 206, number of frames that lagged: 5 (2.43%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End: 2013-04-29, 19:01:50=================================================
=====Stream Start: 2013-04-29, 19:01:51===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{dc0a0d31-d255-4f68-bd80-8bfca4225406}
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 1800
    buffer size: 2000
    quality: 10
------------------------------------------
Total frames rendered: 1761, number of frames that lagged: 1 (0.06%) (it's okay for some frames to lag)
=====Stream End: 2013-04-29, 19:02:21=================================================
=====Stream Start: 2013-04-29, 19:02:22===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{dc0a0d31-d255-4f68-bd80-8bfca4225406}
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 1800
    buffer size: 2000
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
Total frames rendered: 2051, number of frames that lagged: 5 (0.24%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End: 2013-04-29, 19:02:56=================================================
=====Stream Start: 2013-04-29, 19:03:50===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{dc0a0d31-d255-4f68-bd80-8bfca4225406}
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 1800
    buffer size: 2000
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
Total frames rendered: 5305, number of frames that lagged: 11 (0.21%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End: 2013-04-29, 19:05:20=================================================
=====Stream Start: 2013-04-29, 19:06:07===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{dc0a0d31-d255-4f68-bd80-8bfca4225406}
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 1800
    buffer size: 2000
    quality: 10
------------------------------------------
Total frames rendered: 88, number of frames that lagged: 53 (60.23%) (it's okay for some frames to lag)
=====Stream End: 2013-04-29, 19:06:09=================================================
=====Stream Start: 2013-04-29, 19:06:09===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{dc0a0d31-d255-4f68-bd80-8bfca4225406}
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 1800
    buffer size: 2000
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
Using graphics capture
------------------------------------------
------------------------------------------
Total frames rendered: 24708, number of frames that lagged: 4613 (18.67%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End: 2013-04-29, 19:13:32=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 11.523 ms] [avg calls per frame: 1] [children: 86.9%] [unaccounted: 13.1%]
| scene->Preprocess - [66.1%] [avg time: 7.617 ms] [avg calls per frame: 1]
| video encoding and uploading - [20.8%] [avg time: 2.4 ms] [avg calls per frame: 1] [children: 20.4%] [unaccounted: 0.399%]
| | CopyResource - [0.156%] [avg time: 0.018 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.208%] [avg time: 0.024 ms] [avg calls per frame: 0]
| | call to encoder - [19.9%] [avg time: 2.298 ms] [avg calls per frame: 0]
| | sending stuff out - [0.121%] [avg time: 0.014 ms] [avg calls per frame: 0]
==============================================================
 

R1CH

Forum Admin
Developer
What happens when you try to use graphics capture? Your log shows you trying to use both graphics and monitor capture, however monitor capture won't work for fullscreen games.
 

Kyosji

New Member
That was my latest when I was working with a friend that uses this program as well. Even when I only have one scene with 1 source (game capture), I get a black screen.
 

hilalpro

Member
Game capture is designed to capture DX9 and newer games, to capture that game you might need to enable aero +run the game in windowed mode.. then capture it as a window instead.
 

Kyosji

New Member
Well, this is TF2, which runs on DirectX 9. I know you can run this on full screen with this program because I can see a friend of mine doing it just fine. If I have to run in window mode, I may as well go back to Xplit.
 

Krazy

Town drunk
I'm not entirely sure why it isn't working for you, TF2 captures with no issues uses Game Capture for me.

Can you go to %appdata%\OBS\plugindata and paste what captureHookLog says?
 

Kyosji

New Member
Before work this morning, I restarted my computer and put on Tomb Raider. People were able to see that, although a bit stuttery for some reason. Possibly tweaks need to be done for that. I'll try TF2 again when I get home to check that. Things I find odd, though, is that my settings panel does not resemble others. Examples are like under audio, I only have the option for MP3, and no AAC.
 

hilalpro

Member
You're running windows vista that's why aac is not currently supported on it. Are you using any game mods or visual effects? those will prevent game capture from hooking the game. you might need tor remove clear files and reinstall the game.
 

Kyosji

New Member
Ok, this is what I've tested and found. If I ONLY have Game Capture in my source, I can play Tomb Raider and Bioshock perfectly, even up to 1080. I cannot, however, play any of the Source engine games such as TF2, Day of Defeat: Source, Poker Night 1 or 2.

I have also realized that if I have any other addition in the source field, such as video capture for my web cam, the broadcast becomes very...glitchy... It reminds me of those computer program villains or Max Headroom from those old Pepsi commercials.

It seems that they have an update to TF2 and they are moving to that new 'pipeline' format, so I'll try again afterwards and post a fresh log so you can all see what's going on.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Source games actually usually work the best with it, so I'm sort of curious about what's going on here.

Game capture isn't perfect, I've said it before -- when it works it's fantastic, best there is really, but it's just not always the most stable and is a bit glitchy and doesn't always properly connect with the game when it's supposed to.

I still have a list of like 4-5 games I have to go over and I haven't even had time to look at them because of other issues with devices, and then there's the fact that I've been busy at home with non-OBS related stuff. One of them being natural selection 2 windowed mode which I've promised forever I would look at but it's still been so low priority compared to other things, and because you can just use window capture in that case.

Game capture is an extremely difficult thing to debug in comparison to anything due to the fact that it has to put code inside the game to capture the frames. That code that's put inside the game is extremely difficult to debug in many cases when it's unstable with a certain game or doesn't work right. Many games will shut down the moment a debugger is attached (probably due to simple DRM protections), and some games don't even operate in proper windowed modes making it difficult to actually access the debugger. Other games will glitch out or crash when being debugged. It's just been amazingly painful.
 

Kyosji

New Member
Welp. I just played about 2 hours of BF3 and people said it looked perfect. I again tried to launch TF2, and I got a black screen. I could hear all the stuff going on in the game, but just no video.

Latest log:

Code:
Open Broadcaster Software v0.51b - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD Phenom(tm) II X6 1055T Processor
CPU Speed: 2809MHz
Physical Memory:  16381MB Total, 12337MB 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={1920, 1080}
Windows Version: 6.0 Build 6002 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: AMD Radeon HD 7800 Series
  Video Adapter Dedicated Video Memory: 1045635072
  Video Adapter Shared System Memory: 4025577472
=====Stream Start: 2013-04-30, 20:51:04===============================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{dc0a0d31-d255-4f68-bd80-8bfca4225406}
------------------------------------------
Using desktop audio input: Speakers (VIA High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 1500
    buffer size: 1500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-mia.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
Total frames rendered: 6767, number of frames that lagged: 17 (0.25%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 2 (0.03%), Number of p-frames dropped: 0 (0%), Total 2 (0.03%)
=====Stream End: 2013-04-30, 20:54:52=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 2.894 ms] [avg calls per frame: 1] [children: 73.8%] [unaccounted: 26.2%]
| scene->Preprocess - [0.0691%] [avg time: 0.002 ms] [avg calls per frame: 1]
| video encoding and uploading - [73.8%] [avg time: 2.135 ms] [avg calls per frame: 1] [children: 70.6%] [unaccounted: 3.18%]
| | CopyResource - [1.17%] [avg time: 0.034 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.657%] [avg time: 0.019 ms] [avg calls per frame: 0]
| | call to encoder - [68.2%] [avg time: 1.973 ms] [avg calls per frame: 0]
| | sending stuff out - [0.587%] [avg time: 0.017 ms] [avg calls per frame: 0]
==============================================================

I would think it may be a setting within the Source I set, but I've tried it on multiple Source engine games with the same issue.
 

dodgepong

Administrator
Community Helper
Have you tried using the Game Capture hotkey feature? Set a hotkey in the Game Capture properties, enter the game, press the hotkey, and presto, game captured. It has worked really well for me so far, and seems to be the easiest way to get games to capture correctly.
 

Kyosji

New Member
So far snot working with latest test. Asking if I installed it right, since the hookfile I supplied was apparently wrong somehow.
 

BikeMan

New Member
Jim said:
Source games actually usually work the best with it, so I'm sort of curious about what's going on here.

Game capture isn't perfect, I've said it before -- when it works it's fantastic, best there is really, but it's just not always the most stable and is a bit glitchy and doesn't always properly connect with the game when it's supposed to.

I still have a list of like 4-5 games I have to go over and I haven't even had time to look at them because of other issues with devices, and then there's the fact that I've been busy at home with non-OBS related stuff. One of them being natural selection 2 windowed mode which I've promised forever I would look at but it's still been so low priority compared to other things, and because you can just use window capture in that case.

Game capture is an extremely difficult thing to debug in comparison to anything due to the fact that it has to put code inside the game to capture the frames. That code that's put inside the game is extremely difficult to debug in many cases when it's unstable with a certain game or doesn't work right. Many games will shut down the moment a debugger is attached (probably due to simple DRM protections), and some games don't even operate in proper windowed modes making it difficult to actually access the debugger. Other games will glitch out or crash when being debugged. It's just been amazingly painful.

Thank you for your hard work man. You'll never have any true idea of how much I and many others appreciate it.
 

Kyosji

New Member
Hey Jim, I fixed this. I'm guessing it's an issue with Vista Ultimate 64-bit. I upgraded to Windows 7 Pro and I can stream source games again.
 

1ermo1

New Member
Have you tried using the Game Capture hotkey feature? Set a hotkey in the Game Capture properties, enter the game, press the hotkey, and presto, game captured. It has worked really well for me so far, and seems to be the easiest way to get games to capture correctly.
Thankyou for this I had trouble streaming TF2... Well actually every steam game but this did the trick Thanks again
 
Top