Skip to content

Instantly share code, notes, and snippets.

@DevelopKim
Last active August 29, 2015 14:22
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 DevelopKim/69ac93ab6e0d3a11b64d to your computer and use it in GitHub Desktop.
Save DevelopKim/69ac93ab6e0d3a11b64d to your computer and use it in GitHub Desktop.
for i in `find . -name *.mp4`; do echo $i; j=`echo $i | sed -e 's/.mp4/.jpg/'`; echo $j; ffmpeg -y -i $i -f mjpeg -vframes 1 -ss 3 $j; done
ffmpeg -y -i input.mp4 -f mjpeg -vframes 1 -ss 534 thumbnail.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment