Skip to content

Instantly share code, notes, and snippets.

@athaeryn
Last active June 15, 2017 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save athaeryn/32ac2c889cf0aead1a47312b762063e4 to your computer and use it in GitHub Desktop.
Save athaeryn/32ac2c889cf0aead1a47312b762063e4 to your computer and use it in GitHub Desktop.
moshmoshmosh

install aviglitch gem

gem install aviglitch

run mo.sh

./mo.sh input.gif
#!/bin/sh
WORK_DIR=`mktemp -d`
ffmpeg -i $1 "$WORK_DIR/temp.avi"
datamosh "$WORK_DIR/temp.avi" -o "$WORK_DIR/moshed.avi"
ffmpeg -i "$WORK_DIR/moshed.avi" moshed.gif
rm "$WORK_DIR/temp.avi" "$WORK_DIR/moshed.avi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment