SDAVAssetExportSession icon indicating copy to clipboard operation
SDAVAssetExportSession copied to clipboard

ASAVAssetExportSession is hanging

Open solomon23 opened this issue 9 years ago • 1 comments

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%.

solomon23 avatar Apr 23 '15 22:04 solomon23

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

etayluz avatar Jul 29 '15 20:07 etayluz