There is a problem when the estimatedOutputFileLength AVAssetExportSession property always returns 0 (and returns -9223372036854775808 on the simulator).
I tried everything to make it work, trying to use different outputFileType s, switching shouldOptimizeForNetworkUse , indicating (or not indicating) outputURL ... despite all this, nothing works and I'm starting to think that this may be a bug in the SDK .
This is my code:
AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetMediumQuality];
I just can't understand why this is not working! (iOS 6, iPhone 5)
source share