Add 'cgi_camera.sh'

This commit is contained in:
tjw 2022-02-21 06:28:09 -05:00
parent 7442b242a7
commit 0e5e881670
1 changed files with 9 additions and 0 deletions

9
cgi_camera.sh Normal file
View File

@ -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 $?