iPhone视频摄像头流媒体 [英] iPhone video camera streaming

查看:109
本文介绍了iPhone视频摄像头流媒体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以确认这样的应用是如何完成的吗?

Can anyone confirm how an app like this is done?

PocketCam

是否可以使用AVFoundation捕获摄像机的视频流?

Is the way to capture the camera's video stream using AVFoundation?

http://developer.apple.com/iphone/library/documentation/AVFoundation/Reference/AVCaptureVideoDataOutput_Class/Reference/Reference.html#//apple_ref/doc/uid/ TP40009544

为了清楚起见,我不想拍摄视频并保存,我想通过无线网络作为IP摄像头进行流式传输。

To be clear, I dont want to capture the video and save it, I want to stream it over a wireless network as an IP camera.

谢谢,

推荐答案

我无法确认PocketCam的工作原理,但是,从iOS4开始,AVFoundation 执行此操作的正确方法。您将收到所需框架的回调。此时,您可以将帧作为图像推送到在网络上监听等待帧的某个服务器计算机上。请记住,您可能会收到大量帧,并且可能没有足够的带宽来推送所有帧,具体取决于帧的质量/大小/分辨率。以下是来自Apple的技术说明,讨论如何实施框架用AVFoundation捕获。

I can't confirm how PocketCam works, however, as of iOS4, AVFoundation is the correct way to do this. You will receive a callback with the frame you need. At that point you would push the frame as an image to some server computer listening on the network waiting for frames. Keep in mind that you could be receiving a lot of frames and you may not have enough bandwidth to push all of them depending on the quality/size/resolution of the frames. Here is a technical note from Apple that discusses how to implement frame captures with AVFoundation.

这篇关于iPhone视频摄像头流媒体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆