Skip to content

Instantly share code, notes, and snippets.

@shaposhnikoff
Created August 24, 2015 14:05
Show Gist options
  • Select an option

  • Save shaposhnikoff/d05f9e7555cbf9d64cf7 to your computer and use it in GitHub Desktop.

Select an option

Save shaposhnikoff/d05f9e7555cbf9d64cf7 to your computer and use it in GitHub Desktop.
create thumbs from mp4 files located in current dir
#!/bin/bash
for i in *.mp4; do
ffmpeg -i "${i}" -r 0.033 -vf scale=-1:240 -vcodec png capture-%002d.png
montage -title "Movie Name\nSubtitle" -geometry +4+4 capture*.png "$i".png
rm capture*.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment