From 2e7ea97a00328464baed51afe6f6d48adafe6fa1 Mon Sep 17 00:00:00 2001 From: Imran Khan Date: Fri, 20 May 2022 19:07:18 +0530 Subject: [PATCH] Update NSGIF.m In General video is recorded at 30 frames per second. --- NSGIF/NSGIF.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NSGIF/NSGIF.m b/NSGIF/NSGIF.m index 34fe1e8..ce43b14 100644 --- a/NSGIF/NSGIF.m +++ b/NSGIF/NSGIF.m @@ -48,7 +48,7 @@ + (void)optimalGIFfromURL:(NSURL*)videoURL loopCount:(int)loopCount completion:( // Get the length of the video in seconds float videoLength = (float)asset.duration.value/asset.duration.timescale; - int framesPerSecond = 4; + int framesPerSecond = 30; int frameCount = videoLength*framesPerSecond; // How far along the video track we want to move, in seconds.