-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unity Audio delay and crackling when using multiple audio inputs #55
Comments
Hello, |
Hi Have you tried Audio Settings (in Project Settings) changing the audio buffer size? Thanks, |
Hello AndrewRH, |
Hello again AndrewRH, |
Are you running with vsync on or off? And which Decklink hardware are you using? Also, would you be able to share an audio clip of the crackling? |
Hi AndrewRH, VideoAudioCrackles_1.mp4. |
Hello, have you been able to see something? |
This seems like it could be performance related. Perhaps the C# code for grabbing the audio is not very optimal and required an optimisation pass. Poor performance could lead to crackling and added delays due to buffers not being consumed fast enough. It also sounds like a potential issue with the low-level code for multiple inputs. This needs further investigation. |
Could be related to multiple input audio issues mentioned in #47 |
We have the same audio issues with the same Decklink hardware. When using audio buffer size for best latency and only capture one video+audio input it's kind of ok. But also already a visible audio lag and it goes out of sync pretty easily if the FPS drop at some point. Audio dropouts are also very common and not very pleasant. Capturing a second input with audio at the same time only works on rare occasions. Although it is probably not necessary for us to capture multiple audio streams at the same time it is an absolute must for our clients to be able to capture all video inputs and enable audio of one of the inputs at any point. |
FYI.. I've tracked down and fixed an issue causing massive audio thread stalls (especially with multiple inputs, hence audio playback breaking up). Currently looking into seeing if anything can be done to mitigate the delay. Cheers, |
This issue has been fixed in the latest release (AVPro Decklink version 1.9.7). Please let us know if this issue has not been fixed for you. |
Describe the bug
Hi, I have a DeckLink Quad HDMI recorder. I am capturing video and audio through HDMI. I have verified that the audio and video are synchronized in Media Express but in the application in unity the audio comes out with a considerable delay. Initially of several seconds but if I turn the camera off and on the delay stays in less than a second but very visible. I have tried the 01_InputDemo scene and the same thing happens, a delay of less than a second.
Your Setup (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: