Skip to content

Instantly share code, notes, and snippets.

@athaeryn

athaeryn/_mosh.md

Last active Jun 15, 2017
Embed
What would you like to do?
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