SCRecorder icon indicating copy to clipboard operation
SCRecorder copied to clipboard

Switching cameras during recording produces video delay and sync issue

Open numen31337 opened this issue 8 years ago • 4 comments

When you recording video and switching camera source during recording, audio is starting to go ahead from video

numen31337 avatar Apr 28 '16 09:04 numen31337

I'm experiencing this as well. Switching cameras (front camera to back camera or vice versa) causes the video and audio to go out-of-sync (and sometimes produces popping artifacts in the audio), with the audio getting ahead of the video. I haven't been able to find a solution for this.

amilham avatar Jul 15 '16 01:07 amilham

Did anyone ever find a solution to this? I get this problem when switching from back to front, but not vice versa.

Amalous avatar Apr 26 '17 01:04 Amalous

I'm experiencing this as well. Also i found a solution: before you switch the capturedevice, just pause the recording. Like this:

  • (IBAction)changeCameraClicked:(UIButton *)sender { if ([self.recorder isRecording]) { [self.recorder pause]; [self.recorder switchCaptureDevices]; [self.recorder record]; }else { [self.recorder switchCaptureDevices]; } }

So basically the recording stops while the camera is changing.

freeubi avatar Apr 28 '17 10:04 freeubi

Thank you!

Amalous avatar Jun 01 '17 21:06 Amalous