Skip to content

Instantly share code, notes, and snippets.

@enru
Created November 12, 2011 15:04
Show Gist options
  • Select an option

  • Save enru/1360638 to your computer and use it in GitHub Desktop.

Select an option

Save enru/1360638 to your computer and use it in GitHub Desktop.
ffmpeg encode jpgs stop motion
#!/bin/bash
c=0; for i in *.JPG; do mv "$i" "`printf %05d $c`.jpg"; c=$((c+1));done
ffmpeg -r 6 -b 2000 -i %05d.jpg -vcodec libx264 -vpre hq -vpre ipod640 -an -threads 0 -b 5000k video.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment