0

I'm building an iOS app which requires me to allow the users to record a 15sec clip (with UIImagePickerController for example) and then convert it into an animated GIF. How could I achieve this? Is there any library/framework available for such task?

Thanks!

pmerino
  • 5,900
  • 11
  • 57
  • 76
  • AVFoundation, CoreMedia and CoreVideo, furthermore http://ffmpeg.org –  Nov 30 '12 at 19:43
  • As far as I know about GIF files, I'd need to get all the frames of the video and stick them together on a GIF file, but I don't really know how can this be achieved – pmerino Nov 30 '12 at 19:47
  • Hi pmerino, Did you get any solution for the above question? I am also looking for the same. Post your solution here and help me out. – Gani414 Jun 10 '14 at 10:48

1 Answers1

1

I made a library called Regift for converting movies to gifs on iOS. It's available on Github. Hopefully this helps you :)

If you install it, you can then do

Regift.createGIFFromURL(videoURL, withFrameCount: frameCount, delayTime: delayTime, loopCount: loopCount)

to create a gif.

It's best to check the full documentation, as I'll be keeping that up to date more than this answer.

matthewpalmer
  • 2,619
  • 3
  • 25
  • 27