Question / Help Mic audio de-syncs over time

BlitzGirl

New Member
I got a new laptop, reinstalled OBS, and duplicated the settings I had on my previous, older laptop. I use OBS to simultaneously stream to Twitch and record an MP4, and up until I got this new laptop, my recordings had no audio issues. However, the last two recordings I have made start out fine, but then the audio of my Blue Yeti Nano, which I use to record my voice, starts going out of sync with my lip movements halfway through, then progressively gets worse. I've tried troubleshooting this with a friend who knows more about this stuff than I do, and even making his requested changes did not prevent the second recording from having issues.

Basically, my game audio is perfectly in sync, just not my mic audio. All audio settings anywhere they exist are set to 48 khz, and my webcam and Elgato capture card FPS is locked at 30 fps. Audio bitrate and other matters are set to normal parameters. Audio timestamps are disabled.

As I said, I never had this issue with my older laptop, and this new laptop is a gaming computer, so I would think this wouldn't happen.

I couldn't make OBS generate a url of the log file since I opened OBS several times after tonight's stream/recording ended, so instead I've attached the .txt file.
 

Attachments

  • 2020-05-13 18-04-20.txt
    15 KB · Views: 56

BlitzGirl

New Member
UPDATE: Issue is still not resolved. I turned Windows' default "Game" mode off, made more changes to OBS, and the two sets of recordings I made last night all had a weird audio stutter around the 52 minute mark that cause all audio to go out of sync - yes, both game and mic audio. All audio devices are set to 48 khz. Video quality of the recordings are fine; it's the audio that is having issues if the video is longer than 40 minutes.

Here are my laptop specs:
  • Device name: MSI
  • Processor: Intel Core i7-9750H CPU @ 2.60GHz 2.60 GHz
  • Installed RAM: 16.0 GB (15.8 GB usable)
  • System type: 64-bit operating system, x64-based processor
  • Product name: MSI - GS Series Stealth 15.6" Gaming Laptop - Intel Core i7 - 16GB Memory - NVIDIA GeForce GTX 1660Ti - 512GB SSD - Matte Black With Gold Diamond Cut
Now, I used OBS all the time on my previous laptop, which was HP. Yes, there were dropped frames, but they never ever interfered with my audio. It must be something with this brand new laptop that is causing the issues. I bought this on May 5th, 2020.
 

BlitzGirl

New Member
UPDATE #2: Did several tests this weekend and one-hour recordings had no audio issues, so I thought I was golden. But I did a recording for 1 hour 35-40 minutes, and...the last 7 minutes had the audio desync issue! I've been saving my recordings to .mkv format, kept webcam and game video at 30 FPS and 720 in OBS. I'm considering either a) seeing what .flv files do or b) trying to keep all video game recordings from now on to one hour or less...

I'd really appreciate someone replying to my thread, because all threads and videos I've seen about audio de-sync issues are never about my specific issue.
 

FerretBomb

Active Member
Just as a test, could you set the mic device in Settings->Audio to Disabled, and add an Audio Input Capture source to your scene? This will allow checking/unchecking 'use device timestamps' which are the most common cause of audio drift (normally you want it UNchecked to prevent drift).

You have a number of other issues from that logfile though. Swapping to MKV was a good step. However, you're dropping a TON of frames, and (likely related) are streaming over Wifi (which you should never do).
Another potential source of the issue could be the Elgato HD60S. That is a high-bandwidth device, and if it is 'choking out' your mic, that can easily lead to bandwidth-related desync, but normally you'll get audio robotting and stutter before that happens. You can download the USBView utility to see which controllers each is connected to, and try to move them to a different port to balance the bandwidth load:
 

BlitzGirl

New Member
Just as a test, could you set the mic device in Settings->Audio to Disabled, and add an Audio Input Capture source to your scene? This will allow checking/unchecking 'use device timestamps' which are the most common cause of audio drift (normally you want it UNchecked to prevent drift).

You have a number of other issues from that logfile though. Swapping to MKV was a good step. However, you're dropping a TON of frames, and (likely related) are streaming over Wifi (which you should never do).
Another potential source of the issue could be the Elgato HD60S. That is a high-bandwidth device, and if it is 'choking out' your mic, that can easily lead to bandwidth-related desync, but normally you'll get audio robotting and stutter before that happens. You can download the USBView utility to see which controllers each is connected to, and try to move them to a different port to balance the bandwidth load:
To be clear, the audio de-sync is happening with both my mic and game audio, at the exact same time. Even if bitrates are all set the same, even if audio on all devices are all set to 48khz, even if video is set to 720 and 30 fps. My stream will always be crappy due to my internet, I can accept that. But my recordings, which have nothing to do with streaming, are what I'm most worried about.
 

BlitzGirl

New Member
Here is the log file from today's recording/stream...and it's worth noting that I've found the audio issue (game and mic) in both the Twitch streams and recorded file (regardless if it was .mp4 or .mkv, but only since having this brand-new computer).


17:48:24.052: CoInitializeEx succeeded: 0x00000001
17:48:24.052: CPU Name: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
17:48:24.052: CPU Speed: 2592MHz
17:48:24.052: Physical Cores: 6, Logical Cores: 12
17:48:24.052: Physical Memory: 16228MB Total, 11615MB Free
17:48:24.052: Windows Version: 10.0 Build 18363 (release: 1909; revision: 836; 64-bit)
17:48:24.052: Running as administrator: false
17:48:24.052: Aero is Enabled (Aero is always on for windows 8 and above)
17:48:24.052: Windows 10 Gaming Features:
17:48:24.052: Game Bar: Off
17:48:24.052: Game DVR: Off
17:48:24.052: Game DVR Background Recording: Off
17:48:24.053: Game Mode: On
17:48:24.055: Sec. Software Status:
17:48:24.056: Norton Security: enabled (AV)
17:48:24.056: Windows Defender Antivirus: disabled (AV)
17:48:24.057: Norton Security: enabled (FW)
17:48:24.057: Windows Firewall: disabled (FW)
17:48:24.057: Current Date/Time: 2020-05-18, 17:48:24
17:48:24.057: Browser Hardware Acceleration: true
17:48:24.057: Portable mode: false
17:48:24.295: OBS 25.0.8 (64-bit, windows)
17:48:24.295: ---------------------------------
17:48:24.313: ---------------------------------
17:48:24.313: audio settings reset:
17:48:24.313: samples per sec: 48000
17:48:24.313: speakers: 2
17:48:24.314: ---------------------------------
17:48:24.314: Initializing D3D11...
17:48:24.314: Available Video Adapters:
17:48:24.322: Adapter 0: NVIDIA GeForce GTX 1660 Ti
17:48:24.322: Dedicated VRAM: 1987051520
17:48:24.322: Shared VRAM: 4213299200
17:48:24.322: PCI ID: 10de:2191
17:48:24.323: Driver Version: 26.21.14.4587
17:48:24.323: output 0: pos={0, 0}, size={1920, 1080}, attached=true, refresh=144, name=
17:48:24.323: Adapter 1: Intel(R) UHD Graphics 630
17:48:24.323: Dedicated VRAM: 134217728
17:48:24.323: Shared VRAM: 4213299200
17:48:24.323: PCI ID: 8086:3e9b
17:48:24.324: Driver Version: 26.20.100.7584
17:48:24.332: Loading up D3D11 on adapter NVIDIA GeForce GTX 1660 Ti (0)
17:48:25.412: D3D11 loaded successfully, feature level used: b000
17:48:25.412: DXGI increase maximum frame latency success
17:48:25.412: D3D11 GPU priority setup failed (not admin?)
17:48:25.793: ---------------------------------
17:48:25.793: video settings reset:
17:48:25.793: base resolution: 1280x720
17:48:25.793: output resolution: 1280x720
17:48:25.793: downscale filter: Bicubic
17:48:25.793: fps: 30/1
17:48:25.793: format: NV12
17:48:25.793: YUV mode: 709/Partial
17:48:25.793: NV12 texture support enabled
17:48:25.794: Audio monitoring device:
17:48:25.794: name: Default
17:48:25.794: id: default
17:48:25.794: ---------------------------------
17:48:25.797: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
17:48:25.797: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
17:48:25.900: [AMF] Unable to load 'amfrt64.dll', error code 126.
17:48:25.902: [AMF] AMF Test failed due to one or more errors.
17:48:25.902: Failed to initialize module 'enc-amf.dll'
17:48:25.919: [obs-browser]: Version 2.8.6
17:48:25.942: NVENC supported
17:48:25.960: Couldn't find VLC installation, VLC video source disabled
17:48:25.965: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
17:48:25.965: No blackmagic support
17:48:25.969: ---------------------------------
17:48:25.969: Loaded Modules:
17:48:25.969: win-wasapi.dll
17:48:25.969: win-mf.dll
17:48:25.969: win-dshow.dll
17:48:25.969: win-decklink.dll
17:48:25.969: win-capture.dll
17:48:25.969: vlc-video.dll
17:48:25.969: text-freetype2.dll
17:48:25.969: rtmp-services.dll
17:48:25.969: obs-x264.dll
17:48:25.969: obs-vst.dll
17:48:25.969: obs-transitions.dll
17:48:25.969: obs-text.dll
17:48:25.969: obs-qsv11.dll
17:48:25.969: obs-outputs.dll
17:48:25.969: obs-filters.dll
17:48:25.969: obs-ffmpeg.dll
17:48:25.969: obs-browser.dll
17:48:25.969: image-source.dll
17:48:25.969: frontend-tools.dll
17:48:25.970: enc-amf.dll
17:48:25.970: decklink-ouput-ui.dll
17:48:25.970: coreaudio-encoder.dll
17:48:25.970: ---------------------------------
17:48:25.970: ==== Startup complete ===============================================
17:48:25.972: All scene data cleared
17:48:25.973: ------------------------------------------------
17:48:26.057: WASAPI: Device 'Speakers (Realtek(R) Audio)' [48000 Hz] initialized
17:48:26.058: [Loaded global audio device]: 'Desktop Audio'
17:48:26.080: WASAPI: Device 'Microphone (Yeti Nano)' [48000 Hz] initialized
17:48:26.080: [Loaded global audio device]: 'Mic/Aux'
17:48:26.089: WASAPI: Device 'Microphone (Yeti Nano)' [48000 Hz] initialized
17:48:26.094: Switched to scene 'Scene'
17:48:26.095: ------------------------------------------------
17:48:26.095: Loaded scenes:
17:48:26.095: - scene 'Scene':
17:48:26.095: - source: 'Yeti Nano' (wasapi_input_capture)
17:48:26.095: - filter: 'Compressor' (compressor_filter)
17:48:26.095: - filter: 'Noise Suppression' (noise_suppress_filter)
17:48:26.095: - filter: 'Noise Gate' (noise_gate_filter)
17:48:26.095: - source: 'Elgato Game Capture' (dshow_input)
17:48:26.095: - source: 'Logi Webcam' (dshow_input)
17:48:26.095: - scene 'Game Screen':
17:48:26.095: - source: 'Elgato Game Capture' (dshow_input)
17:48:26.095: ------------------------------------------------
17:48:26.120: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Yeti Nano)
17:48:26.120:
17:48:26.852: ---------------------------------
17:48:26.852: [DShow Device: 'Elgato Game Capture'] settings updated:
17:48:26.852: video device: Game Capture HD60 S (Video) (#01)
17:48:26.852: video path: \\?\usb#vid_0fd9&pid_005e#0615a1de3d#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{6f814be9-9af6-43cf-9249-c0340100021f}
17:48:26.852: resolution: 1920x1080
17:48:26.852: flip: 0
17:48:26.852: fps: 59.94 (interval: 166833)
17:48:26.852: format: YV12
17:48:26.920: using video device audio: no
17:48:26.920: separate audio filter
17:48:26.920: sample rate: 48000
17:48:26.920: channels: 2
17:48:26.920: audio type: Capture
17:48:26.927: ---------------------------------
17:48:26.928: [DShow Device: 'Logi Webcam'] settings updated:
17:48:26.928: video device: HD Pro Webcam C920
17:48:26.928: video path: \\?\usb#vid_046d&pid_0892&mi_00#6&33a783e0&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
17:48:26.928: resolution: 1280x720
17:48:26.928: flip: 0
17:48:26.928: fps: 30.00 (interval: 333333)
17:48:26.928: format: MJPEG
17:48:46.907: ==== Shutting down ==================================================
17:48:46.933: Switched to scene '(null)'
17:48:46.933: WASAPI: Device 'Microphone (Yeti Nano)' Terminated
17:48:47.773: WASAPI: Device 'Speakers (Realtek(R) Audio)' Terminated
17:48:47.786: WASAPI: Device 'Microphone (Yeti Nano)' Terminated
17:48:47.796: All scene data cleared
17:48:47.796: ------------------------------------------------
17:48:47.912: Freeing OBS context data
17:48:47.954: [Scripting] Total detached callbacks: 0
17:48:47.959: == Profiler Results =============================
17:48:47.959: run_program_init: 4183.43 ms
17:48:47.959: ┣OBSApp::AppInit: 46.816 ms
17:48:47.959: ┃ ┗OBSApp::InitLocale: 1.11 ms
17:48:47.959: ┗OBSApp::OBSInit: 4039.26 ms
17:48:47.959: ┣obs_startup: 5.039 ms
17:48:47.959: ┗OBSBasic::OBSInit: 3778.66 ms
17:48:47.959: ┣OBSBasic::InitBasicConfig: 0.508 ms
17:48:47.959: ┣OBSBasic::ResetAudio: 0.171 ms
17:48:47.959: ┣OBSBasic::ResetVideo: 1480.53 ms
17:48:47.959: ┣OBSBasic::InitOBSCallbacks: 0.004 ms
17:48:47.959: ┣OBSBasic::InitHotkeys: 0.034 ms
17:48:47.959: ┣obs_load_all_modules: 175.294 ms
17:48:47.959: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.604 ms
17:48:47.959: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.462 ms
17:48:47.959: ┃ ┣obs_init_module(enc-amf.dll): 103.277 ms
17:48:47.959: ┃ ┣obs_init_module(frontend-tools.dll): 4.107 ms
17:48:47.959: ┃ ┣obs_init_module(image-source.dll): 0.005 ms
17:48:47.959: ┃ ┣obs_init_module(obs-browser.dll): 0.329 ms
17:48:47.959: ┃ ┣obs_init_module(obs-ffmpeg.dll): 16.706 ms
17:48:47.959: ┃ ┃ ┗nvenc_check: 16.65 ms
17:48:47.959: ┃ ┣obs_init_module(obs-filters.dll): 0.021 ms
17:48:47.959: ┃ ┣obs_init_module(obs-outputs.dll): 0.007 ms
17:48:47.959: ┃ ┣obs_init_module(obs-qsv11.dll): 8.101 ms
17:48:47.959: ┃ ┣obs_init_module(obs-text.dll): 0.2 ms
17:48:47.959: ┃ ┣obs_init_module(obs-transitions.dll): 0.006 ms
17:48:47.959: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
17:48:47.959: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
17:48:47.959: ┃ ┣obs_init_module(rtmp-services.dll): 0.887 ms
17:48:47.959: ┃ ┣obs_init_module(text-freetype2.dll): 0.318 ms
17:48:47.959: ┃ ┣obs_init_module(vlc-video.dll): 0.05 ms
17:48:47.959: ┃ ┣obs_init_module(win-capture.dll): 1.941 ms
17:48:47.959: ┃ ┣obs_init_module(win-decklink.dll): 1.717 ms
17:48:47.959: ┃ ┣obs_init_module(win-dshow.dll): 1.582 ms
17:48:47.959: ┃ ┣obs_init_module(win-mf.dll): 0 ms
17:48:47.959: ┃ ┣obs_init_module(win-wasapi.dll): 0.005 ms
17:48:47.959: ┃ ┗reset_win32_symbol_paths: 0.055 ms
17:48:47.959: ┣OBSBasic::ResetOutputs: 0.457 ms
17:48:47.959: ┣OBSBasic::CreateHotkeys: 0.025 ms
17:48:47.959: ┣OBSBasic::InitService: 1.4 ms
17:48:47.959: ┣OBSBasic::InitPrimitives: 0.071 ms
17:48:47.959: ┗OBSBasic::Load: 131.122 ms
17:48:47.959: obs_hotkey_thread(25 ms): min=0.003 ms, median=0.012 ms, max=0.557 ms, 99th percentile=0.23 ms, 100% below 25 ms
17:48:47.959: audio_thread(Audio): min=0 ms, median=0.118 ms, max=9.853 ms, 99th percentile=0.679 ms
17:48:47.959: obs_graphics_thread(33.3333 ms): min=0.105 ms, median=1.648 ms, max=65.81 ms, 99th percentile=4.275 ms, 99.8492% below 33.333 ms
17:48:47.959: ┣tick_sources: min=0.001 ms, median=0.014 ms, max=1.377 ms, 99th percentile=0.065 ms
17:48:47.959: ┣output_frame: min=0.084 ms, median=0.815 ms, max=11.913 ms, 99th percentile=2.433 ms
17:48:47.959: ┃ ┗gs_context(video->graphics): min=0.084 ms, median=0.814 ms, max=11.912 ms, 99th percentile=2.432 ms
17:48:47.959: ┃ ┣render_video: min=0.003 ms, median=0.653 ms, max=11.664 ms, 99th percentile=1.928 ms
17:48:47.959: ┃ ┃ ┗render_main_texture: min=0.002 ms, median=0.649 ms, max=11.66 ms, 99th percentile=1.922 ms
17:48:47.959: ┃ ┗gs_flush: min=0.042 ms, median=0.163 ms, max=5.893 ms, 99th percentile=0.394 ms
17:48:47.959: ┗render_displays: min=0.001 ms, median=0.859 ms, max=65.705 ms, 99th percentile=1.919 ms
17:48:47.959: =================================================
17:48:47.959: == Profiler Time Between Calls ==================
17:48:47.959: obs_hotkey_thread(25 ms): min=24.973 ms, median=25.927 ms, max=26.185 ms, 3.37323% within ±2% of 25 ms (0% lower, 96.6268% higher)
17:48:47.959: obs_graphics_thread(33.3333 ms): min=0.921 ms, median=33.333 ms, max=65.818 ms, 99.3958% within ±2% of 33.333 ms (0.302115% lower, 0.302115% higher)
17:48:47.959: =================================================
17:48:47.977: Number of memory leaks: 0
 

BlitzGirl

New Member
And here is my most recent YouTube video, for reference. If you go to 50:17 in the video, you can hear the weird stuttering/staticy noise starting, and then all audio gets horribly out of sync even though video for both the game (PS4->Elgato HD60 S capture card->OBS Studio) and for the mic (Blue Yeti Nano. My Logitech webcam is not recording audio at all) is in sync with one another.

This is killing my ability to share my video game playthroughs, makes them unwatchable. My recording from today, though (which has not been put to YT yet) lasted an hour and a half before this SAME AUDIO ISSUE kicked in. The issue itself has been consistent across ALL recordings since buying this new laptop. The moment at which it occurs, though, has varied.

 

VoltageControl

New Member
Were you running an old version of OBS previously?

I'm having the same issue on mac.

If I record using Quicktime, everything is in sync. But if I record through OBS, it is out of sync and the truly frustrating thing is

1) It's not always out of sync
2) When it is it fluctuates. I pulled the video into an editor and nudged the video to get everything in sync then I noticed other parts of the video were out of sync.

Note: This guy posted something similar:
 

BlitzGirl

New Member
Were you running an old version of OBS previously?

I'm having the same issue on mac.

If I record using Quicktime, everything is in sync. But if I record through OBS, it is out of sync and the truly frustrating thing is

1) It's not always out of sync
2) When it is it fluctuates. I pulled the video into an editor and nudged the video to get everything in sync then I noticed other parts of the video were out of sync.

Note: This guy posted something similar:
No, I have the most recent OBS Studio and I use the new NVENC encoder option.

Since my last post in here, I have removed my webcam from OBS Studio and have stopped streaming while recording entirely, and have been trying to keep all my recordings to 1 hour or less. So far, no audio issues. Which is great, but also sucks - it means I can't use my webcam or stream, because I worry adding those two will cause the issue to happen yet again. My theory is that the added CPU usage in OBS was causing the audio issues over time; it's the only explanation I can think of, really...
 

Hedgehog125

New Member
Having this same issue but it's a bit random for me. Seems like whenever I do a test recording having changed a setting it doesn't desync but often desyncs when I do a normal recording. I've been finding it can desync after only about 10 minutes though and be about a second out by 15 minutes, making it pretty much unwatchable.

I think it might be connected to hardware though as I didn't have this issue on my old laptop (although I hadn't recorded on it that much) but am often having it on my new one.

At the moment I've just been doing practice segments for a speedrun but if I want to have another attempt at the full run there's a pretty high chance it'll get rejected because of this :/
 

Hedgehog125

New Member
Interesting, I did two test recordings: one with a switch capture playing on loop and one with the console off for the first 10 minutes and then the capture.

Both recording are about 10-15 minutes but there was no audio desync in the second recording. The first recording had pretty noticeable desync.

I did a 3rd recording where I had the input from my capture card hardware muted until the end and there was desync. Guess this makes sense though as the audio input is still detected with it muted but it it's muted.
 

Hedgehog125

New Member
Yeah, it's hardware related. If I set obs to use the software encoder, I don't get the same issue. However, I think my computer can't quite keep up sometimes in this mode because I got a slight audio glitch at one point and it was slightly out of sync after it. It seemed to resync later though. I'll check the cpu usage tomorrow to see if it's that
 
Top