Created
June 9, 2016 01:47
-
-
Save dphiffer/bae53d26bad64a70e99081436b517117 to your computer and use it in GitHub Desktop.
Turn folders of .jpg files into .mp4 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 | |
| dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| for subdir in $dir/*/ | |
| do | |
| date=`basename $subdir` | |
| if [ ! -f "$dir/$date.mp4" ] | |
| then | |
| ffmpeg -framerate 30 -pattern_type glob -i "$subdir*.jpg" -c:v libx264 "$dir/$date.mp4" | |
| fi | |
| done |
Author
dphiffer
commented
Jun 9, 2016

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