我正在使用 ffmpeg 进行视频转换。我正在获得图像序列。现在我正在使用
[UIImagePNGRepresentation(video.currentImage) writeToFile:fileName atomically:YES];
...将文件保存到目录中。但是这需要很多时间来保存。我需要快速保存这张图片。
答案 0 :(得分:1)
尝试使用UIImageJPEGRepresentation(UIImage * image,CGFloat compressionQuality)