This script will generate screenshots and webcam images on a 1 minute interval. These could then be processed with a toole to generate a timelapse video.
NOTE: if you do not have homebrew I recommend it for installing these dependencies
-
brew install imagesnap
Or Install manually as described in documentation for imagesnap
-
brew install ffmpeg
-
Change into the directory containing the repo
cd macosx-timelapse-capture
-
Run
timelapse.sh
./timelapse.sh
or
./timelapse.sh /path/to/root/output/directory
The output files will be under ./capture/screen
and ./capture/webcam
. They will be named with date stamps like screenshot-ymdHMS.png
and webcam-ymdHMS.jpg
-
Run the
create-movies.sh
script. It defaults to 16 fps, and will output two files:screen-timelapse.mp4
andwebcamp-timelapse.mp4
./create-movies.sh
-
Once you've created the source movie files, you can combine them into a Picture-in-Picture movie with the
combine.sh
script. It is setup to put the webcam overlaid in the bottom-right corner with a resolution of 960x540, and leave the main video the original resolution. You can optionally provide an mp3 for audio../combine.sh /path/to/your/audio.mp3
Or no audio
./combine.sh