Question / Help Video freeze when recording

Loka

New Member
Hello.

I have tried to fix my problems now for a month and cant get the hang of it.

The problem is that i get a 1-2 sec freeze in the video when i record localy from my computer. the audio is ok.
it happens 1-2 times in an hour session.

can you guys please help me and see what im doing wrong?

heres the log file

kind regards
 

Attachments

Code:
00:15:23.214: CPU Name: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
00:15:23.214: CPU Speed: 3696MHz
00:15:23.214: Physical Cores: 6, Logical Cores: 12
00:15:23.214: Physical Memory: 16308MB Total, 8133MB Free
00:15:23.214: Windows Version: 10.0 Build 16299 (revision: 309; 64-bit)
00:15:23.214: Running as administrator: false
00:15:23.214: Aero is Enabled (Aero is always on for windows 8 and above)
00:15:23.214: Windows 10 Gaming Features:
00:15:23.214:     Game DVR: On
00:15:23.215: Sec. Software Status:
00:15:23.216:     Windows Defender Antivirus: disabled (AV)
00:15:23.216:     Trygg Surf by F-Secure: enabled (AV)
00:15:23.216:     Windows Firewall: enabled (FW)
00:15:23.216:     Trygg Surf by F-Secure: enabled (ASW)
00:15:23.216:     Windows Defender Antivirus: disabled (ASW)
00:15:23.216: Portable mode: false
00:15:23.228: OBS 21.0.1 (64bit, windows)
00:15:23.228: ---------------------------------
00:15:23.241: ---------------------------------
00:15:23.241: audio settings reset:
00:15:23.241:     samples per sec: 48000
00:15:23.241:     speakers:        2
00:15:23.241: ---------------------------------
00:15:23.241: Initializing D3D11...
00:15:23.241: Available Video Adapters:
00:15:23.242:     Adapter 1: NVIDIA GeForce GTX 1080 Ti
00:15:23.242:       Dedicated VRAM: 3077570560
00:15:23.242:       Shared VRAM:    4255328256
00:15:23.242:       output 1: pos={0, 0}, size={2560, 1080}, attached=true
00:15:23.242:       output 2: pos={2560, 0}, size={1280, 1024}, attached=true
00:15:23.243: Loading up D3D11 on adapter NVIDIA GeForce GTX 1080 Ti (0)
00:15:23.295: D3D11 loaded successfully, feature level used: 45056
00:15:23.865: ---------------------------------
00:15:23.865: video settings reset:
00:15:23.865:     base resolution:   2560x1080
00:15:23.865:     output resolution: 2560x1080
00:15:23.865:     downscale filter:  Lanczos
00:15:23.865:     fps:               60/1
00:15:23.865:     format:            NV12
00:15:23.868: Audio monitoring device:
00:15:23.868:     name: Default
00:15:23.868:     id: default
00:15:23.868: ---------------------------------
00:15:23.869: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
00:15:23.870: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
00:15:23.912: [AMF] <obs_module_load> AMF not supported (no AMD graphics)
00:15:23.912: Failed to initialize module 'enc-amf.dll'
00:15:23.921: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
00:15:23.921: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
00:15:23.921: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
00:15:23.922: Failed to load 'en-US' text for module: 'obs-browser.dll'
00:15:23.922: [browser_source: 'Version: 1.29.0']
00:15:23.924: NVENC supported
00:15:24.060: Couldn't find VLC installation, VLC video source disabled
00:15:24.062: No blackmagic support
00:15:24.129: ---------------------------------
00:15:24.129:   Loaded Modules:
00:15:24.129:     win-wasapi.dll
00:15:24.129:     win-mf.dll
00:15:24.129:     win-dshow.dll
00:15:24.129:     win-decklink.dll
00:15:24.129:     win-capture.dll
00:15:24.129:     vlc-video.dll
00:15:24.129:     text-freetype2.dll
00:15:24.129:     rtmp-services.dll
00:15:24.129:     obs-x264.dll
00:15:24.129:     obs-vst.dll
00:15:24.129:     obs-transitions.dll
00:15:24.129:     obs-text.dll
00:15:24.129:     obs-qsv11.dll
00:15:24.129:     obs-outputs.dll
00:15:24.129:     obs-filters.dll
00:15:24.129:     obs-ffmpeg.dll
00:15:24.129:     obs-browser.dll
00:15:24.129:     image-source.dll
00:15:24.129:     frontend-tools.dll
00:15:24.129:     enc-amf.dll
00:15:24.129:     coreaudio-encoder.dll
00:15:24.129: ---------------------------------
00:15:24.129: ==== Startup complete ===============================================
00:15:24.130: Service '' not found
00:15:24.132: All scene data cleared
00:15:24.132: ------------------------------------------------
00:15:24.175: WASAPI: Device 'Headset Earphone (Razer Kraken 7.1)' initialized
00:15:24.176: [WASAPISource::TryInitialize]:[Speakers (Elgato Sound Capture)] Failed to activate client context: 88890004
00:15:24.176: [WASAPISource::WASAPISource] Device '{0.0.0.00000000}.{b88a165e-687c-476d-8faa-8ccdfb27eecc}' not found.  Waiting for device
00:15:24.182: WASAPI: Device 'Microphone (2- RODE NT-USB)' initialized
00:15:24.217: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
00:15:24.696: [game-capture: 'Game'] attempting to hook process: starwarsbattlefrontii.exe
00:15:24.696: Switched to scene 'PC'
00:15:24.698: ------------------------------------------------
00:15:24.698: Loaded scenes:
00:15:24.698: - scene 'PC':
00:15:24.698:     - source: 'Game' (game_capture)
00:15:24.698: - scene 'PS4':
00:15:24.698:     - source: 'Elgato HD60' (dshow_input)
00:15:24.698: ------------------------------------------------
00:15:24.701: [game-capture: 'Game'] shared texture capture successful
00:15:26.683: ---------------------------------
00:15:26.683: [DShow Device: 'Elgato HD60'] settings updated:
00:15:26.683:     video device: Elgato Game Capture HD
00:15:26.683:     video path: __elgato
00:15:26.683:     resolution: 1920x1080
00:15:26.683:     fps: 60.00 (interval: 166666)
00:15:26.683:     format: UYVY
00:15:26.683:     using video device audio: yes
00:15:26.683:     sample rate: 48000
00:15:26.683:     channels: 2
00:15:26.683:     audio type: Capture
00:16:00.322: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
00:16:00.504: adding 42 milliseconds of audio buffering, total audio buffering is now 106 milliseconds
00:16:02.708: Starting recording due to hotkey
00:16:02.710: ---------------------------------
00:16:02.710: [NVENC encoder: 'recording_h264'] settings:
00:16:02.710:     rate_control: CBR
00:16:02.710:     bitrate:      40000
00:16:02.710:     cqp:          0
00:16:02.710:     keyint:       250
00:16:02.710:     preset:       hq
00:16:02.710:     profile:      main
00:16:02.710:     level:        auto
00:16:02.710:     width:        1920
00:16:02.710:     height:       1080
00:16:02.710:     2-pass:       true
00:16:02.710:     b-frames:     2
00:16:02.710:     GPU:          0
00:16:02.710:
00:16:02.999: ---------------------------------
00:16:02.999: [FFmpeg aac encoder: 'Track1'] bitrate: 320, channels: 2, channel_layout: 3
00:16:02.999:
00:16:03.000: ---------------------------------
00:16:03.000: [FFmpeg aac encoder: 'Track2'] bitrate: 320, channels: 2, channel_layout: 3
00:16:03.000:
00:16:03.001: ---------------------------------
00:16:03.002: [FFmpeg aac encoder: 'Track3'] bitrate: 320, channels: 2, channel_layout: 3
00:16:03.002:
00:16:03.005: [Media Foundation AAC: 'Track4']: encoder created
00:16:03.005:     bitrate: 160
00:16:03.005:     channels: 2
00:16:03.005:     sample rate: 48000
00:16:03.005:     bits-per-sample: 16
00:16:03.005:
00:16:03.027: ==== Recording Start ===============================================
00:16:03.027: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/OBS/2018-03-16 00-16-02.mp4'...
00:18:39.116: Stopping recording due to hotkey
00:18:40.362: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/OBS/2018-03-16 00-16-02.mp4' stopped
00:18:40.362: Output 'adv_file_output': stopping
00:18:40.362: Output 'adv_file_output': Total frames output: 9370
00:18:40.362: Output 'adv_file_output': Total drawn frames: 9375 (9440 attempted)
00:18:40.362: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 65 (0.7%)
00:18:40.362: ==== Recording Stop ================================================
00:18:40.365: Video stopped, number of skipped frames due to encoding lag: 139/9440 (1.5%)
00:18:40.436: warning: 2 frames left in the queue on closing
00:18:40.436: warning: 2 frames left in the queue on closing
00:18:40.436: warning: 2 frames left in the queue on closing
00:19:08.168: [game-capture: 'Game'] capture window no longer exists, terminating capture
00:19:08.168: [game-capture: 'Game'] capture stopped
00:19:09.611: ==== Shutting down ==================================================
00:19:09.620: Switched to scene '(null)'
00:19:11.956: WASAPI: Device 'Headset Earphone (Razer Kraken 7.1)' Terminated
00:19:11.971: WASAPI: Device 'Microphone (2- RODE NT-USB)' Terminated
00:19:11.977: All scene data cleared
00:19:11.977: ------------------------------------------------
00:19:12.019: Freeing OBS context data
00:19:12.073: [Scripting] Total detached callbacks: 0
00:19:12.080: == Profiler Results =============================
00:19:12.080: run_program_init: 1793.66 ms
00:19:12.080:  ┣OBSApp::AppInit: 4.671 ms
00:19:12.080:  ┃ ┗OBSApp::InitLocale: 1.16 ms
00:19:12.080:  ┗OBSApp::OBSInit: 1528.94 ms
00:19:12.080:    ┣obs_startup: 3.201 ms
00:19:12.080:    ┗OBSBasic::OBSInit: 1490.33 ms
00:19:12.080:      ┣OBSBasic::InitBasicConfig: 0.316 ms
00:19:12.080:      ┣OBSBasic::ResetAudio: 0.103 ms
00:19:12.080:      ┣OBSBasic::ResetVideo: 626.555 ms
00:19:12.080:      ┣OBSBasic::InitOBSCallbacks: 0.003 ms
00:19:12.080:      ┣OBSBasic::InitHotkeys: 0.03 ms
00:19:12.080:      ┣obs_load_all_modules: 261.196 ms
00:19:12.080:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.304 ms
00:19:12.080:      ┃ ┣obs_init_module(enc-amf.dll): 42.408 ms
00:19:12.080:      ┃ ┣obs_init_module(frontend-tools.dll): 3.316 ms
00:19:12.080:      ┃ ┣obs_init_module(image-source.dll): 0.009 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-browser.dll): 0.038 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.685 ms
00:19:12.080:      ┃ ┃ ┗nvenc_check: 0.641 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-filters.dll): 0.016 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-outputs.dll): 0.006 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-qsv11.dll): 131.424 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-text.dll): 0.308 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-transitions.dll): 0.003 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
00:19:12.080:      ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
00:19:12.080:      ┃ ┣obs_init_module(rtmp-services.dll): 0.21 ms
00:19:12.080:      ┃ ┣obs_init_module(text-freetype2.dll): 0.037 ms
00:19:12.080:      ┃ ┣obs_init_module(vlc-video.dll): 0.061 ms
00:19:12.080:      ┃ ┣obs_init_module(win-capture.dll): 0.043 ms
00:19:12.080:      ┃ ┣obs_init_module(win-decklink.dll): 0.905 ms
00:19:12.080:      ┃ ┣obs_init_module(win-dshow.dll): 0.871 ms
00:19:12.080:      ┃ ┣obs_init_module(win-mf.dll): 63.388 ms
00:19:12.080:      ┃ ┣obs_init_module(win-wasapi.dll): 0.032 ms
00:19:12.080:      ┃ ┗reset_win32_symbol_paths: 0.183 ms
00:19:12.080:      ┣OBSBasic::ResetOutputs: 0.394 ms
00:19:12.080:      ┣OBSBasic::CreateHotkeys: 0.205 ms
00:19:12.080:      ┣OBSBasic::InitService: 1.385 ms
00:19:12.080:      ┣OBSBasic::InitPrimitives: 0.176 ms
00:19:12.080:      ┗OBSBasic::Load: 566.756 ms
00:19:12.080: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.005 ms, max=49.641 ms, 99th percentile=0.226 ms, 99.9778% below 25 ms
00:19:12.080: audio_thread(Audio): min=0 ms, median=1.104 ms, max=1613.33 ms, 99th percentile=10.436 ms
00:19:12.080:  ┗receive_audio: min=0.005 ms, median=0.121 ms, max=1612.34 ms, 99th percentile=4.46 ms, 2.84026 calls per parent call
00:19:12.080:    ┣buffer_audio: min=0 ms, median=0.001 ms, max=0.415 ms, 99th percentile=0.004 ms
00:19:12.080:    ┗do_encode: min=0.008 ms, median=0.119 ms, max=1612.33 ms, 99th percentile=4.456 ms
00:19:12.080:      ┣encode(Track2): min=0.03 ms, median=0.103 ms, max=8.284 ms, 99th percentile=0.414 ms, 0.250025 calls per parent call
00:19:12.080:      ┣encode(Track3): min=0.005 ms, median=0.098 ms, max=7.872 ms, 99th percentile=0.283 ms, 0.250025 calls per parent call
00:19:12.080:      ┣encode(Track4): min=0.05 ms, median=0.096 ms, max=1.491 ms, 99th percentile=0.242 ms, 0.250025 calls per parent call
00:19:12.080:      ┗encode(Track1): min=0.009 ms, median=0.778 ms, max=57.844 ms, 99th percentile=9.138 ms, 0.249924 calls per parent call
00:19:12.080: obs_graphics_thread(16.6667 ms): min=0.172 ms, median=0.869 ms, max=510.928 ms, 99th percentile=4.786 ms, 99.8086% below 16.667 ms
00:19:12.080:  ┣tick_sources: min=0.001 ms, median=0.017 ms, max=510.476 ms, 99th percentile=0.232 ms
00:19:12.080:  ┣output_frame: min=0.101 ms, median=0.71 ms, max=69.593 ms, 99th percentile=4.038 ms
00:19:12.080:  ┃ ┣gs_context(video->graphics): min=0.078 ms, median=0.176 ms, max=67.327 ms, 99th percentile=2.104 ms
00:19:12.080:  ┃ ┃ ┣render_video: min=0.015 ms, median=0.067 ms, max=53.638 ms, 99th percentile=0.583 ms
00:19:12.080:  ┃ ┃ ┃ ┣render_main_texture: min=0.002 ms, median=0.025 ms, max=18.045 ms, 99th percentile=0.213 ms
00:19:12.080:  ┃ ┃ ┃ ┣render_output_texture: min=0.002 ms, median=0.008 ms, max=0.951 ms, 99th percentile=0.1 ms
00:19:12.080:  ┃ ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.009 ms, max=2.316 ms, 99th percentile=0.114 ms
00:19:12.080:  ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.01 ms, max=53.593 ms, 99th percentile=0.285 ms
00:19:12.080:  ┃ ┃ ┣download_frame: min=0 ms, median=0.05 ms, max=65.525 ms, 99th percentile=1.061 ms
00:19:12.080:  ┃ ┃ ┗gs_flush: min=0.017 ms, median=0.05 ms, max=67.221 ms, 99th percentile=0.488 ms
00:19:12.080:  ┃ ┗output_video_data: min=0 ms, median=0.513 ms, max=10.73 ms, 99th percentile=1.833 ms
00:19:12.080:  ┗render_displays: min=0 ms, median=0.112 ms, max=50.17 ms, 99th percentile=0.675 ms
00:19:12.080: video_thread(video): min=0 ms, median=4.876 ms, max=1607.37 ms, 99th percentile=11.352 ms
00:19:12.080:  ┗receive_video: min=0.546 ms, median=1.427 ms, max=1603.58 ms, 99th percentile=4.718 ms, 0.702485 calls per parent call
00:19:12.080:    ┗do_encode: min=0.545 ms, median=1.426 ms, max=1603.58 ms, 99th percentile=4.716 ms
00:19:12.080:      ┗encode(recording_h264): min=0.537 ms, median=1.339 ms, max=45.076 ms, 99th percentile=3.242 ms
00:19:12.080: =================================================
00:19:12.080: == Profiler Time Between Calls ==================
00:19:12.080: obs_hotkey_thread(25 ms): min=24.593 ms, median=25.07 ms, max=319.522 ms, 89.2287% within ±2% of 25 ms (0% lower, 10.7713% higher)
00:19:12.080: obs_graphics_thread(16.6667 ms): min=1.076 ms, median=16.667 ms, max=510.934 ms, 95.6996% within ±2% of 16.667 ms (2.32695% lower, 1.97349% higher)
00:19:12.080: =================================================
00:19:12.189: Number of memory leaks: 1
 
I also had problems before with my old computer and got so frustrated so I bought a new one (this one) for 3000 dollars just to get it to work. And still I get into problems
 
If you set your base resolution in settings - video to 1920x1080 and use simple output mode indistinguishable preset instead of your (arguably bad) CBR based recording settings, do you get the same freezes?

Also, don't save directly to mp4. There are precisely ZERO good reasons to do so.
 
The thing is that ive got an ultra wide monitor so 2560x1080 is my resolution. then i have to downscale it to 1920x1080. but i changed it now for testing. I have to try the simple mode aswell though ive never heard anyone use that.

If not to mp4, what do you think i should save to?
 
Record to FLV or MKV. If you record to MP4 and the recording is interrupted, the file will be corrupted and unrecoverable. If you require MP4 files for some other purpose like editing, remux them afterwards by selecting File > Remux Recordings in the main OBS Studio window.
 
if i set the base res to 1920x1080 i aint get the whole picture. Need to have base to 2560x1080 and rescale to 1920. The simple mode did my recorded video to shit, even though i had 40k bitrate. I will take ur advise about the mkv so thanks for that.

i continue to search for perfection
 
You're causing picture distortion by having your base resolution as a different aspect ratio from your output resolution. That will make things look worse.

Also, Use Simple output mode, indistinguishable recording quality.
 
Ok I'll try that! Simple output 40k on stream quality and on record "same as stream" that's all?
 
No.

Simple output mode
Recording quality: Indistinguishable
Recording format: FLV or MKV
Recording encoder: Nvenc or Software (x264, low cpu use increased file size)
 
Back
Top