SDAVAssetExportSession
SDAVAssetExportSession copied to clipboard
multiple pass
Hiya
Is it possible to support "canPerformMultiplePassesOverSourceMediaData" from AVAssetExporter ?
I had a look at the source, but it didn't seem that it was trivial since AVAssetWriter doesn't seem to have this flag.
J
I added this to my Swift version by setting the value on the videoInput. It's like this in Swift:
videoInput.performsMultiPassEncodingIfSupported = canPerformMultiplePassesOverSourceMediaData
You should be able to do the same by adding the line in Objective C after line 126.
self.videoInput = [AVAssetWriterInput assetWriterInputWithMediaType:AVMediaTypeVideo outputSettings:self.videoSettings];