Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Linux timelapse video scripts
#! /bin/bash
set -e;
set -x;
rm -rf build;
mkdir build;
echo "Rotating images";
find *.jpeg -type f -print | xargs -I {} convert {} -rotate 90 build/{};
echo "Building combined mp4"
rm -f time-lapse.mp4;
ffmpeg -i %06d.jpeg -r 30 -s hd480 -vcodec libx264 -vpre hq time-lapse.mp4;
rm -r build;
#! /bin/bash
streamer -o 000000.jpeg -s 640x480 -j 100 -t 24:00:00 -r 0.1;
#! /bin/bash
cd day_1;
streamer -o 003370.jpeg -s 640x480 -j 100 -t 0:00:00 -r 0.1;
cd ..;
mkdir -p day_2;
cd day_2;
streamer -o 000000.jpeg -s 640x480 -j 100 -t 00:00:00 -r 0.1;
cd ..;
mkdir -p day_3;
cd day_3;
streamer -o 000000.jpeg -s 640x480 -j 100 -t 00:00:00 -r 0.1;
cd ..;
mkdir -p day_4;
cd day_4;
streamer -o 000000.jpeg -s 640x480 -j 100 -t 00:00:00 -r 0.1;
cd ..;
mkdir -p day_5;
cd day_5;
streamer -o 000000.jpeg -s 640x480 -j 100 -t 00:00:00 -r 0.1;
cd ..;
mkdir -p day_6;
cd day_6;
streamer -o 000000.jpeg -s 640x480 -j 100 -t 9:30:00 -r 0.1;
cd ..;
mkdir -p day_7;
cd day_7;
streamer -o 000000.jpeg -s 640x480 -j 100 -t 24:00:00 -r 0.1;
cd ..;
mkdir -p day_8;
cd day_8;
streamer -o 000000.jpeg -s 640x480 -j 100 -t 24:00:00 -r 0.1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment