Skip to content

Instantly share code, notes, and snippets.

@mokemokechicken
Created May 18, 2012 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mokemokechicken/2724763 to your computer and use it in GitHub Desktop.
Save mokemokechicken/2724763 to your computer and use it in GitHub Desktop.
ffmpegでMOVファイルをjpgファイルに切り出す
ffmpeg -i IMG_1599.MOV -s 640x360 -r 3 -ss 0 -sameq -vcodec mjpeg img-%03d.jpg
for i in `ls *.MOV`;do; ffmpeg -i $i -s 640x360 -r 5 -ss 0 -sameq -vcodec mjpeg ${i/.MOV/}-%03d.jpg; done
for i in `ls IMG_*.jpg`;do; convert $i -rotate 90 ${i/IMG/im}; rm $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment