Skip to content

Instantly share code, notes, and snippets.

@kdzwinel kdzwinel/mkgif.sh
Last active Nov 9, 2017

Embed
What would you like to do?
Making gifs from mov files on OS X.
#!/bin/sh
palette="./palette.png"
# speed - setpts=0.15*PTS,
# crop - ffmpeg -i in.mov -filter:v "crop=480:600:320:80" out.mov
filters="fps=25,scale=640:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $1.gif
@kdzwinel

This comment has been minimized.

Copy link
Owner Author

kdzwinel commented Jun 15, 2015

Example output:

DevTools new menu

@kdzwinel

This comment has been minimized.

Copy link
Owner Author

kdzwinel commented Feb 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.