Question / Help Audio Delay issue (Front Mic)

AmazingSully

New Member
Okay, so I have my capture card audio connected through my 3.5 mm front mic jack since my cap card sucks. Huzzah, this works and OBS recognizes the sound. The problem however is that there is a half-three-quarter second delay in the sound. I know this is a problem with OBS as I don't have this problem with XSplit. Was hoping someone could help me resolve the issue. I use video capture device, select my dazzle, and for audio input I select my front mic (I have also tried the directshow audio plugin, same delay). Xsplit has none, but I hate Xsplit. Furthermore there is some random crackling here and there I would like to get rid of, but I don't know if that is possible, I get it on Xsplit, and also if I mute the game audio I still get it, so not sure if that can be helped. If it can please let me know =).
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Sometimes there is a delay with audio in the mic channel. This is due to an internal design flaw (which will be fixed in the future) -- the fixes are to either use "Mic QPC Timetsamps" in advanced, or use "Mic Sync Fix Hack", either one or the other. Could you try them out and let me know if that works better?
 

AmazingSully

New Member
No, these did not work. I think the reason may be that I am still using my microphone in audio settings (so people can hear my voice), and then using the directshow plugin to have the PS2 audio play (which is delayed through the front mic).
 

AmazingSully

New Member
Sorry for the delays on this, real life happened :P

Code:
20:14:54: Open Broadcaster Software v0.571b - 32bit (´・ω・`)
20:14:54: -------------------------------
20:14:54: CPU Name: Intel(R) Pentium(R) Dual  CPU  E2200  @ 2.20GHz
20:14:54: CPU Speed: 2194MHz
20:14:54: Physical Memory:  3069MB Total, 1154MB Free
20:14:54: stepping id: 13, model 15, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 2, total cores 2
20:14:54: monitor 1: pos={0, 0}, size={1280, 1024}
20:14:54: Windows Version: 6.0 Build 6002 S
20:14:54: Aero is Disabled
20:14:54: -------------------------------
20:14:54: OBS Modules:
20:14:54: Base Address     Module
20:14:54: 00B70000         OBS.exe
20:14:54: 6B640000         OBSApi.dll
20:14:54: 6F2C0000         DShowAudioPlugin.dll
20:14:54: 6F650000         DShowPlugin.dll
20:14:54: 6F520000         GraphicsCapture.dll
20:14:54: 723C0000         NoiseGate.dll
20:14:54: 6EFD0000         PSVPlugin.dll
20:14:54: ------------------------------------------
20:14:54: Adapter 1
20:14:54:   Video Adapter: ATI Radeon HD 2600 XT
20:14:54:   Video Adapter Dedicated Video Memory: 255037440
20:14:54:   Video Adapter Shared System Memory: 1341220864
20:14:54: =====Stream Start: 2013-10-04, 20:14:54===============================================
20:14:54:   Multithreaded optimizations: On
20:14:54:   Base resolution: 750x480
20:14:54:   Output resolution: 748x480
20:14:54: ------------------------------------------
20:14:54: Loading up D3D10 on ATI Radeon HD 2600 XT...
20:14:54: ------------------------------------------
20:14:54: Audio Format: 48000hz
20:14:54: Playback device {0.0.0.00000000}.{73a18b4d-bdcf-42b7-ae50-ce5782075466}
20:14:55: ------------------------------------------
20:14:55: Using desktop audio input: Speakers (Logitech USB Headset H540)
20:14:55: ------------------------------------------
20:14:55: Using auxilary audio input: Microphone (Logitech USB Headset H540)
20:14:55: ------------------------------------------
20:14:55: Audio Encoding: AAC
20:14:55:     bitrate: 128
20:14:55: ------------------------------------------
20:14:55:     device: Logitech HD Webcam C270,
20:14:55:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&37e494c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:14:55:     chosen type: I420, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'I420'
20:14:55:     audio device: Disable,
20:14:55:     audio device id Disabled,
20:14:55: 
20:14:55: Using directshow input
20:14:55: ------------------------------------------
20:14:55:     device: Dazzle DVC100 Video Device,
20:14:55:     device id \\?\usb#vid_2304&pid_021a&mi_00#6&117be562&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
20:14:55:     chosen type: YUY2, usingFourCC: false, res: 720x480 - 720x480, frameIntervals: 333667-333667, fourCC: 'YUY2'
20:14:55:     audio device: Disable,
20:14:55:     audio device id Disabled,
20:14:55: 
20:14:55: Using directshow input
20:14:55: Using Window Capture
20:14:55: Using text output
20:14:55: Using text output
20:14:56: ------------------------------------------
20:14:56:     audio device: Microphone (Logitech USB Headse,
20:14:56:     audio device id (null),
20:14:56: 
20:14:56: Using directshow audio input
20:14:57: ------------------------------------------
20:14:57: Video Encoding: x264
20:14:57:     fps: 30
20:14:57:     width: 748, height: 480
20:14:57:     preset: veryfast
20:14:57:     profile: high
20:14:57:     keyint: 60
20:14:57:     CBR: yes
20:14:57:     CFR: no
20:14:57:     max bitrate: 1500
20:14:57:     buffer size: 1500
20:14:57: ------------------------------------------
20:14:57: MMDeviceAudioSource: Frequency for device 'Speakers (Logitech USB Headset H540)' is 352800, samples per sec is 44100
20:14:57: MMDeviceAudioSource: Frequency for device 'Microphone (Logitech USB Headset H540)' is 352800, samples per sec is 44100
20:15:27: ------------------------------------------
20:15:27:     audio device: FrontMic (Realtek High Definiti,
20:15:27:     audio device id (null),
20:15:27: 
20:15:40: Total frames encoded: 1271, total frames duplicated: 854 (67.19%)
20:15:40: Number of frames skipped due to encoder lag: 506 (39.81%)
20:15:40: Total frames rendered: 502, number of late frames: 143 (28.49%) (it's okay for some frames to be late)
20:15:40: 
20:15:40: Profiler time results:
20:15:40: 
20:15:40: ==============================================================
20:15:40: video thread frame - [100%] [avg time: 38.358 ms] [children: 84.2%] [unaccounted: 15.8%]
20:15:40: | scene->Preprocess - [84.2%] [avg time: 32.292 ms]
20:15:40: GPU download and conversion - [100%] [avg time: 11.685 ms] [children: 101%] [unaccounted: -1.03%]
20:15:40: | flush - [9.52%] [avg time: 1.112 ms]
20:15:40: | CopyResource - [91.2%] [avg time: 10.651 ms]
20:15:40: | conversion to 4:2:0 - [0.359%] [avg time: 0.042 ms]
20:15:40: Convert444Thread - [100%] [avg time: 1.801 ms] [children: 96.4%] [unaccounted: 3.55%]
20:15:40: | Convert444toNV12 - [96.4%] [avg time: 1.737 ms]
20:15:40: encoder thread frame - [100%] [avg time: 19.582 ms]
20:15:40: ==============================================================
20:15:40: 
20:15:40: 
20:15:40: Profiler CPU results:
20:15:40: 
20:15:40: ==============================================================
20:15:40: video thread frame - [cpu time: avg 11.622 ms, total 5834.44 ms] [avg calls per frame: 1]
20:15:40: | scene->Preprocess - [cpu time: avg 10.907 ms, total 5475.64 ms] [avg calls per frame: 1]
20:15:40: GPU download and conversion - [cpu time: avg 2.703 ms, total 1357.21 ms] [avg calls per frame: 1]
20:15:40: | flush - [cpu time: avg 0.559 ms, total 280.804 ms] [avg calls per frame: 1]
20:15:40: | CopyResource - [cpu time: avg 2.173 ms, total 1060.8 ms] [avg calls per frame: 1]
20:15:40: | conversion to 4:2:0 - [cpu time: avg 0.032 ms, total 15.6 ms] [avg calls per frame: 1]
20:15:40: Convert444Thread - [cpu time: avg 1.345 ms, total 655.204 ms] [avg calls per frame: 1]
20:15:40: | Convert444toNV12 - [cpu time: avg 1.345 ms, total 655.204 ms] [avg calls per frame: 1]
20:15:40: encoder thread frame - [cpu time: avg 1.784 ms, total 2246.41 ms] [avg calls per frame: 1]
20:15:40: ==============================================================
20:15:40: 
20:15:40: =====Stream End: 2013-10-04, 20:15:40=================================================
20:15:45: =====Stream Start: 2013-10-04, 20:15:45===============================================
20:15:45:   Multithreaded optimizations: On
20:15:45:   Base resolution: 750x480
20:15:45:   Output resolution: 748x480
20:15:45: ------------------------------------------
20:15:45: Loading up D3D10 on ATI Radeon HD 2600 XT...
20:15:46: ------------------------------------------
20:15:46: Audio Format: 48000hz
20:15:46: Playback device {0.0.0.00000000}.{73a18b4d-bdcf-42b7-ae50-ce5782075466}
20:15:46: ------------------------------------------
20:15:46: Using desktop audio input: Speakers (Logitech USB Headset H540)
20:15:46: ------------------------------------------
20:15:46: Using auxilary audio input: Microphone (Logitech USB Headset H540)
20:15:46: ------------------------------------------
20:15:46: Audio Encoding: AAC
20:15:46:     bitrate: 128
20:15:46: ------------------------------------------
20:15:46:     device: Logitech HD Webcam C270,
20:15:46:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&37e494c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:15:46:     chosen type: I420, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000, fourCC: 'I420'
20:15:46:     audio device: Disable,
20:15:46:     audio device id Disabled,
20:15:46: 
20:15:46: Using directshow input
20:15:46: ------------------------------------------
20:15:46:     device: Dazzle DVC100 Video Device,
20:15:46:     device id \\?\usb#vid_2304&pid_021a&mi_00#6&117be562&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
20:15:46:     chosen type: YUY2, usingFourCC: false, res: 720x480 - 720x480, frameIntervals: 333667-333667, fourCC: 'YUY2'
20:15:46:     audio device: Disable,
20:15:46:     audio device id Disabled,
20:15:46: 
20:15:46: Using directshow input
20:15:46: Using Window Capture
20:15:46: Using text output
20:15:46: Using text output
20:15:46: ------------------------------------------
20:15:46:     audio device: FrontMic (Realtek High Definiti,
20:15:46:     audio device id (null),
20:15:46: 
20:15:46: Using directshow audio input
20:15:47: ------------------------------------------
20:15:47: Video Encoding: x264
20:15:47:     fps: 30
20:15:47:     width: 748, height: 480
20:15:47:     preset: veryfast
20:15:47:     profile: high
20:15:47:     keyint: 60
20:15:47:     CBR: yes
20:15:47:     CFR: no
20:15:47:     max bitrate: 1500
20:15:47:     buffer size: 1500
20:15:47: ------------------------------------------
20:15:47: MMDeviceAudioSource: Frequency for device 'Speakers (Logitech USB Headset H540)' is 352800, samples per sec is 44100
20:15:47: MMDeviceAudioSource: Frequency for device 'Microphone (Logitech USB Headset H540)' is 352800, samples per sec is 44100
20:15:59: Total frames encoded: 313, total frames duplicated: 157 (50.16%)
20:15:59: Number of frames skipped due to encoder lag: 38 (12.14%)
20:15:59: Total frames rendered: 188, number of late frames: 52 (27.66%) (it's okay for some frames to be late)
20:15:59: 
20:15:59: Profiler time results:
20:15:59: 
20:15:59: ==============================================================
20:15:59: video thread frame - [100%] [avg time: 34.624 ms] [children: 86.7%] [unaccounted: 13.3%]
20:15:59: | scene->Preprocess - [86.7%] [avg time: 30.03 ms]
20:15:59: GPU download and conversion - [100%] [avg time: 12.335 ms] [children: 95.3%] [unaccounted: 4.66%]
20:15:59: | flush - [10.4%] [avg time: 1.281 ms]
20:15:59: | CopyResource - [84.4%] [avg time: 10.411 ms]
20:15:59: | conversion to 4:2:0 - [0.551%] [avg time: 0.068 ms]
20:15:59: Convert444Thread - [100%] [avg time: 1.412 ms] [children: 98.6%] [unaccounted: 1.42%]
20:15:59: | Convert444toNV12 - [98.6%] [avg time: 1.392 ms]
20:15:59: encoder thread frame - [100%] [avg time: 11.289 ms]
20:15:59: ==============================================================
20:15:59: 
20:15:59: 
20:15:59: Profiler CPU results:
20:15:59: 
20:15:59: ==============================================================
20:15:59: video thread frame - [cpu time: avg 11.534 ms, total 2168.41 ms] [avg calls per frame: 1]
20:15:59: | scene->Preprocess - [cpu time: avg 11.036 ms, total 2074.81 ms] [avg calls per frame: 1]
20:15:59: GPU download and conversion - [cpu time: avg 2.572 ms, total 483.603 ms] [avg calls per frame: 1]
20:15:59: | flush - [cpu time: avg 0.331 ms, total 62.401 ms] [avg calls per frame: 1]
20:15:59: | CopyResource - [cpu time: avg 2.344 ms, total 405.602 ms] [avg calls per frame: 1]
20:15:59: | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:15:59: Convert444Thread - [cpu time: avg 0.906 ms, total 156.001 ms] [avg calls per frame: 1]
20:15:59: | Convert444toNV12 - [cpu time: avg 0.906 ms, total 156.001 ms] [avg calls per frame: 1]
20:15:59: encoder thread frame - [cpu time: avg 1.503 ms, total 452.403 ms] [avg calls per frame: 1]
20:15:59: ==============================================================
20:15:59: 
20:15:59: =====Stream End: 2013-10-04, 20:15:59=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Okay, you may just have to manually adjust the sync. You can do this with the "mic time offset" for the mic, or "audio time offset" if the audio is attached to a device. You can set the time offset both forward and back in time. If you need to set it back in time, make sure that you have enough "scene buffering time" in advanced so it can buffer that audio as well otherwise the audio will get cut off
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I don't believe that feature was implemented into the audio plugin, so that might be an issue in this particular case
 
Top