Question / Help Windows, Recording, ffmpeg - unknown error when restarting recording

Kryztoval

New Member
I am using this settings
1568759853840.png

After some debugging and many cleaning I streamlined it to those few settings that yielded the quality and size i wanted (about 1GB per every 10 minutes with 1440@60 and good quality to be uploaded to youtube

but the thing is I like to pause and restart the recording after every match because that splits up the file and makes it easier to review, however with those settings when i open OBS and click record it works perfectly but after the first time i press stop recording and click start recording once more i get an error dialog that reads "Recording Error, An uspecified error ocurred while recording." and it will keep happening for a few seconds and maybe after 5 seconds of retries it will continue recording properly.

Please note this error never happens the first time the program is open and start recording is pressed, without any changes in configuration whatsoever.

So what I need is some help to find out what is this? is this a bug? how do I find out where it is happening?
The only one line I see in the second start of recording that I don't see anywhere else is this one:
Code:
Application provided invalid, non monotonically increasing dts to muxer in stream 2: 606208 >= -1024
But I don't know why that line is happening

17:30:58.436: CPU Name: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
17:30:58.436: CPU Speed: 3193MHz
17:30:58.436: Physical Cores: 4, Logical Cores: 4
17:30:58.436: Physical Memory: 16254MB Total, 13381MB Free
17:30:58.436: Windows Version: 10.0 Build 18362 (revision: 356; 64-bit)
17:30:58.436: Running as administrator: false
17:30:58.436: Aero is Enabled (Aero is always on for windows 8 and above)
17:30:58.436: Windows 10 Gaming Features:
17:30:58.436: Game Bar: Off
17:30:58.436: Game DVR: Off
17:30:58.436: Game DVR Background Recording: Off
17:30:58.436: Game Mode: Off
17:30:58.438: Sec. Software Status:
17:30:58.439: COMODO Antivirus: enabled (AV)
17:30:58.439: Windows Defender Antivirus: disabled (AV)
17:30:58.439: COMODO Firewall: enabled (FW)
17:30:58.439: Windows Firewall: disabled (FW)
17:30:58.440: Current Date/Time: 2019-09-17, 17:30:58
17:30:58.440: Browser Hardware Acceleration: true
17:30:58.440: Portable mode: false
17:30:58.672: OBS 23.2.1 (64-bit, windows)
17:30:58.672: ---------------------------------
17:30:58.673: ---------------------------------
17:30:58.673: audio settings reset:
17:30:58.673: samples per sec: 48000
17:30:58.673: speakers: 2
17:30:58.675: ---------------------------------
17:30:58.675: Initializing D3D11...
17:30:58.675: Available Video Adapters:
17:30:58.678: Adapter 0: NVIDIA GeForce GTX 1070
17:30:58.678: Dedicated VRAM: 4185915392
17:30:58.678: Shared VRAM: 4227325952
17:30:58.678: output 0: pos={0, 0}, size={2560, 1440}, attached=true
17:30:58.678: Adapter 1: Intel(R) HD Graphics 4600
17:30:58.678: Dedicated VRAM: 117964800
17:30:58.678: Shared VRAM: 2147483648
17:30:58.680: Loading up D3D11 on adapter NVIDIA GeForce GTX 1070 (0)
17:30:58.750: D3D11 loaded successfully, feature level used: 45056
17:30:59.728: ---------------------------------
17:30:59.728: video settings reset:
17:30:59.728: base resolution: 2560x1440
17:30:59.728: output resolution: 2560x1440
17:30:59.728: downscale filter: Bicubic
17:30:59.728: fps: 60/1
17:30:59.728: format: NV12
17:30:59.728: YUV mode: 709/Full
17:30:59.728: NV12 texture support enabled
17:30:59.731: Audio monitoring device:
17:30:59.731: name: Default
17:30:59.731: id: default
17:30:59.732: ---------------------------------
17:30:59.736: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
17:30:59.737: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
17:30:59.780: [AMF] AMF Test failed due to one or more errors.
17:30:59.780: Failed to initialize module 'enc-amf.dll'
17:30:59.795: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
17:30:59.798: [obs-browser]: Version 2.4.0
17:30:59.802: NVENC supported
17:30:59.818: Failed to load 'en-US' text for module: 'OBSInfoWriter.dll'
17:30:59.823: VLC found, VLC video source enabled
17:30:59.829: No blackmagic support
17:30:59.834: ---------------------------------
17:30:59.834: Loaded Modules:
17:30:59.834: win-wasapi.dll
17:30:59.834: win-mf.dll
17:30:59.834: win-dshow.dll
17:30:59.834: win-decklink.dll
17:30:59.834: win-capture.dll
17:30:59.834: vlc-video.dll
17:30:59.834: text-freetype2.dll
17:30:59.834: rtmp-services.dll
17:30:59.834: OBSInfoWriter.dll
17:30:59.834: obs-x264.dll
17:30:59.834: obs-vst.dll
17:30:59.834: obs-transitions.dll
17:30:59.834: obs-text.dll
17:30:59.834: obs-qsv11.dll
17:30:59.834: obs-outputs.dll
17:30:59.834: obs-filters.dll
17:30:59.834: obs-ffmpeg.dll
17:30:59.834: obs-browser.dll
17:30:59.834: image-source.dll
17:30:59.834: frontend-tools.dll
17:30:59.834: enc-amf.dll
17:30:59.834: decklink-ouput-ui.dll
17:30:59.834: coreaudio-encoder.dll
17:30:59.834: ---------------------------------
17:30:59.834: ==== Startup complete ===============================================
17:30:59.835: Service '' not found
17:30:59.837: All scene data cleared
17:30:59.837: ------------------------------------------------
17:30:59.888: WASAPI: Device 'CABLE Output (VB-Audio Virtual Cable)' initialized
17:30:59.925: WASAPI: Device 'HDMI (Live Gamer Ultra-Audio)' initialized
17:30:59.925: Switched to scene 'Scene'
17:30:59.926: ------------------------------------------------
17:30:59.926: Loaded scenes:
17:30:59.926: - scene 'Blank':
17:30:59.926: - scene 'Scene':
17:30:59.926: - source: 'Video Capture Device' (dshow_input)
17:30:59.926: - filter: 'Color Correction' (color_filter)
17:30:59.926: - source: 'Audio Input Capture' (wasapi_input_capture)
17:30:59.926: - source: 'Mic' (wasapi_input_capture)
17:30:59.926: - source: 'infowriter' (infowriter)
17:30:59.926: ------------------------------------------------
17:30:59.934: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic)
17:30:59.934:
17:30:59.954: ---------------------------------
17:30:59.954: [DShow Device: 'Video Capture Device'] settings updated:
17:30:59.954: video device: Live Gamer Ultra-Video
17:30:59.954: video path: \\?\usb#vid_07ca&pid_0553&mi_00#6&37fa8dbd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
17:30:59.954: resolution: 2560x1440
17:30:59.954: fps: 60.00 (interval: 166666)
17:30:59.954: format: NV12
17:31:45.731: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:31:45.731: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:31:45.731: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:31:45.731: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:31:45.758: ==== Recording Start ===============================================
17:31:58.493: Output 'adv_ffmpeg_output': stopping
17:31:58.493: Output 'adv_ffmpeg_output': Total frames output: 762
17:31:58.493: Output 'adv_ffmpeg_output': Total drawn frames: 807
17:31:58.493: ==== Recording Stop ================================================
17:31:58.852: warning: 2 frames left in the queue on closing
17:31:58.852: warning: 2 frames left in the queue on closing
17:31:58.852: warning: 2 frames left in the queue on closing
17:32:11.040: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:32:11.040: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:32:11.040: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:32:11.040: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
17:32:11.067: ==== Recording Start ===============================================
17:32:11.152: error: Application provided invalid, non monotonically increasing dts to muxer in stream 2: 606208 >= -1024
17:32:11.153: receive_audio: Error writing packet: Invalid argument
17:32:11.153: Output 'adv_ffmpeg_output': stopping
17:32:11.153: Output 'adv_ffmpeg_output': Total frames output: 2
17:32:11.153: Output 'adv_ffmpeg_output': Total drawn frames: 43
17:32:11.153: ==== Recording Stop ================================================
17:32:11.380: warning: 2 frames left in the queue on closing
17:32:11.380: warning: 2 frames left in the queue on closing
17:32:11.380: warning: 2 frames left in the queue on closing
17:32:39.394: ==== Shutting down ==================================================
17:32:39.404: Switched to scene '(null)'
17:32:39.425: WASAPI: Device 'HDMI (Live Gamer Ultra-Audio)' Terminated
17:32:39.703: WASAPI: Device 'CABLE Output (VB-Audio Virtual Cable)' Terminated
17:32:39.710: All scene data cleared
17:32:39.710: ------------------------------------------------
17:32:39.810: Freeing OBS context data
17:32:39.833: [Scripting] Total detached callbacks: 0
17:32:39.840: == Profiler Results =============================
17:32:39.840: run_program_init: 1710.7 ms
17:32:39.840: ┣OBSApp::AppInit: 34.392 ms
17:32:39.840: ┃ ┗OBSApp::InitLocale: 1.402 ms
17:32:39.840: ┗OBSApp::OBSInit: 1583.56 ms
17:32:39.840: ┣obs_startup: 4.517 ms
17:32:39.841: ┗OBSBasic::OBSInit: 1346.71 ms
17:32:39.841: ┣OBSBasic::InitBasicConfig: 0.483 ms
17:32:39.841: ┣OBSBasic::ResetAudio: 0.161 ms
17:32:39.841: ┣OBSBasic::ResetVideo: 1058.54 ms
17:32:39.841: ┣OBSBasic::InitOBSCallbacks: 0.004 ms
17:32:39.841: ┣OBSBasic::InitHotkeys: 0.046 ms
17:32:39.841: ┣obs_load_all_modules: 102.035 ms
17:32:39.841: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.598 ms
17:32:39.841: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.619 ms
17:32:39.841: ┃ ┣obs_init_module(enc-amf.dll): 41.154 ms
17:32:39.841: ┃ ┣obs_init_module(frontend-tools.dll): 3.888 ms
17:32:39.841: ┃ ┣obs_init_module(image-source.dll): 0.005 ms
17:32:39.841: ┃ ┣obs_init_module(obs-browser.dll): 0.402 ms
17:32:39.841: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.745 ms
17:32:39.841: ┃ ┃ ┗nvenc_check: 0.703 ms
17:32:39.841: ┃ ┣obs_init_module(obs-filters.dll): 0.012 ms
17:32:39.841: ┃ ┣obs_init_module(obs-outputs.dll): 0.006 ms
17:32:39.841: ┃ ┣obs_init_module(obs-qsv11.dll): 8.409 ms
17:32:39.841: ┃ ┣obs_init_module(obs-text.dll): 0.223 ms
17:32:39.841: ┃ ┣obs_init_module(obs-transitions.dll): 0.007 ms
17:32:39.841: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
17:32:39.841: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
17:32:39.841: ┃ ┣obs_init_module(OBSInfoWriter.dll): 0.001 ms
17:32:39.841: ┃ ┣obs_init_module(rtmp-services.dll): 1.132 ms
17:32:39.841: ┃ ┣obs_init_module(text-freetype2.dll): 0.05 ms
17:32:39.841: ┃ ┣obs_init_module(vlc-video.dll): 1.598 ms
17:32:39.841: ┃ ┣obs_init_module(win-capture.dll): 0.075 ms
17:32:39.841: ┃ ┣obs_init_module(win-decklink.dll): 3.964 ms
17:32:39.841: ┃ ┣obs_init_module(win-dshow.dll): 1.912 ms
17:32:39.841: ┃ ┣obs_init_module(win-mf.dll): 0 ms
17:32:39.841: ┃ ┣obs_init_module(win-wasapi.dll): 0.005 ms
17:32:39.841: ┃ ┗reset_win32_symbol_paths: 0.105 ms
17:32:39.841: ┣OBSBasic::ResetOutputs: 0.414 ms
17:32:39.841: ┣OBSBasic::CreateHotkeys: 0.201 ms
17:32:39.841: ┣OBSBasic::InitService: 1.547 ms
17:32:39.841: ┣OBSBasic::InitPrimitives: 0.09 ms
17:32:39.841: ┗OBSBasic::Load: 95.648 ms
17:32:39.841: obs_hotkey_thread(25 ms): min=0.004 ms, median=0.019 ms, max=1.773 ms, 99th percentile=0.448 ms, 100% below 25 ms
17:32:39.841: audio_thread(Audio): min=0 ms, median=0.062 ms, max=27.225 ms, 99th percentile=10.418 ms
17:32:39.841: obs_graphics_thread(16.6667 ms): min=0.09 ms, median=1.217 ms, max=77.22 ms, 99th percentile=2.87 ms, 99.9667% below 16.667 ms
17:32:39.841: ┣tick_sources: min=0.001 ms, median=0.01 ms, max=76.997 ms, 99th percentile=0.029 ms
17:32:39.841: ┣output_frame: min=0.083 ms, median=1.039 ms, max=24.307 ms, 99th percentile=2.454 ms
17:32:39.841: ┃ ┣gs_context(video->graphics): min=0.082 ms, median=1.017 ms, max=24.306 ms, 99th percentile=1.614 ms
17:32:39.841: ┃ ┃ ┣render_video: min=0.004 ms, median=0.866 ms, max=17.701 ms, 99th percentile=1.429 ms
17:32:39.841: ┃ ┃ ┃ ┣render_main_texture: min=0.002 ms, median=0.861 ms, max=17.697 ms, 99th percentile=1.426 ms
17:32:39.841: ┃ ┃ ┃ ┣render_output_texture: min=0.001 ms, median=0.006 ms, max=0.165 ms, 99th percentile=0.053 ms, 0.128812 calls per parent call
17:32:39.841: ┃ ┃ ┃ ┣render_convert_texture_nv12: min=0 ms, median=0.01 ms, max=0.143 ms, 99th percentile=0.056 ms, 0.128812 calls per parent call
17:32:39.841: ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.003 ms, max=0.107 ms, 99th percentile=0.045 ms, 0.128812 calls per parent call
17:32:39.841: ┃ ┃ ┣gs_flush: min=0.034 ms, median=0.147 ms, max=6.603 ms, 99th percentile=0.291 ms
17:32:39.841: ┃ ┃ ┗download_frame: min=0 ms, median=0.002 ms, max=0.171 ms, 99th percentile=0.121 ms, 0.128812 calls per parent call
17:32:39.841: ┃ ┗output_video_data: min=0.851 ms, median=1.075 ms, max=3.482 ms, 99th percentile=1.648 ms, 0.127479 calls per parent call
17:32:39.841: ┗render_displays: min=0 ms, median=0.164 ms, max=5.912 ms, 99th percentile=0.555 ms
17:32:39.841: video_thread(video): min=2.012 ms, median=2.771 ms, max=5.323 ms, 99th percentile=3.73 ms
17:32:39.841: =================================================
17:32:39.841: == Profiler Time Between Calls ==================
17:32:39.841: obs_hotkey_thread(25 ms): min=24.81 ms, median=25.88 ms, max=41.248 ms, 49.2315% within ±2% of 25 ms (0% lower, 50.7685% higher)
17:32:39.841: obs_graphics_thread(16.6667 ms): min=6.107 ms, median=16.667 ms, max=77.225 ms, 99.0833% within ±2% of 16.667 ms (0.466667% lower, 0.45% higher)
17:32:39.841: =================================================
17:32:39.877: Number of memory leaks: 1
 
Top