Timelapse Maker is a Python-based tool to create stunning camera timelapses. It supports desktop PCs, Raspberry Pis, and MacBooks, providing a simple setup process and flexible customization options.
- Python >= 3.8
- Git
- macOS or Linux (Windows support is experimental)
- Homebrew (for macOS users)
git clone https://github.com/Infatoshi/timelapse-maker
cd timelapse-maker
python3 -m venv .venv
source .venv/bin/activatesudo apt install ffmpeg fswebcampip install opencv-python numpy
brew install ffmpeg- Open Command Prompt (
Win + R, then typecmd). - Navigate to the project folder:
cd C:\User\Desktop\python-projs\timelapse-maker
- Activate the virtual environment and install dependencies:
.venv\Scripts\activate.bat pip install opencv-python
Run the following command to capture frames for the timelapse:
python capture_timelapse.py --hours 12 --interval 15--hours: Duration of the timelapse capture.--interval: Time (in seconds) between each frame. A shorter interval makes the timelapse smoother.
After capturing frames, convert them into a video:
python create_timelapse.py- Note: This script uses a custom FFmpeg command and is supported on macOS and Linux.
If you have multiple cameras (including virtual ones), adjust the camera index in the script:
- Default:
device=0 - Increment the value (e.g.,
device=1,device=2, etc.) until the correct camera is used.
Captured frames are stored in the timelapse_images directory for review.
- This script overlays a clock on your timelapse frames.
- Requires
opencv-python. Install it manually:pip install opencv-python
- Note: Installation on Raspberry Pi might throw errors. This dependency is excluded from the default setup to ensure smooth installation.
This project is licensed under the MIT License.
Feel free to suggest further improvements or report issues! 🚀