timelapse: capture from both cameras

This commit is contained in:
2025-02-20 12:22:30 +02:00
parent efbd4aa109
commit 19a85d2c7c

View File

@@ -15,11 +15,17 @@ let
DATE=''${NOW%_*}
TIME=''${NOW#*_}
mkdir -p /var/lib/timelapse-r11/"''${DATE}"
exec ffmpeg -y \
ffmpeg -y \
-rtsp_transport tcp \
-i "rtsp://frigate:''${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=2&subtype=0" \
-vframes 1 \
/var/lib/timelapse-r11/"''${DATE}"/"''${TIME}.jpg"
/var/lib/timelapse-r11/"''${DATE}"/ptz-"''${TIME}.jpg" || :
exec ffmpeg -y \
-rtsp_transport tcp \
-i "rtsp://frigate:''${FRIGATE_RTSP_PASSWORD}@192.168.188.10/cam/realmonitor?channel=1&subtype=0" \
-vframes 1 \
/var/lib/timelapse-r11/"''${DATE}"/panorama-"''${TIME}.jpg"
'';
};
in