Merge 2 videos together like FaceTime

2k views Asked by At

I have been working on an iPhone app, that will work similarly to FaceTime. I want to be able to take 2 videos and have one large and the other small like the FaceTime setup, but made into 1 video file for sending.

I know looking at the Video Editing code that you can merge files one after another, but I want to be able to play both videos simultaneously so that it will have the effect of two people talking to each other.

Any suggestions?

2

There are 2 answers

0
Adam On

Try AVFoundation - it's the new library from Apple that lets you stitch-together multiple videos streams into a single video.

It's quite low-level, and there's no web tutorials out yet, but the WWDC video from 2010 has lots of detail on how to use it.

Requires OS 4 and a 3GS or better, though.

0
Kevin Duong On

You can't record 2 cameras simultaneously. I already try this but Apple say they don't share the API. I try recording with 2 threads for rear and front camera but It's not successful.