timelapse: capture from both cameras
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user