Lag spikes every few seconds in the video

FunnyHuman

New Member
I can post the log here :
15:00:55.621: CPU Name: Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
15:00:55.621: CPU Speed: 1498MHz
15:00:55.621: Physical Cores: 4, Logical Cores: 8
15:00:55.621: Physical Memory: 16165MB Total, 7508MB Free
15:00:55.621: Windows Version: 10.0 Build 19041 (release: 2004; revision: 804; 64-bit)
15:00:55.621: Running as administrator: false
15:00:55.621: Aero is Enabled (Aero is always on for windows 8 and above)
15:00:55.621: Windows 10 Gaming Features:
15:00:55.621: Game Bar: Off
15:00:55.621: Game DVR: Off
15:00:55.621: Game DVR Background Recording: Off
15:00:55.622: Game Mode: Off
15:00:55.628: Hardware GPU Scheduler: Off
15:00:55.630: Sec. Software Status:
15:00:55.631: Microsoft Defender Antivirus: disabled (AV)
15:00:55.631: Avast Antivirus: enabled (AV)
15:00:55.632: Windows Firewall: enabled (FW)
15:00:55.632: Current Date/Time: 2021-02-15, 15:00:55
15:00:55.632: Browser Hardware Acceleration: true
15:00:55.632: Portable mode: false
15:01:01.856: OBS 26.0.2 (64-bit, windows)
15:01:01.856: ---------------------------------
15:01:01.857: ---------------------------------
15:01:01.857: audio settings reset:
15:01:01.857: samples per sec: 48000
15:01:01.857: speakers: 2
15:01:01.860: ---------------------------------
15:01:01.860: Initializing D3D11...
15:01:01.860: Available Video Adapters:
15:01:01.867: Adapter 0: NVIDIA GeForce MX250
15:01:01.867: Dedicated VRAM: 4223328256
15:01:01.867: Shared VRAM: 4180566016
15:01:01.867: PCI ID: 10de:1d13
15:01:01.868: Driver Version: 27.21.14.6140
15:01:01.868: output 0: pos={0, 0}, size={1920, 1080}, attached=true, refresh=60, name=HP 2711
15:01:01.868: Adapter 1: Intel(R) Iris(R) Plus Graphics
15:01:01.868: Dedicated VRAM: 134217728
15:01:01.868: Shared VRAM: 4180566016
15:01:01.868: PCI ID: 8086:8a52
15:01:01.868: Driver Version: 26.20.100.7926
15:01:01.874: Loading up D3D11 on adapter NVIDIA GeForce MX250 (0)
15:01:01.956: D3D11 loaded successfully, feature level used: b000
15:01:01.956: DXGI increase maximum frame latency success
15:01:01.956: D3D11 GPU priority setup failed (not admin?)
15:01:02.363: ---------------------------------
15:01:02.363: video settings reset:
15:01:02.363: base resolution: 1920x1080
15:01:02.363: output resolution: 1920x1080
15:01:02.363: downscale filter: Bicubic
15:01:02.363: fps: 60/1
15:01:02.363: format: NV12
15:01:02.363: YUV mode: 709/Partial
15:01:02.363: NV12 texture support enabled
15:01:02.365: Audio monitoring device:
15:01:02.365: name: Default
15:01:02.365: id: default
15:01:02.365: ---------------------------------
15:01:02.370: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
15:01:02.372: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
15:01:03.417: [AMF] Unable to load 'amfrt64.dll', error code 126.
15:01:03.419: [AMF] AMF Test failed due to one or more errors.
15:01:03.419: Failed to initialize module 'enc-amf.dll'
15:01:03.444: [obs-browser]: Version 2.8.7
15:01:03.469: Couldn't find VLC installation, VLC video source disabled
15:01:03.476: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
15:01:03.477: No blackmagic support
15:01:03.482: ---------------------------------
15:01:03.482: Loaded Modules:
15:01:03.482: win-wasapi.dll
15:01:03.482: win-mf.dll
15:01:03.482: win-dshow.dll
15:01:03.482: win-decklink.dll
15:01:03.482: win-capture.dll
15:01:03.482: vlc-video.dll
15:01:03.482: text-freetype2.dll
15:01:03.482: rtmp-services.dll
15:01:03.482: obs-x264.dll
15:01:03.482: obs-vst.dll
15:01:03.482: obs-transitions.dll
15:01:03.482: obs-text.dll
15:01:03.482: obs-qsv11.dll
15:01:03.482: obs-outputs.dll
15:01:03.482: obs-filters.dll
15:01:03.482: obs-ffmpeg.dll
15:01:03.482: obs-browser.dll
15:01:03.482: image-source.dll
15:01:03.482: frontend-tools.dll
15:01:03.482: enc-amf.dll
15:01:03.482: decklink-ouput-ui.dll
15:01:03.482: coreaudio-encoder.dll
15:01:03.482: ---------------------------------
15:01:03.482: ==== Startup complete ===============================================
15:01:03.487: All scene data cleared
15:01:03.487: ------------------------------------------------
15:01:03.549: WASAPI: Device 'Speaker (Realtek(R) Audio)' [48000 Hz] initialized
15:01:03.550: [Loaded global audio device]: 'Desktop Audio'
15:01:03.550: [WASAPISource::TryInitialize]:[Headphones (LG HBS-SL6S Stereo)] Failed to activate client context: 88890004
15:01:03.550: [WASAPISource::WASAPISource] Device '{0.0.0.00000000}.{bb4cdd70-3dac-4831-94e4-a860819e5717}' not found. Waiting for device
15:01:03.550: [Loaded global audio device]: 'Desktop Audio 2'
15:01:03.551: [WASAPISource::TryInitialize]:[Microphone (Yeti Stereo Microphone)] Failed to activate client context: 88890004
15:01:03.551: [WASAPISource::WASAPISource] Device '{0.0.1.00000000}.{7d4127d2-8adc-4178-90d6-830177a47f06}' not found. Waiting for device
15:01:03.551: [Loaded global audio device]: 'Mic/Aux'
15:01:03.552: [window-capture: 'Badlion'] update settings:
15:01:03.552: executable: javaw.exe
15:01:03.552: method selected: Automatic
15:01:03.552: method chosen: BitBlt
15:01:03.552:
15:01:03.552: Switched to scene 'Scene'
15:01:03.552: ------------------------------------------------
15:01:03.552: Loaded scenes:
15:01:03.552: - scene 'Scene':
15:01:03.552: - source: 'Badlion' (window_capture)
15:01:03.552: ------------------------------------------------
15:01:04.583: device_texture_create_gdi (D3D11): Failed to create 2D texture (80070057)
15:01:04.583: [dc_capture_init] Failed to create textures
15:01:04.583: [capture_screen] Failed to get texture DC
15:01:18.667: [capture_screen] Failed to get texture DC
15:01:18.685: [capture_screen] Failed to get texture DC
15:01:18.701: [capture_screen] Failed to get texture DC
15:01:18.717: [capture_screen] Failed to get texture DC
15:01:18.734: [capture_screen] Failed to get texture DC
15:01:18.751: [capture_screen] Failed to get texture DC
15:01:18.767: [capture_screen] Failed to get texture DC
15:01:18.784: [capture_screen] Failed to get texture DC
15:01:18.801: [capture_screen] Failed to get texture DC
15:01:18.817: [capture_screen] Failed to get texture DC
15:01:18.834: [capture_screen] Failed to get texture DC
15:01:18.851: [capture_screen] Failed to get texture DC
15:02:32.824: >>> app not on intel GPU, fall back to old qsv encoder
15:02:32.824: [qsv encoder: 'simple_h264_recording'] settings:
15:02:32.824: rate_control: ICQ
15:02:32.824: ICQ Quality: 16
15:02:32.824: fps_num: 60
15:02:32.824: fps_den: 1
15:02:32.824: width: 1920
15:02:32.824: height: 1080
15:02:32.824: [qsv encoder: 'simple_h264_recording'] debug info:
15:02:32.832: impl: D3D11
15:02:32.832: surf: D3D11
15:02:33.216: m_nSurfNum: 12
15:02:33.227: m_nTaskPool: 4
15:02:33.227: major: 1
15:02:33.227: minor: 31
15:02:33.227: ---------------------------------
15:02:33.227: [FFmpeg aac encoder: 'simple_aac_recording'] bitrate: 192, channels: 2, channel_layout: 3
15:02:33.227:
15:02:33.257: ==== Recording Start ===============================================
15:02:33.257: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:/Users/justi/Videos/2021-02-15 15-02-32.mp4'...
15:25:44.203: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:/Users/justi/Videos/2021-02-15 15-02-32.mp4' stopped
15:25:44.203: Output 'simple_file_output': stopping
15:25:44.203: Output 'simple_file_output': Total frames output: 83391
15:25:44.203: Output 'simple_file_output': Total drawn frames: 83440 (83457 attempted)
15:25:44.203: Output 'simple_file_output': Number of lagged frames due to rendering lag/stalls: 17 (0.0%)
15:25:44.203: ==== Recording Stop ================================================
15:25:44.205: Video stopped, number of skipped frames due to encoding lag: 631/83431 (0.8%)
15:25:44.411: ==== Shutting down ==================================================
15:25:44.520: WASAPI: Device 'Speaker (Realtek(R) Audio)' Terminated
15:25:44.529: All scene data cleared
15:25:44.530: ------------------------------------------------
15:25:44.844: [Scripting] Total detached callbacks: 0
15:25:44.855: Freeing OBS context data
15:25:44.958: == Profiler Results =============================
15:25:44.958: run_program_init: 8314.17 ms
15:25:44.958: ┣OBSApp::AppInit: 24.971 ms
15:25:44.958: ┃ ┗OBSApp::InitLocale: 1.358 ms
15:25:44.958: ┗OBSApp::OBSInit: 8204.08 ms
15:25:44.958: ┣obs_startup: 10.873 ms
15:25:44.958: ┗OBSBasic::OBSInit: 1968.72 ms
15:25:44.958: ┣OBSBasic::InitBasicConfig: 0.561 ms
15:25:44.958: ┣OBSBasic::ResetAudio: 0.173 ms
15:25:44.958: ┣OBSBasic::ResetVideo: 507.4 ms
15:25:44.958: ┣OBSBasic::InitOBSCallbacks: 0.006 ms
15:25:44.958: ┣OBSBasic::InitHotkeys: 0.038 ms
15:25:44.958: ┣obs_load_all_modules: 1117.28 ms
15:25:44.958: ┃ ┣obs_init_module(coreaudio-encoder.dll): 1.998 ms
15:25:44.958: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.501 ms
15:25:44.958: ┃ ┣obs_init_module(enc-amf.dll): 1046.13 ms
15:25:44.958: ┃ ┣obs_init_module(frontend-tools.dll): 5.582 ms
15:25:44.958: ┃ ┣obs_init_module(image-source.dll): 0.005 ms
15:25:44.958: ┃ ┣obs_init_module(obs-browser.dll): 0.471 ms
15:25:44.958: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.528 ms
15:25:44.958: ┃ ┃ ┗nvenc_check: 0.51 ms
15:25:44.958: ┃ ┣obs_init_module(obs-filters.dll): 0.014 ms
15:25:44.958: ┃ ┣obs_init_module(obs-outputs.dll): 0.009 ms
15:25:44.958: ┃ ┣obs_init_module(obs-qsv11.dll): 8.156 ms
15:25:44.958: ┃ ┣obs_init_module(obs-text.dll): 0.271 ms
15:25:44.958: ┃ ┣obs_init_module(obs-transitions.dll): 0.012 ms
15:25:44.958: ┃ ┣obs_init_module(obs-vst.dll): 0.002 ms
15:25:44.958: ┃ ┣obs_init_module(obs-x264.dll): 0.006 ms
15:25:44.958: ┃ ┣obs_init_module(rtmp-services.dll): 0.383 ms
15:25:44.959: ┃ ┣obs_init_module(text-freetype2.dll): 0.071 ms
15:25:44.959: ┃ ┣obs_init_module(vlc-video.dll): 0.049 ms
15:25:44.959: ┃ ┣obs_init_module(win-capture.dll): 1.828 ms
15:25:44.959: ┃ ┣obs_init_module(win-decklink.dll): 3.815 ms
15:25:44.959: ┃ ┣obs_init_module(win-dshow.dll): 1.874 ms
15:25:44.959: ┃ ┣obs_init_module(win-mf.dll): 0 ms
15:25:44.959: ┃ ┣obs_init_module(win-wasapi.dll): 0.013 ms
15:25:44.959: ┃ ┗reset_win32_symbol_paths: 0.291 ms
15:25:44.959: ┣OBSBasic::ResetOutputs: 0.294 ms
15:25:44.959: ┣OBSBasic::CreateHotkeys: 0.039 ms
15:25:44.959: ┣OBSBasic::InitService: 1.458 ms
15:25:44.959: ┣OBSBasic::InitPrimitives: 0.086 ms
15:25:44.959: ┗OBSBasic::Load: 68.159 ms
15:25:44.959: obs_hotkey_thread(25 ms): min=0.003 ms, median=0.01 ms, max=274.133 ms, 99th percentile=0.077 ms, 99.9983% below 25 ms
15:25:44.959: audio_thread(Audio): min=0 ms, median=0.213 ms, max=1199.93 ms, 99th percentile=0.586 ms
15:25:44.959: ┗receive_audio: min=0.017 ms, median=0.175 ms, max=1199.9 ms, 99th percentile=0.468 ms, 0.920154 calls per parent call
15:25:44.959: ┣buffer_audio: min=0 ms, median=0.001 ms, max=0.24 ms, 99th percentile=0.008 ms
15:25:44.959: ┗do_encode: min=0.038 ms, median=0.17 ms, max=1199.89 ms, 99th percentile=0.455 ms
15:25:44.959: ┗encode(simple_aac_recording): min=0.033 ms, median=0.117 ms, max=1.984 ms, 99th percentile=0.247 ms
15:25:44.959: obs_graphics_thread(16.6667 ms): min=0.111 ms, median=5.117 ms, max=282.389 ms, 99th percentile=10.404 ms, 99.9764% below 16.667 ms
15:25:44.959: ┣tick_sources: min=0.001 ms, median=3.847 ms, max=38.045 ms, 99th percentile=9.079 ms
15:25:44.959: ┣output_frame: min=0.094 ms, median=0.54 ms, max=2.488 ms, 99th percentile=0.664 ms
15:25:44.959: ┃ ┣gs_context(video->graphics): min=0.093 ms, median=0.236 ms, max=2.086 ms, 99th percentile=0.308 ms
15:25:44.959: ┃ ┃ ┣render_video: min=0.006 ms, median=0.074 ms, max=1.281 ms, 99th percentile=0.126 ms
15:25:44.959: ┃ ┃ ┃ ┣render_main_texture: min=0.003 ms, median=0.025 ms, max=0.694 ms, 99th percentile=0.039 ms
15:25:44.959: ┃ ┃ ┃ ┣render_convert_texture: min=0.007 ms, median=0.011 ms, max=0.671 ms, 99th percentile=0.021 ms, 0.938329 calls per parent call
15:25:44.959: ┃ ┃ ┃ ┗stage_output_texture: min=0.001 ms, median=0.036 ms, max=1.243 ms, 99th percentile=0.083 ms, 0.938329 calls per parent call
15:25:44.959: ┃ ┃ ┣gs_flush: min=0.03 ms, median=0.078 ms, max=1.189 ms, 99th percentile=0.213 ms
15:25:44.959: ┃ ┃ ┗download_frame: min=0 ms, median=0.087 ms, max=1.93 ms, 99th percentile=0.161 ms, 0.938329 calls per parent call
15:25:44.959: ┃ ┗output_video_data: min=0 ms, median=0.301 ms, max=1.392 ms, 99th percentile=0.4 ms, 0.938318 calls per parent call
15:25:44.959: ┗render_displays: min=0 ms, median=0.7 ms, max=281.86 ms, 99th percentile=0.965 ms
15:25:44.959: video_thread(video): min=0 ms, median=0.525 ms, max=1205.52 ms, 99th percentile=0.841 ms
15:25:44.959: ┗receive_video: min=0.384 ms, median=0.523 ms, max=1205.51 ms, 99th percentile=5.33 ms
15:25:44.959: ┗do_encode: min=0.383 ms, median=0.522 ms, max=1205.51 ms, 99th percentile=5.329 ms
15:25:44.959: ┗encode(simple_h264_recording): min=0.356 ms, median=0.452 ms, max=43.517 ms, 99th percentile=4.86 ms
15:25:44.959: =================================================
15:25:44.959: == Profiler Time Between Calls ==================
15:25:44.959: obs_hotkey_thread(25 ms): min=24.177 ms, median=25.425 ms, max=299.013 ms, 55.4714% within ±2% of 25 ms (0.0136743% lower, 44.5149% higher)
15:25:44.959: obs_graphics_thread(16.6667 ms): min=2.509 ms, median=16.667 ms, max=282.397 ms, 99.8493% within ±2% of 16.667 ms (0.0753461% lower, 0.0753461% higher)
15:25:44.959: =================================================
15:25:45.064: Number of memory leaks: 0

I am not sure what is wrong.
 
Top