关于AVAssetWriter,AVAssetWriterInput报错Cannot call method when status is 2的问题记录
来源:互联网 发布:淘宝大麦票务专营店 编辑:程序博客网 时间:2024/05/16 07:41
首先,最好把他们放在线程里去执行,而写顺序应该是
[self.writerInput markAsFinished];[self.videoWriter finishWriting];
其次,如果每次想在重新写一个视频的时候,那么你就要重新init一下AVAssetWriter,AVAssetWriterInput,否则就会报错Cannot call method when status is 2
参考文章:AVAssetWriter multiple sessions and the status property
- 关于AVAssetWriter,AVAssetWriterInput报错Cannot call method when status is 2的问题记录
- [绍棠] GPUImageMovieWriter 无法2次录像 报错:[AVAssetWriter startWriting] Cannot call method when status is 3
- 关于cannot call this method while recyclerview is computing a layout or scrollin
- cannot call method foreach of undefined问题
- 报错:Cannot call sendRedirect() after the response has been committed/HTTP Status 405
- jquery file upload报错:Uncaught TypeError: Cannot call method 'unshift' of undefined
- jquery file upload报错:Cannot call method 'parseMetaData' of undefined
- Chrome中canvas报Cannot call method 'getContext' of null
- MySQL使用case when报错问题记录
- android webView 图片加载不出来 后台报错Uncaught TypeError: Cannot call method 'getElementsByTagName' of null
- 逻辑没错但是报:Cannot call sendRedirect() after the response has been committed/HTTP Status 405
- Uncaught TypeError: Cannot call method 'replace' of undefined 的解决
- 关于Call的问题
- Cannot call method in class, which is explicitly implemented from interface, through new object
- RecyclerView , IllegalStateException: Cannot call this method while RecyclerView is computing a layo
- Cannot call this method while RecyclerView is computing a layout or scrolling
- 使用RecyclerView中引发 java.lang.IllegalStateException: Cannot call this method while RecyclerView is com
- butterknife报错 cannot find method "value" cannot resolve symbol
- OpenGL入门学习——第七课 使用光照来表现立体感
- JAXB
- 今天效果好差啊
- OpenGL入门学习——第八课 使用显示列表
- hessian访问https
- 关于AVAssetWriter,AVAssetWriterInput报错Cannot call method when status is 2的问题记录
- OpenGL入门学习——第九课 使用混合来实现半透明效果
- IT市场展望与oracle应用前景
- OpenGL入门学习——第十课 BMP文件与像素操作
- 批处理、shell 使用日期时间作为文件名的方法
- linux内核分析笔记---中断实现
- OpenGL入门学习——第十一课 纹理的使用入门
- 【HEVC】目前H265分析软件推荐
- OpenGL入门学习——第十二课 OpenGL片断测试