标签: ios objective-c core-graphics gif
我尝试从视频中生成GIF文件。
代码看起来很适合2-3秒的短视频,但是当我有一个大视频,并且我生成了大量的帧时,应用程序将崩溃并出现错误:Terminated due the memory error.和{{1} }。
Terminated due the memory error.
该应用程序崩溃了行:
Connection to assetsd was interrupted or assetsd died
下面是用于创建GIF的代码:
CGImageDestinationFinalize(destination);
非常感谢!