0
不要告诉我使用AVAssetExportSession,谢谢。AVAssetWriter可以合并两个视频文件
我试过了,但失败了。
for (int i =0; i < count; i++) {
assetWriterInput = nil;
assetWriterInput = [AVAssetWriterInput assetWriterInputWithMediaType:AVMediaTypeVideo outputSettings:videoSettings];
NSParameterAssert(assetWriterInput);
NSParameterAssert([assetWriter canAddInput:assetWriterInput]);
[assetWriterInput setExpectsMediaDataInRealTime:YES];
[assetWriter addInput:assetWriterInput];
}
[assetWriter startWriting];
请解释您使用AVAssetExportSession进行的尝试,以及您为什么不想使用它,因为这是我会告诉您使用的。 – Marcel
另外,你想要做什么?合并两个视频文件?它们是否存储在磁盘上? – Marcel
AVAssetExportSession在IPHONE4中合并多个文件容易失败。我不知道为什么 – bing