Sunshine-Rain / convert-mov-to-gif

Convert MOV files to GIF on Mac OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert an MOV file to GIF

Convert MOV files into animated GIF's for quick preview and e-mail friendly sharing.

Getting Started

This was designed for Mac OS X users.

Install Homebrew

Homebrew is a package manager for Mac OS x. You will need this to later download a few open source libraries.

Install FFmpeg

Using homebew, you will need to install ffmpeg. This is the tool that will compress your existing .mov file.

brew install ffmpeg

Install Quartz

Quartz is required to use the next package, Gifsicle.

brew cask install xquartz

Install Gifsicle

brew install gifsicle

Run Ruby Script

I created a Convert class that will do all the work. I also made it Object Oriented so that you can later decide to integrate it into a larger application.

ruby Converter.rb

Final Thoughts

Using this simple class as my base, I can easily integrate this into a Rake Task or maybe use FileList to do more work with string manipulation. Hopefully this simple tutorial shows you that the possibilities are infinite using Ruby, Shell, and home-brew.


Resources

  • If you want to learn more about how %x works in Ruby, read this tutorial

About

Convert MOV files to GIF on Mac OS X

License:MIT License


Languages

Language:Ruby 100.0%