Instantly share code, notes, and snippets.

Embed
What would you like to do?
Making a gif
mkdir ~/giffing/
ffmpeg -i ~/giffing/in.mov -r 5 ~/giffing/gif-%04d.png
convert -delay 20 -loop 0 ~/giffing/gif-*.png ~/giffing/gif.gif
@filler

This comment has been minimized.

filler commented Apr 10, 2015

Thx, 5000!

Have you looked at imagesnap to grab images so I dont have to Bring My Own Movie?

@lourinaldi

This comment has been minimized.

lourinaldi commented Apr 10, 2015

👍

@treznick

This comment has been minimized.

treznick commented Apr 10, 2015

mkdir ~/giffing && touch ~/giffing/in.mov

@filler

This comment has been minimized.

filler commented Apr 10, 2015

videosnap is best snap.

Have fun:

# https://developer.apple.com/library/ios/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-HOW_DO_I_BUILD_MY_PROJECTS_FROM_THE_COMMAND_LINE_
mkdir -p /tmp/lolwat ; cd /tmp/lolwat && \
curl -sOL https://github.com/matthutchinson/videosnap/tarball/master && \
tar xfz master && cd matt* && \
open -a Xcode videosnap.xcodeproj

# Cmd + Q when 'Ready'
# Done because it needs a 'schema' ... wat?
# If you have a better solution for this, get on it!

xcodebuild -list -project videosnap.xcodeproj
xcodebuild -scheme videosnap build SYMROOT="."

mkdir -p ~/bin ; export PATH=~/bin:$PATH && \
mv ./Debug/videosnap ~/bin/ && \
which videosnap

rm -rf /tmp/lolwat

videosnap -l
videosnap -t 3 -w 5 -d 'USB Camera' --no-audio -s 'HD720' lolwat.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment