Last active
November 6, 2019 21:29
-
-
Save nicoguaro/7584591 to your computer and use it in GitHub Desktop.
Generate videos from a sequence of images with consecutive numbering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change name of file for the
rm
command