Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
generate sprites of video snapshots
sudo aptitude install ffmpeg
sudo aptitude install imagemagick
# fps=1 > every seconds
ffmpeg -i video.mp4 -f image2 -vf fps=fps=1 out%d.png
# horizontal sprite, resized at 30%
convert -resize 30% +append out*.png sprite-1-sec.png
# references:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment