bozbez / win-capture-audio

An OBS plugin that allows capture of independant application audio streams on Windows, in a similar fashion to OBS's game capture and Discord's application streaming.
GNU General Public License v2.0
3.79k stars 207 forks source link

Slight audio delay #202

Open llucac26 opened 2 years ago

llucac26 commented 2 years ago

Hello, I've been wondering if this plugin was known to have a slight delay compared to standard OBS audio capture ? Basically any sound going through the plugin is a few ms behind OBS' default Desktop Audio track, and playing with sync offset in the advanced audio properties doesn't do anything on the plugin source. I've not seen anybody having this issue, so maybe it's on my side but I don't know what I could do to fix it

ngraham20 commented 2 years ago

You're not crazy, I am also experiencing this. It's slight, and it probably won't make too much difference, but it's there.

ngraham20 commented 2 years ago

Ok, if you go into OBS, you can set the audio delay to between -8 and -10ms for the application audio, and for me, that re-aligned the audio.

llucac26 commented 2 years ago

-8 indeed gave me good results, thanks !

Tignus commented 1 year ago

Actually, you can mesure this delay :

For my setup, this process mesured the delay to 8.6ms

I believe this delay is inherent to any audio processing and you can't do much about it except add the offset correctly in the advanced audio properties.

Does that mean that all audio will be delayed by 8.6ms on the video captures ? Should a 8ms delay filter be added to every video capture source ?

EDIT: Another way of mesuring the delay is to record your own voice over the metronome video while changing the offset and enumerating the value (the offset is applied live). "Minus 7", wait several bips, "Minus 8", wait, ..., repeat until whatever and then listen to the recording to select the best offset for you.