fswebcam 十有八九 报gd-jpeg: JPEG library reports unrecoverable error
pi@RaspberryPi ~ $ 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 猜测和摄像头有关。
从出错信息看,还没有得到摄像头的可靠数据流。
有参数,可以跳过一开始的 多少帧,等摄像头稳定了,就应该没有问题了。 每分钟截图一张,10张 有 8张报错。 joyhope 发表于 2013-1-12 12:18 static/image/common/back.gif
猜测和摄像头有关。
从出错信息看,还没有得到摄像头的可靠数据流。
哪个参数? 顶一下,问题解决了吗?我也遇到相同的问题
页:
[1]