1

In my application I want to record a video with music playing in background. I have achieved this through AVCaptureSession and AVAudioSession.

After recording (through headset) my music output will only contain the recorded video sound. Is there any way to combine the music playback with the recorded video so that the final output will contain the music playback + recorded video with sound

I have gone through the following question : StackOverflow and added the below codes in my viewDidLoad but no change in volume.

AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory:AVAudioSessionCategoryPlayAndRecord  withOptions:AVAudioSessionCategoryOptionMixWithOthers|AVAudioSessionCategoryOptionDefaultToSpeaker error:nil];

But no change on the final result.

Community
  • 1
  • 1
Abhijith G
  • 244
  • 1
  • 8
  • You want to merge an video and audio file? – iAhmed Aug 31 '15 at 11:13
  • My doubt is that is it possible to get a final video output with the sound captured through the headset mic + the sound played through the headset speaker without manually mixing them ? – Abhijith G Aug 31 '15 at 11:45

0 Answers0