Update 'cgi_camera.sh'

This commit is contained in:
tjw 2022-02-26 09:16:18 -05:00
parent e90bafba36
commit 7d517a504f
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@
echo "Content-type: image/jpeg" echo "Content-type: image/jpeg"
echo "" echo ""
#ffmpeg -f video4linux2 -i /dev/video0 -vframes 1 -video_size 1920x1080 -quality 40 -c:v webp -f image2pipe - # -S will skip the first n frames. This is useful as may webcams will have incorrect exposure on the first couple frames.
fswebcam -q -d /dev/video0 -r 960x540 --jpeg 50 --no-timestamp --title "$(date)" - # -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)" -
exit $? exit $?