Question / Help Alt tab image freeze, black screen

mistermorriss

New Member
Hej,

I'm having a very similar problem to what has been described in here by many others but I cannot find a working solution. I have W8.1 64bit, i5 3750k, Nvidia 770, 8Gb Ram.

I run lotro (Lord of the Rings Online), alt tab back to desktop to preview stream, all good. I then start stream, no probs. However, then I switch back to the game, by either altta or simply pressing the window in the taskbar and I play happily for hours thinking everything is working - it isn't. When I switch ack to the game my image is actually frozen at the very point at where I started. Nothing has streamed. When I then try and restart the strem in OBS, I get a black screen. I then have to Exit Game and start over. Ive got it working by keeping the "Game Capture" in OBS streaming even though I haven't run the game yet, then just run it and never alt tab out. I've checked on my iPad and my game then streams fine.

I'll be have to c+p a log fil if needed.

Any help would be really appreciated.
 

mistermorriss

New Member
Code:
09:45:14: Open Broadcaster Software v0.592b - 64bit ( ^ω^)
09:45:14: -------------------------------
09:45:14: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
09:45:14: CPU Speed: 3392MHz
09:45:14: Physical Memory:  8085MB Total, 3628MB Free
09:45:14: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
09:45:14: monitor 1: pos={0, 0}, size={1920, 1080}
09:45:14: Windows Version: 6.2 Build 9200 
09:45:14: Aero is Enabled
09:45:14: -------------------------------
09:45:14: OBS Modules:
09:45:14: Base Address     Module
09:45:14: 00000000F39B0000 OBS.exe
09:45:14: 000000001DAA0000 OBSApi.dll
09:45:14: 000000001E510000 DShowPlugin.dll
09:45:14: 000000001E270000 GraphicsCapture.dll
09:45:14: 0000000022B30000 NoiseGate.dll
09:45:14: 0000000022A80000 PSVPlugin.dll
09:45:14: ------------------------------------------
09:45:14: Adapter 1
09:45:14:   Video Adapter: NVIDIA GeForce GTX 770
09:45:14:   Video Adapter Dedicated Video Memory: 2082140160
09:45:14:   Video Adapter Shared System Memory: 2147807232
09:45:14:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
09:45:14: =====Stream Start: 2014-01-28, 09:45:14===============================================
09:45:14:   Multithreaded optimizations: On
09:45:14:   Base resolution: 1920x1080
09:45:14:   Output resolution: 1920x1080
09:45:14: ------------------------------------------
09:45:14: Loading up D3D10 on NVIDIA GeForce GTX 770 (Adapter 1)...
09:45:14: ------------------------------------------
09:45:14: Audio Format: 48000hz
09:45:14: Playback device Default
09:45:14: ------------------------------------------
09:45:14: Using desktop audio input: Højttalere (Realtek High Definition Audio)
09:45:14: ------------------------------------------
09:45:14: Using auxilary audio input: FrontMic (Realtek High Definition Audio)
09:45:14: ------------------------------------------
09:45:14: Audio Encoding: AAC
09:45:14:     bitrate: 128
09:45:14: Using graphics capture
09:45:14: Using graphics capture
09:45:14: Scene buffering time set to 700
09:45:14: ------------------------------------------
09:45:14: Video Encoding: x264
09:45:14:     fps: 50
09:45:14:     width: 1920, height: 1080
09:45:14:     preset: veryfast
09:45:14:     profile: main
09:45:14:     keyint: 100
09:45:14:     CBR: yes
09:45:14:     CFR: yes
09:45:14:     max bitrate: 2500
09:45:14:     buffer size: 1437
09:45:14: ------------------------------------------
09:45:14: MMDeviceAudioSource: Frequency for device 'Højttalere (Realtek High Definition Audio)' is 384000, samples per sec is 48000
09:45:14: MMDeviceAudioSource: Frequency for device 'FrontMic (Realtek High Definition Audio)' is 352800, samples per sec is 44100
09:45:32: Total frames encoded: 830, total frames duplicated: 0 (0.00%)
09:45:32: Total frames rendered: 836, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
09:45:32: 
09:45:32: Profiler time results:
09:45:32: 
09:45:32: ==============================================================
09:45:32: video thread frame - [100%] [avg time: 0.488 ms] [children: 12.5%] [unaccounted: 87.5%]
09:45:32: | scene->Preprocess - [0.205%] [avg time: 0.001 ms]
09:45:32: | GPU download and conversion - [12.3%] [avg time: 0.06 ms] [children: 10.7%] [unaccounted: 1.64%]
09:45:32: | | flush - [6.76%] [avg time: 0.033 ms]
09:45:32: | | CopyResource - [3.69%] [avg time: 0.018 ms]
09:45:32: | | conversion to 4:2:0 - [0.205%] [avg time: 0.001 ms]
09:45:32: Convert444Threads - [100%] [avg time: 0.866 ms] [children: 99.4%] [unaccounted: 0.577%]
09:45:32: | Convert444toNV12 - [99.4%] [avg time: 0.861 ms]
09:45:32: encoder thread frame - [100%] [avg time: 1.505 ms]
09:45:32: ==============================================================
09:45:32: 
09:45:32: 
09:45:32: Profiler CPU results:
09:45:32: 
09:45:32: ==============================================================
09:45:32: video thread frame - [cpu time: avg 0.018 ms, total 15.625 ms] [avg calls per frame: 1]
09:45:32: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
09:45:32: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
09:45:32: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
09:45:32: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
09:45:32: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
09:45:32: Convert444Threads - [cpu time: avg 0.863 ms, total 1375 ms] [avg calls per frame: 2]
09:45:32: | Convert444toNV12 - [cpu time: avg 0.863 ms, total 1375 ms] [avg calls per frame: 2]
09:45:32: encoder thread frame - [cpu time: avg 1.041 ms, total 828.125 ms] [avg calls per frame: 1]
09:45:32: ==============================================================
09:45:32: 
09:45:32: =====Stream End: 2014-01-28, 09:45:32=================================================


Last game capture log:
2014-01-28, 09:45:14: we're booting up: 
09:45:14: CaptureThread: attached to process TurbineLauncher.exe
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
The game cannot be captured when alt-tabbing. Does this happen in the video after?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
The freeze -- it says you have one monitor. You say this problem happens when alt-tabbed, correct? OBS can't capture a fullscreen game while you're alt-tabbed out of it because the game is no longer drawing anything, people sometimes get that confusion. If you check the video you make after, you'll know what exactly is actually occurring.
 

mistermorriss

New Member
After I've alttabbed, nothing then works after. If I alt tab back to the game, it doesn't appear on me feed again, even when I restart feed. If I set up a Monitor Capture - black screen etc. I have to exit game, exit OBS, and start again. For example, I need to alt tab in order to view Preview and adjust streaming settings. Then I need to start stream and go back to the game. However, when I got back to the game after preview, that kills the stream.
 

mistermorriss

New Member
If I can explain it clearer:

I run game. Alt tab out, run OBS hit preview - it works. Go back to game, start stream with hotkey - black screen is streaming when I check twitch on my iPad.

I alt tab out, screen still black, feed is still live but black - ok. Go back to game, feed doesn't restart/remains black. Ok. Alt tab back to desktop, close OBS, run it again, hit preview (as game is till running), black screen. Close OBS, restart it, delete the Game Capture that was present from last time, re-add it, black screen.

Close down OBS AND game, load game, alt tab preview stream, works, go back to game hit hot key, black screen.

One alt tab Alt tab kills everything. And I need to alt tab in order to load lotro into OBS, but doing that kills the stream.

I've started using NVidia Shadowplay, the feed dies on that too when I alt tab out, but restarts again when I hit the hotkey in-game.

OBS however, has far more feature and is indy, so I want to use it.
 

hilalpro

Member
Looks like you've configured your game capture to grab the game launcher instead of the game therefore it shouldn't work when the game's trying to launch using another process.

What you could do to get around this is first create another game capture source that requires a hotkey, then once you alt tab back to the game press that hotkey after pressing the streaming hotkey.
 

mistermorriss

New Member
Thanks. However, I considered this and there are two programs to choose from, "TurbineLauncher" and lotroclient. I choose lotroclient, which is the correct one.

As I stated, whe I first alttab out and "preview feed", I can see the game ,although the image is frozen. This image then turns to a black screen when I return to the game again and hit the stream hotkey.
 

hilalpro

Member
Ok, So what I get from this is that every time the game's not rendering while game capture is still working it freeze's (which is normal in full screen mode) but the issue is that you can never get it to capture again when you ALT TAB back until you restart everything right ? Have you tried running the game in windowed/borderless mode instead ? because you shouldn't have to deal with this particular problem in borderless mode.

If you can't do it however create a new separate pause scene with an image source or whatever and assign that scene the alt hotkey so OBS can go ahead and disable game capture before you ALT TAB out.. Assign the game scene a different hotkey and press it after you ALT TAB back so OBS can restart game capture again.
 
Top