Output from AVAssetWriter (UIImages written to video) distorted

巧了我就是萌 提交于 2019-11-30 23:45:18
Mandar

Please take a look at this link. It says the width should be a multiple of 16.

Just get the size.width, calculate the nearest number which is multiple of 16. And hard code it in place of size.width.

It works :)

Ok, this turned out to be an issue with the aspect ratio of the images I was reading in being different from the aspect ratio of the PixelBuffer I was creating. Made them equal and it works fine.

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