Skip to content

Instantly share code, notes, and snippets.

@sakulstra
Created June 17, 2018 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakulstra/14691b5152c272d401c7cd90ffe42c28 to your computer and use it in GitHub Desktop.
Save sakulstra/14691b5152c272d401c7cd90ffe42c28 to your computer and use it in GitHub Desktop.
# 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