Vorrei scattare istantanee da una webcam USB collegata al mio Raspberry Pi:
Innanzitutto, ho controllato il 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 provo a catturare un'immagine, ricevo il seguente errore:
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.
Quale può essere il problema, ho provato questo metodo su Ubuntu con successo. Quale può essere il problema su Debian?
Utilizzando un 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.