Question / Help No luck broadcasting BF4 (solved)

Novocaine

New Member
Hi,

I'm having issues when I try and broadcast to Twitch. I can see my channel go live and I get a short amount of video (maybe 10 seconds) before it locks up. As soon as I alt tab out the broadcast resumes.

Here is an example:
http://www.twitch.tv/n0v078/b/526472775

I ran OBS, fired up the game and selected Start Streaming. I then Alt-Tabbed in to BF4 and the stream freezes. If I tab out the video seems to stream.

Code:
23:19:57: Open Broadcaster Software v0.622b - 64bit ( ^ω^)
23:19:57: -------------------------------
23:19:57: CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
23:19:57: CPU Speed: 3500MHz
23:19:57: Physical Memory:  16333MB Total, 11747MB Free
23:19:57: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
23:19:57: monitor 1: pos={0, 0}, size={1920, 1080}
23:19:57: Windows Version: 6.2 Build 9200
23:19:57: Aero is Enabled
23:19:57: -------------------------------
23:19:57: OBS Modules:
23:19:57: Base Address     Module
23:19:57: 00000000B84B0000 OBS.exe
23:19:57: 00000000F1A70000 OBSApi.dll
23:19:57: 00000000F86B0000 DShowPlugin.dll
23:19:57: 00000000F8530000 GraphicsCapture.dll
23:19:57: 00000000F8130000 NoiseGate.dll
23:19:57: 00000000F53E0000 PSVPlugin.dll
23:19:57: ------------------------------------------
23:19:57: Adapter 1
23:19:57:   Video Adapter: NVIDIA GeForce GTX 660 Ti
23:19:57:   Video Adapter Dedicated Video Memory: 2086273024
23:19:57:   Video Adapter Shared System Memory: 2147807232
23:19:57:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
23:19:57: =====Stream Start: 2014-05-06, 23:19:57===============================================
23:19:57:   Multithreaded optimizations: On
23:19:57:   Base resolution: 1920x1080
23:19:57:   Output resolution: 1920x1080
23:19:57: ------------------------------------------
23:19:57: Loading up D3D10 on NVIDIA GeForce GTX 660 Ti (Adapter 1)...
23:19:57: ------------------------------------------
23:19:57: Audio Format: 48000 Hz
23:19:57: ------------------------------------------
23:19:57: Audio Channels: 2 Ch
23:19:57: Playback device Default
23:19:57: ------------------------------------------
23:19:57: Using desktop audio input: Speakers (Sennheiser USB Headset)
23:19:57: Global Audio time adjust: 0
23:19:57: ------------------------------------------
23:19:57: Using auxilary audio input: Microphone (Sennheiser USB Headset)
23:19:57: Mic time offset: 0
23:19:57: ------------------------------------------
23:19:57: Audio Encoding: AAC
23:19:57:     bitrate: 128
23:19:57: Using Window Capture
23:19:57: Scene buffering time set to 400
23:19:57: Successfully loaded ObsNvenc.dll
23:19:57: ObsNvenc initialized successfully
23:19:57: CUDA loaded successfully
23:19:58: 1 CUDA capable devices found
23:19:58: [ GPU #0 - < GeForce GTX 660 Ti > has Compute SM 3.0, NVENC Available ]
23:19:58: NVENC internal init finished successfully
23:19:58: NVENC supports 7 h264 presets
23:19:58: ------------------------------------------
23:19:58: Video Encoding: NVENC
23:19:58:     fps: 30
23:19:58:     width: 1920, height: 1080
23:19:58:     preset: llhq
23:19:58:     profile: main
23:19:58:     level: autoselect
23:19:58:     keyint: 60
23:19:58:     CBR: yes
23:19:58:     CFR: no
23:19:58:     max bitrate: 3500
23:19:58:     avg bitrate: 3500
23:19:58:     buffer size: 3500
23:19:58: ------------------------------------------
23:19:59: Using RTMP service: Twitch / Justin.tv
23:19:59:   Server selection: rtmp://live-lhr.justin.tv/app
23:19:59:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
23:19:59: Completed handshake with rtmp://live-lhr.justin.tv/app in 360 ms.
23:20:00: SO_SNDBUF was at 65536
23:20:00: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 463872)
23:20:48: Total frames encoded: 1493, total frames duplicated: 19 (1.27%)
23:20:48: Number of frames skipped due to encoder lag: 3 (0.20%)
23:20:48: Total frames rendered: 1485, number of late frames: 6 (0.40%) (it's okay for some frames to be late)
23:20:48: RTMPPublisher::SocketLoop: Graceful loop exit
23:20:48: Average send payload: 7306 bytes, average send interval: 24 ms
23:20:48: Number of times waited to send: 0, Waited for a total of 0 bytes
23:20:48: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:20:48: Number of bytes sent: 14445516
23:20:48: Encoder closed
23:20:48: NVENC deinitialized
23:20:48:
23:20:48: Profiler time results:
23:20:48:
23:20:48: ==============================================================
23:20:48: video thread frame - [100%] [avg time: 0.996 ms] [children: 73.7%] [unaccounted: 26.3%]
23:20:48: | scene->Preprocess - [43.7%] [avg time: 0.435 ms]
23:20:48: | GPU download and conversion - [30%] [avg time: 0.299 ms] [children: 24.2%] [unaccounted: 5.82%]
23:20:48: | | flush - [3.31%] [avg time: 0.033 ms]
23:20:48: | | CopyResource - [0.703%] [avg time: 0.007 ms]
23:20:48: | | conversion to 4:2:0 - [20.2%] [avg time: 0.201 ms]
23:20:48: Convert444Threads - [100%] [avg time: 0.704 ms] [children: 99.6%] [unaccounted: 0.426%]
23:20:48: | Convert444toNV12 - [99.6%] [avg time: 0.701 ms]
23:20:48: encoder thread frame - [100%] [avg time: 15.709 ms] [children: 0.0891%] [unaccounted: 99.9%]
23:20:48: | sending stuff out - [0.0891%] [avg time: 0.014 ms]
23:20:48: ==============================================================
23:20:48:
23:20:48:
23:20:48: Profiler CPU results:
23:20:48:
23:20:48: ==============================================================
23:20:48: video thread frame - [cpu time: avg 0.147 ms, total 218.75 ms] [avg calls per frame: 1]
23:20:48: | scene->Preprocess - [cpu time: avg 0.042 ms, total 62.5 ms] [avg calls per frame: 1]
23:20:48: | GPU download and conversion - [cpu time: avg 0.01 ms, total 15.625 ms] [avg calls per frame: 1]
23:20:48: | | flush - [cpu time: avg 0.01 ms, total 15.625 ms] [avg calls per frame: 1]
23:20:48: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:20:48: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:20:48: Convert444Threads - [cpu time: avg 0.643 ms, total 1890.63 ms] [avg calls per frame: 2]
23:20:48: | Convert444toNV12 - [cpu time: avg 0.627 ms, total 1843.75 ms] [avg calls per frame: 2]
23:20:48: encoder thread frame - [cpu time: avg 0.411 ms, total 609.375 ms] [avg calls per frame: 1]
23:20:48: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:20:48: ==============================================================
23:20:48:
23:20:48: =====Stream End: 2014-05-06, 23:20:48=================================================

Tried both the 32 and 64 bit clients and copying settings from a friend who has the same setup and internet connection but no luck.

Any help would be great.
 

Novocaine

New Member
Seems after reading another post on here It was due to me using Window Capture on a Full Screen game ... ops.
 
Top