You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While recording Unity audio, if there is any stutter or lag in the game the audio will get off.
Sometimes it just slowly gets out of sync with video too. This happens on both Windows and Android.
If you call Thread.Sleep(2000) once while video is recording you can reproduce the issue easy FYI.
I have tried to make my own "CaptureFromCamera_Custom" object to try and resolve the issue with rendering extra frames to try and match audio data etc. While I've gotten close I can't seem to get it working without audio stuttering/crackles. I'm not sure if your native libraries are keeping track of anything that needs to know when the game thread gets locked up to keep things in sync.
This is preventing us from publishing some stuff we have build around it in our game.
Log output
No response
The text was updated successfully, but these errors were encountered:
zezba9000
changed the title
All platforms
[All platforms] Audio gets out of sync with Video if a Unity script lags.
Dec 17, 2024
zezba9000
changed the title
[All platforms] Audio gets out of sync with Video if a Unity script lags.
[Bug: All platforms] Audio gets out of sync with Video if a Unity script lags.
Dec 17, 2024
Unity version
2022.3.8
Unity editor platform
Windows
AVPro Movie Capture edition
Full
AVPro Movie Capture Version
5.3.3
Which Windows version(s) are you using?
Windows 11
Which graphics API(s) are you using?
Direct3D 11
Hardware
i7-12700k
32gb 3200mhz ram
RTX 3060 12gb
Which capture component are you using?
Capture From Camera
Capture mode
Realtime
Which output mode are you using?
Video file
Video codecs
H264
Audio source
Unity
Audio codecs
AAC
Any other component configuration
No response
The issue
While recording Unity audio, if there is any stutter or lag in the game the audio will get off.
Sometimes it just slowly gets out of sync with video too. This happens on both Windows and Android.
If you call Thread.Sleep(2000) once while video is recording you can reproduce the issue easy FYI.
I have tried to make my own "CaptureFromCamera_Custom" object to try and resolve the issue with rendering extra frames to try and match audio data etc. While I've gotten close I can't seem to get it working without audio stuttering/crackles. I'm not sure if your native libraries are keeping track of anything that needs to know when the game thread gets locked up to keep things in sync.
This is preventing us from publishing some stuff we have build around it in our game.
Log output
No response
The text was updated successfully, but these errors were encountered: