2

我在 AVAsset 的帮助下使用图像数组和音频文件创建了视频。我按照以下链接寻求帮助: 使用 AVAsset 制作带有图片数组和歌曲文件的电影文件

但在新视频中,图像不在中心。如何将我的图像放在中心?

4

1 回答 1

1

这可能是因为您在视频设置中传递的视频大小不是比例...

NSDictionary *videoSettings = [NSDictionary dictionaryWithObjectsAndKeys:
                                   AVVideoCodecH264, AVVideoCodecKey,
                                   [NSNumber numberWithInt:standardWidth], AVVideoWidthKey,
                                   [NSNumber numberWithInt:standardHeight], AVVideoHeightKey,
                                   nil];

您可以检查一个接近您所需分辨率的 标准视频分辨率

于 2013-03-11T10:56:26.643 回答