第一代 iPhone 摄像头如何录像?
有一些应用程序可以让第一代 iPhone 以合理的质量录制视频。我的问题是,这些应用程序使用哪个 api?他们是否使用自定义代码来压缩为 mpeg?他们如何每秒从只能拍摄静态照片的相机中收集如此多的图像? UIImagePickerController
的 takePicture
函数对此来说太慢了。
There are some apps that let the first generation iPhone record video with a reasonable quality. My question is, which api do those apps use? Do they use custom code for compression to mpeg? And how do they gather so many images per second from the camera, which does only allow to take still pictures? The takePicture
function of UIImagePickerController
would be too slow for that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“这个应用程序通过使用我过去写过的长期列入黑名单的 UIGetScreenImage() 函数来工作。(我通过使用我的 APIkit 扫描仪扫描应用程序发现了这种用途。)Apple 一定是心甘情愿地放手了-因为他们的自动扫描肯定选择了相同的函数调用,因此苹果最近为 UStream 视频应用程序开了绿灯,而 Qik 也紧随其后。我们将看到更多此类应用程序提供 iPhone 视频功能,以便从您的设备进行直播或录制。” - http://www.tuaw.com/2009/12/14/app-store-approved -app-brings-video-recording-to-iphone-3g-and-1/
我的总结:我认为该应用程序会打开“拍照”类型的视图,然后“录制屏幕并保存”使用 UIGetScreenImage() API 转换为视频”。
"This app works by using the long-blacklisted UIGetScreenImage() function that I've written about in the past. (I discovered this use by scanning the application using my APIkit scanner.) Apple must have willingly given the go-ahead for its use, as their automated scanning must have picked the same function call. Good news on the "more flexible review" front. Since Apple recently gave the green light to the UStream video app, with Qik hot on its heels, it's likely we'll see more of these applications that provide iPhone video functionality for livecasting or recording from your device." - http://www.tuaw.com/2009/12/14/app-store-approved-app-brings-video-recording-to-iphone-3g-and-1/
My summary: I think that the app opens a "Take a picture" type of view, and then "records the screen and saves to video" by using the UIGetScreenImage() API.
除非这些应用程序在 4.0 之前的 iOS 版本上运行,否则我非常怀疑它们使用标准 Apple API,因为 UIImagePickerController 对在受支持的设备上录制视频具有特定支持。
请参阅 UIImagePickerController 类参考中的 startVideoCapture 实例方法。
Unless these apps run on iOS versions prior to 4.0, I very much suspect they use the standard Apple API, as the UIImagePickerController has specific support for recording video on supported devices.
See the startVideoCapture instance method within the UIImagePickerController class reference.