Question / Help PvZ Garden Warfare/Origin Games Not Capping with New Monitors

OnTheFrontLine

New Member
I just recently moved and i used to have a 52 inch(1920x1080)/20 inch(not sure on res) monitor setup, but i am now running dual 24 inch (1920x1200) monitors. I use OBS 32 bit for plugin compatibility but since i have switched monitors It seems like the game capture is no longer working with Plants vs Zombies Garden Warfare and another game or two i tested within Origin. It seems to cap with the 64 bit, but i think it locked up a couple times while i was testing that. It oes seem to work somewhat if i do the borderless window setting within the game, but not the regular fullscreen like i was running before the move.

I have changed my monitor resolutions to 1920x1080 to match what i had before. I have reset the video settings in PvZGW and I've even resinstalled Origin/Video drivers. I am running a EVGA GTX760, Windows 8, latest Nvidia drivers released the other day. This occurred before the driver update so i know that is not it. I currently run 1920x1080 downscale to 720p/30fps (this has always worked perfect).

My computer is turned off right now and i am remote so i cannot get the log files at this time, but i will check them out when i get home.

In summary, it appears to have something to do with the change of monitors, but i am not 100% on that.

Any help would be greatly appreciated :-)
 

OnTheFrontLine

New Member
Relevant info from log file:

Code:
14:59:30: Trying to hook process: PVZ.Main_Win64_Retail.exe
Warning -- GraphicsCaptureSource::AttemptCapture: Failed to inject library, error code = -5
15:00:07: Capture window 0x000104F6 invalid or changing, terminating capture
 

OnTheFrontLine

New Member
Here is the full logfile:

Code:
16:21:01: Open Broadcaster Software v0.625b - 32bit (´・ω・`)
16:21:01: -------------------------------
16:21:01: CPU Name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
16:21:01: CPU Speed: 3400MHz
16:21:01: Physical Memory:  4095MB Total, 4095MB Free
16:21:01: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
16:21:01: monitor 1: pos={0, 0}, size={1920, 1200}
16:21:01: monitor 2: pos={1920, 0}, size={1920, 1200}
16:21:01: Windows Version: 6.2 Build 9200
16:21:01: Aero is Enabled
16:21:01: -------------------------------
16:21:01: OBS Modules:
16:21:01: Base Address     Module
16:21:01: 012B0000         OBS.exe
16:21:01: 6E130000         OBSApi.dll
16:21:01: 73980000         DShowPlugin.dll
16:21:01: 73CE0000         GraphicsCapture.dll
16:21:01: 73950000         NoiseGate.dll
16:21:01: 67DB0000         PSVPlugin.dll
16:21:01: ------------------------------------------
16:21:01: Adapter 1
16:21:01:   Video Adapter: NVIDIA GeForce GTX 760
16:21:01:   Video Adapter Dedicated Video Memory: 2083188736
16:21:01:   Video Adapter Shared System Memory: 2147807232
16:21:01:   Video Adapter Output 1: pos={0, 0}, size={1920, 1200}, attached=true
16:21:01:   Video Adapter Output 2: pos={1920, 0}, size={1920, 1200}, attached=true
16:21:01: =====Stream Start: 2014-08-11, 16:21:01===============================================
16:21:01:   Multithreaded optimizations: On
16:21:01:   Base resolution: 1920x1080
16:21:01:   Output resolution: 1280x720
16:21:01: ------------------------------------------
16:21:01: Loading up D3D10 on NVIDIA GeForce GTX 760 (Adapter 1)...
16:21:02: ------------------------------------------
16:21:02: Audio Format: 48000 Hz
16:21:02: ------------------------------------------
16:21:02: Audio Channels: 2 Ch
16:21:02: Playback device {0.0.0.00000000}.{e8035b29-5184-42a8-94a8-49b166bae2e2}
16:21:02: ------------------------------------------
16:21:02: Using desktop audio input: Speakers (3- Logitech G430 Gaming Headset)
16:21:02: Global Audio time adjust: 0
16:21:02: Using 7.1 surround speaker setup
16:21:02: ------------------------------------------
16:21:02: Using auxilary audio input: Microphone (3- Logitech G430 Gaming Headset)
16:21:02: Mic time offset: 0
16:21:02: ------------------------------------------
16:21:02: Audio Encoding: AAC
16:21:02:     bitrate: 128
16:21:02: Using bitmap image
16:21:02: ------------------------------------------
16:21:02:     device: Logitech QuickCam Pro 9000,
16:21:02:     device id \\?\usb#vid_046d&pid_0990&mi_00#7&14680d92&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
16:21:02:     chosen type: I420, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000
16:21:02:     use buffering: false - 0, fourCC: 'I420'
16:21:02:     audio device: Disable,
16:21:02:     audio device id Disabled,
16:21:02:     audio time offset 0,
16:21:02:
16:21:02: Using directshow input
16:21:02: Using graphics capture
16:21:02: Using bitmap image
16:21:02: Using bitmap image
16:21:02: Scene buffering time set to 700
16:21:02: Successfully loaded ObsNvenc.dll
16:21:02: ObsNvenc initialized successfully
16:21:02: CUDA loaded successfully
16:21:02: 1 CUDA capable devices found
16:21:02: [ GPU #0 - < GeForce GTX 760 > has Compute SM 3.0, NVENC Available ]
16:21:02: NVENC internal init finished successfully
16:21:02: NVENC supports 8 h264 presets
16:21:02: ------------------------------------------
16:21:02: Video Encoding: NVENC
16:21:02:     fps: 30
16:21:02:     width: 1280, height: 720
16:21:02:     preset: llhq
16:21:02:     profile: main
16:21:02:     level: autoselect
16:21:02:     keyint: 60
16:21:02:     CBR: yes
16:21:02:     CFR: yes
16:21:02:     max bitrate: 2500
16:21:02:     avg bitrate: 2500
16:21:02:     buffer size: 2500
16:21:02: ------------------------------------------
16:22:11: Trying to hook process: PVZ.Main_Win64_Retail.exe
Warning -- GraphicsCaptureSource::AttemptCapture: Failed to inject library, error code = -5
16:22:17: Capture window 0x000206DA invalid or changing, terminating capture
16:22:25: Total frames encoded: 2463, total frames duplicated: 61 (2.48%)
16:22:25: Number of frames skipped due to encoder lag: 28 (1.14%)
16:22:25: Total frames rendered: 2397, number of late frames: 6 (0.25%) (it's okay for some frames to be late)
16:22:25: Encoder closed
16:22:25: NVENC deinitialized
16:22:25:
16:22:25: Profiler time results:
16:22:25:
16:22:25: ==============================================================
16:22:25: video thread frame - [100%] [avg time: 2.198 ms] [children: 17.3%] [unaccounted: 82.7%]
16:22:25: | scene->Preprocess - [6.23%] [avg time: 0.137 ms]
16:22:25: | GPU download and conversion - [11.1%] [avg time: 0.244 ms] [children: 10%] [unaccounted: 1.09%]
16:22:25: | | flush - [5.78%] [avg time: 0.127 ms]
16:22:25: | | CopyResource - [0.91%] [avg time: 0.02 ms]
16:22:25: | | conversion to 4:2:0 - [3.32%] [avg time: 0.073 ms]
16:22:25: Convert444Threads - [100%] [avg time: 0.506 ms] [children: 98.8%] [unaccounted: 1.19%]
16:22:25: | Convert444toNV12 - [98.8%] [avg time: 0.5 ms]
16:22:25: encoder thread frame - [100%] [avg time: 9.679 ms] [children: 0.031%] [unaccounted: 100%]
16:22:25: | sending stuff out - [0.031%] [avg time: 0.003 ms]
16:22:25: ==============================================================
16:22:25:
16:22:25:
16:22:25: Profiler CPU results:
16:22:25:
16:22:25: ==============================================================
16:22:25: video thread frame - [cpu time: avg 0.912 ms, total 2187.5 ms] [avg calls per frame: 1]
16:22:25: | scene->Preprocess - [cpu time: avg 0.006 ms, total 15.625 ms] [avg calls per frame: 1]
16:22:25: | GPU download and conversion - [cpu time: avg 0.13 ms, total 312.5 ms] [avg calls per frame: 1]
16:22:25: | | flush - [cpu time: avg 0.097 ms, total 234.375 ms] [avg calls per frame: 1]
16:22:25: | | CopyResource - [cpu time: avg 0.019 ms, total 46.875 ms] [avg calls per frame: 1]
16:22:25: | | conversion to 4:2:0 - [cpu time: avg 0.006 ms, total 15.625 ms] [avg calls per frame: 1]
16:22:25: Convert444Threads - [cpu time: avg 0.609 ms, total 2890.63 ms] [avg calls per frame: 2]
16:22:25: | Convert444toNV12 - [cpu time: avg 0.609 ms, total 2890.63 ms] [avg calls per frame: 2]
16:22:25: encoder thread frame - [cpu time: avg 0.109 ms, total 265.625 ms] [avg calls per frame: 1]
16:22:25: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
16:22:25: ==============================================================
16:22:25:
16:22:25: =====Stream End: 2014-08-11, 16:22:25=================================================

Here is the captureHookLog
Code:
2014-08-11, 16:04:49: we're booting up: 
16:04:49: CaptureThread: attached to process castle.exe
16:04:49: D3D9 Present
16:04:49: D3D9EndScene called
16:04:49: D3DPRESENT_PARAMETERS {
16:04:49:     BackBufferWidth: 1920
16:04:49:     BackBufferHeight: 1080
16:04:49:     BackBufferFormat: D3DFMT_X8R8G8B8
16:04:49:     BackBufferCount: 1
16:04:49:     MultiSampleType: D3DMULTISAMPLE_NONE
16:04:49:     MultiSampleQuality: 0
16:04:49:     SwapEffect: D3DSWAPEFFECT_DISCARD
16:04:49:     hDeviceWindow: 525974
16:04:49:     Windowed: false
16:04:49:     EnableAutoDepthStencil: true
16:04:49:     AutoDepthStencilFormat: D3DFMT_D16
16:04:49:     Flags: None
16:04:49:     FullScreen_RefreshRateInHz: 59
16:04:49:     PresentationInterval: 1
16:04:49: };
16:04:49: successfully set up d3d9 hooks
16:04:49: D3D9Present called
16:04:49: (half life scientist) everything..  seems to be in order
16:04:49: DoD3D9GPUHook: success
16:04:49: D3DSURFACE_DESC {
16:04:49:     Format: D3DFMT_X8R8G8B8
16:04:49:     Type: D3DRTYPE_SURFACE
16:04:49:     Usage: D3DUSAGE_RENDERTARGET 
16:04:49:     Pool: D3DPOOL_DEFAULT
16:04:49:     MultiSampleType: D3DMULTISAMPLE_NONE
16:04:49:     MultiSampleQuality: 0
16:04:49:     Width: 1920
16:04:49:     Height: 1080
16:04:49: };
16:04:49: successfully capturing d3d9 frames via GPU
 

OnTheFrontLine

New Member
I am beginning to think this is related to the latest Origin update they just released, and has nothing to do with my change of monitors. I can capture all steam games fine, it is only Origin games that give me this error:

Trying to hook process: PVZ.Main_Win64_Retail.exe
Warning -- GraphicsCaptureSource::AttemptCapture: Failed to inject library, error code = -5
 

dodgepong

Administrator
Community Helper
That error message means "Acess Denied". Make sure you're running OBS as administrator, and give "Anti-cheat compatibility" a try in Game Capture.

This should have nothing to do with your monitors.
 

OnTheFrontLine

New Member
The anti cheat seems to have cleared it up. I see it says only use if necessary. Is it safe to leave it on or should i just turn it off if problem arise?
 

dodgepong

Administrator
Community Helper
It's safe to leave it on, but if you're using it on a game that doesn't need it, then you can turn it off.
 
Top