I'm making gameplay recordings, and OBSS does not always correctly record the audio. Sometimes the audio throughout an entire video will be skipping. Sometimes it will suddenly speed up (sometimes moderately, sometimes drastically) in the middle of the video and then end before the video's over. Sometimes videos just have no sound at all. Whenever these problems occur, I look at the log file and somewhere I find the line "Max audio buffering reached!" Sometimes when there are no problems I look at the log file, and then I never see that line. I have buffering disabled for all the sources I use, and I can't find any other buffer-related settings to adjust.
Now there are some hardware-related factors which I suspect may have something to do with this. A few weeks ago, my stupid Dell laptop started having sporadic problems related to the power adapter and battery. It wouldn't recognize the power adapter type and the battery wouldn't charge. And when this started was when the audio recording problems started. Initially the correlation was pretty clear. Whenever my laptop gave that power adapter warning on boot and/or the battery wouldn't charge, recorded audio would get mangled. Otherwise recordings would turn out fine. The people at a laptop repair place (which is also the place I bought the laptop from) said the CPU gets drastically underclocked if the machine thinks the power adapter is under-wattage, which could cause some programs to malfunction.
Another thing I noticed that coincided exactly with these power adapter problems: When I'd click "Stop Recording" in OBSS, it would take a really long time for the recording to stop. The button would say "Stopping Recording..." for about a minute or more. Sometimes it would just stay there, with the recording clock ticking up, until I closed OBSS. Whenever this happened, it was a pretty reliable indicator that the audio was ruined. If the recording stopped quickly and smoothly, it meant the audio was fine.
So you'd think that if I fixed this problem with my laptop then my recordings would be fine again, right? Unfortunately not. The repair place gave me a new power adapter (fortunately covered by hardware warranty) and it seemed to totally fix the adapter/battery problems. And now OBSS just takes a second or so to stop recording (which, however, is not quite as speedy as it usually was before any of these problems). But my recordings are still sometimes being ruined by this max audio buffering nonsense!
I really, really want to fix this! Even if it means editing the source code of OBSS and compiling it myself.
This log is from my most recent failed recording attempt, so after the resolution of the power adapter issue. I made a couple of test recordings and they were fine. But then (of course) when I tried to make a real gameplay recording there was no sound. I made another test recording after that and it also had no sound. And the log shows that "Max audio buffering reached!" happened after the recordings with sound and before the ones without.
Now there are some hardware-related factors which I suspect may have something to do with this. A few weeks ago, my stupid Dell laptop started having sporadic problems related to the power adapter and battery. It wouldn't recognize the power adapter type and the battery wouldn't charge. And when this started was when the audio recording problems started. Initially the correlation was pretty clear. Whenever my laptop gave that power adapter warning on boot and/or the battery wouldn't charge, recorded audio would get mangled. Otherwise recordings would turn out fine. The people at a laptop repair place (which is also the place I bought the laptop from) said the CPU gets drastically underclocked if the machine thinks the power adapter is under-wattage, which could cause some programs to malfunction.
Another thing I noticed that coincided exactly with these power adapter problems: When I'd click "Stop Recording" in OBSS, it would take a really long time for the recording to stop. The button would say "Stopping Recording..." for about a minute or more. Sometimes it would just stay there, with the recording clock ticking up, until I closed OBSS. Whenever this happened, it was a pretty reliable indicator that the audio was ruined. If the recording stopped quickly and smoothly, it meant the audio was fine.
So you'd think that if I fixed this problem with my laptop then my recordings would be fine again, right? Unfortunately not. The repair place gave me a new power adapter (fortunately covered by hardware warranty) and it seemed to totally fix the adapter/battery problems. And now OBSS just takes a second or so to stop recording (which, however, is not quite as speedy as it usually was before any of these problems). But my recordings are still sometimes being ruined by this max audio buffering nonsense!
I really, really want to fix this! Even if it means editing the source code of OBSS and compiling it myself.
This log is from my most recent failed recording attempt, so after the resolution of the power adapter issue. I made a couple of test recordings and they were fine. But then (of course) when I tried to make a real gameplay recording there was no sound. I made another test recording after that and it also had no sound. And the log shows that "Max audio buffering reached!" happened after the recordings with sound and before the ones without.
Code:
10:44:23.977: CPU Name: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
10:44:23.978: CPU Speed: 2494MHz
10:44:23.978: Physical Cores: 2, Logical Cores: 4
10:44:23.978: Physical Memory: 8072MB Total, 5862MB Free
10:44:23.978: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
10:44:23.978: Running as administrator: false
10:44:23.978: Aero is Enabled (Aero is always on for windows 8 and above)
10:44:23.978: Portable mode: false
10:44:24.022: OBS 19.0.3 (64bit, windows)
10:44:24.022: ---------------------------------
10:44:24.023: ---------------------------------
10:44:24.023: audio settings reset:
10:44:24.023: samples per sec: 48000
10:44:24.023: speakers: 2
10:44:24.024: ---------------------------------
10:44:24.024: Initializing D3D11...
10:44:24.025: Available Video Adapters:
10:44:24.026: Adapter 1: Intel(R) HD Graphics 3000
10:44:24.026: Dedicated VRAM: 33554432
10:44:24.026: Shared VRAM: 1711276032
10:44:24.027: output 1: pos={0, 0}, size={1366, 768}, attached=true
10:44:24.031: Loading up D3D11 on adapter Intel(R) HD Graphics 3000 (0)
10:44:24.033: D3D11 loaded successfully, feature level used: 41216
10:44:25.200: ---------------------------------
10:44:25.200: video settings reset:
10:44:25.200: base resolution: 256x224
10:44:25.200: output resolution: 256x224
10:44:25.200: downscale filter: Lanczos
10:44:25.200: fps: 262144/4389
10:44:25.200: format: NV12
10:44:25.201: Audio monitoring device:
10:44:25.201: name: Default
10:44:25.201: id: default
10:44:25.201: ---------------------------------
10:44:25.219: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
10:44:25.247: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
10:44:25.247: Failed to initialize module 'enc-amf.dll'
10:44:25.337: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
10:44:25.337: (126)
10:44:25.641: Couldn't find VLC installation, VLC video source disabled
10:44:25.717: No blackmagic support
10:44:25.807: ---------------------------------
10:44:25.807: Loaded Modules:
10:44:25.807: win-wasapi.dll
10:44:25.807: win-mf.dll
10:44:25.807: win-dshow.dll
10:44:25.807: win-decklink.dll
10:44:25.807: win-capture.dll
10:44:25.807: vlc-video.dll
10:44:25.807: text-freetype2.dll
10:44:25.807: rtmp-services.dll
10:44:25.807: obs-x264.dll
10:44:25.807: obs-vst.dll
10:44:25.807: obs-transitions.dll
10:44:25.807: obs-text.dll
10:44:25.807: obs-qsv11.dll
10:44:25.807: obs-outputs.dll
10:44:25.807: obs-filters.dll
10:44:25.807: obs-ffmpeg.dll
10:44:25.807: image-source.dll
10:44:25.807: frontend-tools.dll
10:44:25.807: enc-amf.dll
10:44:25.807: coreaudio-encoder.dll
10:44:25.807: ==== Startup complete ===============================================
10:44:25.809: Service '' not found
10:44:25.847: All scene data cleared
10:44:25.847: ------------------------------------------------
10:44:25.924: Switched to scene 'Single'
10:44:25.924: ------------------------------------------------
10:44:25.924: Loaded scenes:
10:44:25.924: - scene 'Single':
10:44:25.924: - source: 'SGB2' (dshow_input)
10:44:25.924: - scene 'Double':
10:44:25.924: - source: 'SGB2' (dshow_input)
10:44:25.924: - source: 'GB' (dshow_input)
10:44:25.924: ------------------------------------------------
10:44:26.165: ---------------------------------
10:44:26.165: [DShow Device: 'SGB2'] settings updated:
10:44:26.165: video device: GV-USB2, Analog Capture
10:44:26.165: video path: \\?\usb#vid_04bb&pid_0532#000000000000001#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{6f814be9-9af6-43cf-9249-c0345a000211}
10:44:26.165: resolution: 352x240
10:44:26.165: fps: 59.94 (interval: 166833)
10:44:26.165: format: YUY2
10:44:26.166: using video device audio: yes
10:44:26.167: sample rate: 48000
10:44:26.167: channels: 2
10:44:26.167: audio type: Capture
10:44:26.314: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds
10:44:47.012: rtmp-common.c: [initialize_output] Could not find service ''
10:44:47.013: ---------------------------------
10:44:47.013: [x264 encoder: 'recording_h264'] preset: superfast
10:44:47.013: [x264 encoder: 'recording_h264'] profile: high
10:44:47.013: [x264 encoder: 'recording_h264'] settings:
10:44:47.013: rate_control: CRF
10:44:47.013: bitrate: 0
10:44:47.013: buffer size: 0
10:44:47.013: crf: 15
10:44:47.013: fps_num: 262144
10:44:47.013: fps_den: 4389
10:44:47.013: width: 256
10:44:47.013: height: 224
10:44:47.013: keyint: 250
10:44:47.013: vfr: on
10:44:47.013:
10:44:47.019: ---------------------------------
10:44:47.020: [FFmpeg aac encoder: 'SGB2'] bitrate: 320, channels: 2
10:44:47.027: ==== Recording Start ===============================================
10:44:47.027: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101044.mkv'...
10:48:22.218: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101044.mkv' stopped
10:48:22.218: Output 'adv_file_output': stopping
10:48:22.218: Output 'adv_file_output': Total encoded frames: 12851
10:48:22.218: Output 'adv_file_output': Total drawn frames: 12853
10:48:22.219: ==== Recording Stop ================================================
10:48:22.228: warning: 2 frames left in the queue on closing
10:52:53.935: rtmp-common.c: [initialize_output] Could not find service ''
10:52:53.935: ---------------------------------
10:52:53.935: [x264 encoder: 'recording_h264'] preset: superfast
10:52:53.935: [x264 encoder: 'recording_h264'] profile: high
10:52:53.935: [x264 encoder: 'recording_h264'] settings:
10:52:53.935: rate_control: CRF
10:52:53.935: bitrate: 0
10:52:53.935: buffer size: 0
10:52:53.935: crf: 15
10:52:53.935: fps_num: 262144
10:52:53.935: fps_den: 4389
10:52:53.935: width: 256
10:52:53.935: height: 224
10:52:53.935: keyint: 250
10:52:53.935: vfr: on
10:52:53.935:
10:52:53.941: ---------------------------------
10:52:53.941: [FFmpeg aac encoder: 'SGB2'] bitrate: 320, channels: 2
10:52:53.949: ==== Recording Start ===============================================
10:52:53.949: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101052.mkv'...
11:04:07.351: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101052.mkv' stopped
11:04:07.351: Output 'adv_file_output': stopping
11:04:07.351: Output 'adv_file_output': Total encoded frames: 40219
11:04:07.351: Output 'adv_file_output': Total drawn frames: 40220
11:04:07.352: ==== Recording Stop ================================================
11:04:07.357: warning: 2 frames left in the queue on closing
11:04:08.916: Max audio buffering reached!
11:04:08.916: adding 938 milliseconds of audio buffering, total audio buffering is now 960 milliseconds
11:08:26.058: rtmp-common.c: [initialize_output] Could not find service ''
11:08:26.059: ---------------------------------
11:08:26.059: [x264 encoder: 'recording_h264'] preset: superfast
11:08:26.059: [x264 encoder: 'recording_h264'] profile: high
11:08:26.059: [x264 encoder: 'recording_h264'] settings:
11:08:26.059: rate_control: CRF
11:08:26.059: bitrate: 0
11:08:26.059: buffer size: 0
11:08:26.059: crf: 15
11:08:26.059: fps_num: 262144
11:08:26.059: fps_den: 4389
11:08:26.059: width: 256
11:08:26.059: height: 224
11:08:26.059: keyint: 250
11:08:26.059: vfr: on
11:08:26.059:
11:08:26.065: ---------------------------------
11:08:26.065: [FFmpeg aac encoder: 'SGB2'] bitrate: 320, channels: 2
11:08:26.073: ==== Recording Start ===============================================
11:08:26.073: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101108.mkv'...
11:27:30.193: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101108.mkv' stopped
11:27:30.193: Output 'adv_file_output': stopping
11:27:30.194: Output 'adv_file_output': Total encoded frames: 68334
11:27:30.194: Output 'adv_file_output': Total drawn frames: 68336
11:27:30.194: ==== Recording Stop ================================================
11:27:30.205: warning: 2 frames left in the queue on closing
11:38:27.398: rtmp-common.c: [initialize_output] Could not find service ''
11:38:27.399: ---------------------------------
11:38:27.399: [x264 encoder: 'recording_h264'] preset: superfast
11:38:27.399: [x264 encoder: 'recording_h264'] profile: high
11:38:27.399: [x264 encoder: 'recording_h264'] settings:
11:38:27.399: rate_control: CRF
11:38:27.399: bitrate: 0
11:38:27.399: buffer size: 0
11:38:27.399: crf: 15
11:38:27.399: fps_num: 262144
11:38:27.399: fps_den: 4389
11:38:27.399: width: 256
11:38:27.399: height: 224
11:38:27.399: keyint: 250
11:38:27.399: vfr: on
11:38:27.399:
11:38:27.404: ---------------------------------
11:38:27.405: [FFmpeg aac encoder: 'SGB2'] bitrate: 320, channels: 2
11:38:27.412: ==== Recording Start ===============================================
11:38:27.412: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101138.mkv'...
11:39:10.322: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Owner/L/G/rec/all/ftg/P/RB/L0/S1/G1/1707101138.mkv' stopped
11:39:10.322: Output 'adv_file_output': stopping
11:39:10.322: Output 'adv_file_output': Total encoded frames: 2561
11:39:10.322: Output 'adv_file_output': Total drawn frames: 2563
11:39:10.323: ==== Recording Stop ================================================
11:39:10.329: warning: 2 frames left in the queue on closing