Gostaria de tirar instantâneos de uma webcam USB conectada ao meu Raspberry Pi:
Primeiro, verifiquei o dispositivo:
pi@raspberrypi ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0ac8:332d Z-Star Microelectronics Corp. Vega USB 2.0 Camera
Quando estou tentando capturar uma imagem, estou recebendo o seguinte erro:
pi@raspberrypi ~ $ fswebcam -d /dev/video0 -r 640x480 test.jpeg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Timed out waiting for frame!
No frames captured.
Qual pode ser o problema, eu testei esse método no Ubuntu com sucesso. Qual pode ser o problema no Debian?
Usando um hub USB:
pi@raspberrypi ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 006: ID 0ac8:332d Z-Star Microelectronics Corp. Vega USB 2.0 Camera
pi@raspberrypi ~ $ fswebcam -d /dev/video0 -r 640x480 test.jpeg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Timed out waiting for frame!
No frames captured.