Timelapsing

From philcrump.co.uk
Jump to: navigation, search

GoPro

Undistort

#!/usr/bin/env bash
echo "Undistorting Files (for GoPro Hero 3+)"
parallel --bar -j 8 mogrify -limit thread 1 -distort barrel \"0.06335 -0.18432 -0.13009\" {}  ::: $1/*.JPG
echo "Done."

Timelapse Encode

#!/usr/bin/env bash
# Needs 7-digit start number
echo "Encoding timelapse video"
/home/phil/ffmpeg/bin/ffmpeg -f image2 -start_number $2 -i $1/G%07d.JPG -s hd1080 -vcodec x264 -r 25 $1/_timelapse.mp4
echo "Done."