UnityPlugin-AVProMovieCapture
UnityPlugin-AVProMovieCapture copied to clipboard
Multiple cameras recording audio overloads system
Describe the bug When using multple camera recording (3), the whole editor/runtime freezes with FPS 0.03. In the profiler we see WaitForSignal. with a lot of ms. (see printscreens below)
When I set the setting "Wait For End Of Frame" to false, it does not freeze the system. But it gives mp4s with 0bytes.
Your Setup (please complete the following information): Unity 2022.3.11f1 Latest Trial version of AVRPO (we are evaluating to buy, we already have avpro video) Capture from Camera component used. Windows 11 Resolution 1920x1080 30 fps
To Reproduce Steps to reproduce the behavior: create 3 recording cameras, add rendertextures which are also be made visible by user in a small control panel. start recording.
Screenshots
Yes, this can happen, usually if the hardware is not up to it.
- What hardware are you using?
- Can you repeat this using a new project and just running the AVPro Movie Capture demo scenes, adding more cameras one by one?
We used 2 setups:
Setup 1: Windows 11 AMD Ryzen 7 5800H with Radeon Graphics 3.20 GHz 16,0 GB (15,3 GB usable) 64-bit operating system, x64-based processor NVDIA RTX3060
Setup 2: Windows 10 GTX1080 I7
Can you reproduce this using a new project and just running the AVPro Movie Capture demo scenes, adding more cameras one by one?
Because you mention not to put project files here I send it to your support email adres.
Is the intention to record audio from each camera, and at the same time?
That is the idea indeed. Timing has to be the same. When recording only sound from one camera it would run good?
Yeah. The issue is that the CaptureFromAudioListener code isn't meant for multiple captures. We're going to have to do some reworking to sort it out. The main issue is caused by Unity not allowing more than one Audio Listener. Ideally you'd have one per capture camera/component with CaptureAudioFromAudioListener from each capture component pointing at it.
hi, any update in this one?
The dev team is working away at the moment, so no one has had a chance to look at this in more depth. As I've said, the main issue is Unity not allowing more than one audio listener. We're not sure if its something that we can support, especially on multiple platforms, but we will look into it.