Skip to content

Instantly share code, notes, and snippets.

@Birchwell
Created October 18, 2015 00:22
Show Gist options
  • Save Birchwell/38a7e6f7e28e0cbd558f to your computer and use it in GitHub Desktop.
Save Birchwell/38a7e6f7e28e0cbd558f to your computer and use it in GitHub Desktop.
This bash script will work on multiple video files, outputting multiple GIFs renamed with incremental numbering.
#!/bin/bash
for f in ./*.mp4; do
ffmpeg -i "$f" -vf scale=420:-1 -t 10 -r 10 "${f%.*}.gif"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment