The timelapse.sh script is a utility for capturing photos and using ffmpeg to create a timelapse using a connected camera.
- Capture images at regular intervals
- Generate timelapse videos from captured images
- Customizable capture settings (interval, duration, output format, etc.)
-
Clone the repository:
git clone https://github.com/wangombe-g/timelapse.git
-
Navigate to the project directory:
cd timelapse -
Run
chmod +x timelapse.sh -
Run the
./timelapse.shscript:./timelapse.sh 1.5 8
-
The captured images will be stored in the
timelapse/timelapsedirectory, and the timelapse video will be saved asoutput/{current_data}.mp4.
You can customize the following settings in the config.sh file:
INTERVAL: Time interval between each capture (in seconds)DURATION: Total duration of the timelapse (in minutes)
Usage:
./timelapse.sh <duration in hours> <interval in seconds>"
Example:
./timelapse.sh 1 5 will capture images for 1 hour at an interval of 5 seconds.
You're welcome to suggest an area of improvement through a pull request.
This project is licensed under the MIT License.