Tiny-tools

From Habitat: Giardino

curl

Install Curl on Mac OS

 brew install curl

Imagemagick

Also to compress images for web use.

Install Imagemagick on Mac OS

 brew install imagemagick

Ffmpeg

FFmpeg provides simple usage to convert video such as .mkv, .mp3, .mp4, .mov to .gif.

Install Ffmpeg on Mac OS

 brew install ffmpeg

.mov to .gif

 ffmpeg -i <input.video> out.gif

The file size of out.gif is sometimes a bit too big. In such a case, it's better to use -r option to specify frame rate.

 ffmpeg -i my-sample.mov -r 10 out.gif

Scaling the video to a width of 640. FFmpeg calculates the height for us because we entered -1. It will keep the aspect ratio of the original video.

 ffmpeg -i my-sample.mov -r 10 -vf scale=640:-1 out.gif