第一代 iPhone 摄像头如何录像?

发布于 2024-10-07 09:12:37 字数 184 浏览 0 评论 0原文

有一些应用程序可以让第一代 iPhone 以合理的质量录制视频。我的问题是,这些应用程序使用哪个 api?他们是否使用自定义代码来压缩为 mpeg?他们如何每秒从只能拍摄静态照片的相机中收集如此多的图像? UIImagePickerControllertakePicture 函数对此来说太慢了。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

哭泣的笑容 2024-10-14 09:12:37

“这个应用程序通过使用我过去写过的长期列入黑名单的 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.

皇甫轩 2024-10-14 09:12:37

除非这些应用程序在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文