|
- pi[url=home.php?mod=space&uid=3649]@RaspberryPi[/url] ~ $ cat cam.sh
- sudo rm yeelink2.png -f
- sudo fswebcam --png 9 -d /dev/video0 -r 320x240 --bottom-banner --title "RaspberryPi @ Yeelink" /home/pi/yeelink2.png
- pi@raspberrypi ~ $ sh cam.sh
- --- Opening /dev/video0...
- Trying source module v4l2...
- /dev/video0 opened.
- No input was specified, using the first.
- --- Capturing frame...
- gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x00 0xa2
- Captured frame in 0.00 seconds.
- --- Processing captured image...
- Setting output format to PNG, quality 9
- Putting banner at the bottom.
- Setting title "RaspberryPi @ Yeelink".
- Writing PNG image to '/home/pi/yeelink2.png'.
复制代码 gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x00 0xa2 |
|