Skip to content

Instantly share code, notes, and snippets.

@dmitry dmitry/
Last active Jan 4, 2018

What would you like to do?
ffmpeg timelapse scripts for sony as300
for FILE in `ls *.JPG`; do \
mogrify -resize 1920x -write resized/$FILE $FILE; \
for FILE in `ls *.JPG`; do \
mogrify -resize 1920x1080^ -gravity center -crop 1920x1080+0+0 +repage -write resized/$FILE $FILE; \
for i in $(ls *.JPG); do exiv2 -r '%Y%m%d.%H%M%S' rename $i; done
exiftool '-filename<CreateDate' -d %Y%m%d%H%M%S%-.4nc.%%le -r *.JPG
# less
ffmpeg -start_number 7535 -i DSC%05d.JPG -c:v libx265 -preset veryslow video2.mkv
# lossless
ffmpeg -start_number 7535 -i DSC%05d.JPG -c:v libx265 -preset ultrafast -x265-params lossless=1 video2.mkv
ffmpeg -r 24 -framerate 24 -pattern_type glob -i "*.JPG" -c:v libx265 -preset veryslow -q:v 28 video4.mkv
ffmpeg -r 24 -framerate 24 -pattern_type glob -i "*.JPG" -c:v libx265 -preset ultrafast -q:v 28 -x265-params lossless=1 video2.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.