[AVAssetWriterInputPixelBufferAdaptor initWithAssetWriterInput:sourcePixelBufferAttributes:] Cannot create a new pixel buffer adaptor with an asset writer input that has already started writing

[AVAssetWriterInputPixelBufferAdaptor initWithAssetWriterInput:sourcePixelBufferAttributes:] Cannot create a new pixel buffer adaptor with an asset writer input that has already started writing

 

解决方式:

在执行[self.assetWriter startWriting]; 之前创建好AVAssetWriterInputPixelBufferAdaptor对象

posted @ 2016-03-04 15:25  嗷大喵  阅读(427)  评论(0编辑  收藏  举报