Question / Help Audio lagging

Gothmoogle

New Member
I'm having a problem with audio lagging by roughly 300-350ms in OBS only. Other programs seems fine.
I can see the bar for the input move when I'm talking, so it seems the audio is getting in without lag, but the output bar doesn't move for about 300ms or so.
I've tried with both the mic i'm currently using and the mic on my webcam. The picture feed from my webcam is showing with little to no lag.

I've tried setting the audio offset to negative 300ms, with a scene buffer of up to 1000ms. There doesn't seem to be a difference not matter what settings I use however.

Anyone got an idea?
 

Gothmoogle

New Member
Code:
23:12:04: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
23:12:04: -------------------------------
23:12:04: CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
23:12:04: CPU Speed: 3400MHz
23:12:04: Physical Memory:  8160MB Total, 4689MB Free
23:12:04: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
23:12:04: monitor 1: pos={0, 0}, size={1920, 1200}
23:12:04: monitor 2: pos={-1920, 120}, size={1920, 1080}
23:12:04: Windows Version: 6.2 Build 9200 
23:12:04: Aero is Enabled
23:12:04: -------------------------------
23:12:04: OBS Modules:
23:12:04: Base Address     Module
23:12:04: 000000005EE40000 OBS.exe
23:12:04: 00000000CAA10000 OBSApi.dll
23:12:04: 00000000E9C60000 DShowAudioPlugin.dll
23:12:04: 00000000E6160000 DShowPlugin.dll
23:12:04: 00000000E53C0000 GraphicsCapture.dll
23:12:04: 00000000EE670000 NoiseGate.dll
23:12:04: ------------------------------------------
23:12:04: Adapter 1
23:12:04:   Video Adapter: NVIDIA GeForce GTX 680
23:12:04:   Video Adapter Dedicated Video Memory: 2091581440
23:12:04:   Video Adapter Shared System Memory: 2147479552
23:12:04: =====Stream Start: 2013-06-26, 23:12:04===============================================
23:12:04:   Multithreaded optimizations: On
23:12:04:   Base resolution: 1920x1080
23:12:04:   Output resolution: 1920x1080
23:12:04: ------------------------------------------
23:12:04: Loading up D3D10...
23:12:04: Playback device Default
23:12:04: ------------------------------------------
23:12:04: Using desktop audio input: Høyttalere (ASUS Xonar DX Audio Device)
23:12:04: ------------------------------------------
23:12:04: Using auxilary audio input: Mikrofon (Blue Icicle)
23:12:04: ------------------------------------------
23:12:04: Audio Encoding: AAC
23:12:04:     bitrate: 192
23:12:04: Using text output
23:12:04: ------------------------------------------
23:12:04:     device: Logitech HD Pro Webcam C920,
23:12:04:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&2aa7f561&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
23:12:04:     chosen type: I420, usingFourCC: false, res: 960x720 - 960x720, frameIntervals: 333333-2000000, fourCC: 'I420'
23:12:04:     audio device: Mikrofon (Blue Icicle),
23:12:04:     audio device id (null),
23:12:04: 
23:12:04: Using directshow input
23:12:04: Using Monitor Capture
23:12:04: Using bitmap image
23:12:04: Using bitmap image
23:12:04: ------------------------------------------
23:12:04: Video Encoding: x264
23:12:04:     fps: 30
23:12:04:     width: 1920, height: 1080
23:12:04:     preset: veryfast
23:12:04:     CBR: yes
23:12:04:     CFR: no
23:12:04:     max bitrate: 3500
23:12:04: ------------------------------------------
23:12:12: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:12:12:   New Scene
23:12:12: Using text output
23:12:12: ------------------------------------------
23:12:12:     device: Logitech HD Pro Webcam C920,
23:12:12:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&2aa7f561&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
23:12:12:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
23:12:12:     audio device: Mikrofon (Blue Icicle),
23:12:12:     audio device id (null),
23:12:12: 
23:12:12: Using directshow input
23:12:13: Using bitmap image
23:12:28: Total frames rendered: 661, number of frames that lagged: 2 (0.30%) (it's okay for some frames to lag)
23:12:29: =====Stream End: 2013-06-26, 23:12:29=================================================
23:12:29: 
23:12:29: Profiler results:
23:12:29: 
23:12:29: ==============================================================
23:12:29: frame - [100%] [avg time: 6.928 ms] [avg calls per frame: 1] [children: 53.2%] [unaccounted: 46.8%]
23:12:29: | scene->Preprocess - [14.3%] [avg time: 0.989 ms] [avg calls per frame: 1]
23:12:29: | video encoding and uploading - [39%] [avg time: 2.7 ms] [avg calls per frame: 1] [children: 38.3%] [unaccounted: 0.664%]
23:12:29: | | CopyResource - [0.332%] [avg time: 0.023 ms] [avg calls per frame: 0]
23:12:29: | | conversion to 4:2:0 - [0.0433%] [avg time: 0.003 ms] [avg calls per frame: 0]
23:12:29: | | call to encoder - [37.9%] [avg time: 2.627 ms] [avg calls per frame: 0]
23:12:29: | | sending stuff out - [0.0144%] [avg time: 0.001 ms] [avg calls per frame: 0]
23:12:29: ==============================================================
23:12:29:

(Jim edit: code tags are really nice you know, use them when posting logs)
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Either set the auto time offset -300 in audio settings or try "Use mic QPC timestamps" in advanced settings. Using the latter is generally not recommended but for some people it can work better. Just make sure you turn up the "scene buffering time" to like 700+ or something if you do end up using it.
 

Gothmoogle

New Member
Hey, thanks for your answer (sorry bout the code tag, ot lack there of).
Actually it seems I've wasted your time with this, the delay is only there on the preview. When I checked by doing an output to file (wich I should have done in the first place) it seemed fine, and the audio is actually abit ahead of the video.

So just a stupid mistake on my part
 
Top