Video's sound become so low then to normal when recording using AVCaptureSession

Hi everyone, In my app i use AVCaptureSession to record video. I add videoDeviceInput and audioDeviceInput. And as output I use AVCaptureMovieFileOutput. And the result for some iPhone specially the iPhones after IPhoneX(iPhone 11,12, 13,14) has bad audio quality, The sound is like so low then after some seconds(around 7 secs) become normal. I have tried setting the audio setting for movie file out but it's still happen. Anyone know how to solve this issue?

Hi @Renee2405 !

I'm experiencing the same. I'm using the shared AudioSession instance with AVAudioSession.Category.playAndRecord category and .videoRecording mode. Also, I could not reproduce the issue consistently, it only happens to a few users.

Did you find any solution to the issue?

Thanks in advance!

Video's sound become so low then to normal when recording using AVCaptureSession
 
 
Q