config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit 59d7d8560f04cfa4c28a98f71095380b68dafb10
parent bbfa0d4603463fa2094dc766db0d81061700e1bc
Author: dwrz <dwrz@dwrz.net>
Date:   Thu,  8 Dec 2022 11:56:01 +0000

Fix snapshot script

Diffstat:
Mscripts/snapshot | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/scripts/snapshot b/scripts/snapshot @@ -5,9 +5,8 @@ if [[ $1 != "" ]]; then device="${/dev/video$1}" fi -date="$(date -u +'%Y-%m-%dT%H:%M:%S%:z')" - ffmpeg -f video4linux2 \ + -video_size "1920x1280" \ -i "$device" \ - -vframes 1 \ - "snapshot-${date}.jpg" + -frames:v 1 \ + -strftime 1 "${HOSTNAME}_%Y-%m-%dT%H-%M-%S%z.jpg"