From 0e5e8816709390b6b092bb66c37a790b777d3643 Mon Sep 17 00:00:00 2001 From: tjw Date: Mon, 21 Feb 2022 06:28:09 -0500 Subject: [PATCH] Add 'cgi_camera.sh' --- cgi_camera.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cgi_camera.sh diff --git a/cgi_camera.sh b/cgi_camera.sh new file mode 100644 index 0000000..214f0b8 --- /dev/null +++ b/cgi_camera.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +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)" - + +exit $? \ No newline at end of file