【问题标题】:cannot making movie from UIImage Array with AVAssetWriter on iphone 3G无法在 iphone 3G 上使用 AVAssetWriter 从 UIImage 数组制作电影
【发布时间】:2011-09-23 23:59:28
【问题描述】:

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

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

请谁能帮我出个主意?

【问题讨论】:

    标签: iphone objective-c ios cocoa-touch ios4


    【解决方案1】:

    错误信息很清楚。您正在尝试将视频编码为 h264,这在 iPhone 3G 或经典版上不受支持,因为它需要特殊的编码硬件。也是这个原因,3G上的相机app不能录视频。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-29
      • 1970-01-01
      • 1970-01-01
      • 2015-08-08
      • 1970-01-01
      相关资源
      最近更新 更多