简体   繁体   English

像FaceTime一样合并2个视频

[英]Merge 2 videos together like FaceTime

I have been working on an iPhone app, that will work similarly to FaceTime. 我一直在研究iPhone应用程序,它的工作方式与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. 我希望能够拍摄2个视频并拥有一个大的,另一个像FaceTime设置的小视频,但制作成1个视频文件进行发送。

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? 有什么建议?

Try AVFoundation - it's the new library from Apple that lets you stitch-together multiple videos streams into a single video. 试试AVFoundation - 它是Apple的新图书馆,可让您将多个视频流拼接成一个视频。

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. 这是一个相当低级的,并没有网络教程,但2010年的WWDC视频有很多关于如何使用它的细节。

Requires OS 4 and a 3GS or better, though. 但是,需要OS 4和3GS或更好。

You can't record 2 cameras simultaneously. 您无法同时录制2台摄像机。 I already try this but Apple say they don't share the API. 我已经试过了,但Apple表示他们不共享API。 I try recording with 2 threads for rear and front camera but It's not successful. 我尝试用2个线程录制后置和前置摄像头,但是没有成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM