RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
43 stars 8 forks source link

Multiple cameras recording audio overloads system #336

Open richard12121212 opened 7 months ago

richard12121212 commented 7 months ago

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

image image

Chris-RH commented 7 months ago

Yes, this can happen, usually if the hardware is not up to it.

  1. What hardware are you using?
  2. Can you repeat this using a new project and just running the AVPro Movie Capture demo scenes, adding more cameras one by one?
richard12121212 commented 7 months ago

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

Chris-RH commented 7 months ago

Can you reproduce this using a new project and just running the AVPro Movie Capture demo scenes, adding more cameras one by one?

richard12121212 commented 7 months ago

Because you mention not to put project files here I send it to your support email adres.

Chris-RH commented 7 months ago

Is the intention to record audio from each camera, and at the same time?

richard12121212 commented 7 months ago

That is the idea indeed. Timing has to be the same. When recording only sound from one camera it would run good?

Chris-RH commented 7 months ago

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.

richard12121212 commented 7 months ago

hi, any update in this one?

Chris-RH commented 7 months ago

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.