Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple pass #87

Open
weepy opened this issue Aug 21, 2018 · 1 comment
Open

multiple pass #87

weepy opened this issue Aug 21, 2018 · 1 comment

Comments

@weepy
Copy link

weepy commented Aug 21, 2018

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

@rsalesas
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants