Creating my own reaction GIFs (with ffmpeg)

Published by

Just keeping a note here. Will update this post later.

I’ve been creating a fun set of my own “reaction GIFs”, just for fun. The first drafts seemed pretty popular so far, and caught people off guard. 😆

More on the process later.

Once I had sliced up a video into a series of reactions, and named them each, I had a folder of files like:

And this is the command that is working for me so far:

for file in *.mp4; do ffmpeg -i $file -vf "scale=-1:300:force_original_aspect_ratio=decrease" -r 15 ${file%.*}.gif; done

The bare command, without the loop:

ffmpeg -i example.mp4 -vf "scale=-1:300:force_original_aspect_ratio=decrease" -r 15 example.gif

Couple details: