【问题标题】:How to save or Export the video with 640 x 640 resolution in IOS?如何在 IOS 中保存或导出 640 x 640 分辨率的视频?
【发布时间】:2013-08-31 06:22:35
【问题描述】:

我想保存一个 640*640 格式的视频。

我正在使用“AVAssetExportSession”导出或保存视频。

按照下面的说明,我有一个控件来更改 presetName,它实际上决定了分辨率。

AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:composition presetName:AVAssetExportPreset640x480];

但预设名称的可能可用值如下,并且没有 640*640 的选项。

NSString *const AVAssetExportPreset640x480;

NSString *const AVAssetExportPreset960x540;

NSString *const AVAssetExportPreset1280x720;

NSString *const AVAssetExportPreset1920x1080;

是否可以使用“AVExportSession”导出 640*640 的视频? 还是我应该使用其他 API?

【问题讨论】:

    标签: iphone ios objective-c ios6 avfoundation


    【解决方案1】:

    如果你可以使用 -- AVAssetWriter/WriterInput 有一对键 [NSString stringWithString:AVVideoScalingModeResizeAspectFill],AVVideoScalingModeKey 会自动将你的帧裁剪到指定的输出大小。也许这有帮助,我不知道 AVExportSession

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-11-13
      • 1970-01-01
      • 2012-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多