timelapse-generator

timelapse generation using ffmpeg

Overview

Ever heard of ffmpeg? This is a bash script to generate a timelapse video from a video source using the ffmpeg CLI tool.

Requirements

Ensure you have ffmpeg installed on your system.

Usage

  1. Navigate to the timelapse-generator directory:

    cd timelapse-generator
  2. Run the script with the following command:

    sudo bash ./generate_timelapse.sh ~/path/to/destination/folder ~/path/to/video/source
  3. You can adjust the number of frames per second by modifying the -r 1 attribute in the script to -r <any number of frames>

    # Adjust frames per second as needed, example:
    ffmpeg -i "$filename" -r 10 -f image2 "$temp_dir/%05d.png"

    Note: the higher the framerate the slower the video. This means you can generate a slow motion video too.