Question / Help New OBS Version cause lag spike

Boildown

Active Member
Post a log file. From each version if you can. Make sure they're from high-action videos (as high as your game gets) at least five minutes long.
 

Devil61

New Member
0.47b

Open Broadcaster Software v0.472b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
CPU Speed: 3498MHz
Physical Memory: 8130MB Total, 4724MB Free
stepping id: 3, model 12, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1280, 1024}
Windows Version: 6.1 Build 7600
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 770
Video Adapter Dedicated Video Memory: 2087387136
Video Adapter Shared System Memory: 2147807232
=====Stream Start=====================================================================
Multithreaded optimizations: Off
Base resolution: 1280x1024
Output resolution: 640x512
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
Using 5.1 speaker setup
------------------------------------------
Using auxilary audio input: Microphone (Screaming Bee Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 48
Using graphics capture
Using custom x264 settings: "8x8dct=1 aq-mode=2 b-adapt=2 bframes=1 chroma-qp-offset=2 colormatrix=smpte170m deblock=0:0 direct=auto ipratio=1.41 keyint=40 level=3.1 merange=24 min-keyint=auto mixed-refs=1 no-mbtree=0 partitions=all profile=main psy-rd=0.5:0.0 qcomp=0.5 qpmax=50 qpmin=10 qpstep=4 ratetol=10 rc-lookahead=30 ref=2 scenecut=40 subme=7 threads=4 trellis=2 weightb=1 weightp=2"
The custom x264 command 'min-keyint=auto' failed
The custom x264 command 'profile=main' failed
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 BMI1 BMI2
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
fps: 25
width: 640, height: 512
preset: fast
CBR: no
CFR: yes
max bitrate: 500
buffer size: 200
quality: 7
------------------------------------------
using memory capture
Total frames rendered: 74, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated CFR frames: 0
x264: frame I:1 Avg QP:37.13 size: 17658
x264: frame P:11 Avg QP:33.03 size: 2294
x264: frame B:11 Avg QP:39.82 size: 77
x264: consecutive B-frames: 4.3% 95.7%
x264: mb I I16..4: 34.0% 14.4% 51.6%
x264: mb P I16..4: 1.5% 0.1% 0.1% P16..4: 17.0% 0.8% 2.4% 0.0% 0.0% skip:78.1%
x264: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 8.9% 0.0% 0.0% direct: 0.0% skip:91.1% L0: 0.1% L1:99.9% BI: 0.0%
x264: 8x8 transform intra:12.9% inter:36.8%
x264: direct mvs spatial:63.6% temporal:36.4%
x264: coded y,uvDC,uvAC intra: 42.1% 26.7% 18.4% inter: 4.8% 3.1% 1.1%
x264: i16 v,h,dc,p: 29% 70% 1% 1%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 42% 13% 4% 4% 6% 4% 5% 7%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 47% 11% 2% 3% 3% 4% 2% 4%
x264: i8c dc,h,v,p: 66% 24% 9% 1%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: ref P L0: 86.1% 12.1% 1.7%
x264: kb/s:380.29
=====Stream End=======================================================================
Using automatic low latency mode
=====Stream Start=====================================================================
Multithreaded optimizations: Off
Base resolution: 1280x1024
Output resolution: 640x512
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
Using 5.1 speaker setup
------------------------------------------
Using auxilary audio input: Microphone (Screaming Bee Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 48
Using graphics capture
Using custom x264 settings: "8x8dct=1 aq-mode=2 b-adapt=2 bframes=1 chroma-qp-offset=2 colormatrix=smpte170m deblock=0:0 direct=auto ipratio=1.41 keyint=40 level=3.1 merange=24 min-keyint=auto mixed-refs=1 no-mbtree=0 partitions=all profile=main psy-rd=0.5:0.0 qcomp=0.5 qpmax=50 qpmin=10 qpstep=4 ratetol=10 rc-lookahead=30 ref=2 scenecut=40 subme=7 threads=4 trellis=2 weightb=1 weightp=2"
The custom x264 command 'min-keyint=auto' failed
The custom x264 command 'profile=main' failed
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 BMI1 BMI2
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
fps: 25
width: 640, height: 512
preset: fast
CBR: no
CFR: yes
max bitrate: 500
buffer size: 200
quality: 7
------------------------------------------
using memory capture
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-fra.justin.tv/app
bufferTime: 2660, outputRateWindowTime: 1000, dropThreshold: 3160
Total frames rendered: 4963, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated CFR frames: 0
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
x264: frame I:128 Avg QP:24.24 size: 12506
x264: frame P:2685 Avg QP:26.62 size: 2506
x264: frame B:2101 Avg QP:31.36 size: 986
x264: consecutive B-frames: 14.5% 85.5%
x264: mb I I16..4: 43.8% 37.7% 18.5%
x264: mb P I16..4: 24.3% 8.0% 1.0% P16..4: 25.6% 4.3% 1.5% 0.1% 0.0% skip:35.3%
x264: mb B I16..4: 3.5% 1.4% 0.1% B16..8: 28.1% 3.6% 0.3% direct: 0.4% skip:62.6% L0:44.8% L1:53.7% BI: 1.5%
x264: 8x8 transform intra:25.9% inter:76.6%
x264: direct mvs spatial:99.9% temporal:0.1%
x264: coded y,uvDC,uvAC intra: 8.8% 21.1% 3.9% inter: 5.0% 5.6% 0.4%
x264: i16 v,h,dc,p: 43% 31% 12% 14%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 15% 55% 3% 3% 3% 4% 2% 3%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 29% 25% 3% 4% 3% 5% 2% 4%
x264: i8c dc,h,v,p: 68% 18% 13% 1%
x264: Weighted P-Frames: Y:1.4% UV:0.9%
x264: ref P L0: 73.6% 13.2% 13.0% 0.2%
x264: kb/s:423.29
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 2.371 ms] [avg calls per frame: 1] [children: 46%] [unaccounted: 54%]
| scene->Preprocess - [0.127%] [avg time: 0.003 ms] [avg calls per frame: 1]
| video encoding and uploading - [45.8%] [avg time: 1.087 ms] [avg calls per frame: 1] [children: 38.5%] [unaccounted: 7.3%]
| | CopyResource - [0.0844%] [avg time: 0.002 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [18.3%] [avg time: 0.433 ms] [avg calls per frame: 0]
| | call to encoder - [19.9%] [avg time: 0.471 ms] [avg calls per frame: 0]
| | sending stuff out - [0.337%] [avg time: 0.008 ms] [avg calls per frame: 0]
==============================================================
 

Devil61

New Member
0.625b

17:29:25: Open Broadcaster Software v0.625b - 64bit ( ^ω^)
17:29:25: -------------------------------
17:29:25: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
17:29:25: CPU Speed: 3498MHz
17:29:25: Physical Memory: 8130MB Total, 4827MB Free
17:29:25: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
17:29:25: monitor 1: pos={0, 0}, size={1280, 1024}
17:29:25: Windows Version: 6.1 Build 7600
17:29:25: Aero is Disabled
17:29:25: -------------------------------
17:29:25: OBS Modules:
17:29:25: Base Address Module
17:29:25: 000000003FFC0000 OBS.exe
17:29:25: 00000000CCA80000 OBSApi.dll
17:29:25: 00000000F78D0000 DShowPlugin.dll
17:29:25: 00000000F78A0000 GraphicsCapture.dll
17:29:25: 00000000EEFB0000 NoiseGate.dll
17:29:25: 00000000EEF80000 PSVPlugin.dll
17:29:26: ------------------------------------------
17:29:26: Adapter 1
17:29:26: Video Adapter: NVIDIA GeForce GTX 770
17:29:26: Video Adapter Dedicated Video Memory: 2087387136
17:29:26: Video Adapter Shared System Memory: 2147807232
17:29:26: Video Adapter Output 1: pos={0, 0}, size={1280, 1024}, attached=true
17:29:26: Using automatic low latency mode
17:29:26: =====Stream Start: 2014-07-31, 17:29:26===============================================
17:29:26: Multithreaded optimizations: Off
17:29:26: Base resolution: 1280x1024
17:29:26: Output resolution: 640x512
17:29:26: ------------------------------------------
17:29:26: Loading up D3D10 on NVIDIA GeForce GTX 770 (Adapter 1)...
17:29:26: ------------------------------------------
17:29:26: Audio Format: 48000 Hz
17:29:26: ------------------------------------------
17:29:26: Audio Channels: 2 Ch
17:29:26: Playback device Default
17:29:26: ------------------------------------------
17:29:26: Using desktop audio input: Speakers (Realtek High Definition Audio)
17:29:26: Global Audio time adjust: 0
17:29:26: Using 5.1 speaker setup
17:29:26: ------------------------------------------
17:29:26: Using auxilary audio input: Microphone (Screaming Bee Audio)
17:29:26: Mic time offset: 0
17:29:26: ------------------------------------------
17:29:26: Audio Encoding: AAC
17:29:26: bitrate: 48
17:29:26: Using graphics capture
17:29:26: Trying to hook process: quakelive.exe
17:29:26: Scene buffering time set to 700
17:29:26: Using custom x264 settings: "8x8dct=1 aq-mode=2 b-adapt=2 bframes=1 chroma-qp-offset=2 colormatrix=smpte170m deblock=0:0 direct=auto ipratio=1.41 keyint=40 level=3.1 merange=24 min-keyint=auto mixed-refs=1 no-mbtree=0 partitions=all profile=main psy-rd=0.5:0.0 qcomp=0.5 qpmax=50 qpmin=10 qpstep=4 ratetol=10 rc-lookahead=30 ref=2 scenecut=40 subme=7 threads=4 trellis=2 weightb=1 weightp=2"
17:29:26: The custom x264 command 'min-keyint=auto' failed
17:29:26: ------------------------------------------
17:29:26: Video Encoding: x264
17:29:26: fps: 25
17:29:26: width: 640, height: 512
17:29:26: preset: fast
17:29:26: profile: main
17:29:26: keyint: 40
17:29:26: CBR: no
17:29:26: CFR: yes
17:29:26: max bitrate: 500
17:29:26: buffer size: 200
17:29:26: quality: 7
17:29:26: ------------------------------------------
17:29:27: using memory capture
17:29:28: Using RTMP service: Twitch / Justin.tv
17:29:28: Server selection: rtmp://live-fra.justin.tv/app
17:29:28: Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
17:29:29: Completed handshake with rtmp://live-fra.justin.tv/app in 923 ms.
17:29:30: SO_SNDBUF was at 8192
17:29:30: SO_SNDBUF is now 65536
17:30:52: Total frames encoded: 2141, total frames duplicated: 21 (0.98%)
17:30:52: Total frames rendered: 2147, number of late frames: 3 (0.14%) (it's okay for some frames to be late)
17:30:52: RTMPPublisher::SocketLoop: Graceful loop exit
17:30:53: Average send payload: 1092 bytes, average send interval: 18 ms
17:30:53: Number of times waited to send: 0, Waited for a total of 0 bytes
17:30:53: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:30:53: Number of bytes sent: 4784548
17:30:53:
17:30:53: Profiler time results:
17:30:53:
17:30:53: ==============================================================
17:30:53: video thread frame - [100%] [avg time: 2.141 ms] [children: 22.6%] [unaccounted: 77.4%]
17:30:53: | scene->Preprocess - [0.0467%] [avg time: 0.001 ms]
17:30:53: | GPU download and conversion - [22.5%] [avg time: 0.482 ms] [children: 21.6%] [unaccounted: 0.887%]
17:30:53: | | flush - [1.59%] [avg time: 0.034 ms]
17:30:53: | | CopyResource - [0.14%] [avg time: 0.003 ms]
17:30:53: | | conversion to 4:2:0 - [19.9%] [avg time: 0.426 ms] [children: 19.3%] [unaccounted: 0.607%]
17:30:53: | | | Convert444toNV12 - [19.3%] [avg time: 0.413 ms]
17:30:53: encoder thread frame - [100%] [avg time: 0.48 ms] [children: 2.71%] [unaccounted: 97.3%]
17:30:53: | sending stuff out - [2.71%] [avg time: 0.013 ms]
17:30:53: ==============================================================
17:30:53:
17:30:53:
17:30:53: Profiler CPU results:
17:30:53:
17:30:53: ==============================================================
17:30:53: video thread frame - [cpu time: avg 1.075 ms, total 2308.81 ms] [avg calls per frame: 1]
17:30:53: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
17:30:53: | GPU download and conversion - [cpu time: avg 0.123 ms, total 265.2 ms] [avg calls per frame: 1]
17:30:53: | | flush - [cpu time: avg 0.029 ms, total 62.4 ms] [avg calls per frame: 1]
17:30:53: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
17:30:53: | | conversion to 4:2:0 - [cpu time: avg 0.095 ms, total 202.8 ms] [avg calls per frame: 1]
17:30:53: | | | Convert444toNV12 - [cpu time: avg 0.088 ms, total 187.2 ms] [avg calls per frame: 1]
17:30:53: encoder thread frame - [cpu time: avg 0.021 ms, total 46.8 ms] [avg calls per frame: 1]
17:30:53: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
17:30:53: ==============================================================
17:30:53:
17:30:53: =====Stream End: 2014-07-31, 17:30:53=================================================


Last game capture log:
GL Present
DoGLCPUHook: success
DoGLCPUHook: success
DoGLCPUHook: success
DoGLCPUHook: success
 

Boildown

Active Member
Get rid of all the custom x264 settings

Set the stream framerate to half your monitor framerate (if your monitor is running 50Hz, leave it alone, if its running 60Hz, set your stream framerate to 30fps). Alternatively, try 20fps regardless of the above.

Set CBR to yes.

Set your key interval to 2 seconds if it isn't already.

Your stream bitrate is really low. Increase the downscale to 3, and experiment setting it to 2.5 or 2 after you've verified it works at 3. Or increase your bitrate if your upload speed is fast enough to allow it. What is your upload speed?

Once you've done this, go through the procedure again and post new log files. And this time don't ignore the advice about at least 5 minutes long.
 
Last edited:

Devil61

New Member
i have tryed new settings 30fps 2.5 same as before with cbr 500bitrate 100 buf yea my bitrate is low 0.85 my ping is not stable 40 ping up to 60/65 random but at least i dont have lag spike
 

dodgepong

Administrator
Community Helper
CBR padding is what enabled strict CBR. It means you will always stream at a bit rate close to the bit rate you entered. If you're getting a higher ping while enabling that, that means your stream and the game are competing too much for your internet connection. You'll need to lower the bit rate that you are streaming at.
 
Top