Question / Help Battlefield 3 Game Capture Issue

bavvb

New Member
Hi, I tried looking for a solution for this but I couldn't find any on this forum or elsewhere. I'm having the issue where using game capture as a source for Battlefield 3 results in a black screen on the stream. I've tried the hotkey fix which doesn't seem to do anything. I am aware that I also seem to be getting massive late frames but I would like to solve this problem first. Here is my log
Code:
20:04:45: Settings::Video: Disabling Aero
20:05:40: Open Broadcaster Software v0.554b - 64bit ( ^ω^)
20:05:40: -------------------------------
20:05:40: CPU Name: Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz
20:05:40: CPU Speed: 2798MHz
20:05:40: Physical Memory:  8183MB Total, 3824MB Free
20:05:40: stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
20:05:40: monitor 1: pos={0, 0}, size={1920, 1080}
20:05:40: monitor 2: pos={-1280, -74}, size={1280, 1024}
20:05:40: Windows Version: 6.1 Build 7601 S
20:05:40: Aero is Disabled
20:05:40: -------------------------------
20:05:40: OBS Modules:
20:05:40: Base Address     Module
20:05:40: 000000003F8A0000 OBS.exe
20:05:40: 00000000EED50000 OBSApi.dll
20:05:40: 00000000F5D60000 DShowPlugin.dll
20:05:40: 00000000F6060000 GraphicsCapture.dll
20:05:40: 00000000F7540000 NoiseGate.dll
20:05:40: 00000000F6040000 PSVPlugin.dll
20:05:40: ------------------------------------------
20:05:40: Adapter 1
20:05:40:   Video Adapter: NVIDIA GeForce GTX 260
20:05:40:   Video Adapter Dedicated Video Memory: 911605760
20:05:40:   Video Adapter Shared System Memory: 3354996736
20:05:40: =====Stream Start: 2013-09-24, 20:05:40===============================================
20:05:40:   Multithreaded optimizations: On
20:05:40:   Base resolution: 1920x1080
20:05:40:   Output resolution: 1280x720
20:05:40: ------------------------------------------
20:05:40: Loading up D3D10 on NVIDIA GeForce GTX 260...
20:05:40: C:/Users/bavvb/AppData/Roaming/OBS/shaderCache/shaders/DrawTexture.pShader.blob
20:05:41: C:/Users/bavvb/AppData/Roaming/OBS/shaderCache/shaders/DrawSolid.pShader.blob
20:05:41: C:/Users/bavvb/AppData/Roaming/OBS/shaderCache/shaders/DownscaleBilinear1YUV.pShader.blob
20:05:41: Playback device Default
20:05:41: ------------------------------------------
20:05:41: Using desktop audio input: Speakers (Creative SB X-Fi)
20:05:41: ------------------------------------------
20:05:41: Using auxilary audio input: Microphone (USB Audio Device)
20:05:41: ------------------------------------------
20:05:41: Audio Encoding: AAC
20:05:41:     bitrate: 128
20:05:41: Using graphics capture
20:05:41: C:/Users/bavvb/AppData/Roaming/OBS/shaderCache/shaders/DrawTexture_ColorAdjust.pShader.blob
20:05:41: Using custom x264 settings: "keyint=120"
20:05:41: ------------------------------------------
20:05:41: Video Encoding: x264
20:05:41:     fps: 60
20:05:41:     width: 1280, height: 720
20:05:41:     preset: veryfast
20:05:41:     CBR: yes
20:05:41:     CFR: yes
20:05:41:     max bitrate: 3500
20:05:41:     buffer size: 3500
20:05:41: ------------------------------------------
20:05:41: MMDeviceAudioSource: Frequency for device 'Speakers (Creative SB X-Fi)' is 384000, samples per sec is 48000
20:05:41: MMDeviceAudioSource: Frequency for device 'Microphone (USB Audio Device)' is 64000, samples per sec is 16000
20:05:43: Using RTMP service: Twitch / Justin.tv
20:05:43:   Server selection: rtmp://live-lax.justin.tv/app
20:05:43:   Interface: Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20) (ethernet, 100 mbps)
20:05:44: SO_SNDBUF was at 8192
20:05:44: SO_SNDBUF is now 65536
Warning -- D3D10Texture::CreateFromSharedHandle: Failed to open shared handle, result = 0x8007000E
Warning -- SharedTexCapture::Init: Could not create shared texture
20:06:29: Total frames rendered: 301, number of late frames: 266 (88.37%) (it's okay for some frames to be late)
20:06:29: Total duplicated frames to ensure constant framerate: 2532 (841.20%)
20:06:29: RTMPPublisher::SocketLoop: Graceful loop exit
20:06:29: Number of times waited to send: 0, Waited for a total of 0 bytes
20:06:29: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:06:29: 
20:06:29: Profiler results:
20:06:29: 
20:06:29: ==============================================================
20:06:29: frame - [100%] [avg time: 156.985 ms (cpu time: avg 32.236 ms, total 9703.13 ms)] [avg calls per frame: 1] [children: 100%] [unaccounted: 0.00319%]
20:06:29: | frame preprocessing and rendering - [1.11%] [avg time: 1.742 ms (cpu time: avg 0.726 ms, total 218.75 ms)] [avg calls per frame: 1] [children: 0.00127%] [unaccounted: 1.11%]
20:06:29: | | scene->Preprocess - [0.00127%] [avg time: 0.002 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
20:06:29: | video encoding and uploading - [98.9%] [avg time: 155.238 ms (cpu time: avg 31.509 ms, total 9484.38 ms)] [avg calls per frame: 1] [children: 97.8%] [unaccounted: 1.11%]
20:06:29: | | flush - [0.179%] [avg time: 0.281 ms (cpu time: avg 0.103 ms, total 31.25 ms)] [avg calls per frame: 1]
20:06:29: | | CopyResource - [72%] [avg time: 112.969 ms (cpu time: avg 5.45 ms, total 1640.63 ms)] [avg calls per frame: 0]
20:06:29: | | conversion to 4:2:0 - [0.0108%] [avg time: 0.017 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
20:06:29: | | call to encoder - [25.3%] [avg time: 39.761 ms (cpu time: avg 25.799 ms, total 7765.63 ms)] [avg calls per frame: 9]
20:06:29: | | sending stuff out - [0.295%] [avg time: 0.463 ms (cpu time: avg 0.103 ms, total 31.25 ms)] [avg calls per frame: 9]
20:06:29: | Convert444Threads - [200%] [avg time: 313.327 ms (cpu time: avg 3.945 ms, total 1187.5 ms)] [avg calls per frame: 1]
20:06:29: ==============================================================
20:06:29: 
20:06:29: =====Stream End: 2013-09-24, 20:06:29=================================================


Last game capture log:
2013-09-24, 20:05:49: we're booting up: 
20:05:49: D3D9 Present
20:05:49: DXGI Present
20:05:49: (half life scientist) everything..  seems to be in order
20:05:49: DXGI: Found D3D 11
20:05:49: setting up d3d11 data
20:05:49: ---------------------- Cleared D3D11 Capture ----------------------
20:05:49: found dxgi format (dx11) of: 28, size: {1920, 1018}, multisampled: false
20:05:49: DoD3D11Hook: success
20:05:49: successfully capturing d3d11 frames via GPU
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
The error returned by game capture apparently says there is insufficient memory (I'm assuming video memory) to do the game capture in this case -- hm, although your video card is a bit lower end, I don't think BF3 uses -that- much memory that it would cause that error. Very unusual. Can BF3 be run borderless/windowed? I'd like to see if window capture works on it or not, but window capture can't capture a fullscreen mode game. Otherwise, you could try to do is check to see if turning down the texture settings in BF3 helps. Let me know if either of those things work.

You have any other applications active on your computer? Maybe they're eating up your video memory as well, not entirely sure, kind of a rare error here for this one.
 

alpinlol

Active Member
gtx 260 got only 800 something ddr3 vram ... and also it doesnt support dx11

i had a lot problems streaming with that gpu because no matter what capture method i couldnt even get a stable 30 fps capture

your render times and late frames are terrible high anyway
 

bavvb

New Member
Sorry for the late reply. BF3 can be run borderless/windowed which works with window capture but I was under the impression that game capture gives the best performance which is why I'm trying to get it to work. I tried streaming again with everything set to low and I still get a black screen in game capture mode. Here is my log from that attempt. Is it really just a problem with my video card or something else?
Code:
23:52:29: Open Broadcaster Software v0.57b - 32bit (´・ω・`)
23:52:29: -------------------------------
23:52:29: CPU Name: Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz
23:52:29: CPU Speed: 2798MHz
23:52:29: Physical Memory:  4095MB Total, 4095MB Free
23:52:29: stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
23:52:29: monitor 1: pos={0, 0}, size={1920, 1080}
23:52:29: monitor 2: pos={-1280, -74}, size={1280, 1024}
23:52:29: Windows Version: 6.1 Build 7601 S
23:52:29: Aero is Disabled
23:52:29: -------------------------------
23:52:29: OBS Modules:
23:52:29: Base Address     Module
23:52:29: 013C0000         OBS.exe
23:52:29: 6AA90000         OBSApi.dll
23:52:29: 73F50000         DShowPlugin.dll
23:52:29: 73DC0000         GraphicsCapture.dll
23:52:29: 737A0000         NoiseGate.dll
23:52:29: 739D0000         PSVPlugin.dll
23:52:29: ------------------------------------------
23:52:29: Adapter 1
23:52:29:   Video Adapter: NVIDIA GeForce GTX 260
23:52:29:   Video Adapter Dedicated Video Memory: 911605760
23:52:29:   Video Adapter Shared System Memory: 3354996736
23:52:29: =====Stream Start: 2013-09-25, 23:52:29===============================================
23:52:29:   Multithreaded optimizations: On
23:52:29:   Base resolution: 1920x1080
23:52:29:   Output resolution: 1280x720
23:52:29: ------------------------------------------
23:52:29: Loading up D3D10 on NVIDIA GeForce GTX 260...
23:52:29: ------------------------------------------
23:52:29: Audio Format: 48000hz
23:52:29: Playback device Default
23:52:29: ------------------------------------------
23:52:29: Using desktop audio input: Speakers (Creative SB X-Fi)
23:52:29: ------------------------------------------
23:52:29: Using auxilary audio input: Microphone (USB Audio Device)
23:52:29: ------------------------------------------
23:52:29: Audio Encoding: AAC
23:52:29:     bitrate: 128
23:52:29: Using graphics capture
23:52:29: Using custom x264 settings: "keyint=120"
23:52:29: ------------------------------------------
23:52:29: Video Encoding: x264
23:52:29:     fps: 60
23:52:29:     width: 1280, height: 720
23:52:29:     preset: veryfast
23:52:29:     profile: high
23:52:29:     keyint: 120
23:52:29:     CBR: yes
23:52:29:     CFR: yes
23:52:29:     max bitrate: 3500
23:52:29:     buffer size: 3500
23:52:29: ------------------------------------------
23:52:29: MMDeviceAudioSource: Frequency for device 'Speakers (Creative SB X-Fi)' is 384000, samples per sec is 48000
23:52:29: MMDeviceAudioSource: Frequency for device 'Microphone (USB Audio Device)' is 64000, samples per sec is 16000
23:52:31: Using RTMP service: Twitch / Justin.tv
23:52:31:   Server selection: rtmp://live-lax.justin.tv/app
23:52:31:   Interface: Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20) (ethernet, 100 mbps)
23:52:31: Completed handshake with rtmp://live-lax.justin.tv/app in 85 ms.
23:52:32: SO_SNDBUF was at 8192
23:52:32: SO_SNDBUF is now 65536
23:52:32: Using Window Capture
23:52:33: Using Window Capture
23:53:39: Using graphics capture
23:53:39: Using Window Capture
23:53:40: Using graphics capture
23:53:41: Using graphics capture
23:53:41: Using graphics capture
23:53:50: SharedTexCapture hooked
23:53:52: Capture hotkey triggered for new window, terminating capture
Warning -- D3D10Texture::CreateFromSharedHandle: Failed to open shared handle, result = 0x8007000E
Warning -- SharedTexCapture::Init: Could not create shared texture
23:55:21: Using Window Capture
23:56:20: Total frames encoded: 13751, total frames duplicated: 11242 (81.75%)
23:56:20: Number of frames skipped due to encoder lag: 14 (0.10%)
23:56:20: Total frames rendered: 2563, number of late frames: 2361 (92.12%) (it's okay for some frames to be late)
23:56:20: RTMPPublisher::SocketLoop: Graceful loop exit
23:56:20: Average send payload: 7642 bytes, average send interval: 16 ms
23:56:20: Number of times waited to send: 0, Waited for a total of 0 bytes
23:56:20: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:56:20: Number of bytes sent: 103229275
23:56:20: 
23:56:20: Profiler time results:
23:56:20: 
23:56:20: ==============================================================
23:56:20: video thread frame - [100%] [avg time: 25.508 ms] [children: 94.6%] [unaccounted: 5.36%]
23:56:20: | scene->Preprocess - [94.6%] [avg time: 24.141 ms]
23:56:20: GPU download and conversion - [100%] [avg time: 63.651 ms] [children: 101%] [unaccounted: -1.03%]
23:56:20: | flush - [0.247%] [avg time: 0.157 ms]
23:56:20: | CopyResource - [101%] [avg time: 64.091 ms]
23:56:20: | conversion to 4:2:0 - [0.0927%] [avg time: 0.059 ms]
23:56:20: Convert444Threads - [100%] [avg time: 1.887 ms] [children: 99.1%] [unaccounted: 0.901%]
23:56:20: | Convert444toNV12 - [99.1%] [avg time: 1.87 ms]
23:56:20: encoder thread frame - [100%] [avg time: 3.084 ms]
23:56:20: ==============================================================
23:56:20: 
23:56:20: 
23:56:20: Profiler CPU results:
23:56:20: 
23:56:20: ==============================================================
23:56:20: video thread frame - [cpu time: avg 10.924 ms, total 28000 ms] [avg calls per frame: 1]
23:56:20: | scene->Preprocess - [cpu time: avg 10.132 ms, total 25968.8 ms] [avg calls per frame: 1]
23:56:20: GPU download and conversion - [cpu time: avg 5.876 ms, total 15062.5 ms] [avg calls per frame: 1]
23:56:20: | flush - [cpu time: avg 0.128 ms, total 328.125 ms] [avg calls per frame: 1]
23:56:20: | CopyResource - [cpu time: avg 5.769 ms, total 14625 ms] [avg calls per frame: 1]
23:56:20: | conversion to 4:2:0 - [cpu time: avg 0.012 ms, total 31.25 ms] [avg calls per frame: 1]
23:56:20: Convert444Threads - [cpu time: avg 1.56 ms, total 7906.25 ms] [avg calls per frame: 2]
23:56:20: | Convert444toNV12 - [cpu time: avg 1.553 ms, total 7875 ms] [avg calls per frame: 2]
23:56:20: encoder thread frame - [cpu time: avg 2.213 ms, total 30390.6 ms] [avg calls per frame: 1]
23:56:20: ==============================================================
23:56:20: 
23:56:20: =====Stream End: 2013-09-25, 23:56:20=================================================
23:56:21: =====Stream Start: 2013-09-25, 23:56:21===============================================
23:56:21:   Multithreaded optimizations: On
23:56:21:   Base resolution: 1920x1080
23:56:21:   Output resolution: 1280x720
23:56:21: ------------------------------------------
23:56:21: Loading up D3D10 on NVIDIA GeForce GTX 260...
23:56:22: ------------------------------------------
23:56:22: Audio Format: 48000hz
23:56:22: Playback device Default
23:56:22: ------------------------------------------
23:56:22: Using desktop audio input: Speakers (Creative SB X-Fi)
23:56:22: ------------------------------------------
23:56:22: Using auxilary audio input: Microphone (USB Audio Device)
23:56:22: ------------------------------------------
23:56:22: Audio Encoding: AAC
23:56:22:     bitrate: 128
23:56:22: Using graphics capture
23:56:22: Using custom x264 settings: "keyint=120"
23:56:22: ------------------------------------------
23:56:22: Video Encoding: x264
23:56:22:     fps: 60
23:56:22:     width: 1280, height: 720
23:56:22:     preset: veryfast
23:56:22:     profile: high
23:56:22:     keyint: 120
23:56:22:     CBR: yes
23:56:22:     CFR: yes
23:56:22:     max bitrate: 3500
23:56:22:     buffer size: 3500
23:56:22: ------------------------------------------
23:56:22: MMDeviceAudioSource: Frequency for device 'Speakers (Creative SB X-Fi)' is 384000, samples per sec is 48000
23:56:22: MMDeviceAudioSource: Frequency for device 'Microphone (USB Audio Device)' is 64000, samples per sec is 16000
23:56:23: Using RTMP service: Twitch / Justin.tv
23:56:23:   Server selection: rtmp://live-lax.justin.tv/app
23:56:23:   Interface: Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20) (ethernet, 100 mbps)
23:56:24: Completed handshake with rtmp://live-lax.justin.tv/app in 74 ms.
23:56:24: SO_SNDBUF was at 8192
23:56:24: SO_SNDBUF is now 65536
Warning -- D3D10Texture::CreateFromSharedHandle: Failed to open shared handle, result = 0x8007000E
Warning -- SharedTexCapture::Init: Could not create shared texture
23:56:49: Total frames encoded: 1595, total frames duplicated: 1339 (83.95%)
23:56:49: Total frames rendered: 274, number of late frames: 219 (79.93%) (it's okay for some frames to be late)
23:56:49: RTMPPublisher::SocketLoop: Graceful loop exit
23:56:49: Average send payload: 7670 bytes, average send interval: 16 ms
23:56:49: Number of times waited to send: 0, Waited for a total of 0 bytes
23:56:49: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:56:49: Number of bytes sent: 11037687
23:56:50: 
23:56:50: Profiler time results:
23:56:50: 
23:56:50: ==============================================================
23:56:50: video thread frame - [100%] [avg time: 1.404 ms] [children: 0.214%] [unaccounted: 99.8%]
23:56:50: | scene->Preprocess - [0.214%] [avg time: 0.003 ms]
23:56:50: GPU download and conversion - [100%] [avg time: 96.061 ms] [children: 112%] [unaccounted: -12.2%]
23:56:50: | flush - [0.152%] [avg time: 0.146 ms]
23:56:50: | CopyResource - [112%] [avg time: 107.626 ms]
23:56:50: | conversion to 4:2:0 - [0.0198%] [avg time: 0.019 ms]
23:56:50: Convert444Threads - [100%] [avg time: 1.859 ms] [children: 99.4%] [unaccounted: 0.646%]
23:56:50: | Convert444toNV12 - [99.4%] [avg time: 1.847 ms]
23:56:50: encoder thread frame - [100%] [avg time: 2.293 ms]
23:56:50: ==============================================================
23:56:50: 
23:56:50: 
23:56:50: Profiler CPU results:
23:56:50: 
23:56:50: ==============================================================
23:56:50: video thread frame - [cpu time: avg 0.912 ms, total 250 ms] [avg calls per frame: 1]
23:56:50: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:56:50: GPU download and conversion - [cpu time: avg 7.014 ms, total 1921.88 ms] [avg calls per frame: 1]
23:56:50: | flush - [cpu time: avg 0.057 ms, total 15.625 ms] [avg calls per frame: 1]
23:56:50: | CopyResource - [cpu time: avg 7.812 ms, total 1906.25 ms] [avg calls per frame: 1]
23:56:50: | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:56:50: Convert444Threads - [cpu time: avg 1.639 ms, total 796.875 ms] [avg calls per frame: 2]
23:56:50: | Convert444toNV12 - [cpu time: avg 1.639 ms, total 796.875 ms] [avg calls per frame: 2]
23:56:50: encoder thread frame - [cpu time: avg 1.611 ms, total 2531.25 ms] [avg calls per frame: 1]
23:56:50: ==============================================================
23:56:50: 
23:56:50: =====Stream End: 2013-09-25, 23:56:50=================================================


Last game capture log:
2013-09-25, 23:53:52: we're booting up: 
23:53:52: D3D9 Present
23:53:52: DXGI Present
23:53:52: (half life scientist) everything..  seems to be in order
23:53:52: DXGI: Found D3D 11
23:53:52: setting up d3d11 data
23:53:52: ---------------------- Cleared D3D11 Capture ----------------------
23:53:52: found dxgi format (dx11) of: 28, size: {1920, 1018}, multisampled: false
23:53:52: DoD3D11Hook: success
23:53:52: successfully capturing d3d11 frames via GPU2323:55:20: stop requested, terminating d3d11 capture
23:55:20: ---------------------- Cleared D3D11 Capture ----------------------
23:55:20: DoD23:56:22: ---------23:56:25: successfully capturing d3d11 frames via GPU
---
23:56:22: DXGI: Found D3D 10
23:56:22: setting up d3d10 data
23:56:22: ---------------------- Cleared D3D10 Capture ----------------------
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Window capture is pretty much equivalent to game capture when aero is enabled - but it only works when the game is not in a fullscreen mode. Game capture was specifically designed for games running in fullscreen mode.
 
Top