简体   繁体   English

从 iPhone 上的视频中捕获 select 帧(后置摄像头)

[英]Capture select frames from a video on iphone (back Camera)

I am very new to iOs and cocoa framework.我对 iOs 和 cocoa 框架非常陌生。

The UIImagePickerControl allows me to shoot a video using the back camera and flip through the frames of the video once recording is complete. UIImagePickerControl 允许我使用后置摄像头拍摄视频,并在录制完成后翻转视频的帧。

I would like to select few of those frames as images to used later ('n' images).我想 select 这些帧中的一些作为图像以供以后使用('n'图像)。

Would I be correct to say that I would have to use AVFoundation classes to do the above?我是否正确地说我必须使用 AVFoundation 类来执行上述操作?

I wanted to be sure that I am not overlooking some simple option due to my lack of knowledge.我想确保我不会因为缺乏知识而忽略一些简单的选择。

Would I have to build my own control to allow the user to select multiple frames (not necessarily consecutive) as output images?我是否必须构建自己的控件以允许用户将 select 多个帧(不一定连续)作为 output 图像?

AVFoundation classes are the way to go if one has to do anything custom with the video output.如果必须对视频 output 进行任何自定义操作,AVFoundation 类是通往 go 的方法。 In my case it was selecting frames.就我而言,它正在选择框架。

Used AVFoundation to capture the video frames and used scroll viewer functionality to select specific frames.使用 AVFoundation 捕获视频帧,并使用滚动查看器功能到 select 特定帧。

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

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