Gif & Mp4

makeGif() and mp4


With ModuloFont you can make a gif with all yours letters by using the makeGif() command.

If you want a mp4, there is online converter, but if you don't like to upload your gif, you can install ffmpeg (with brew).

brew install ffmpeg

If you have more than one gif, you can make a loop, edit your bash profile with nano.

nano ~/.bash_profile

Add this and save, press ctrl+x → yes

mp4() {
  for f in *.gif
    ffmpeg -i "$f" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "${f%.*}.mp4"
    echo "moving file $f"
    mv "${f%.*}.mp4" "mp4/"

Refresh your bash profile.

source ~/.bash_profile

Now, go to the gif folder and run `mp4`.

cd /* here you can drag your folder with .gif and press enter */