I'm able to grab a single snapshot just fine:
Code: Select all
pi@raspberrypi ~ $ streamer -c /dev/video0 -o test.jpeg -s 640x480 -t 1
files / video: JPEG (JFIF) / audio: none
Code: Select all
pi@raspberrypi ~ $ streamer -c /dev/video0 -o test000.jpeg -s 640x480 -t 5
files / video: JPEG (JFIF) / audio: none
libv4l2: error turning off stream: No such device
ioctl VIDIOC_STREAMOFF: No such device
v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_REQBUFS, struct v4l2_requestbuffers *data = { count = 0, type = V4L2_BUF_TYPE_VIDEO_CAPTURE, memory = V4L2_MEMORY_MMAP }) failed, Device or resource busy (16, EBUSY) because the video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_REQBUFS system call from operating
Running dmesg, I see this:
Code: Select all
...
[ 359.453247] gspca: ISOC data error: [22] len=0, status=-4004
[ 359.453263] gspca: ISOC data error: [23] len=0, status=-4004
[ 359.474263] sonixj: reg_w1 err -32
[ 359.476854] gspca: ISOC data error: [0] len=0, status=-4004
[ 359.476878] gspca: ISOC data error: [1] len=0, status=-4004
...
[ 359.861259] gspca: ISOC data error: [22] len=0, status=-4004
[ 359.861275] gspca: ISOC data error: [23] len=0, status=-4004
[ 359.883987] hub 1-1.2:1.0: port 2 disabled by hub (EMI?), re-enabling...
[ 359.884861] gspca: ISOC data error: [0] len=0, status=-4004
[ 359.884888] gspca: ISOC data error: [1] len=0, status=-4004
...
[ 359.885242] gspca: ISOC data error: [22] len=0, status=-4004
[ 359.885259] gspca: ISOC data error: [23] len=0, status=-4004
[ 359.886114] usb 1-1.2.2: USB disconnect, device number 5
[ 360.153854] usb 1-1.2.2: new full speed USB device number 7 using dwc_otg
[ 360.255837] usb 1-1.2.2: New USB device found, idVendor=045e, idProduct=00f5
[ 360.255886] usb 1-1.2.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 360.255908] usb 1-1.2.2: Product: USB camera
[ 360.259664] input: sonixj as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2/input/input1
I also tried it on a different webcam, with similar results.
Is this a power issue? The HUB not being able to feed the webcam with enough power for repeating action? Or is it something else?