diff --git a/cgi_camera.sh b/cgi_camera.sh index 214f0b8..2aff080 100644 --- a/cgi_camera.sh +++ b/cgi_camera.sh @@ -3,7 +3,8 @@ echo "Content-type: image/jpeg" echo "" -#ffmpeg -f video4linux2 -i /dev/video0 -vframes 1 -video_size 1920x1080 -quality 40 -c:v webp -f image2pipe - -fswebcam -q -d /dev/video0 -r 960x540 --jpeg 50 --no-timestamp --title "$(date)" - +# -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)" - exit $? \ No newline at end of file