cgi_ip_camera/cgi_camera.sh

10 lines
381 B
Bash
Raw Permalink Normal View History

2022-02-21 11:28:09 +00:00
#!/bin/sh
echo "Content-type: image/jpeg"
echo ""
2022-02-26 14:16:18 +00:00
# -S will skip the first n frames. This is useful as may webcams will have incorrect exposure on the first couple frames.
# -F will capture n frames and merge them into one image. This reduces noise, but will make motion blury.
fswebcam -q -d /dev/video0 -r 960x540 --jpeg 50 -S 4 -F 4 --no-timestamp --title "$(date)" -
2022-02-21 11:28:09 +00:00
exit $?