SDAVAssetExportSession icon indicating copy to clipboard operation
SDAVAssetExportSession copied to clipboard

multiple pass

Open weepy opened this issue 6 years ago • 1 comments

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

weepy avatar Aug 21 '18 10:08 weepy

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];

rsalesas avatar Oct 27 '18 08:10 rsalesas