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/
45 stars 8 forks source link

AudioSampleProvider buffer overflow on iOS #175

Closed SashaBes closed 2 years ago

SashaBes commented 2 years ago

Hi, I am using AVProMovieCapture on iOS. I record Video using CaptureFromTexture with an Audio Output set to Microphone. After recording a video I am using Unity VideoPlayer Component to play the Video. If the audio output mode of the video player set to audio source, there is no audio and following error appears in Xcode: AudioSampleProvider buffer overflow. 4096 sample frames discarded.

The bug DOES NOT appear when using in Unity Editor or when video player audio output is set to direct. It also does not appear before capturing video with AVPro.

Setup:

If you could suggest any workarounds I would be super grateful!

MorrisRH commented 2 years ago

I've not been able to reproduce this.

AudioSampleProvider buffer overflow is caused by samples being produced too quickly for Unity to handle but I'm not sure why a captured movie would cause this.

Are you able to provide a project that contains a minimal reproducible instance of this? If so please send it to unitysupport@renderheads.com and reference this issue in the subject.

SashaBes commented 2 years ago

Thank you for the quick response. Do you have a possibility to test it on an iOS device with Lidar? My current project is using lidar when capturing video. If it is not possible, I will try to create a project without it and reproduce the issue there.

MorrisRH commented 2 years ago

I'm using an iPhone 13 Pro for testing which I'm pretty sure has Lidar.

Chris-RH commented 2 years ago

Hi @SashaBes, Have you been able to make a project reproducing the issue? If you get a chance, please send one to unitysupport@renderheads.com and reference #175 in the subject. Thanks

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Chris-RH commented 2 years ago

I'm going to close this now due to lack of response. If this is still an issue, please reopen. Thank you.