SDAVAssetExportSession
SDAVAssetExportSession copied to clipboard
ASAVAssetExportSession is hanging
Seems to hang about 30% of the time here:
- (BOOL)encodeReadySamplesFromOutput:(AVAssetReaderOutput *)output toInput:(AVAssetWriterInput *)input
line 225
CMSampleBufferRef sampleBuffer = [output copyNextSampleBuffer];
It'll just be stuck there and hang forever. The other odd thing is it always seems to be 98%.
Same issue here! The issue only happens on device, NOT on simulator. I've noticed that by compressing the movie (by selecting it with UIImagePickerController from camera roll or by recording it) - this issue is negated.
Issue only happens when movie comes from remote URL or picked from local library but NOT using the UIImagePickerController. Forcing user to go via UIImagePickerController is a work around. This seems to be a known bug: http://stackoverflow.com/questions/20272695/avassetreaderoutput-copynextsamplebuffer-hangs-when-encoding-video-w-audio-on-d