Created
June 17, 2018 00:07
-
-
Save sakulstra/14691b5152c272d401c7cd90ffe42c28 to your computer and use it in GitHub Desktop.
This file contains 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
# taken from https://ubuntuforums.org/showthread.php?t=2022316 | |
# rename rename | |
exiftool '-filename<CreateDate' -d %y%m%d_%H%M%S%%-c.%%le -r -ext JPG ./ | |
# resize images | |
mkdir resized | |
mogrify -path resized -resize 1920x1080 *.jpg | |
cd resized | |
#generate video | |
ffmpeg -r 25 -pattern_type glob -i '*.jpg' -c:v copy output.avi | |
# compress video | |
ffmpeg -i output.avi -c:v libx264 -preset slow -crf 15 output-final.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment