Skip to content

Instantly share code, notes, and snippets.

@caseywatts
Last active April 27, 2018 20:56
Show Gist options
  • Save caseywatts/5424604 to your computer and use it in GitHub Desktop.
Save caseywatts/5424604 to your computer and use it in GitHub Desktop.
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
Copy link

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
Copy link

👍

@treznick
Copy link

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

@filler
Copy link

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