RTSP-Timelapse is a Docker-based project that captures images from an RTSP stream at regular intervals and compiles them into a timelapse video. It also includes a mobile-ready web interface to display the latest image and status.
- Captures still images from an RTSP stream at regular intervals.
- Compiles the captured images into a timelapse video.
- Provides a mobile-ready web interface for real-time updates.
- Allows standalone execution of various Python scripts.
The behavior of the timelapse creation is controlled by environment variables. These can be set in a .env
file for development or directly in the docker-compose.yaml
file for deployment.
Refer to config.py
for a description of each environment variable.
- Create a
.env
file in the root directory. - Set the necessary environment variables as described in
config.py
. - The Python script
main.py
uses these variables to control the behavior of the timelapse creation. - Various Python scripts can be run standalone for testing or specific tasks.
To execute standalone scripts when running with Docker Compose, follow these steps:
- Ensure that your Docker Compose application is running. If not, start it with
docker-compose up -d
. - Use the
docker-compose exec
command to run your script. Replaceservice_name
with the name of the service defined in yourdocker-compose.yaml
file andscript.py
with the name of your Python script.docker-compose exec service_name python script.py
This command will executescript.py
in the context of theservice_name
service container.
- Set the environment variables directly in the
docker-compose.yaml
file. - Use Docker Compose to build and run the application.