Question / Help Audio Out of Sync

Deyvid_MMO

New Member
Greetings. I'm having an issue with game audio and video going out of sync in OBS Studio 18.0.1 (Windows). I tested it with an offline video recording and with a live stream. I heard there's an issue with AVerMedia devices going out of sync. I have the AVerMedia DarkCrystal C027 HD internal capture card. PS4 is connected to the capture card via HDMI.

Is there a fix or work-around with settings to mitigate or eliminate the de-sync?

As a side note, I sometimes get audio popping in OBS Studio but it does not happen when I open the AVer Media Center software that shows what my capture card is capturing.I have on-board RealTek HD audio, but will be getting a sound card soon.

I included the most recent log from OBS.

Code:
04:54:29.029: CPU Name: AMD FX-8320E Eight-Core Processor              
04:54:29.029: CPU Speed: 3215MHz
04:54:29.029: Physical Cores: 4, Logical Cores: 8
04:54:29.029: Physical Memory: 16350MB Total, 12281MB Free (NOTE: 32bit programs cannot use more than 3gb)
04:54:29.029: Windows Version: 10.0 Build 14393 (revision: 693; 64-bit)
04:54:29.029: Running as administrator: false
04:54:29.029: Aero is Enabled (Aero is always on for windows 8 and above)
04:54:29.030: Portable mode: false
04:54:29.048: OBS 18.0.1 (windows)
04:54:29.048: ---------------------------------
04:54:29.049: ---------------------------------
04:54:29.061: audio settings reset:
04:54:29.061:     samples per sec: 44100
04:54:29.061:     speakers:        2
04:54:29.063: ---------------------------------
04:54:29.063: Initializing D3D11..
04:54:29.063: Available Video Adapters: 
04:54:29.066:     Adapter 1: NVIDIA GeForce GTX 960
04:54:29.066:      Dedicated VRAM: 2114650112
04:54:29.066:      Shared VRAM:    2180251648
04:54:29.066:      output 1: pos={0, 0}, size={1920, 1080}, attached=true
04:54:29.066:      output 2: pos={1920, 0}, size={1920, 1080}, attached=true
04:54:29.070: Loading up D3D11 on adapter NVIDIA GeForce GTX 960 (0)
04:54:29.106: D3D11 loaded sucessfully, feature level used: 45056
04:54:30.245: ---------------------------------
04:54:30.245: video settings reset:
04:54:30.245:     base resolution:   1920x1080
04:54:30.245:     output resolution: 1920x1080
04:54:30.245:     downscale filter:  Bicubic
04:54:30.245:     fps:               30/1
04:54:30.245:     format:            NV12
04:54:30.247: Audio monitoring device:
04:54:30.247:     name: Default
04:54:30.247:     id: default
04:54:30.247: ---------------------------------
04:54:30.249: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/chrome_elf.dll' not found, loading of module failed
04:54:30.262: [CoreAudio encoder]: Adding CoreAudio AAC encoder
04:54:30.264: [AMF Encoder] Unable to load 'amfrt32.dll', error code 126.
04:54:30.265: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/ffmpegsumo.dll' not found, loading of module failed
04:54:30.292: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libcef.dll' not found, loading of module failed
04:54:30.293: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libEGL.dll' not found, loading of module failed
04:54:30.293: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libGLESv2.dll' not found, loading of module failed
04:54:30.294: Failed to load 'en-US' text for module: 'obs-browser.dll'
04:54:30.294: [browser_source: 'Version: 1.29.0']
04:54:30.297: NVENC supported
04:54:30.405: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/pdf.dll' not found, loading of module failed
04:54:30.410: VLC found, VLC video source enabled
04:54:30.419: No blackmagic support
04:54:30.470: ---------------------------------
04:54:30.470:   Loaded Modules:
04:54:30.470:     win-wasapi.dll
04:54:30.470:     win-mf.dll
04:54:30.470:     win-ivcam.dll
04:54:30.470:     win-dshow.dll
04:54:30.470:     win-decklink.dll
04:54:30.470:     win-capture.dll
04:54:30.470:     vlc-video.dll
04:54:30.470:     text-freetype2.dll
04:54:30.470:     rtmp-services.dll
04:54:30.470:     obs-x264.dll
04:54:30.470:     obs-vst.dll
04:54:30.470:     obs-transitions.dll
04:54:30.470:     obs-text.dll
04:54:30.470:     obs-qsv11.dll
04:54:30.470:     obs-outputs.dll
04:54:30.470:     obs-filters.dll
04:54:30.470:     obs-ffmpeg.dll
04:54:30.470:     obs-browser.dll
04:54:30.470:     image-source.dll
04:54:30.470:     frontend-tools.dll
04:54:30.470:     enc-amf.dll
04:54:30.470:     coreaudio-encoder.dll
04:54:30.470: ==== Startup complete ===============================================
04:54:30.490: All scene data cleared
04:54:30.490: ------------------------------------------------
04:54:30.529: WASAPI: Device 'Speakers (Realtek High Definition Audio)' initialized
04:54:30.567: WASAPI: Device 'Microphone (Blue Snowball)' initialized
04:54:30.572: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
04:54:33.007: ---------------------------------
04:54:33.007: [DShow Device: 'AverMedia Capture Card'] settings updated: 
04:54:33.007:     video device: AVerMedia BDA Analog Capture Secondary
04:54:33.007:     video path: \\?\pci#ven_1a0a&dev_6202&subsys_620f1461&rev_01#4&5dc256b&0&0028#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{ede957b0-eaa5-4bf4-acf3-6e10cb4836c3}
04:54:33.007:     resolution: 1920x1080
04:54:33.007:     fps: 29.97 (interval: 333667)
04:54:33.007:     format: YUY2
04:54:33.078:     using video device audio: yes
04:54:33.078:     sample rate: 0
04:54:33.078:     channels: 0
04:54:33.078:     audio type: DirectSound
04:54:36.038: warning: deprecated pixel format used, make sure you did set range correctly
04:54:37.036: Switched to scene 'PS4 Game'
04:54:37.037: ------------------------------------------------
04:54:37.037: Loaded scenes:
------------------ DELETED LONG LIST OF SCENES AND SOURCES
04:54:37.047: ------------------------------------------------
04:56:05.770: ==== Shutting down ==================================================
04:56:05.784: Switched to scene '(null)'
04:56:05.856: WASAPI: Device 'Speakers (Realtek High Definition Audio)' Terminated
04:56:05.866: WASAPI: Device 'Microphone (Blue Snowball)' Terminated
04:56:05.887: All scene data cleared
04:56:05.887: ------------------------------------------------
04:56:05.968: Freeing OBS context data
04:56:06.094: == Profiler Results =============================
04:56:06.094: run_program_init: 8184.18 ms
04:56:06.094:  ┣OBSApp::AppInit: 3.31 ms
04:56:06.094:  ┃ ┗OBSApp::InitLocale: 1.914 ms
04:56:06.094:  ┗OBSApp::OBSInit: 8144.84 ms
04:56:06.094:    ┣obs_startup: 2.019 ms
04:56:06.094:    ┗OBSBasic::OBSInit: 8079.02 ms
04:56:06.094:      ┣OBSBasic::InitBasicConfig: 0.917 ms
04:56:06.094:      ┣OBSBasic::ResetAudio: 12.223 ms
04:56:06.094:      ┣OBSBasic::ResetVideo: 1185.25 ms
04:56:06.094:      ┣OBSBasic::InitOBSCallbacks: 0.006 ms
04:56:06.094:      ┣OBSBasic::InitHotkeys: 0.064 ms
04:56:06.094:      ┣obs_load_all_modules: 222.581 ms
04:56:06.094:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 12.523 ms
04:56:06.094:      ┃ ┣obs_init_module(enc-amf.dll): 0.624 ms
04:56:06.094:      ┃ ┣obs_init_module(frontend-tools.dll): 1.793 ms
04:56:06.094:      ┃ ┣obs_init_module(image-source.dll): 0.004 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-browser.dll): 0.101 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 1.13 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-filters.dll): 0.009 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-outputs.dll): 0.01 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-qsv11.dll): 99.152 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-text.dll): 0.74 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-transitions.dll): 0.005 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-vst.dll): 0.002 ms
04:56:06.094:      ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
04:56:06.094:      ┃ ┣obs_init_module(rtmp-services.dll): 0.406 ms
04:56:06.094:      ┃ ┣obs_init_module(text-freetype2.dll): 0.081 ms
04:56:06.095:      ┃ ┣obs_init_module(vlc-video.dll): 1.199 ms
04:56:06.095:      ┃ ┣obs_init_module(win-capture.dll): 0.135 ms
04:56:06.095:      ┃ ┣obs_init_module(win-decklink.dll): 5.204 ms
04:56:06.095:      ┃ ┣obs_init_module(win-dshow.dll): 3.739 ms
04:56:06.095:      ┃ ┣obs_init_module(win-ivcam.dll): 0.003 ms
04:56:06.095:      ┃ ┣obs_init_module(win-mf.dll): 39.98 ms
04:56:06.095:      ┃ ┣obs_init_module(win-wasapi.dll): 0.006 ms
04:56:06.095:      ┃ ┗reset_win32_symbol_paths: 0.104 ms
04:56:06.095:      ┣OBSBasic::ResetOutputs: 10.584 ms
04:56:06.095:      ┣OBSBasic::CreateHotkeys: 0.05 ms
04:56:06.095:      ┣OBSBasic::InitService: 0.313 ms
04:56:06.095:      ┣OBSBasic::InitPrimitives: 0.267 ms
04:56:06.095:      ┗OBSBasic::Load: 6566.23 ms
04:56:06.095: obs_hotkey_thread(25 ms): min=0.003 ms, median=0.007 ms, max=1.37 ms, 99th percentile=0.062 ms, 100% below 25 ms
04:56:06.095: audio_thread(Audio): min=0 ms, median=0.089 ms, max=49.82 ms, 99th percentile=0.545 ms
04:56:06.095: obs_video_thread(33.3333 ms): min=0.313 ms, median=2.229 ms, max=6421 ms, 99th percentile=3.484 ms, 99.9253% below 33.333 ms
04:56:06.095:  ┣tick_sources: min=0.001 ms, median=0.038 ms, max=6393.77 ms, 99th percentile=0.069 ms
04:56:06.095:  ┣render_displays: min=0.001 ms, median=0.981 ms, max=13.119 ms, 99th percentile=1.293 ms
04:56:06.095:  ┗output_frame: min=0.308 ms, median=1.201 ms, max=27.23 ms, 99th percentile=2.17 ms
04:56:06.095:    ┣gs_context(video->graphics): min=0.206 ms, median=0.354 ms, max=26.305 ms, 99th percentile=0.968 ms
04:56:06.095:    ┃ ┣render_video: min=0.019 ms, median=0.054 ms, max=26.02 ms, 99th percentile=0.202 ms
04:56:06.095:    ┃ ┃ ┣render_main_texture: min=0.002 ms, median=0.025 ms, max=25.974 ms, 99th percentile=0.058 ms
04:56:06.095:    ┃ ┃ ┣render_output_texture: min=0.004 ms, median=0.011 ms, max=0.125 ms, 99th percentile=0.022 ms
04:56:06.095:    ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.013 ms, max=0.171 ms, 99th percentile=0.025 ms
04:56:06.095:    ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.003 ms, max=1.046 ms, 99th percentile=0.014 ms
04:56:06.095:    ┃ ┣download_frame: min=0 ms, median=0.002 ms, max=10.871 ms, 99th percentile=0.079 ms
04:56:06.095:    ┃ ┗gs_flush: min=0.034 ms, median=0.291 ms, max=6.051 ms, 99th percentile=0.545 ms
04:56:06.095:    ┗output_video_data: min=0.731 ms, median=0.838 ms, max=6.421 ms, 99th percentile=1.133 ms
04:56:06.095: video_thread(video): min=0.001 ms, median=0.002 ms, max=0.039 ms, 99th percentile=0.007 ms
04:56:06.095: =================================================
04:56:06.095: == Profiler Time Between Calls ==================
04:56:06.095: obs_hotkey_thread(25 ms): min=24.659 ms, median=25.258 ms, max=100.062 ms, 78.3529% within ±2% of 25 ms (0% lower, 21.6471% higher)
04:56:06.095: obs_video_thread(33.3333 ms): min=31.156 ms, median=33.333 ms, max=6421.02 ms, 99.888% within ±2% of 33.333 ms (0.0373413% lower, 0.0746826% higher)
04:56:06.095: =================================================
04:56:06.115: Number of memory leaks: 9
 

WizardCM

Forum Moderator
Community Helper
Please do not delete any contents of the log file (especially the scenes and sources) and also ensure a recording attempt of at least 30 seconds is included too.
 

Deyvid_MMO

New Member
I made a paste bin for the complete log. The forum post told me the log exceeded the limit, also I have lots of scenes and sources, some are temporary. I did two offline recordings, one for 30 minutes and the second for 10 minutes, and the live stream was 6 minutes. I deleted them but it could be easily replicated, happens everytime. It goes out of sync very quickly.

http://pastebin.com/JNMVcDj6
 

WizardCM

Forum Moderator
Community Helper
Hmm, that log file does not contain any recording or streaming attempts. Please follow the below instructions.

To make a clean log file, first restart OBS, then start your stream/recording for ~30 seconds and stop it again. When you're done select Help > Log Files > Upload Current Log File. Copy the URL and paste it here.
 

Deyvid_MMO

New Member
OBS Studio must have changed something, because I have a VOD on my channel from Sept 2016 when I played TellTale Batman and it never went out of sync. I haven't changed any of my settings since then, only downloaded the OBS updates. Now audio is *always* out of sync, goes out of sync in the first minute.
 
Top