Output from AVAssetWriter (UIImages written to video) distorted

后端 未结 3 1131
时光说笑
时光说笑 2020-12-18 09:49

I am using an AVAssetWriter to encode a series of images to a movie file, following Zoul\'s answer here: How do I export UIImage array as a movie?.

In short my proc

3条回答
  •  眼角桃花
    2020-12-18 10:22

    Old thread but different answer, instead of multiplying by a number I use CVPixelBufferGetBytesPerRow to get the actual bytes per row for CGBitmapContextCreate and it fixed the distortion, leaving height/width the same

提交回复
热议问题