Question / Help Game lag while streaming

NewSpleen

New Member
Hi, first i'd like to start with my computer build, it's i5 3570k at 4.3ghz, 16GB of ram, and HD7970 3GB.
When streaming my game performance is horrible, i get stutters and lags
I tried twaking the settings, different resolutions, lowering bitrates but nothing seems to help.
The only way I was able to stream was on 720p, with 1k bitrate and 25fps and even then my game lagged and I could have felt some input lag and stutters. and the result on twitch tv looked horrible (bad quality)
My upload speed is 5mb/s which should be enough, so I guess it's hardware related.
What should I do in order to stream without in-game lag in 720p or 1080p?
 

NewSpleen

New Member
Here is the upload test:

and the log file:
Code:
11:58:23: Open Broadcaster Software v0.541b - 32bit (´・ω・`)
11:58:23: -------------------------------
11:58:23: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
11:58:23: CPU Speed: 3400MHz
11:58:23: Physical Memory:  4095MB Total, 4095MB Free
11:58:23: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
11:58:23: monitor 1: pos={0, 0}, size={1920, 1080}
11:58:23: Windows Version: 6.1 Build 7601 S
11:58:23: Aero is Disabled
11:58:23: -------------------------------
11:58:23: OBS Modules:
11:58:23: Base Address     Module
11:58:23: 013D0000         OBS.exe
11:58:23: 60990000         OBSApi.dll
11:58:23: 60750000         DShowPlugin.dll
11:58:23: 60730000         GraphicsCapture.dll
11:58:23: 60710000         NoiseGate.dll
11:58:23: 606F0000         PSVPlugin.dll
11:58:23: ------------------------------------------
11:58:23: Adapter 1
11:58:23:   Video Adapter: AMD Radeon HD 7900 Series
11:58:23:   Video Adapter Dedicated Video Memory: 3194155008
11:58:23:   Video Adapter Shared System Memory: 1100746752
11:58:23: =====Stream Start: 2013-07-16, 11:58:23===============================================
11:58:23:   Multithreaded optimizations: On
11:58:23:   Base resolution: 1920x1080
11:58:23:   Output resolution: 1920x1080
11:58:23: ------------------------------------------
11:58:23: Loading up D3D10...
11:58:23: Playback device Default
11:58:23: ------------------------------------------
11:58:23: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
11:58:23: Using 5.1 surround speaker setup
11:58:23: ------------------------------------------
11:58:23: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
11:58:23: ------------------------------------------
11:58:23: Audio Encoding: AAC
11:58:23:     bitrate: 48
11:58:23: Using graphics capture
11:58:23: x264: VBV maxrate specified, but no bufsize, ignored
11:58:23: ------------------------------------------
11:58:23: Video Encoding: x264
11:58:23:     fps: 25
11:58:23:     width: 1920, height: 1080
11:58:23:     preset: veryfast
11:58:23:     CBR: no
11:58:23:     CFR: no
11:58:23:     max bitrate: 1000
11:58:23:     buffer size: 0
11:58:23:     quality: 5
11:58:23: ------------------------------------------
12:00:02: SharedTexCapture hooked
12:00:09: GraphicsCaptureSource::NewCapture:  eliminating old capture
12:00:09: SharedTexCapture hooked
12:00:48: GraphicsCaptureSource::NewCapture:  eliminating old capture
12:00:48: SharedTexCapture hooked
12:00:58: GraphicsCaptureSource::NewCapture:  eliminating old capture
12:00:58: SharedTexCapture hooked
12:01:30: GraphicsCaptureSource::NewCapture:  eliminating old capture
12:01:30: SharedTexCapture hooked
12:02:12: Total frames rendered: 5682, number of frames that lagged: 31 (0.55%) (it's okay for some frames to lag)
12:02:12: =====Stream End: 2013-07-16, 12:02:12=================================================
12:02:13: =====Stream Start: 2013-07-16, 12:02:13===============================================
12:02:13:   Multithreaded optimizations: On
12:02:13:   Base resolution: 1920x1080
12:02:13:   Output resolution: 1920x1080
12:02:13: ------------------------------------------
12:02:13: Loading up D3D10...
12:02:13: Playback device Default
12:02:13: ------------------------------------------
12:02:13: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
12:02:13: Using 5.1 surround speaker setup
12:02:13: ------------------------------------------
12:02:13: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
12:02:13: ------------------------------------------
12:02:13: Audio Encoding: AAC
12:02:13:     bitrate: 48
12:02:13: Using graphics capture
12:02:13: x264: VBV maxrate specified, but no bufsize, ignored
12:02:13: ------------------------------------------
12:02:13: Video Encoding: x264
12:02:13:     fps: 25
12:02:13:     width: 1920, height: 1080
12:02:13:     preset: veryfast
12:02:13:     CBR: no
12:02:13:     CFR: no
12:02:13:     max bitrate: 1000
12:02:13:     buffer size: 0
12:02:13:     quality: 5
12:02:13: ------------------------------------------
12:02:13: SharedTexCapture hooked
12:02:15: Using RTMP service: Twitch / Justin.tv
12:02:15:   Server selection: rtmp://live-lhr.justin.tv/app
12:02:17: SO_SNDBUF was at 8192
12:02:17: SO_SNDBUF is now 65536
12:02:34: GraphicsCaptureSource::NewCapture:  eliminating old capture
12:02:34: SharedTexCapture hooked
12:02:46: GraphicsCaptureSource::NewCapture:  eliminating old capture
12:02:46: SharedTexCapture hooked
12:02:46: GraphicsCaptureSource::NewCapture:  eliminating old capture
12:02:46: SharedTexCapture hooked
12:02:53: Total frames rendered: 980, number of frames that lagged: 14 (1.43%) (it's okay for some frames to lag)
12:02:53: RTMPPublisher::SocketLoop: Aborting due to bStopping
12:02:53: Number of times waited to send: 20, Waited for a total of 77337 bytes
12:02:53: Number of b-frames dropped: 25 (2.9%), Number of p-frames dropped: 110 (13%), Total 135 (16%)
12:02:53: =====Stream End: 2013-07-16, 12:02:53=================================================
12:02:54: 
12:02:54: Profiler results:
12:02:54: 
12:02:54: ==============================================================
12:02:54: frame - [100%] [avg time: 3.095 ms (cpu time: avg 1.988 ms, total 13250 ms)] [avg calls per frame: 1] [children: 78.4%] [unaccounted: 21.6%]
12:02:54: | scene->Preprocess - [0.0323%] [avg time: 0.001 ms (cpu time: avg 0.002 ms, total 15.625 ms)] [avg calls per frame: 1]
12:02:54: | video encoding and uploading - [78.4%] [avg time: 2.427 ms (cpu time: avg 1.822 ms, total 12140.6 ms)] [avg calls per frame: 1] [children: 77.3%] [unaccounted: 1.16%]
12:02:54: | | CopyResource - [0.452%] [avg time: 0.014 ms (cpu time: avg 0.014 ms, total 93.75 ms)] [avg calls per frame: 0]
12:02:54: | | conversion to 4:2:0 - [0.291%] [avg time: 0.009 ms (cpu time: avg 0.004 ms, total 31.25 ms)] [avg calls per frame: 0]
12:02:54: | | call to encoder - [76.3%] [avg time: 2.361 ms (cpu time: avg 1.789 ms, total 11921.9 ms)] [avg calls per frame: 0]
12:02:54: | | sending stuff out - [0.226%] [avg time: 0.007 ms (cpu time: avg 0.009 ms, total 62.5 ms)] [avg calls per frame: 0]
12:02:54: | Convert444Threads - [2.6e+003%] [avg time: 80.406 ms (cpu time: avg 1.838 ms, total 12250 ms)] [avg calls per frame: 1]
12:02:54: ==============================================================
12:02:54:
there are a few more btw, but this is the latest one
thanks.
 

Kharay

Member
Buffer size: 0? Please reset your OBS and try again.

Start -> Run -> %AppData%\OBS

Empty that folder, without OBS running obviously.

Then start OBS again, it will have reset completely. Set it up again and leave buffer size alone! Just go with a CBR bitrate of, say, 1500 - 2000 at 30 FPS.
 

NewSpleen

New Member
It's better now, thanks!
but still a bit of impact on game performance, do you think it is my hardware?
1080p, 1500cbr, 30fps.
 

NewSpleen

New Member
I'm streming battlefield 3, even though the fps is over 100 when streaming i still get some drops and noticable input lag
log:
Code:
18:16:34: Open Broadcaster Software v0.541b - 64bit ( ^ω^)
18:16:34: -------------------------------
18:16:34: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
18:16:34: CPU Speed: 3400MHz
18:16:34: Physical Memory:  16338MB Total, 12862MB Free
18:16:34: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
18:16:34: monitor 1: pos={0, 0}, size={1920, 1080}
18:16:34: Windows Version: 6.1 Build 7601 S
18:16:34: Aero is Disabled
18:16:34: -------------------------------
18:16:34: OBS Modules:
18:16:34: Base Address     Module
18:16:34: 000000003F990000 OBS.exe
18:16:34: 00000000EFDE0000 OBSApi.dll
18:16:34: 00000000F0BB0000 DShowPlugin.dll
18:16:34: 00000000F7470000 GraphicsCapture.dll
18:16:34: 00000000F06C0000 NoiseGate.dll
18:16:34: 00000000F0D60000 PSVPlugin.dll
18:16:34: ------------------------------------------
18:16:34: Adapter 1
18:16:34:   Video Adapter: AMD Radeon HD 7900 Series
18:16:34:   Video Adapter Dedicated Video Memory: 3194155008
18:16:34:   Video Adapter Shared System Memory: 4002869248
18:16:34: =====Stream Start: 2013-07-18, 18:16:34===============================================
18:16:34:   Multithreaded optimizations: On
18:16:34:   Base resolution: 1920x1080
18:16:34:   Output resolution: 1920x1080
18:16:34: ------------------------------------------
18:16:34: Loading up D3D10...
18:16:34: Playback device Default
18:16:34: ------------------------------------------
18:16:34: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
18:16:34: Using 5.1 surround speaker setup
18:16:34: ------------------------------------------
18:16:34: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
18:16:34: ------------------------------------------
18:16:34: Audio Encoding: AAC
18:16:34:     bitrate: 48
18:16:34: Using graphics capture
18:16:34: ------------------------------------------
18:16:34: Video Encoding: x264
18:16:34:     fps: 30
18:16:34:     width: 1920, height: 1080
18:16:34:     preset: veryfast
18:16:34:     CBR: yes
18:16:34:     CFR: no
18:16:34:     max bitrate: 1500
18:16:34: ------------------------------------------
18:16:35: SharedTexCapture hooked
18:16:48: GraphicsCaptureSource::NewCapture:  eliminating old capture
18:16:48: SharedTexCapture hooked
18:16:51: GraphicsCaptureSource::NewCapture:  eliminating old capture
18:16:51: SharedTexCapture hooked
18:17:02: Total frames rendered: 844, number of frames that lagged: 4 (0.47%) (it's okay for some frames to lag)
18:17:02: =====Stream End: 2013-07-18, 18:17:02=================================================
18:18:31: =====Stream Start: 2013-07-18, 18:18:31===============================================
18:18:31:   Multithreaded optimizations: On
18:18:31:   Base resolution: 1920x1080
18:18:31:   Output resolution: 1920x1080
18:18:31: ------------------------------------------
18:18:31: Loading up D3D10...
18:18:31: Playback device Default
18:18:31: ------------------------------------------
18:18:31: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
18:18:31: Using 5.1 surround speaker setup
18:18:31: ------------------------------------------
18:18:31: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
18:18:31: ------------------------------------------
18:18:31: Audio Encoding: AAC
18:18:31:     bitrate: 48
18:18:31: Using graphics capture
18:18:31: ------------------------------------------
18:18:31: Video Encoding: x264
18:18:31:     fps: 30
18:18:31:     width: 1920, height: 1080
18:18:31:     preset: veryfast
18:18:31:     CBR: yes
18:18:31:     CFR: no
18:18:31:     max bitrate: 1500
18:18:31: ------------------------------------------
18:18:31: SharedTexCapture hooked
18:18:33: Using RTMP service: Twitch / Justin.tv
18:18:33:   Server selection: rtmp://live-fra.justin.tv/app
18:18:33: GraphicsCaptureSource::NewCapture:  eliminating old capture
18:18:33: SharedTexCapture hooked
18:18:35: SO_SNDBUF was at 8192
18:18:35: SO_SNDBUF is now 65536
18:20:35: GraphicsCaptureSource::NewCapture:  eliminating old capture
18:20:35: SharedTexCapture hooked
18:20:45: x264: VBV parameters cannot be changed when NAL HRD is in use
18:20:46: Total frames rendered: 4037, number of frames that lagged: 3 (0.07%) (it's okay for some frames to lag)
18:20:46: RTMPPublisher::SocketLoop: Aborting due to bStopping
18:20:46: Number of times waited to send: 0, Waited for a total of 0 bytes
18:20:46: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:20:46: =====Stream End: 2013-07-18, 18:20:46=================================================
18:20:47: =====Stream Start: 2013-07-18, 18:20:47===============================================
18:20:47:   Multithreaded optimizations: On
18:20:47:   Base resolution: 1920x1080
18:20:47:   Output resolution: 1920x1080
18:20:47: ------------------------------------------
18:20:47: Loading up D3D10...
18:20:47: Playback device Default
18:20:47: ------------------------------------------
18:20:47: Using desktop audio input: Speakers (3- Plantronics GameCom 780)
18:20:47: Using 5.1 surround speaker setup
18:20:47: ------------------------------------------
18:20:47: Using auxilary audio input: Microphone (3- Plantronics GameCom 780)
18:20:47: ------------------------------------------
18:20:47: Audio Encoding: AAC
18:20:47:     bitrate: 48
18:20:47: Using graphics capture
18:20:47: ------------------------------------------
18:20:47: Video Encoding: x264
18:20:47:     fps: 30
18:20:47:     width: 1920, height: 1080
18:20:47:     preset: veryfast
18:20:47:     CBR: yes
18:20:47:     CFR: no
18:20:47:     max bitrate: 1000
18:20:47: ------------------------------------------
18:20:49: Using RTMP service: Twitch / Justin.tv
18:20:49:   Server selection: rtmp://live-fra.justin.tv/app
18:20:50: SO_SNDBUF was at 8192
18:20:50: SO_SNDBUF is now 65536
18:20:51: SharedTexCapture hooked
18:23:41: GraphicsCaptureSource::NewCapture:  eliminating old capture
18:23:41: SharedTexCapture hooked
18:23:43: Total frames rendered: 5295, number of frames that lagged: 3 (0.06%) (it's okay for some frames to lag)
18:23:43: RTMPPublisher::SocketLoop: Aborting due to bStopping
18:23:43: Number of times waited to send: 0, Waited for a total of 0 bytes
18:23:43: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:23:43: =====Stream End: 2013-07-18, 18:23:43=================================================
18:23:45: 
18:23:45: Profiler results:
18:23:45: 
18:23:45: ==============================================================
18:23:45: frame - [100%] [avg time: 2.358 ms (cpu time: avg 2.123 ms, total 21609.4 ms)] [avg calls per frame: 1] [children: 87.8%] [unaccounted: 12.2%]
18:23:45: | scene->Preprocess - [0.0424%] [avg time: 0.001 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
18:23:45: | video encoding and uploading - [87.8%] [avg time: 2.07 ms (cpu time: avg 2.014 ms, total 20500 ms)] [avg calls per frame: 1] [children: 86.9%] [unaccounted: 0.933%]
18:23:45: | | CopyResource - [0.254%] [avg time: 0.006 ms (cpu time: avg 0.007 ms, total 78.125 ms)] [avg calls per frame: 0]
18:23:45: | | conversion to 4:2:0 - [0.891%] [avg time: 0.021 ms (cpu time: avg 0.001 ms, total 15.625 ms)] [avg calls per frame: 0]
18:23:45: | | call to encoder - [84.9%] [avg time: 2.003 ms (cpu time: avg 1.993 ms, total 20281.3 ms)] [avg calls per frame: 0]
18:23:45: | | sending stuff out - [0.763%] [avg time: 0.018 ms (cpu time: avg 0.01 ms, total 109.375 ms)] [avg calls per frame: 0]
18:23:45: | Convert444Threads - [2.81e+003%] [avg time: 66.372 ms (cpu time: avg 2.171 ms, total 22093.8 ms)] [avg calls per frame: 1]
18:23:45: ==============================================================
18:23:45:
 

Kharay

Member
18:23:43: Total frames rendered: 5295, number of frames that lagged: 3 (0.06%) (it's okay for some frames to lag)
18:23:43: RTMPPublisher::SocketLoop: Aborting due to bStopping
18:23:43: Number of times waited to send: 0, Waited for a total of 0 bytes
18:23:43: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
Note the bold text -- You were lagging 3 frames in that particular session. Given the fact you were recording at 30 FPS at the time, that's 0.1 of a second. I'd hardly call that lag. ;)

I don't really know what else to say -- if BF3 has options to enable or disable hardware input you may want to switch between the 2 and see if that solves the issue. Other than that as far as OBS is concerned the stream is just fine.
 

TheNeekz

New Member
Im having 2-3 seconds delay INGAME while the live stream is on... anyone can help me with that !

Code:
Adapter 1
13:48:57:   Video Adapter: AMD Radeon HD 7700 Series
13:48:57:   Video Adapter Dedicated Video Memory: 2130759680
13:48:57:   Video Adapter Shared System Memory: 2164142080
13:48:57:   Video Adapter Output 1: pos={0, 0}, size={1440, 900}, attached=true
13:48:57: =====Stream Start: 2014-04-19, 13:48:57===============================================
13:48:57:   Multithreaded optimizations: On
13:48:57:   Base resolution: 1440x900
13:48:57:   Output resolution: 1440x900
13:48:57: ------------------------------------------
13:48:57: Loading up D3D10 on AMD Radeon HD 7700 Series (Adapter 1)...
13:48:57: ------------------------------------------
13:48:57: Audio Format: 48000 Hz
13:48:57: ------------------------------------------
13:48:57: Audio Channels: 2 Ch
13:48:57: Playback device Default
13:48:57: ------------------------------------------
13:48:57: Using desktop audio input: Haut-parleurs (4- Logitech G35 Headset)
13:48:57: ------------------------------------------
13:48:57: Using auxilary audio input: Microphone (4- Logitech G35 Headset)
13:48:57: ------------------------------------------
13:48:57: Audio Encoding: AAC
13:48:57:     bitrate: 128
13:48:57: Scene buffering time set to 700
13:48:57: ------------------------------------------
13:48:57: Video Encoding: x264
13:48:57:     fps: 30
13:48:57:     width: 1440, height: 900
13:48:57:     preset: veryfast
13:48:57:     profile: high
13:48:57:     keyint: 250
13:48:57:     CBR: yes
13:48:57:     CFR: yes
13:48:57:     max bitrate: 1800
13:48:57:     buffer size: 1800
13:48:57: ------------------------------------------
13:49:00: Total frames encoded: 71, total frames duplicated: 0 (0.00%)
13:49:00: Total frames rendered: 75, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
 
Last edited by a moderator:

dodgepong

Administrator
Community Helper
This is a really old thread, and the issue you're having is unrelated to its subject.

If you're getting high ping, that means your stream and the game are competing too much for your internet connection. First try enabling "Minimize Network Impact" in Broadcast Settings, and if that still doesn't help, try lowering the bit rate that you are streaming at.
 
Top