Commit 7000b14

xxwhirlpool  ·  2026-08-22 13:29:20 -0400 EDT
parent 54dff1b
webcamimg, misc
2 files changed,  +12, -3
+12, -3
......@@ -6,12 +6,21 @@ if [[ "$(hostname)" != "mariposa" ]]; then
66 exit 1
77 fi
88
9+# vars
910 PICPATH="/home/kat/Pictures/Camera/webcam"
11+# PIC="$PICPATH/webcam_pic_$(today time)_%3d.jpeg"
12+PIC="$PICPATH/webcam_pic_$(today time)"
1013
1114 # turn on webcam for a bit so the brightness isn't fucked
12-echo "starting camera, wait 5s"
15+echo -e "starting camera, wait 5s\n"
1316 timeout 5s v4l2-ctl --silent -d /dev/video0 -d0 --stream-mmap
1417
1518 # take the pic
16-echo "taking the pic!"
17-ffmpeg -f video4linux2 -i /dev/video0 -vframes 5 -video_size 1920x1080 "$PICPATH/webcam_pic_$(today time)_%3d.jpeg" -hide_banner -loglevel error
19+echo -e "taking the pics!\n"
20+ffmpeg -f video4linux2 -i /dev/video0 -vframes 3 -video_size 1920x1080 "$PIC-%3d.jpeg" -hide_banner -loglevel error
21+
22+# print the paths to pics
23+echo -e "here's your pics!\n"
24+realpath "$PIC-001.jpeg"
25+realpath "$PIC-002.jpeg"
26+realpath "$PIC-003.jpeg"
+0, -0
Binaries are not rendered as diffs.