Question / Help Stream won't redraw in Window Capture + Aero (Vista)

thomrae

New Member
The only time I needed to use OBS before, I had to disable Aero because I was doing entire monitor capture to show someone something, so I had no issues with it until yesterday when I was seeing if I could set up a decent stream with my internet. With Aero disabled, window capture works fine, as far as I can tell. However, when trying to figure out how to keep all the additional screens from showing up when using window capture mode, I found something that said Aero had to be enabled in order to keep it from showing whatever was layered over it if I lost focus for whatever reason. So I tried to enable it and see if I could get it to work. Problem that results from this is that anything captured will not redraw/refresh in window capture unless you somehow force it to stop rendering temporarily (ie minimizing a game and restoring it). Game capture works fine, if the dll can hook successfully. Monitor capture also works fine. Window capture is the only thing that does this and it's not even consistent. Testing out a few games, Our Darker Purpose, Hammerwatch (which actually works with game capture but will crash upon exit from the dll hooking), and Valdis Story, all of them failed to work in window capture mode except for, surprisingly, Binding of Isaac. Most of them will either show a white/black screen unless I open up OBS after it's already running, and then it's just a still picture of whatever frame is captured upon starting it.

I've tried several approaches from the forums, disabling hardware acceleration in flash, setting compatibility mode in window capture, completely removing all traces of drivers from my computer for a completely clean install, to uninstalling NVidia GeForce Experience (I don't have any other broadcasting/capture software), disabling my anti-virus, etc etc etc. No clue what to do anymore. I would really like to solve this problem if possible because it's driving me crazy.

Code:
08:22:02: Open Broadcaster Software v0.624b - 64bit ( ^ω^)
08:22:02: -------------------------------
08:22:02: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
08:22:02: CPU Speed: 3400MHz
08:22:02: Physical Memory:  16278MB Total, 12436MB Free
08:22:02: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
08:22:02: monitor 1: pos={0, 0}, size={1920, 1080}
08:22:02: Windows Version: 6.0 Build 6002 S
08:22:02: Aero is Enabled
08:22:02: -------------------------------
08:22:02: OBS Modules:
08:22:02: Base Address     Module
08:22:02: 000000003F850000 OBS.exe
08:22:02: 00000000EAE50000 OBSApi.dll
08:22:02: 00000000F3150000 DShowPlugin.dll
08:22:02: 00000000F3120000 GraphicsCapture.dll
08:22:02: 00000000F30F0000 NoiseGate.dll
08:22:02: 00000000F30C0000 PSVPlugin.dll
08:22:02: ------------------------------------------
08:22:02: Adapter 1
08:22:02:   Video Adapter: NVIDIA GeForce GTX 760
08:22:02:   Video Adapter Dedicated Video Memory: 2087387136
08:22:02:   Video Adapter Shared System Memory: 2147807232
08:22:02:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
08:22:02: =====Stream Start: 2014-05-24, 08:22:02===============================================
08:22:02:   Multithreaded optimizations: On
08:22:02:   Base resolution: 1920x1080
08:22:02:   Output resolution: 852x480
08:22:02: ------------------------------------------
08:22:02: Loading up D3D10 on NVIDIA GeForce GTX 760 (Adapter 1)...
08:22:02: ------------------------------------------
08:22:02: Audio Format: 48000 Hz
08:22:02: ------------------------------------------
08:22:02: Audio Channels: 2 Ch
08:22:02: Playback device Default
08:22:02: ------------------------------------------
08:22:02: Using desktop audio input: Speakers (Realtek High Definition Audio)
08:22:02: Global Audio time adjust: 0
08:22:02: ------------------------------------------
08:22:02: Using auxilary audio input: Microphone (2- Plantronics .Audio 478 USB)
08:22:02: Mic time offset: 0
08:22:02: ------------------------------------------
08:22:02: Audio Encoding: AAC
08:22:02:     bitrate: 128
08:22:02: Using Window Capture
08:22:02: Scene buffering time set to 700
08:22:02: ------------------------------------------
08:22:02: Video Encoding: x264
08:22:02:     fps: 30
08:22:02:     width: 852, height: 480
08:22:02:     preset: veryfast
08:22:02:     profile: main
08:22:02:     keyint: 60
08:22:02:     CBR: yes
08:22:02:     CFR: yes
08:22:02:     max bitrate: 600
08:22:02:     buffer size: 600
08:22:02: ------------------------------------------
08:22:03: Audio timestamp for device 'Microphone (2- Plantronics .Audio 478 USB)' was behind target timestamp by 1054181
08:24:43: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
08:24:43: CUDA loaded successfully
08:24:43: 1 CUDA capable devices found
08:24:43: [ GPU #0 - < GeForce GTX 760 > has Compute SM 3.0, NVENC Available ]
08:30:01: Using graphics capture
08:30:01: Trying to hook process: ourdarkerpurpose.exe
08:30:21: Using Window Capture
08:32:49: Total frames encoded: 19392, total frames duplicated: 105 (0.54%)
08:32:49: Total frames rendered: 19311, number of late frames: 3 (0.02%) (it's okay for some frames to be late)
08:32:49:
08:32:49: Profiler time results:
08:32:49:
08:32:49: ==============================================================
08:32:49: video thread frame - [100%] [avg time: 2.328 ms] [children: 62.3%] [unaccounted: 37.7%]
08:32:49: | scene->Preprocess - [56.7%] [avg time: 1.319 ms]
08:32:49: | GPU download and conversion - [5.67%] [avg time: 0.132 ms] [children: 4.34%] [unaccounted: 1.33%]
08:32:49: | | flush - [2.49%] [avg time: 0.058 ms]
08:32:49: | | CopyResource - [1.63%] [avg time: 0.038 ms]
08:32:49: | | conversion to 4:2:0 - [0.215%] [avg time: 0.005 ms]
08:32:49: Convert444Threads - [100%] [avg time: 0.343 ms] [children: 98.5%] [unaccounted: 1.46%]
08:32:49: | Convert444toNV12 - [98.5%] [avg time: 0.338 ms]
08:32:49: encoder thread frame - [100%] [avg time: 0.554 ms] [children: 0.542%] [unaccounted: 99.5%]
08:32:49: | sending stuff out - [0.542%] [avg time: 0.003 ms]
08:32:49: ==============================================================
08:32:49:
08:32:49:
08:32:49: Profiler CPU results:
08:32:49:
08:32:49: ==============================================================
08:32:49: video thread frame - [cpu time: avg 1.589 ms, total 30701 ms] [avg calls per frame: 1]
08:32:49: | scene->Preprocess - [cpu time: avg 0.951 ms, total 18376.9 ms] [avg calls per frame: 1]
08:32:49: | GPU download and conversion - [cpu time: avg 0.145 ms, total 2808.02 ms] [avg calls per frame: 1]
08:32:49: | | flush - [cpu time: avg 0.075 ms, total 1450.81 ms] [avg calls per frame: 1]
08:32:49: | | CopyResource - [cpu time: avg 0.029 ms, total 561.605 ms] [avg calls per frame: 1]
08:32:49: | | conversion to 4:2:0 - [cpu time: avg 0.008 ms, total 156.002 ms] [avg calls per frame: 1]
08:32:49: Convert444Threads - [cpu time: avg 0.317 ms, total 12246.1 ms] [avg calls per frame: 2]
08:32:49: | Convert444toNV12 - [cpu time: avg 0.31 ms, total 11980.9 ms] [avg calls per frame: 2]
08:32:49: encoder thread frame - [cpu time: avg 0.003 ms, total 62.4 ms] [avg calls per frame: 1]
08:32:49: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
08:32:49: ==============================================================
08:32:49:
08:32:49: =====Stream End: 2014-05-24, 08:32:49=================================================


Last game capture log:
2014-05-24, 08:30:03: we're booting up:
08:30:03: CaptureThread: attached to process ourdarkerpurpose.exe
08:30:03: D3D9 Present
08:30:03: D3D9EndScene called
08:30:03: D3DPRESENT_PARAMETERS {
08:30:03:     BackBufferWidth: 1
08:30:03:     BackBufferHeight: 1
08:30:03:     BackBufferFormat: D3DFMT_A8R8G8B8
08:30:03:     BackBufferCount: 1
08:30:03:     MultiSampleType: D3DMULTISAMPLE_NONE
08:30:03:     MultiSampleQuality: 0
08:30:03:     SwapEffect: D3DSWAPEFFECT_COPY
08:30:03:     hDeviceWindow: 65552
08:30:03:     Windowed: true
08:30:03:     EnableAutoDepthStencil: false
08:30:03:     AutoDepthStencilFormat: D3DFMT_UNKNOWN
08:30:03:     Flags: None
08:30:03:     FullScreen_RefreshRateInHz: 0
08:30:03:     PresentationInterval: 1
08:30:03: };
08:30:03: successfully set up d3d9 hooks
08:30:03: D3D9SwapPresent called
08:30:03: (half life scientist) everything..  seems to be in order
08:30:04: DoD3D9GPUHook: opening intermediary texture failed, result = 2147942487
08:30:04: ---------------------- Cleared D3D9 Capture ----------------------
08:30:04: D3D9EndScene called
08:30:04: D3D9SwapPresent called
08:30:04: DoD3D9GPUHook: opening intermediary texture failed, result = 2147942487
08:30:04: ---------------------- Cleared D3D9 Capture ----------------------
08:30:04: D3D9EndScene called
 
Last edited:

Krazy

Town drunk
You're on a single monitor, so make sure you run your game in borderless windowed mode so that windows behind it will still render
 

thomrae

New Member
Games are in windowed mode already, there's no borderless windowed mode option for them, which is why I'm trying to do window capture. I can go fullscreen, but there's no reason to because it makes harder to do anything on the monitor.

Edit: Also, the two that I didn't specifically mention that worked with game capture didn't seem to work with game capture at fullscreen either.
 
Last edited:

Lain

Forum Admin
Lain
Forum Moderator
Developer
Did you make sure that your copy of windows vista is fully updated in windows updated? It may even need additional optional updates. Windows vista is somewhat problematic right now and is prone to issues. Using 'compatibility mode' with window capture also might help.
 

thomrae

New Member
Compatibility mode did nothing unless I was using it wrong, but I'm sure it's as simple as clicking the checkbox and hitting ok.

Just checked before you replied and installing some silly extension thing, which I installed. Did nothing. All the other crap is just games or language packs.

Been scouring the internet and apparently there's a redraw bug(?) with 64 bit Vista where it doesn't handle redraws the same as 32 bit version? I dunno. Article is here http://blogs.msdn.com/b/alejacma/ar...y-of-windows-exceeds-a-certain-depth-x64.aspx

No clue if it's pertinent to you guys at all or if this same problem occurs on the 32 bit version.


Regardless, sounds like Vista is just a pain in the butt in general, which means I should probably upgrade to Windows 7 anyway so I can take advantage of Shadowplay. Just don't have the money right now to do so.
 
Top