Nếu bạn bao gồm nguồn, chúng tôi có thể có thể giúp bạn nhiều hơn, nhưng đây là một phương pháp mà tôi đã thành công bằng văn bản nhiều track âm thanh và video sang một bộ phim quicktime - Tôi sử dụng một duy nhất AVMutableComposition với AVMutableVideoComposition và AVAudioMix. Sau đó tôi viết nó như vậy:
AVAssetExportSession *session = [[[AVAssetExportSession alloc] initWithAsset:[project.composition copy] presetName:presetName] retain];
session.outputFileType = [session.supportedFileTypes objectAtIndex:0];
session.outputURL = [NSURL fileURLWithPath:[VeporterAppDelegate createMoviePath]];
session.videoComposition = project.videoComposition;
session.audioMix = project.audioMix;
session.metadata = project.metadata;
[session exportAsynchronouslyWithCompletionHandler:^{}];
Nguồn
2010-10-10 14:45:07
Có thể hiển thị cho chúng tôi mã không hoạt động như dự định, nếu có thể. Nó sẽ cung cấp cho người trả lời một điểm khởi đầu tốt để làm việc. –