Cannot create a new pixel buffer adaptor with an asset writer input that has already started writing

Posted 嗷大喵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot create a new pixel buffer adaptor with an asset writer input that has already started writing相关的知识,希望对你有一定的参考价值。

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

 

assetWriterInput.readyForMoreMediaData为NO

 

解决方法:

[self setupAVAssetWriterInputPixelBufferAdaptor];

[self.assetWriter startWriting];

 

在starWriting方法之前先创建好AVAssetWriterInputPixelBufferAdaptor对象

以上是关于Cannot create a new pixel buffer adaptor with an asset writer input that has already started writing的主要内容,如果未能解决你的问题,请参考以下文章

cannot create windows service for mysql

configure error C compiler cannot create executables错误解决

Virtualbox 共享文件夹 cannot create symlink error

QML Image: Cannot open: qrc:///new.pic.png

weblogic 整合cxf 报错:cannot create a secure XmlInputFactory

Cannot create a secure XMLInputFactory,