Skip to content

Instantly share code, notes, and snippets.

@LelandSindt
Created March 29, 2016 14:08
Show Gist options
  • Save LelandSindt/2277e77645ceb99f7a42 to your computer and use it in GitHub Desktop.
Save LelandSindt/2277e77645ceb99f7a42 to your computer and use it in GitHub Desktop.
Timelapse via avconv
#!/bin/bash
avconv -r 15 -f image2 -i ./links/imageSequence%08d.jpg -s svga -vcodec libx264 -crf 16 video1.mp4
#!/bin/bash
#
# ./images/*/*.jpg
# ./links/
count=1
for file1 in `find ./images/ -name *.JPG | sort`
do
pad="00000000"
pad=`echo $pad | cut -c 1-$((${#pad}-${#count}))`
echo "ln -s .$file1 ./links/imageSequence$pad$count.jpg "
ln -s .$file1 ./links/imageSequence$pad$count.jpg
count=$(($count+1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment