Created
March 29, 2016 14:08
-
-
Save LelandSindt/2277e77645ceb99f7a42 to your computer and use it in GitHub Desktop.
Timelapse via avconv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
avconv -r 15 -f image2 -i ./links/imageSequence%08d.jpg -s svga -vcodec libx264 -crf 16 video1.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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