You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a 3.9 MB 60 second long mp4 video which I am trying to convert to GIF. Testing on iOS 9.3.
Even when I have set the request.framesPerSecond to 1 which should only have 60 total frames in the entire GIF, my app memory spikes to around 270 MB.
Looking further, the memory spike occurs at the if (!CGImageDestinationFinalize(destination)) {
line of the createGIFforTimePoints method. Any clue what can be done to fix this?
setting the scalePreset to NSGIFScaleVeryLow and request.framesPerSecond=5 reduces the memory to 100MB which is sort of acceptable. though pretty bad quality. My original video is 640x360 resolution. So the line NSGIFScaleRatio when set to NSGIFScaleOptimize was falling in the NSGIFScaleMedium case of the switch statement which meant it would scale to .5. This is most likely the cause of the issue.
I have a 3.9 MB 60 second long mp4 video which I am trying to convert to GIF. Testing on iOS 9.3.
Even when I have set the request.framesPerSecond to 1 which should only have 60 total frames in the entire GIF, my app memory spikes to around 270 MB.
Looking further, the memory spike occurs at the
if (!CGImageDestinationFinalize(destination)) {
line of the
createGIFforTimePoints
method. Any clue what can be done to fix this?The text was updated successfully, but these errors were encountered: