Skip to content

Instantly share code, notes, and snippets.

@rhaamo
Created February 11, 2017 13:58
Show Gist options
  • Save rhaamo/45ce5a4e70f8b68ae5ec2fc067ff7b27 to your computer and use it in GitHub Desktop.
Save rhaamo/45ce5a4e70f8b68ae5ec2fc067ff7b27 to your computer and use it in GitHub Desktop.
ffmpeg -r 30 -start_number 0000 -i %04d.jpg -s hd1080 -vcodec libx264 timelapse5.mp4
a=1
for i in *.JPG; do
new=$(printf "%04d.jpg" "$a") #04 pad to length of 4
cp -v -- "$i" "new/$new"
let a=a+1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment