Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.64 KB

README.md

File metadata and controls

65 lines (42 loc) · 1.64 KB

Mac OSX Timelapse Script

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.

Dependencies

NOTE: if you do not have homebrew I recommend it for installing these dependencies

  1. imagesnap

    brew install imagesnap
    

    Or Install manually as described in documentation for imagesnap

  2. ffmpeg

    brew install ffmpeg
    

Usage

  1. Change into the directory containing the repo

    cd macosx-timelapse-capture
    
  2. Run timelapse.sh

    ./timelapse.sh
    

    or

    ./timelapse.sh /path/to/root/output/directory
    

Output

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

Creating Timelapse Videos

  1. Run the create-movies.sh script. It defaults to 16 fps, and will output two files: screen-timelapse.mp4 and webcamp-timelapse.mp4

    ./create-movies.sh
    
  2. 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