iphone - 无法在 iphone 3G 上使用 AVAssetWriter 从 UIImage 数组制作电影

标签 iphone objective-c ios cocoa-touch ios4

我正在开发一个 iOS 应用程序,该应用程序使用 UIImages 数组制作电影。在 iphone 3GS、iphone 4 上一切正常,但在 iphone 3 上不行,我在 AVAssetWriterInput.h 中得到了这个:

视频输出设置键在 AVVideoSettings.h 中定义。使用键的视频输出设置 目前不支持。当前支持的唯一值 AVVideoCodecKey 是 AVVideoCodecH264 和 AVVideoCodecJPEG。 iPhone 3G 不支持 AVVideoCodecH264。

请问有人能帮我出出主意吗?

最佳答案

错误信息很清楚。您正在尝试将视频编码为 h264,iPhone 3G 或 classic 不支持这种格式,因为它需要特殊的编码硬件。这也是原因,3G 上的相机应用无法录制视频。

关于iphone - 无法在 iphone 3G 上使用 AVAssetWriter 从 UIImage 数组制作电影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7535981/

相关文章:

iphone - UITableView 流畅的滚动性能

Java:传递对象实现接口(interface)

iphone - 如何从应用程序中本地访问 json 文件

ios - 在静态 UITableView 中为 UIButtons 创建 IBOutlets 和 IBActions

iOS swift : UITapGestureRecognizer and Storyboard

iphone - 我应该多久保存一次文件?

ios - 需要 Storyboard元素处于正确的位置并且在不同的 iPhone 型号中具有正确的大小

iphone - ImageView contentMode 正确缩放图像?

iphone - Objective-C 的 JSON 解析器比较(JSON 框架、YAJL、TouchJSON 等)

iphone - 如何使用 NEON 在 ARM 汇编中实现 16 位->32 位查找表?