Skip to content

Instantly share code, notes, and snippets.

@sjwilliams
Created January 20, 2014 22:41
Show Gist options
  • Save sjwilliams/8530818 to your computer and use it in GitHub Desktop.
Save sjwilliams/8530818 to your computer and use it in GitHub Desktop.
rename a folder of image to be sequential, then convert to an mp4
find . -name '*.JPG' | awk 'BEGIN{ a=1 }{ printf "mv %s %04d.jpg\n", $0, a++ }' | bash;
ffmpeg -r 24 -f image2 -s 1920x1280 -i %4d.jpg -vcodec libx264 -crf 15 test.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment