Question / Help Laggy stream output.

timbawww

New Member
This happens a small amount in other games but mostly Battlefield 4, I can't stream at any settings without getting a really choppy stream. I don't lag in game, but the stream will freeze about every 5 seconds. I've tried a bunch of different things and when I tried switching servers it made the issue worse. I get 4.9mb/s upload. Here's the log of the last time I streamed (it might not have been BF4 but it would be the same exact settings I was using)

Also, I already have Aero disabled on my pc. The option in OBS is unchecked.

Code:
22:44:25: Settings::Video: Enabling Aero
22:46:42: Open Broadcaster Software v0.584b - 32bit (´・ω・`)
22:46:42: -------------------------------
22:46:42: CPU Name: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
22:46:42: CPU Speed: 3602MHz
22:46:42: Physical Memory:  4095MB Total, 4095MB Free
22:46:42: stepping id: 7, model 45, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
22:46:42: monitor 1: pos={0, 0}, size={1920, 1080}
22:46:42: Windows Version: 6.1 Build 7601 S
22:46:42: Aero is Disabled
22:46:42: -------------------------------
22:46:42: OBS Modules:
22:46:42: Base Address     Module
22:46:42: 01280000         OBS.exe
22:46:42: 6F3A0000         OBSApi.dll
22:46:42: 6F7E0000         DShowPlugin.dll
22:46:42: 738E0000         GraphicsCapture.dll
22:46:42: 74420000         NoiseGate.dll
22:46:42: 73870000         PSVPlugin.dll
22:46:42: ------------------------------------------
22:46:42: Adapter 1
22:46:42:   Video Adapter: AMD Radeon HD 7900 Series
22:46:42:   Video Adapter Dedicated Video Memory: 3193987072
22:46:42:   Video Adapter Shared System Memory: 1100914688
22:46:42:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
22:46:42: =====Stream Start: 2013-11-25, 22:46:42===============================================
22:46:42:   Multithreaded optimizations: On
22:46:42:   Base resolution: 1920x1080
22:46:42:   Output resolution: 1280x720
22:46:42: ------------------------------------------
22:46:42: Loading up D3D10 on AMD Radeon HD 7900 Series...
22:46:42: ------------------------------------------
22:46:42: Audio Format: 48000hz
22:46:42: Playback device {0.0.0.00000000}.{c830fb74-e44e-41c5-acc0-c1e2303f6ab9}
22:46:42: ------------------------------------------
22:46:42: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
22:46:42: Using 5.1 surround speaker setup
22:46:42: ------------------------------------------
22:46:42: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
22:46:42: ------------------------------------------
22:46:42: Audio Encoding: AAC
22:46:42:     bitrate: 128
22:46:42: Using graphics capture
22:46:42: Scene buffering time set to 400
22:46:42: ------------------------------------------
22:46:42: Video Encoding: x264
22:46:42:     fps: 60
22:46:42:     width: 1280, height: 720
22:46:42:     preset: veryfast
22:46:42:     profile: high
22:46:42:     keyint: 120
22:46:42:     CBR: yes
22:46:42:     CFR: yes
22:46:42:     max bitrate: 2500
22:46:42:     buffer size: 2500
22:46:42: ------------------------------------------
22:46:42: MMDeviceAudioSource: Frequency for device 'Speakers (3- Plantronics GameCom 780)' is 1058400, samples per sec is 44100
22:46:42: MMDeviceAudioSource: Frequency for device 'Microphone (3- Plantronics GameCom 780)' is 352800, samples per sec is 44100
22:46:42: SharedTexCapture hooked
22:46:43: Using RTMP service: Twitch / Justin.tv
22:46:43:   Server selection: rtmp://live-jfk.justin.tv/app
22:46:43:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 100 mbps)
22:46:44: Completed handshake with rtmp://live-jfk.justin.tv/app in 338 ms.
22:46:45: SO_SNDBUF was at 8192
22:46:45: SO_SNDBUF is now 65536
22:46:46: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 23473 / 335872)
22:46:48: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
22:57:49: Total frames encoded: 39965, total frames duplicated: 1 (0.00%)
22:57:49: Total frames rendered: 39973, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
22:57:49: RTMPPublisher::SocketLoop: Graceful loop exit
22:57:49: Average send payload: 5681 bytes, average send interval: 17 ms
22:57:49: Number of times waited to send: 0, Waited for a total of 0 bytes
22:57:49: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:57:49: Number of bytes sent: 218760402
22:57:49: 
22:57:49: Profiler time results:
22:57:49: 
22:57:49: ==============================================================
22:57:49: video thread frame - [100%] [avg time: 0.355 ms] [children: 81.7%] [unaccounted: 18.3%]
22:57:49: | scene->Preprocess - [0.282%] [avg time: 0.001 ms]
22:57:49: | GPU download and conversion - [81.4%] [avg time: 0.289 ms] [children: 77.7%] [unaccounted: 3.66%]
22:57:49: | | flush - [74.1%] [avg time: 0.263 ms]
22:57:49: | | CopyResource - [3.1%] [avg time: 0.011 ms]
22:57:49: | | conversion to 4:2:0 - [0.563%] [avg time: 0.002 ms]
22:57:49: Convert444Threads - [100%] [avg time: 0.375 ms] [children: 98.9%] [unaccounted: 1.07%]
22:57:49: | Convert444toNV12 - [98.9%] [avg time: 0.371 ms]
22:57:49: encoder thread frame - [100%] [avg time: 0.893 ms]
22:57:49: ==============================================================
22:57:49: 
22:57:49: 
22:57:49: Profiler CPU results:
22:57:49: 
22:57:49: ==============================================================
22:57:49: video thread frame - [cpu time: avg 0.008 ms, total 343.202 ms] [avg calls per frame: 1]
22:57:49: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:57:49: | GPU download and conversion - [cpu time: avg 0.006 ms, total 265.202 ms] [avg calls per frame: 1]
22:57:49: | | flush - [cpu time: avg 0.006 ms, total 249.602 ms] [avg calls per frame: 1]
22:57:49: | | CopyResource - [cpu time: avg 0 ms, total 15.6 ms] [avg calls per frame: 1]
22:57:49: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:57:49: Convert444Threads - [cpu time: avg 0.014 ms, total 1170.01 ms] [avg calls per frame: 2]
22:57:49: | Convert444toNV12 - [cpu time: avg 0.014 ms, total 1154.41 ms] [avg calls per frame: 2]
22:57:49: encoder thread frame - [cpu time: avg 0.202 ms, total 8096.45 ms] [avg calls per frame: 1]
22:57:49: ==============================================================
22:57:49: 
22:57:49: =====Stream End: 2013-11-25, 22:57:49=================================================
22:58:18: =====Stream Start: 2013-11-25, 22:58:18===============================================
22:58:18:   Multithreaded optimizations: On
22:58:18:   Base resolution: 1920x1080
22:58:18:   Output resolution: 1280x720
22:58:18: ------------------------------------------
22:58:18: Loading up D3D10 on AMD Radeon HD 7900 Series...
22:58:18: ------------------------------------------
22:58:18: Audio Format: 48000hz
22:58:18: Playback device {0.0.0.00000000}.{c830fb74-e44e-41c5-acc0-c1e2303f6ab9}
22:58:18: ------------------------------------------
22:58:18: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
22:58:18: Using 5.1 surround speaker setup
22:58:18: ------------------------------------------
22:58:18: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
22:58:18: ------------------------------------------
22:58:18: Audio Encoding: AAC
22:58:18:     bitrate: 128
22:58:18: Using graphics capture
22:58:18: Scene buffering time set to 400
22:58:18: ------------------------------------------
22:58:18: Video Encoding: x264
22:58:18:     fps: 60
22:58:18:     width: 1280, height: 720
22:58:18:     preset: veryfast
22:58:18:     profile: high
22:58:18:     keyint: 120
22:58:18:     CBR: yes
22:58:18:     CFR: yes
22:58:18:     max bitrate: 2000
22:58:18:     buffer size: 2000
22:58:18: ------------------------------------------
22:58:18: MMDeviceAudioSource: Frequency for device 'Speakers (3- Plantronics GameCom 780)' is 1058400, samples per sec is 44100
22:58:18: MMDeviceAudioSource: Frequency for device 'Microphone (3- Plantronics GameCom 780)' is 352800, samples per sec is 44100
22:58:18: SharedTexCapture hooked
22:58:20: Using RTMP service: Twitch / Justin.tv
22:58:20:   Server selection: rtmp://live-jfk.justin.tv/app
22:58:20:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 100 mbps)
22:58:20: Completed handshake with rtmp://live-jfk.justin.tv/app in 725 ms.
22:58:21: SO_SNDBUF was at 8192
22:58:21: SO_SNDBUF is now 65536
22:58:22: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 27628 / 272384)
22:58:26: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 18909 / 272384)
00:29:59: Total frames encoded: 330022, total frames duplicated: 0 (0.00%)
00:29:59: Total frames rendered: 330030, number of late frames: 1 (0.00%) (it's okay for some frames to be late)
00:29:59: RTMPPublisher::SocketLoop: Graceful loop exit
00:29:59: Average send payload: 4725 bytes, average send interval: 17 ms
00:29:59: Number of times waited to send: 0, Waited for a total of 0 bytes
00:29:59: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
00:29:59: Number of bytes sent: 1469603818
00:29:59: 
00:29:59: Profiler time results:
00:29:59: 
00:29:59: ==============================================================
00:29:59: video thread frame - [100%] [avg time: 0.335 ms] [children: 82.1%] [unaccounted: 17.9%]
00:29:59: | scene->Preprocess - [0.299%] [avg time: 0.001 ms]
00:29:59: | GPU download and conversion - [81.8%] [avg time: 0.274 ms] [children: 77.6%] [unaccounted: 4.18%]
00:29:59: | | flush - [73.7%] [avg time: 0.247 ms]
00:29:59: | | CopyResource - [3.28%] [avg time: 0.011 ms]
00:29:59: | | conversion to 4:2:0 - [0.597%] [avg time: 0.002 ms]
00:29:59: Convert444Threads - [100%] [avg time: 0.363 ms] [children: 98.9%] [unaccounted: 1.1%]
00:29:59: | Convert444toNV12 - [98.9%] [avg time: 0.359 ms]
00:29:59: encoder thread frame - [100%] [avg time: 0.913 ms]
00:29:59: ==============================================================
00:29:59: 
00:29:59: 
00:29:59: Profiler CPU results:
00:29:59: 
00:29:59: ==============================================================
00:29:59: video thread frame - [cpu time: avg 0.006 ms, total 2074.81 ms] [avg calls per frame: 1]
00:29:59: | scene->Preprocess - [cpu time: avg 0 ms, total 15.6 ms] [avg calls per frame: 1]
00:29:59: | GPU download and conversion - [cpu time: avg 0.005 ms, total 1684.81 ms] [avg calls per frame: 1]
00:29:59: | | flush - [cpu time: avg 0.004 ms, total 1450.81 ms] [avg calls per frame: 1]
00:29:59: | | CopyResource - [cpu time: avg 0 ms, total 78.002 ms] [avg calls per frame: 1]
00:29:59: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:29:59: Convert444Threads - [cpu time: avg 0.016 ms, total 11216.5 ms] [avg calls per frame: 2]
00:29:59: | Convert444toNV12 - [cpu time: avg 0.016 ms, total 11169.7 ms] [avg calls per frame: 2]
00:29:59: encoder thread frame - [cpu time: avg 0.21 ms, total 69436.1 ms] [avg calls per frame: 1]
00:29:59: ==============================================================
00:29:59: 
00:29:59: =====Stream End: 2013-11-26, 00:29:59=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
BF4 is a monster right now. Eats up everything, others have been having issues with it. You might want to consider 30fps instead and see if it helps at all.
 

timbawww

New Member
Well the reason I thought it was the servers was because the night before, I did a 2 hour stream at 720p 30fps and it ran fine the entire time (I was watching it on another PC while streaming). Then when I went to stream it again yesterday I couldn't. But switching servers made the stream freeze even worse. And at that time, changing it to 60 had no difference. The only thing that made the stream less laggy was changing my bitrate to 500 (lol) which was terrible. But one of my viewers said it made it instead skip/freeze about every 15 seconds instead of 5.

That led me to believe that maybe it's my router?? I'm not too sure.
 

alpinlol

Active Member
welcome to twitch

as long as you dont drop frames use a retarded resolution and fps combination and your cpu doesnt peak at 100% nor do you have a retarded high bitrate... the problem shouldnt really be on your side its literally just twitch being twitch as always
 

timbawww

New Member
And that's the other issue, I did a stream after having all those issues with BF4 and they ran fine (on Twitch). It feels like it's on my end, but I'm not sure. I think I may try just recording locally to see if the output to the video stutters.

Edit: Local video test with settings at 720p 60fps ran flawless (with the exception of a few barely noticeable frame stutters)

So I can't really pinpoint this problem. Would love some more feedback though!
 

timbawww

New Member
You're probably right. It just puzzles me as to why it's only Battlefield 4 that has the issue. I was streaming Street Fighter 4 for about 2 hours with no issues last night (after the unsuccessful attempts at streaming BF4)
 
Top