Bug Report Lag Spikes while Streaming/Recording

Luckless

New Member
I'm getting lag spikes while using OBS. What's strange is it happens both when I am streaming and when I'm locally recording, even if I'm purposely disconnected from the internet. I uploaded an example of what the recording looks like at the time of the issue as unlisted on youtube: http://www.youtube.com/watch?v=7ZKEk5jBQFk.

What happens on my end during the lag spikes is the audio is the same as on the video, but all my programs also stutter and lag in the same way as the audio. I found that I can achieve the same lag spikes by connecting or disconnecting from my internet, but since the recording was done entirely while not connected, it must be something else that's the problem.

I have been streaming like this for a while but only recently started having these lag spikes. Here's the log file for the recording session that the video was taken from:

Code:
15:15:56: Open Broadcaster Software v0.60b - 64bit ( ^ω^)
15:15:56: -------------------------------
15:15:56: CPU Name: AMD Athlon(tm) X2 Dual-Core QL-64
15:15:56: CPU Speed: 2099MHz
15:15:56: Physical Memory:  3838MB Total, 2401MB Free
15:15:56: stepping id: 1, model 3, family 17, type 0, extmodel 0, extfamily 1, HTT 1, logical cores 2, total cores 2
15:15:56: monitor 1: pos={0, 0}, size={1366, 768}
15:15:56: Windows Version: 6.1 Build 7601 S
15:15:56: Aero is Enabled
15:15:56: -------------------------------
15:15:56: OBS Modules:
15:15:56: Base Address     Module
15:15:56: 000000003FF10000 OBS.exe
15:15:56: 00000000F02C0000 OBSApi.dll
15:15:56: 00000000F05A0000 DShowPlugin.dll
15:15:56: 00000000F0570000 GraphicsCapture.dll
15:15:56: 00000000F02A0000 NoiseGate.dll
15:15:56: 00000000F0280000 PSVPlugin.dll
15:15:56: ------------------------------------------
15:15:56: Adapter 1
15:15:56:   Video Adapter: ATI Radeon HD 3200 Graphics            
15:15:56:   Video Adapter Dedicated Video Memory: 266047488
15:15:56:   Video Adapter Shared System Memory: 1744003072
15:15:56:   Video Adapter Output 1: pos={0, 0}, size={1366, 768}, attached=true
15:24:32: =====Stream Start: 2014-02-09, 15:24:32===============================================
15:24:32:   Multithreaded optimizations: On
15:24:32:   Base resolution: 1366x768
15:24:32:   Output resolution: 680x384
15:24:32: ------------------------------------------
15:24:32: Loading up D3D10 on ATI Radeon HD 3200 Graphics (Adapter 1)...
15:24:32: D3D10CreateDeviceAndSwapChain1: Failed on ATI Radeon HD 3200 Graphics: 0x80004002. Trying compatibility mode
15:24:33: ------------------------------------------
15:24:33: Audio Format: 44100hz
15:24:33: Playback device {0.0.0.00000000}.{0eaa0110-e225-4e29-bb4b-f3b371775a45}
15:24:33: ------------------------------------------
15:24:33: Using desktop audio input: Speakers (Realtek High Definition Audio)
15:24:33: ------------------------------------------
15:24:33: Audio Encoding: AAC
15:24:33:     bitrate: 128
15:24:33: Using bitmap image
15:24:33: Using Window Capture
15:24:33: Using Window Capture
15:24:33: Using Window Capture
15:24:33: Scene buffering time set to 500
15:24:33: ------------------------------------------
15:24:33: Video Encoding: x264
15:24:33:     fps: 25
15:24:33:     width: 680, height: 384
15:24:33:     preset: veryfast
15:24:33:     profile: main
15:24:33:     keyint: 50
15:24:33:     CBR: yes
15:24:33:     CFR: yes
15:24:33:     max bitrate: 500
15:24:33:     buffer size: 500
15:24:33: ------------------------------------------
15:26:00: GetQPCTimeNS: WTF, clock went backwards! 40300725429 < 40300725541
15:26:02: GetQPCTimeNS: WTF, clock went backwards! 40319000798 < 40319000875
15:26:13: GetQPCTimeNS: WTF, clock went backwards! 40476541013 < 40476640875
15:27:51: GetQPCTimeNS: WTF, clock went backwards! 41885317382 < 41885359641
15:29:24: GetQPCTimeNS: WTF, clock went backwards! 43210408506 < 43210408849
15:33:40: GetQPCTimeNS: WTF, clock went backwards! 46874550883 < 46874551086
15:33:47: GetQPCTimeNS: WTF, clock went backwards! 46964200023 < 46964354170
15:37:01: GetQPCTimeNS: WTF, clock went backwards! 49746493131 < 49746525681
15:38:15: GetQPCTimeNS: WTF, clock went backwards! 50794980816 < 50795041702
15:38:48: Total frames encoded: 21376, total frames duplicated: 2511 (11.75%)
15:38:48: Number of frames skipped due to encoder lag: 26 (0.12%)
15:38:48: Total frames rendered: 19995, number of late frames: 1315 (6.58%) (it's okay for some frames to be late)
15:38:48:
15:38:48: Profiler time results:
15:38:48:
15:38:48: ==============================================================
15:38:48: video thread frame - [100%] [avg time: 38.963 ms] [children: 98.3%] [unaccounted: 1.69%]
15:38:48: | scene->Preprocess - [48.6%] [avg time: 18.94 ms]
15:38:48: | GPU download and conversion - [49.7%] [avg time: 19.363 ms] [children: 49.4%] [unaccounted: 0.257%]
15:38:48: | | flush - [0.0257%] [avg time: 0.01 ms]
15:38:48: | | CopyResource - [49.2%] [avg time: 19.185 ms]
15:38:48: | | conversion to 4:2:0 - [0.175%] [avg time: 0.068 ms]
15:38:48: Convert444Thread - [100%] [avg time: 1.901 ms] [children: 98.5%] [unaccounted: 1.53%]
15:38:48: | Convert444toNV12 - [98.5%] [avg time: 1.872 ms]
15:38:48: encoder thread frame - [100%] [avg time: 3.937 ms]
15:38:48: ==============================================================
15:38:48:
15:38:48:
15:38:48: Profiler CPU results:
15:38:48:
15:38:48: ==============================================================
15:38:48: video thread frame - [cpu time: avg 7.665 ms, total 153271 ms] [avg calls per frame: 1]
15:38:48: | scene->Preprocess - [cpu time: avg 6.563 ms, total 131228 ms] [avg calls per frame: 1]
15:38:48: | GPU download and conversion - [cpu time: avg 0.712 ms, total 14242.9 ms] [avg calls per frame: 1]
15:38:48: | | flush - [cpu time: avg 0.004 ms, total 93.601 ms] [avg calls per frame: 1]
15:38:48: | | CopyResource - [cpu time: avg 0.644 ms, total 12885.7 ms] [avg calls per frame: 1]
15:38:48: | | conversion to 4:2:0 - [cpu time: avg 0.007 ms, total 156 ms] [avg calls per frame: 1]
15:38:48: Convert444Thread - [cpu time: avg 1.311 ms, total 26192.6 ms] [avg calls per frame: 1]
15:38:48: | Convert444toNV12 - [cpu time: avg 1.298 ms, total 25943 ms] [avg calls per frame: 1]
15:38:48: encoder thread frame - [cpu time: avg 1.398 ms, total 29874.2 ms] [avg calls per frame: 1]
15:38:48: ==============================================================
15:38:48:
15:38:48: =====Stream End: 2014-02-09, 15:38:48=================================================
15:39:37: =====Stream Start: 2014-02-09, 15:39:37===============================================
15:39:37:   Multithreaded optimizations: On
15:39:37:   Base resolution: 1366x768
15:39:37:   Output resolution: 680x384
15:39:37: ------------------------------------------
15:39:37: Loading up D3D10 on ATI Radeon HD 3200 Graphics (Adapter 1)...
15:39:37: D3D10CreateDeviceAndSwapChain1: Failed on ATI Radeon HD 3200 Graphics: 0x80004002. Trying compatibility mode
15:39:37: ------------------------------------------
15:39:37: Audio Format: 44100hz
15:39:37: Playback device {0.0.0.00000000}.{0eaa0110-e225-4e29-bb4b-f3b371775a45}
15:39:37: ------------------------------------------
15:39:37: Using desktop audio input: Speakers (Realtek High Definition Audio)
15:39:37: ------------------------------------------
15:39:37: Audio Encoding: AAC
15:39:37:     bitrate: 128
15:39:37: Using bitmap image
15:39:37: Using Window Capture
15:39:37: Using Window Capture
15:39:37: Using Window Capture
15:39:37: Scene buffering time set to 500
15:39:37: ------------------------------------------
15:39:37: Video Encoding: x264
15:39:37:     fps: 25
15:39:37:     width: 680, height: 384
15:39:37:     preset: veryfast
15:39:37:     profile: main
15:39:37:     keyint: 50
15:39:37:     CBR: yes
15:39:37:     CFR: yes
15:39:37:     max bitrate: 250
15:39:37:     buffer size: 250
15:39:37: ------------------------------------------
15:40:19: GetQPCTimeNS: WTF, clock went backwards! 52563373386 < 52563373722
15:42:02: GetQPCTimeNS: WTF, clock went backwards! 54039703129 < 54039705012
15:43:03: GetQPCTimeNS: WTF, clock went backwards! 54909541287 < 54909544626
15:45:16: GetQPCTimeNS: WTF, clock went backwards! 56820194745 < 56820207723
15:46:36: GetQPCTimeNS: WTF, clock went backwards! 57963276244 < 57963278288
15:46:45: GetQPCTimeNS: WTF, clock went backwards! 58085899948 < 58085982184
15:47:30: GetQPCTimeNS: WTF, clock went backwards! 58727990719 < 58727992707
15:49:11: GetQPCTimeNS: WTF, clock went backwards! 60164835499 < 60164835639
15:49:37: GetQPCTimeNS: WTF, clock went backwards! 60548909735 < 60548909917
15:49:47: GetQPCTimeNS: WTF, clock went backwards! 60687805674 < 60687805863
15:51:22: GetQPCTimeNS: WTF, clock went backwards! 62041195327 < 62041195453
15:51:27: GetQPCTimeNS: WTF, clock went backwards! 62109039712 < 62109133806
15:51:35: GetQPCTimeNS: WTF, clock went backwards! 62234969012 < 62234969215
15:51:56: GetQPCTimeNS: WTF, clock went backwards! 62529050142 < 62529198024
Warning -- Capture BitBlt failed (6)..  just so you know
15:53:26: Using Window Capture
15:53:26: Using Window Capture
15:53:58: GetQPCTimeNS: WTF, clock went backwards! 64269622010 < 64269622143
15:54:07: GetQPCTimeNS: WTF, clock went backwards! 64397080138 < 64397080250
15:54:10: GetQPCTimeNS: WTF, clock went backwards! 64447377490 < 64447377602
15:54:15: Using Window Capture
15:55:01: GetQPCTimeNS: WTF, clock went backwards! 65170427321 < 65170427573
15:55:07: GetQPCTimeNS: WTF, clock went backwards! 65253300769 < 65253301098
15:57:27: GetQPCTimeNS: WTF, clock went backwards! 67252483990 < 67252484151
15:57:57: GetQPCTimeNS: WTF, clock went backwards! 67680016060 < 67680017467
15:58:32: GetQPCTimeNS: WTF, clock went backwards! 68182161669 < 68182165197
16:00:05: GetQPCTimeNS: WTF, clock went backwards! 69519002125 < 69519025848
16:00:09: GetQPCTimeNS: WTF, clock went backwards! 69575727668 < 69575838912
16:00:10: GetQPCTimeNS: WTF, clock went backwards! 69590645774 < 69590668692
16:00:31: GetQPCTimeNS: WTF, clock went backwards! 69888401309 < 69888403290
16:02:16: GetQPCTimeNS: WTF, clock went backwards! 71382986366 < 71382986471
16:02:18: GetQPCTimeNS: WTF, clock went backwards! 71411564342 < 71411564468
16:02:43: GetQPCTimeNS: WTF, clock went backwards! 71771918490 < 71771969247
16:03:32: GetQPCTimeNS: WTF, clock went backwards! 72477489055 < 72477493213
16:03:59: GetQPCTimeNS: WTF, clock went backwards! 72861633354 < 72861699434
16:04:01: GetQPCTimeNS: WTF, clock went backwards! 72881597319 < 72881597431
16:04:23: GetQPCTimeNS: WTF, clock went backwards! 73198227052 < 73198227234
16:04:39: GetQPCTimeNS: WTF, clock went backwards! 73430528513 < 73430644524
16:05:00: GetQPCTimeNS: WTF, clock went backwards! 73731250837 < 73731424535
16:06:58: GetQPCTimeNS: WTF, clock went backwards! 75419698360 < 75419700600
16:12:02: GetQPCTimeNS: WTF, clock went backwards! 79765742244 < 79765753157
16:15:13: GetQPCTimeNS: WTF, clock went backwards! 82487828765 < 82487830172
16:17:06: GetQPCTimeNS: WTF, clock went backwards! 84098281504 < 84098340087
16:17:26: GetQPCTimeNS: WTF, clock went backwards! 84389837412 < 84389837706
16:19:05: GetQPCTimeNS: WTF, clock went backwards! 85810642518 < 85810740469
16:21:12: GetQPCTimeNS: WTF, clock went backwards! 87615819045 < 87615819234
16:23:07: GetQPCTimeNS: WTF, clock went backwards! 89266990329 < 89266990518
16:24:36: GetQPCTimeNS: WTF, clock went backwards! 90532946895 < 90532987320
16:26:15: GetQPCTimeNS: WTF, clock went backwards! 91955476080 < 91955476570
16:26:19: GetQPCTimeNS: WTF, clock went backwards! 92004071053 < 92004072495
16:27:24: GetQPCTimeNS: WTF, clock went backwards! 92932541526 < 92932621305
16:28:56: GetQPCTimeNS: WTF, clock went backwards! 94251758460 < 94251825163
16:29:09: GetQPCTimeNS: WTF, clock went backwards! 94434838651 < 94434845749
16:30:19: GetQPCTimeNS: WTF, clock went backwards! 95431030414 < 95431030750
16:30:22: GetQPCTimeNS: WTF, clock went backwards! 95473897399 < 95473897546
16:34:07: GetQPCTimeNS: WTF, clock went backwards! 98691079983 < 98691080242
16:38:17: GetQPCTimeNS: WTF, clock went backwards! 102263214661 < 102263214843
16:39:34: Total frames encoded: 89906, total frames duplicated: 7888 (8.77%)
16:39:34: Number of frames skipped due to encoder lag: 4513 (5.02%)
16:39:34: Total frames rendered: 83951, number of late frames: 1329 (1.58%) (it's okay for some frames to be late)
16:39:34:
16:39:34: Profiler time results:
16:39:34:
16:39:34: ==============================================================
16:39:34: video thread frame - [100%] [avg time: 33.232 ms] [children: 96.6%] [unaccounted: 3.43%]
16:39:34: | scene->Preprocess - [42.8%] [avg time: 14.224 ms]
16:39:34: | GPU download and conversion - [53.8%] [avg time: 17.868 ms] [children: 53.5%] [unaccounted: 0.298%]
16:39:34: | | flush - [0.0331%] [avg time: 0.011 ms]
16:39:34: | | CopyResource - [53.2%] [avg time: 17.671 ms]
16:39:34: | | conversion to 4:2:0 - [0.262%] [avg time: 0.087 ms]
16:39:34: Convert444Thread - [100%] [avg time: 1.238 ms] [children: 98.2%] [unaccounted: 1.78%]
16:39:34: | Convert444toNV12 - [98.2%] [avg time: 1.216 ms]
16:39:34: encoder thread frame - [100%] [avg time: 4.805 ms]
16:39:34: ==============================================================
16:39:34:
16:39:34:
16:39:34: Profiler CPU results:
16:39:34:
16:39:34: ==============================================================
16:39:34: video thread frame - [cpu time: avg 7.396 ms, total 620962 ms] [avg calls per frame: 1]
16:39:34: | scene->Preprocess - [cpu time: avg 6.086 ms, total 510950 ms] [avg calls per frame: 1]
16:39:34: | GPU download and conversion - [cpu time: avg 0.649 ms, total 54522.3 ms] [avg calls per frame: 1]
16:39:34: | | flush - [cpu time: avg 0.007 ms, total 608.405 ms] [avg calls per frame: 1]
16:39:34: | | CopyResource - [cpu time: avg 0.589 ms, total 49514.7 ms] [avg calls per frame: 1]
16:39:34: | | conversion to 4:2:0 - [cpu time: avg 0.007 ms, total 608.407 ms] [avg calls per frame: 1]
16:39:34: Convert444Thread - [cpu time: avg 1.047 ms, total 87937.8 ms] [avg calls per frame: 1]
16:39:34: | Convert444toNV12 - [cpu time: avg 1.036 ms, total 87017.4 ms] [avg calls per frame: 1]
16:39:34: encoder thread frame - [cpu time: avg 1.407 ms, total 126517 ms] [avg calls per frame: 1]
16:39:34: ==============================================================
16:39:34:
16:39:34: =====Stream End: 2014-02-09, 16:39:34=================================================

I'm not sure what other info would be useful but here's my speedtest results including tests to a large range of different locations around the world: http://www.speedtest.net/results.php?sh ... e21d&ria=0

And this is the laptop I use: http://www.toshiba.co.uk/discontinued-p ... SC_MODEL=1

I know my laptop is very old, but I have still managed to stream without any sort of issue like this before and it is only recently that I have started having this problem.

EDIT: I've also looked at my task manager processes during the lag spikes and nothing changes on there from what it's like normally, so it doesn't seem on there like it's a certain program using up large amounts of the CPU but this problem only happens while I'm using OBS to record/stream; I don't get the lag spikes when offline.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
This is interesting. Could you download 0.592 binaries and see if it happens there? (This is for the sake of testing, I don't want you to switch to using them, I just want to see if it was something I may have accidentally introduced with certain specific code)
 

Luckless

New Member
Ok I did another recording session; this time with v0.592. I made sure I said "No" to the updates it prompted me to get including; v0.60b, DirectShow Plugin, Game Capture Plugin, Locale Files, Streaming Services List, Noise Gate Plugin and Per-Scene Volume Plugin. After an hour I was about to end it and report that the problem didn't happen again but it happened just after the hour mark. This made me wonder if it was going to start happening more times after that so I kept the recording going for an extra hour to see if it happened again but it didn't.

Code:
16:10:08: Open Broadcaster Software v0.592b - 64bit ( ^ω^)
16:10:08: -------------------------------
16:10:08: CPU Name: AMD Athlon(tm) X2 Dual-Core QL-64
16:10:08: CPU Speed: 2099MHz
16:10:08: Physical Memory:  3838MB Total, 2426MB Free
16:10:08: stepping id: 1, model 3, family 17, type 0, extmodel 0, extfamily 1, HTT 1, logical cores 2, total cores 2
16:10:08: monitor 1: pos={0, 0}, size={1366, 768}
16:10:08: Windows Version: 6.1 Build 7601 S
16:10:08: Aero is Enabled
16:10:08: -------------------------------
16:10:08: OBS Modules:
16:10:08: Base Address     Module
16:10:08: 000000003F3E0000 OBS.exe
16:10:08: 00000000E9BB0000 OBSApi.dll
16:10:08: 00000000EC910000 DShowPlugin.dll
16:10:08: 00000000EC8E0000 GraphicsCapture.dll
16:10:08: 00000000F1460000 NoiseGate.dll
16:10:08: 00000000F16B0000 PSVPlugin.dll
16:10:08: ------------------------------------------
16:10:08: Adapter 1
16:10:08:   Video Adapter: ATI Radeon HD 3200 Graphics            
16:10:08:   Video Adapter Dedicated Video Memory: 266047488
16:10:08:   Video Adapter Shared System Memory: 1744003072
16:10:08:   Video Adapter Output 1: pos={0, 0}, size={1366, 768}, attached=true
16:10:08: =====Stream Start: 2014-02-10, 16:10:08===============================================
16:10:08:   Multithreaded optimizations: On
16:10:08:   Base resolution: 1366x768
16:10:08:   Output resolution: 680x384
16:10:08: ------------------------------------------
16:10:08: Loading up D3D10 on ATI Radeon HD 3200 Graphics (Adapter 1)...
16:10:08: ------------------------------------------
16:10:08: Audio Format: 44100hz
16:10:08: Playback device {0.0.0.00000000}.{0eaa0110-e225-4e29-bb4b-f3b371775a45}
16:10:08: ------------------------------------------
16:10:08: Using desktop audio input: Speakers (Realtek High Definition Audio)
16:10:08: ------------------------------------------
16:10:08: Audio Encoding: AAC
16:10:08:     bitrate: 128
16:10:08: Using bitmap image
16:10:08: Using Window Capture
16:10:08: Using Window Capture
16:10:08: Using Window Capture
16:10:08: Scene buffering time set to 500
16:10:08: ------------------------------------------
16:10:08: Video Encoding: x264
16:10:08:     fps: 25
16:10:08:     width: 680, height: 384
16:10:08:     preset: veryfast
16:10:08:     profile: main
16:10:08:     keyint: 50
16:10:08:     CBR: yes
16:10:08:     CFR: yes
16:10:08:     max bitrate: 250
16:10:08:     buffer size: 250
16:10:08: ------------------------------------------
16:10:08: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
18:13:49: Total frames encoded: 185497, total frames duplicated: 8950 (4.82%)
18:13:49: Number of frames skipped due to encoder lag: 100 (0.05%)
18:13:49: Total frames rendered: 179352, number of late frames: 3004 (1.67%) (it's okay for some frames to be late)
18:13:49: 
18:13:49: Profiler time results:
18:13:49: 
18:13:49: ==============================================================
18:13:49: video thread frame - [100%] [avg time: 33.34 ms] [children: 97.6%] [unaccounted: 2.38%]
18:13:49: | scene->Preprocess - [40.5%] [avg time: 13.514 ms]
18:13:49: | GPU download and conversion - [57.1%] [avg time: 19.033 ms] [children: 56.8%] [unaccounted: 0.282%]
18:13:49: | | flush - [0.033%] [avg time: 0.011 ms]
18:13:49: | | CopyResource - [56.5%] [avg time: 18.848 ms]
18:13:49: | | conversion to 4:2:0 - [0.24%] [avg time: 0.08 ms]
18:13:49: Convert444Thread - [100%] [avg time: 1.081 ms] [children: 98.5%] [unaccounted: 1.48%]
18:13:49: | Convert444toNV12 - [98.5%] [avg time: 1.065 ms]
18:13:49: encoder thread frame - [100%] [avg time: 2.529 ms]
18:13:49: ==============================================================
18:13:49: 
18:13:49: 
18:13:49: Profiler CPU results:
18:13:49: 
18:13:49: ==============================================================
18:13:49: video thread frame - [cpu time: avg 7.296 ms, total 1.30872e+006 ms] [avg calls per frame: 1]
18:13:49: | scene->Preprocess - [cpu time: avg 6.117 ms, total 1.09725e+006 ms] [avg calls per frame: 1]
18:13:49: | GPU download and conversion - [cpu time: avg 0.608 ms, total 109138 ms] [avg calls per frame: 1]
18:13:49: | | flush - [cpu time: avg 0.007 ms, total 1341.6 ms] [avg calls per frame: 1]
18:13:49: | | CopyResource - [cpu time: avg 0.543 ms, total 97391.4 ms] [avg calls per frame: 1]
18:13:49: | | conversion to 4:2:0 - [cpu time: avg 0.008 ms, total 1560.01 ms] [avg calls per frame: 1]
18:13:49: Convert444Thread - [cpu time: avg 1.025 ms, total 183878 ms] [avg calls per frame: 1]
18:13:49: | Convert444toNV12 - [cpu time: avg 1.015 ms, total 182069 ms] [avg calls per frame: 1]
18:13:49: encoder thread frame - [cpu time: avg 1.436 ms, total 266481 ms] [avg calls per frame: 1]
18:13:49: ==============================================================
18:13:49: 
18:13:49: =====Stream End: 2014-02-10, 18:13:49=================================================

So 1 time in a 2 hour session is much better than it has been, which suggest you might be right, it might be specific to v0.60b. It might also be worth noting that It was v0.592 that was what i downloaded initially and got v0.60b through the automatic updates that it gives rather than downloading the version from the website.
 

Boildown

Active Member
This...

18:13:49: Total frames encoded: 185497, total frames duplicated: 8950 (4.82%)
... is bad. It means your CPU or GPU (or both) isn't strong enough. Your CPU is only a dual core, so that's not unexpected. Any other odd behavior you see could be explained by a moment of complex video that causes your CPU to duplicate a bunch of frames, or your game needing more CPU than usual and starving OBS of the CPU time it needs to encode.

Set your framerate lower... 25 is a weird number. I don't think computer monitors run at 50Hz even in Europe with their PAL TVs. Set your framerate lower, to 20 or 15 fps. This will help OBS keep up and make your framerate a nice fraction of your monitor's Hz.

You want your duplicated frames to be at most 1%. Just decreasing your framerate probably won't be enough to reduce your duplicated frames under 1%, so also change your preset to SuperFast, and see if that does the trick.
 

Luckless

New Member
@Boildown Ok I reduced my framerate to 15 fps and put the preset to SuperFast and got the % down to this:

23:53:52: Total frames encoded: 95226, total frames duplicated: 2260 (2.37%)

This is still with v0.592 btw, the duped frames wasn't the thing causing the lag spikes cause I haven't had any lag spikes in the stream you quoted nor the one I quoted in this post. Just letting you know that I took your advice and reduced the number :)
 

vbdkv

Member
That's a crazy amount of duplicated frames. If you disable CFR they'll be gone, but your viewers will have to cope with fluctuating frames per second, and honestly I have no idea how it'll impact their viewing pleasure. As far as I know, CFR isn't a requirement to stream to Twitch, it's basically a video editor compatibility thing such as Adobe Premiere so you can edit your videos which are required to have a constant frame rate (CFR).

Basically what's happening is, the encoder duplicates any missed frame to keep up the frame per second you set in your stream settings. Based on the amount of duplicated frames, your hardware is having issues keeping up. Upgrade if you can or lower settings even further :)
 

Boildown

Active Member
The next thing would be to increase your downscale to decrease the stream resolution by one more notch. Hopefully that does it. Alternatively you could use UltraFast preset, but UltraFast has a lot of quality compromises that I suggest you avoid if possible. Also your bitrate is really low in your second log, what is your upload capability?
 

Luckless

New Member
vbdkv said:
That's a crazy amount of duplicated frames. If you disable CFR they'll be gone, but your viewers will have to cope with fluctuating frames per second, and honestly I have no idea how it'll impact their viewing pleasure. As far as I know, CFR isn't a requirement to stream to Twitch, it's basically a video editor compatibility thing such as Adobe Premiere so you can edit your videos which are required to have a constant frame rate (CFR).

I often use OBS to record while not streaming so disabling something that would prevent me from being able to use my recordings is not an option.

Boildown said:
Also your bitrate is really low in your second log, what is your upload capability?

http://www.speedtest.net/results.php?sh ... e21d&ria=0
 
Top