Bug Report Game Capture fails when capturing Vindictus

MannerRev

Member
I've been messing with this for a while now and I've ruled out a lot of things.

1. I had a second GPU enabled (iGPU for QuickSync Encoding) that I've disabled.
2. I made sure to use the 32bit version of OBS since the game client is also 32bit.
3. I downgraded OBS to an older version which I knew previously worked with other games. This didn't help.
4. I checked Game Capture on other games. They are hooked by Game Capture without any issues.
5. Finally, I checked Game Capture in XSplit. It functions properly, hooking into Vindictus and capturing without issue.

Vindictus is a DX9 game built on the Source Engine, albeit modified. For some reason OBS doesn't want to capture and just displays a black screen instead.

With CS: Source, Firefall, and any other game I tried, I experienced no problems at all in OBS using Game Capture.

Here are some screenshots to provide more information: http://imgur.com/a/mikWL

TL;DR: Game Capture doesn't hook Vindictus in OBS, but works fine in XSplit (and OBS in other games).


Edit: Added log file! Note: In the log file it says Aero is Disabled. I've tried with it ON/OFF and it made no difference. I'm assuming the problem has something to do with this:
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 5
02:34:36: Capture window 0x0018020A invalid or changing, terminating capture


Code:
02:34:14: Open Broadcaster Software v0.552b - 32bit (´・ω・`)
02:34:14: -------------------------------
02:34:14: CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
02:34:14: CPU Speed: 3501MHz
02:34:14: Physical Memory:  4095MB Total, 4095MB Free
02:34:14: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
02:34:14: monitor 1: pos={0, 0}, size={1920, 1200}
02:34:14: Windows Version: 6.1 Build 7601 S
02:34:14: Aero is Disabled
02:34:14: -------------------------------
02:34:14: OBS Modules:
02:34:14: Base Address     Module
02:34:14: 00110000         OBS.exe
02:34:14: 679C0000         OBSApi.dll
02:34:14: 697A0000         DShowPlugin.dll
02:34:14: 69780000         GraphicsCapture.dll
02:34:14: 69760000         NoiseGate.dll
02:34:14: 695F0000         PSVPlugin.dll
02:34:14: ------------------------------------------
02:34:14: Adapter 1
02:34:14:   Video Adapter: NVIDIA GeForce GTX 680
02:34:14:   Video Adapter Dedicated Video Memory: 2087387136
02:34:14:   Video Adapter Shared System Memory: 2147807232
02:34:14: =====Stream Start: 2013-08-19, 02:34:14===============================================
02:34:14:   Multithreaded optimizations: On
02:34:14:   Base resolution: 1920x1200
02:34:14:   Output resolution: 1920x1200
02:34:14: ------------------------------------------
02:34:14: Loading up D3D10 on NVIDIA GeForce GTX 680...
02:34:14: Playback device Default
02:34:14: ------------------------------------------
02:34:14: Using desktop audio input: Razer HP-1 (Razer Barracuda AC-1 Gaming Audio Card)
02:34:14: ------------------------------------------
02:34:14: Using auxilary audio input: Microphone (Razer Barracuda AC-1 Gaming Audio Card)
02:34:14: ------------------------------------------
02:34:14: Audio Encoding: AAC
02:34:14:     bitrate: 128
02:34:14: Using graphics capture
02:34:14: Using custom x264 settings: "b-adapt=1 bframes=8 rc-lookahead=30 subme=2"
02:34:14: ------------------------------------------
02:34:14: Video Encoding: x264
02:34:14:     fps: 30
02:34:14:     width: 1920, height: 1200
02:34:14:     preset: veryfast
02:34:14:     CBR: yes
02:34:14:     CFR: no
02:34:14:     max bitrate: 3500
02:34:14: ------------------------------------------
02:34:14: MMDeviceAudioSource: Frequency for device 'Razer HP-1 (Razer Barracuda AC-1 Gaming Audio Card)' is 384000, samples per sec is 48000
02:34:14: MMDeviceAudioSource: Frequency for device 'Microphone (Razer Barracuda AC-1 Gaming Audio Card)' is 768000, samples per sec is 96000
Warning -- GraphicsCaptureSource::BeginScene: Failed to inject library, GetLastError = 5
02:34:36: Capture window 0x0018020A invalid or changing, terminating capture
02:34:37: Total frames rendered: 674, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
02:34:37: 
02:34:37: Profiler results:
02:34:37: 
02:34:37: ==============================================================
02:34:37: frame - [100%] [avg time: 2.121 ms (cpu time: avg 2.295 ms, total 1546.88 ms)] [avg calls per frame: 1] [children: 99.9%] [unaccounted: 0.141%]
02:34:37: | frame preprocessing and rendering - [13.6%] [avg time: 0.289 ms (cpu time: avg 0.51 ms, total 343.75 ms)] [avg calls per frame: 1] [children: 0%] [unaccounted: 13.6%]
02:34:37: | | scene->Preprocess - [0%] [avg time: 0 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
02:34:37: | video encoding and uploading - [86.2%] [avg time: 1.829 ms (cpu time: avg 1.785 ms, total 1203.13 ms)] [avg calls per frame: 1] [children: 85.8%] [unaccounted: 0.424%]
02:34:37: | | flush - [2.55%] [avg time: 0.054 ms (cpu time: avg 0.023 ms, total 15.625 ms)] [avg calls per frame: 1]
02:34:37: | | CopyResource - [0.566%] [avg time: 0.012 ms (cpu time: avg 0.023 ms, total 15.625 ms)] [avg calls per frame: 0]
02:34:37: | | conversion to 4:2:0 - [0.141%] [avg time: 0.003 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
02:34:37: | | call to encoder - [82.5%] [avg time: 1.75 ms (cpu time: avg 1.738 ms, total 1171.88 ms)] [avg calls per frame: 0]
02:34:37: | | sending stuff out - [0.0471%] [avg time: 0.001 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
02:34:37: | Convert444Threads - [3.06e+003%] [avg time: 64.983 ms (cpu time: avg 1.46 ms, total 984.375 ms)] [avg calls per frame: 1]
02:34:37: ==============================================================
02:34:37: 
02:34:37: =====Stream End: 2013-08-19, 02:34:37=================================================
 

Krazy

Town drunk
Generally those free online MMO things have aggressive/bad anti cheat stuff that will block Game Capture. (Don't quote me on this, but if I remember right Error 5 basically means access denied). Considering other games work just fine with Game Capture, I'm even more inclined to believe this possibility.

If you can play the game in some sort of Windowed Mode, you can use Window Capture with Aero enabled. It shouldn't be blocked by anti cheat, and as long as Aero is enabled, Window Capture will pretty much be just as fast as Game Capture.
 

MannerRev

Member
Would I be correct in saying that "Game Capture > Window Capture (Aero Enabled) > Montor Capture (Aero Disabled)" in terms of speed? I never did understand aero on/off for monitor/window capture.

Also, yes Vindictus does have Anticheat. I suppose it blocked OBS since OBS is newer and untrusted by the anticheat yet, as XSplit works just fine when it hooks Vindictus.
 

Krazy

Town drunk
Game Capture = Window Capture (Aero enabled) >>>> Monitor Capture (Aero Disabled) >>>>>>>>>>>>>>>>>>>>>>> Monitor Capture (Aero Enabled)
 

MannerRev

Member
Glad to know I was on the right track.

Since I only stream with one monitor, I would strongly prefer game capture. mainly because it only captures the game and ignores other windows which can become distracting to viewers. I had been using monitor capture (aero disabled) and streamprivacy to hide extraneous windows, but the performance hit is kind of obnoxious. hence why I was looking for something more efficient in terms of a capturing source.

would there be any way to change the way it interacts with the game client? Fraps also hooks just fine so I feel like this is a localized issue. I haven't tried dxtory yet however. might have to give that a shot.
 

Krazy

Town drunk
Window Capture with Aero enabled will only capture the window you select, another reason it is my weapon of choice.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I didn't see it suggested, but if possible make sure you are running OBS as admin. Error 5 means access denied.
 

MannerRev

Member
Krazy said:
Window Capture with Aero enabled will only capture the window you select, another reason it is my weapon of choice.
That's super fancy. I did not know this -- thanks for the tip! When using Window Capture with Aero enabled, would you suggest "inner window" or "entire window"?

Jim said:
I didn't see it suggested, but if possible make sure you are running OBS as admin. Error 5 means access denied.
I have UAC Disabled so I believe it's run as admin by default, but I'll give this a shot just in case.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Even with UAC disabled it doesn't run admin by default. Especially on say windows 8, I've experienced this myself
 

Krazy

Town drunk
MannerRev said:
Krazy said:
Window Capture with Aero enabled will only capture the window you select, another reason it is my weapon of choice.
That's super fancy. I did not know this -- thanks for the tip! When using Window Capture with Aero enabled, would you suggest "inner window" or "entire window"?

Jim said:
I didn't see it suggested, but if possible make sure you are running OBS as admin. Error 5 means access denied.
I have UAC Disabled so I believe it's run as admin by default, but I'll give this a shot just in case.

I suggest Inner Window. Entire Window captures the menus/borders and usually you don't want that
 

MannerRev

Member
Krazy said:
I suggest Inner Window. Entire Window captures the menus/borders and usually you don't want that

Okay, WOW. I just tried Window Capture with Aero enabled and I gotta say it's so much faster than Monitor Capture with Aero disabled... that I thought it was a fluke. I had to go back a few times and make sure I was actually encoding. It's so fast I can barely even notice a frame hit! Thanks so much! I suddenly don't mind not having game capture anymore.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Yea, window capture with aero on means it's a GPU-based capture -- basically equivalent to game capture (and more stable to boot). Would love to know if the admin thing helps for you though.

EDIT: Oh wait you're still getting error 5. I'll download the game myself to see if I can reproduce that.
 

MannerRev

Member
Ah, well that's awesome and good to know. I'll use it as a replacement for the time being.

And as for the admin thing, I replied a few posts back -- you must have missed it! :)
MannerRev said:
Just ran as admin to make sure, but it's still giving me that black screen with the Error 5.

Edit: I should note that I don't run it from Steam. You can, but it has a slightly different loading process (you login through a window in steam before the game starts, rather than at the login screen AFTER the game's open). Not sure if it matters, but might help you in case you were wondering on how to reproduce exactly what I have happening.
 
Top