Skip to content

Instantly share code, notes, and snippets.

@nicoguaro
Last active November 6, 2019 21:29
Show Gist options
  • Save nicoguaro/7584591 to your computer and use it in GitHub Desktop.
Save nicoguaro/7584591 to your computer and use it in GitHub Desktop.
Generate videos from a sequence of images with consecutive numbering
#!/bin/bash
#
# Generate an animation (.avi, .gif) from a sequence of image with
# the same name and a sequence of numbers.
#
mencoder "mf://*.png" -mf type=png:fps=5 -ovc lavc -o vid.avi
convert img*.png -delay 20 -loop 0 -channel Alpha vid.gif
rm img*.png
@nicoguaro
Copy link
Author

Change name of file for the rm command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment