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:
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.
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.