$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you haven't installed Xcode yet, you will need to hit the following command.
$ xcode-select --install
If you can't install
$ sudo xcode-select --install
$ brew install ffmpeg
If you are a windows user, please check this site(https://www.ffmpeg.org/download.html).
$ ffmpeg -i test.mov test.mp4
$ ffmpeg -i test.mp4 test.gif
$ ffmpeg -i input.mp4 -vcodec png image_%04d.png
$ ffmpeg -i input.mp4 -vcodec jpg image_%04d.jpg
ffmpeg -i input.mp4 -vf scale=960:540 output.mp4
$ ffmpeg -r 30 -i image_%04d.png -vcodec libx264 -pix_fmt yuv420p -r 30 out.mp4
$ ffmpeg -r 30 -i image_%04d.jpg -vcodec libx264 -pix_fmt yuv420p -r 30 out.mp4