I have a RPi running Raspbmc and I connected an old Mustek VCAM-300 webcam via a powered USB hub. I can get screenshots from it using:
Code: Select all
streamer -c /dev/video0 -b 10 -o /home/pi/outfile.jpegCode: Select all
v4l2: ioctl(fildes = 3 "/dev/video0 (deleted)", request = VIDIOC_DQBUF, struct v4l2_buffer *data = { index = 0, type = V4L2_BUF_TYPE_VIDEO_CAPTURE, memory = V4L2_MEMORY_MMAP }) failed, No such device (19, ENODEV)
libv4l2: error dequeuing buf: No such device
v4l2: ioctl(fildes = 3 "/dev/video0 (deleted)", request = VIDIOC_DQBUF, struct v4l2_buffer *data = { index = 0, type = V4L2_BUF_TYPE_VIDEO_CAPTURE, memory = V4L2_MEMORY_MMAP }) failed, No such device (19, ENODEV)^C
^C - one moment please
libv4l2: error turning off stream: No such device
ioctl VIDIOC_STREAMOFF: No such device
v4l2: ioctl(fildes = 3 "/dev/video0 (deleted)", 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
Code: Select all
pi@raspberrypi ~ $ streamer -c /dev/video0 -b 10 -o /home/pi/outfile5.jpeg
files / video: JPEG (JFIF) / audio: none
v4l2: open: open(pathname = "/dev/video0", flags = O_RDWR) failed, No such file or directory (2, ENOENT) because there is no "video0" regular file in the pathname "/dev" directory; did you mean the "video1" usb video4linux character special device instead?
vid-open: failed: libv4l
no grabber device available
Here's another example when I execute the command several times in a row:
Code: Select all
pi@raspberrypi ~ $ streamer -b 10 -o /home/pi/outfile5.jpeg
files / video: JPEG (JFIF) / audio: none
pi@raspberrypi ~ $ streamer -b 10 -o /home/pi/outfile5.jpeg
files / video: JPEG (JFIF) / audio: none
libv4l2: error turning on stream: Connection timed out
v4l2: ioctl(fildes = 3 "/dev/video0", request = VIDIOC_STREAMON, int *data = { V4L2_BUF_TYPE_VIDEO_CAPTURE }) failed, Connection timed out (110, ETIMEDOUT)
v4l2: oops: select timeout
v4l2: oops: select timeout
v4l2: oops: select timeout
^C^C - one moment please
