Docker container for save RTSP frames from multiple sources in attached volume data
.
git clone https://github.com/annndruha/rtsp_recorder && cd rtsp_recorder
Copy template setting.json
mv settings_example.json settings.json
Change rtsp_sources_list
links in settings.json (and other parameters if you want)
{
"rtsp_sources_list": [
"rtsp://login:password@source1.com:5554/additional/url",
"rtsp://login:password@source2.com:5554/additional/url"
],
"time_zone_delta": 3,
"delay": 60,
"resize_to": [1920, 1080],
"skip_frames": 1
}
docker compose up -d
Docker create a volume named data
and starts save frames form different sources in corresponding folders.
The script read settings.json in runtime loop. So, you can add or remove sources and change delay without restarting a container.