有谁知道为什么AVAsset无法读取使用MTLTextures编写的视频文件类
Does anyone know why the video file written using MTLTextures is not readable by AVAsset classes
我正在尝试使用 MTLTextures 来渲染使用 AVAssetWriter 的视频。但有些文件是如何损坏的。有人可以帮我解决这个问题吗?我正在使用的代码参考是 here and I am able to see the file is being written and has some data in it.. for 5 seconds of recording 9.6 MB, so something is being written to it but Its not being able to be read by any way. here are the errors I see image showing errors 我希望有人能尽快帮助我。提前致谢
问题在于缓冲区由于异步调用而错过了执行顺序,这就是为什么我使用同步调度队列使所有内容同步,并且还使用信号量在需要时对情况进行额外控制
我正在尝试使用 MTLTextures 来渲染使用 AVAssetWriter 的视频。但有些文件是如何损坏的。有人可以帮我解决这个问题吗?我正在使用的代码参考是 here and I am able to see the file is being written and has some data in it.. for 5 seconds of recording 9.6 MB, so something is being written to it but Its not being able to be read by any way. here are the errors I see image showing errors 我希望有人能尽快帮助我。提前致谢
问题在于缓冲区由于异步调用而错过了执行顺序,这就是为什么我使用同步调度队列使所有内容同步,并且还使用信号量在需要时对情况进行额外控制