Skip to content

Instantly share code, notes, and snippets.

@khepin
Last active October 12, 2015 16:18
Show Gist options
  • Save khepin/4053909 to your computer and use it in GitHub Desktop.
Save khepin/4053909 to your computer and use it in GitHub Desktop.
TimelapseVideo
#!/bin/bash
killall gvfs-gphoto2-volume-monitor
killall gvfsd-gphoto2
cd /home/seb/Desktop/tltest
echo "taking a pic" >> counter
/usr/bin/gphoto2 --capture-image-and-download --interval 600 --frames 20
mogrify -path resized -resize 1920x1320! *.JPG
ls *.JPG -1tr | grep -v frames.txt > frames.txt
mencoder -nosound -noskip -oac copy -ovc copy -o output30.avi -mf fps=30 'mf://@frames.txt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment