Question / Help Invalid Argument

Spane

New Member
Hey Guys,

today i recordet a game and it took about one hour to record.
But the endresult was just a 2 minute video because OBS stoppt by itself.

Here is my log:

17:56:53.805: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
17:56:53.805: CPU Speed: 3400MHz
17:56:53.805: Physical Cores: 4, Logical Cores: 4
17:56:53.805: Physical Memory: 8156MB Total, 5870MB Free
17:56:53.805: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
17:56:53.805: Running as administrator: false
17:56:53.805: Aero is Enabled (Aero is always on for windows 8 and above)
17:56:53.806: Portable mode: false
17:56:53.884: OBS 20.0.1 (64bit, windows)
17:56:53.884: ---------------------------------
17:56:53.885: ---------------------------------
17:56:53.885: audio settings reset:
17:56:53.885: samples per sec: 44100
17:56:53.885: speakers: 2
17:56:53.886: ---------------------------------
17:56:53.886: Initializing D3D11...
17:56:53.886: Available Video Adapters:
17:56:53.888: Adapter 1: NVIDIA GeForce GTX 970
17:56:53.888: Dedicated VRAM: 4255580160
17:56:53.888: Shared VRAM: 4276549632
17:56:53.888: output 1: pos={0, 0}, size={1920, 1080}, attached=true
17:56:53.888: output 2: pos={1920, 0}, size={1680, 1050}, attached=true
17:56:53.890: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
17:56:53.939: D3D11 loaded successfully, feature level used: 45056
17:56:54.920: ---------------------------------
17:56:54.920: video settings reset:
17:56:54.920: base resolution: 1920x1080
17:56:54.920: output resolution: 1920x1080
17:56:54.920: downscale filter: Bicubic
17:56:54.920: fps: 30/1
17:56:54.920: format: I420
17:56:54.922: Audio monitoring device:
17:56:54.922: name: Standard
17:56:54.922: id: default
17:56:54.922: ---------------------------------
17:56:54.924: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
17:56:54.932: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
17:56:54.943: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
17:56:54.943: Failed to initialize module 'enc-amf.dll'
17:56:54.974: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
17:56:54.974: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
17:56:54.975: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
17:56:54.976: Failed to load 'en-US' text for module: 'obs-browser.dll'
17:56:54.976: [browser_source: 'Version: 1.29.0']
17:56:54.987: NVENC supported
17:56:55.144: VLC found, VLC video source enabled
17:56:55.163: No blackmagic support
17:56:55.316: ---------------------------------
17:56:55.316: Loaded Modules:
17:56:55.316: win-wasapi.dll
17:56:55.316: win-mf.dll
17:56:55.316: win-dshow.dll
17:56:55.316: win-decklink.dll
17:56:55.316: win-capture.dll
17:56:55.316: vlc-video.dll
17:56:55.316: text-freetype2.dll
17:56:55.316: rtmp-services.dll
17:56:55.316: obs-x264.dll
17:56:55.316: obs-vst.dll
17:56:55.316: obs-transitions.dll
17:56:55.316: obs-text.dll
17:56:55.316: obs-qsv11.dll
17:56:55.316: obs-outputs.dll
17:56:55.316: obs-filters.dll
17:56:55.316: obs-ffmpeg.dll
17:56:55.316: obs-browser.dll
17:56:55.316: image-source.dll
17:56:55.316: frontend-tools.dll
17:56:55.316: enc-amf.dll
17:56:55.316: coreaudio-encoder.dll
17:56:55.316: ---------------------------------
17:56:55.316: ==== Startup complete ===============================================
17:56:55.318: Service '' not found
17:56:55.337: All scene data cleared
17:56:55.337: ------------------------------------------------
17:56:55.408: WASAPI: Device 'Kopfhörer (2- Razer Kraken USB)' initialized
17:56:55.423: WASAPI: Device 'Mikrofon (3- Rode Podcaster)' initialized
17:56:55.479: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
17:56:55.915: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
17:56:58.795: Switched to scene 'Musikaufnahme'
17:56:58.797: ------------------------------------------------
17:56:58.798: Loaded scenes:
17:56:58.798: - scene 'Let's Play: The Binding of Isaac':
17:56:58.798: - source: 'The Binding of Isaac' (game_capture)
17:56:58.798: - scene 'Let's Schwelg: Yoshi's Island':
17:56:58.798: - source: 'Bildschirmaufnahme' (monitor_capture)
17:56:58.798: - source: 'Background' (image_source)
17:56:58.798: - scene 'Musikaufnahme':
17:56:58.798: ------------------------------------------------
17:57:43.916: User switched to scene 'Let's Play: The Binding of Isaac'
17:57:51.169: User switched to scene 'Let's Schwelg: Yoshi's Island'
17:57:51.722: User switched to scene 'Let's Play: The Binding of Isaac'
17:58:45.589: [game-capture: 'The Binding of Isaac'] attempting to hook fullscreen process: isaac-ng.exe
17:58:45.591: [game-capture: 'The Binding of Isaac'] using helper (compatibility hook)
17:58:45.595: [game-capture: 'The Binding of Isaac'] hook not loaded yet, retrying..
17:58:47.031: rtmp-common.c: [initialize_output] Could not find service ''
17:58:47.037: ---------------------------------
17:58:47.038: [NVENC encoder: 'recording_h264'] settings:
17:58:47.038: rate_control: CBR
17:58:47.038: bitrate: 2500
17:58:47.038: cqp: 0
17:58:47.038: keyint: 250
17:58:47.038: preset: default
17:58:47.038: profile: main
17:58:47.038: level: auto
17:58:47.038: width: 1920
17:58:47.038: height: 1080
17:58:47.038: 2-pass: true
17:58:47.038: b-frames: 2
17:58:47.038: GPU: 0
17:58:47.038:
17:58:47.716: ---------------------------------
17:58:47.716: [FFmpeg aac encoder: 'Gamesound'] bitrate: 320, channels: 2
17:58:47.749: ==== Recording Start ===============================================
17:58:47.749: [ffmpeg muxer: 'adv_file_output'] Writing file 'E:/Rohvideos & Audio/Aufnahmen/2017-11-20 17-58-47.mkv'...
17:58:48.623: [game-capture: 'The Binding of Isaac'] attempting to hook fullscreen process: isaac-ng.exe
17:58:48.785: [game-capture: 'The Binding of Isaac'] gl shared texture capture successful
17:58:48.789: [game-capture: 'The Binding of Isaac'] shared texture capture successful
17:58:52.671: [game-capture: 'The Binding of Isaac'] Hooked DXGI
17:58:53.508: [ffmpeg muxer: 'adv_file_output'] Output of file 'E:/Rohvideos & Audio/Aufnahmen/2017-11-20 17-58-47.mkv' stopped
17:58:53.508: Output 'adv_file_output': stopping
17:58:53.508: Output 'adv_file_output': Total frames output: 138
17:58:53.508: Output 'adv_file_output': Total drawn frames: 173
17:58:53.508: ==== Recording Stop ================================================
17:58:55.419: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
17:58:58.503: [game-capture: 'The Binding of Isaac'] ------------------ gl capture freed ------------------
17:58:58.556: [game-capture: 'The Binding of Isaac'] capture window no longer exists, terminating capture
17:58:58.556: [game-capture: 'The Binding of Isaac'] capture stopped
17:59:16.856: [game-capture: 'The Binding of Isaac'] attempting to hook fullscreen process: ApplicationFrameHost.exe
17:59:16.856: [game-capture: 'The Binding of Isaac'] cannot capture ApplicationFrameHost.exe due to being blacklisted
17:59:35.056: [game-capture: 'The Binding of Isaac'] attempting to hook fullscreen process: isaac-ng.exe
17:59:35.058: [game-capture: 'The Binding of Isaac'] using helper (compatibility hook)
17:59:35.060: [game-capture: 'The Binding of Isaac'] hook not loaded yet, retrying..
17:59:36.472: rtmp-common.c: [initialize_output] Could not find service ''
17:59:36.478: ---------------------------------
17:59:36.478: [NVENC encoder: 'recording_h264'] settings:
17:59:36.478: rate_control: CBR
17:59:36.478: bitrate: 2500
17:59:36.478: cqp: 0
17:59:36.478: keyint: 250
17:59:36.478: preset: default
17:59:36.478: profile: main
17:59:36.478: level: auto
17:59:36.478: width: 1920
17:59:36.478: height: 1080
17:59:36.478: 2-pass: true
17:59:36.478: b-frames: 2
17:59:36.478: GPU: 0
17:59:36.478:
17:59:36.848: ---------------------------------
17:59:36.849: [FFmpeg aac encoder: 'Gamesound'] bitrate: 320, channels: 2
17:59:36.855: ==== Recording Start ===============================================
17:59:36.855: [ffmpeg muxer: 'adv_file_output'] Writing file 'E:/Rohvideos & Audio/Aufnahmen/2017-11-20 17-59-36.mkv'...
17:59:38.089: [game-capture: 'The Binding of Isaac'] attempting to hook fullscreen process: isaac-ng.exe
17:59:38.193: [game-capture: 'The Binding of Isaac'] gl shared texture capture successful
17:59:38.223: [game-capture: 'The Binding of Isaac'] shared texture capture successful
17:59:42.106: [game-capture: 'The Binding of Isaac'] Hooked DXGI
17:59:47.800: [ffmpeg muxer: 'adv_file_output'] Output of file 'E:/Rohvideos & Audio/Aufnahmen/2017-11-20 17-59-36.mkv' stopped
17:59:47.800: Output 'adv_file_output': stopping
17:59:47.800: Output 'adv_file_output': Total frames output: 295
17:59:47.800: Output 'adv_file_output': Total drawn frames: 329
17:59:47.800: ==== Recording Stop ================================================
18:00:30.504: rtmp-common.c: [initialize_output] Could not find service ''
18:00:30.510: ---------------------------------
18:00:30.510: [NVENC encoder: 'recording_h264'] settings:
18:00:30.510: rate_control: CBR
18:00:30.510: bitrate: 2500
18:00:30.510: cqp: 0
18:00:30.510: keyint: 250
18:00:30.510: preset: default
18:00:30.510: profile: main
18:00:30.510: level: auto
18:00:30.510: width: 1920
18:00:30.510: height: 1080
18:00:30.510: 2-pass: true
18:00:30.510: b-frames: 2
18:00:30.510: GPU: 0
18:00:30.510:
18:00:30.883: ---------------------------------
18:00:30.883: [FFmpeg aac encoder: 'Gamesound'] bitrate: 320, channels: 2
18:00:30.912: ==== Recording Start ===============================================
18:00:30.912: [ffmpeg muxer: 'adv_file_output'] Writing file 'E:/Rohvideos & Audio/Aufnahmen/2017-11-20 18-00-30.mkv'...
18:00:34.297: [ffmpeg muxer: 'adv_file_output'] Output of file 'E:/Rohvideos & Audio/Aufnahmen/2017-11-20 18-00-30.mkv' stopped
18:00:34.297: Output 'adv_file_output': stopping
18:00:34.297: Output 'adv_file_output': Total frames output: 65
18:00:34.297: Output 'adv_file_output': Total drawn frames: 100 (102 attempted)
18:00:34.297: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 2 (2.0%)
18:00:34.298: ==== Recording Stop ================================================
18:01:00.958: rtmp-common.c: [initialize_output] Could not find service ''
18:01:00.964: ---------------------------------
18:01:00.965: [NVENC encoder: 'recording_h264'] settings:
18:01:00.965: rate_control: CBR
18:01:00.965: bitrate: 2500
18:01:00.965: cqp: 0
18:01:00.965: keyint: 250
18:01:00.965: preset: default
18:01:00.965: profile: main
18:01:00.965: level: auto
18:01:00.965: width: 1920
18:01:00.965: height: 1080
18:01:00.965: 2-pass: true
18:01:00.965: b-frames: 2
18:01:00.965: GPU: 0
18:01:00.965:
18:01:01.341: ---------------------------------
18:01:01.342: [FFmpeg aac encoder: 'Gamesound'] bitrate: 320, channels: 2
18:01:01.348: ==== Recording Start ===============================================
18:01:01.348: [ffmpeg muxer: 'adv_file_output'] Writing file 'E:/Rohvideos & Audio/Aufnahmen/2017-11-20 18-01-00.mkv'...
18:02:10.225: [NVENC encoder: 'recording_h264'] nvenc_encode: Error encoding: Invalid argument
18:02:10.347: Error encoding with encoder 'recording_h264'
18:02:32.439: adding 23 milliseconds of audio buffering, total audio buffering is now 92 milliseconds
18:05:51.712: adding 23 milliseconds of audio buffering, total audio buffering is now 116 milliseconds
19:13:43.890: [game-capture: 'The Binding of Isaac'] ------------------ gl capture freed ------------------
19:13:44.089: [game-capture: 'The Binding of Isaac'] capture window no longer exists, terminating capture
19:13:44.090: [game-capture: 'The Binding of Isaac'] capture stopped
19:14:04.310: ==== Shutting down ==================================================
19:14:04.325: Switched to scene '(null)'
19:14:04.333: WASAPI: Device 'Kopfhörer (2- Razer Kraken USB)' Terminated
19:14:04.361: WASAPI: Device 'Mikrofon (3- Rode Podcaster)' Terminated
19:14:04.365: All scene data cleared
19:14:04.365: ------------------------------------------------

I really hope you can help me.

Greetings Spane
 

R1CH

Forum Admin
Developer
You're using an old version of OBS, try updating. Also 1080p at 2500kbps using NVENC will look like trash. Use the auto config wizard to set up suitable settings.
 

Spane

New Member
Same problem still active.
It Says "Error encoding:invalid argument.
Can anyone help me because it's bad only 10% of my game capturing is working
Thank you all very much

here is the log:
20:46:15.344: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
20:46:15.344: CPU Speed: 3400MHz
20:46:15.344: Physical Cores: 4, Logical Cores: 4
20:46:15.344: Physical Memory: 8156MB Total, 5623MB Free
20:46:15.344: Windows Version: 10.0 Build 15063 (revision: 726; 64-bit)
20:46:15.344: Running as administrator: false
20:46:15.345: Aero is Enabled (Aero is always on for windows 8 and above)
20:46:15.345: Windows 10 Gaming Features:
20:46:15.345: Game Bar: Off
20:46:15.345: Game DVR Allowed: Yes
20:46:15.345: Game DVR: On
20:46:15.345: Game DVR Background Recording: Off
20:46:15.345: Game Mode: Off
20:46:15.346: Portable mode: false
20:46:15.413: OBS 20.1.3 (64bit, windows)
20:46:15.413: ---------------------------------
20:46:15.414: ---------------------------------
20:46:15.414: audio settings reset:
20:46:15.414: samples per sec: 48000
20:46:15.414: speakers: 2
20:46:15.416: ---------------------------------
20:46:15.416: Initializing D3D11...
20:46:15.416: Available Video Adapters:
20:46:15.417: Adapter 1: NVIDIA GeForce GTX 970
20:46:15.417: Dedicated VRAM: 4255580160
20:46:15.417: Shared VRAM: 4276549632
20:46:15.417: output 1: pos={0, 0}, size={1920, 1080}, attached=true
20:46:15.417: output 2: pos={1920, 0}, size={1680, 1050}, attached=true
20:46:15.420: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
20:46:16.250: D3D11 loaded successfully, feature level used: 45056
20:46:17.250: ---------------------------------
20:46:17.250: video settings reset:
20:46:17.250: base resolution: 2048x1152
20:46:17.250: output resolution: 2048x1152
20:46:17.250: downscale filter: Bicubic
20:46:17.250: fps: 30/1
20:46:17.250: format: I444
20:46:17.252: Audio monitoring device:
20:46:17.252: name: Standard
20:46:17.252: id: default
20:46:17.253: ---------------------------------
20:46:17.255: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
20:46:17.264: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
20:46:17.276: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
20:46:17.276: Failed to initialize module 'enc-amf.dll'
20:46:17.309: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
20:46:17.310: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
20:46:17.311: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
20:46:17.312: Failed to load 'en-US' text for module: 'obs-browser.dll'
20:46:17.312: [browser_source: 'Version: 1.29.0']
20:46:17.379: NVENC supported
20:46:17.976: Couldn't find VLC installation, VLC video source disabled
20:46:18.001: No blackmagic support
20:46:18.220: ---------------------------------
20:46:18.220: Loaded Modules:
20:46:18.220: win-wasapi.dll
20:46:18.220: win-mf.dll
20:46:18.220: win-dshow.dll
20:46:18.220: win-decklink.dll
20:46:18.220: win-capture.dll
20:46:18.220: vlc-video.dll
20:46:18.220: text-freetype2.dll
20:46:18.220: rtmp-services.dll
20:46:18.220: obs-x264.dll
20:46:18.220: obs-vst.dll
20:46:18.220: obs-transitions.dll
20:46:18.220: obs-text.dll
20:46:18.220: obs-qsv11.dll
20:46:18.220: obs-outputs.dll
20:46:18.220: obs-filters.dll
20:46:18.220: obs-ffmpeg.dll
20:46:18.220: obs-browser.dll
20:46:18.220: image-source.dll
20:46:18.220: frontend-tools.dll
20:46:18.220: enc-amf.dll
20:46:18.220: coreaudio-encoder.dll
20:46:18.220: ---------------------------------
20:46:18.220: ==== Startup complete ===============================================
20:46:18.223: Service '' not found
20:46:18.242: All scene data cleared
20:46:18.242: ------------------------------------------------
20:46:18.303: WASAPI: Device 'Kopfhörer (Razer Kraken USB)' initialized
20:46:18.321: WASAPI: Device 'Mikrofon (4- Rode Podcaster)' initialized
20:46:18.381: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
20:46:22.015: Switched to scene 'Let's Play: The Binding of Isaac'
20:46:22.017: ------------------------------------------------
20:46:22.017: Loaded scenes:
20:46:22.017: - scene 'Let's Play: The Binding of Isaac':
20:46:22.017: - source: 'The Binding of Isaac' (game_capture)
20:46:22.017: - scene 'Let's Schwelg: Yoshi's Island':
20:46:22.017: - source: 'Bildschirmaufnahme' (monitor_capture)
20:46:22.017: - source: 'Background' (image_source)
20:46:22.017: - scene 'Musikaufnahme':
20:46:22.017: - scene 'Let's Play Stowaway':
20:46:22.017: - source: 'Stowaway' (monitor_capture)
20:46:22.017: ------------------------------------------------
20:46:59.620: [game-capture: 'The Binding of Isaac'] attempting to hook process: isaac-ng.exe
20:46:59.621: [game-capture: 'The Binding of Isaac'] using helper (compatibility hook)
20:46:59.625: [game-capture: 'The Binding of Isaac'] hook not loaded yet, retrying..
20:47:02.653: [game-capture: 'The Binding of Isaac'] attempting to hook process: isaac-ng.exe
20:47:02.762: [game-capture: 'The Binding of Isaac'] gl shared texture capture successful
20:47:02.786: [game-capture: 'The Binding of Isaac'] shared texture capture successful
20:47:06.699: [game-capture: 'The Binding of Isaac'] Hooked DXGI
20:49:01.987: [game-capture: 'The Binding of Isaac'] ------------------ gl capture freed ------------------
20:49:02.220: [game-capture: 'The Binding of Isaac'] capture window no longer exists, terminating capture
20:49:02.220: [game-capture: 'The Binding of Isaac'] capture stopped
20:49:20.453: [game-capture: 'The Binding of Isaac'] attempting to hook process: isaac-ng.exe
20:49:20.454: [game-capture: 'The Binding of Isaac'] using helper (compatibility hook)
20:49:20.457: [game-capture: 'The Binding of Isaac'] hook not loaded yet, retrying..
20:49:23.486: [game-capture: 'The Binding of Isaac'] attempting to hook process: isaac-ng.exe
20:49:23.576: [game-capture: 'The Binding of Isaac'] gl shared texture capture successful
20:49:23.586: [game-capture: 'The Binding of Isaac'] shared texture capture successful
20:49:27.504: [game-capture: 'The Binding of Isaac'] Hooked DXGI
20:49:41.477: Starting recording due to hotkey
20:49:41.479: ---------------------------------
20:49:41.479: [NVENC encoder: 'recording_h264'] settings:
20:49:41.479: rate_control: lossless
20:49:41.479: bitrate: 0
20:49:41.479: cqp: 0
20:49:41.479: keyint: 250
20:49:41.479: preset: hp
20:49:41.479: profile: main
20:49:41.479: level: auto
20:49:41.479: width: 1920
20:49:41.479: height: 1080
20:49:41.479: 2-pass: false
20:49:41.479: b-frames: 0
20:49:41.479: GPU: 0
20:49:41.479:
20:49:42.295: ---------------------------------
20:49:42.295: [FFmpeg aac encoder: 'Gamesound'] bitrate: 320, channels: 2
20:49:42.310: ==== Recording Start ===============================================
20:49:42.311: [ffmpeg muxer: 'adv_file_output'] Writing file 'E:/Rohvideos & Audio/Aufnahmen/2017-12-06 20-49-41.mkv'...
20:50:56.894: [NVENC encoder: 'recording_h264'] nvenc_encode: Error encoding: Invalid argument
20:50:57.007: Error encoding with encoder 'recording_h264'
20:58:44.242: Stopping recording due to hotkey
20:58:51.845: ==== Shutting down ==================================================
20:58:51.864: Switched to scene '(null)'
20:58:51.871: [game-capture: 'The Binding of Isaac'] capture stopped
20:58:51.872: WASAPI: Device 'Kopfhörer (Razer Kraken USB)' Terminated
20:58:51.879: WASAPI: Device 'Mikrofon (4- Rode Podcaster)' Terminated
20:58:51.881: All scene data cleared
20:58:51.881: ------------------------------------------------
 
Top