如何在iOs模拟器中模拟视频输入?
我正在编写一个应用程序,用于
- (void) captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;
抓取视频帧并动态分析它们。我希望能够在 iOs 模拟器中测试此功能,但我不知道如何使用视频文件作为 AVCaptureSession 的输入。这可能吗?
I'm writing an app that uses
- (void) captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;
to grab video frames and analyze them on the fly. I'd like to be able to test this feature in the iOs simulator, but I can't figure out how to use a video file as an input to an AVCaptureSession. Is that possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您需要一个真实的设备来测试与相机相关的功能。我对此并不完全确定,但我使用第四代 iPod touch 来做这些事情。
Afaik you need a real device to test functions related to the camera. I'm not completely sure about it, but I use my iPod touch 4th gen for these kind of things.