This is a Docker and Docker Compose based solution for recording 5 RTSP streams using FFmpeg and Bash scripts. It provides the following functionality:
- Record each stream as 10 minutes clips
- At the end of the day, the clips will be merged into one 24 hour video
- Create a timelapse video of the past day's footage
- Cleanup old recorded videos if disk space is running low
- Make sure you have Docker and Docker Compose installed.
- Update the RTSP stream URLs in the
docker-compose.yml
configuration file. - Run
docker-compose up -d
to start the recording and merging containers. - The recorded videos will be saved in the
output
directory.
- recorder: container that records the RTSP streams
- merger: container that runs a cronjob at the end of the day to merge the clips and create a timelapse video
- If you encounter any issues while running the containers, you can check the logs by running
docker logs [container-name]
. - If you continue to have trouble, please open an issue on the project's Github page.
If you want to contribute to this project, you can create a fork and send a pull request.
This project is licensed under the MIT License.