Bash scripts to capture and play back time lapse video