Unable to edit video using GPUImage

做~自己de王妃 提交于 2019-12-06 21:23:29

By reading this I knew that this error occur when video has no audio.
Same issue I have. I have no Audio my asset(Video). So facing this error.

To solve this error I just replaced from

movieFile.audioEncodingTarget = movieWriter;

to

movieFile.audioEncodingTarget = nil;

and code works fine.

Not sure if this is the correct answer, but I hope it leads in the right direction.

status value of 36055 is 0x8CD7 - Missing Attachment.
Excerpt from Apple Discussion Forum - GL Framebuffer Completeness & Blitting Issues

#define GL_FRAMEBUFFER_COMPLETE                        0x8CD5
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT           0x8CD6
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT   0x8CD7
#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER          0x8CDB
#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER          0x8CDC
#define GL_FRAMEBUFFER_UNSUPPORTED                     0x8CDD

According to forum,

It turned out you have to call:

glDrawBuffer(GL_NONE)
glReadBuffer(GL_NONE)

on BOTH the source and destination buffers. i.e Both buffers have to be read and draw complete.

This was why I got a seemingly flipped status on the buffers when I checked them.

Cheers.
YJ

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!