Time-lapse Videos with ffmpeg Revision as of Sunday, 20 December 2015 at 19:57 UTC

# Reduce to a smaller size since 
# "MPEG-1 does not support resolutions above 4095x4095"
for image in *.JPG; do ffmpeg -i $image -vf scale=1200:-1 ${image%.JPG}.PNG; done

# Create a movie!
ffmpeg -f image2 -pattern_type glob -i "*.PNG" output.mpg

# A lossless movie!
ffmpeg -pattern_type glob -i "*.PNG" -c:v mjpeg -qscale:v 0 output.mov

Resources

Category: Nikhil’s Notes