Created
January 5, 2019 21:29
-
-
Save seidler2547/2c9c4228e7e593c684ebf3a8c8b064cd to your computer and use it in GitHub Desktop.
Create a stop-motion MP4 from individual JPG files
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 | |
n=0; for i in * ; do mv $i $(printf '%04d\n' $n).jpg ; ((n++)); done | |
ffmpeg -y -f image2 -r ${1:-3} -i "%04d.jpg" -vf scale=-1:720 -c:v libx264 -crf 20 -preset slow -r 24 out.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment