Quick question really. My Logitech C270 cam is stopping within motion on the RasPi even during periods of no detection.
I have run motion and copied the shell information here:
pi@raspberrypi ~ $ sudo motion
[0] Processing thread 0 - config file /home/pi/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784
[0] Thread 1 is from /home/pi/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "UVC Camera (046d:0825)"
[1] cap.bus_info: "usb-bcm2708_usb-1.2.3"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Test palette YUYV (352x288)
[1] Using palette YUYV (352x288) bytesperlines 704 sizeimage 202752 colorspace 00000008
[1] found control 0x00980900, "Brightness", range 0,255
[1] "Brightness", default -8193, current 128
[1] found control 0x00980901, "Contrast", range 0,255
[1] "Contrast", default 57343, current 32
[1] found control 0x00980902, "Saturation", range 0,255
[1] "Saturation", default 57343, current 32
[1] found control 0x00980913, "Gain", range 0,255
[1] "Gain", default 57343, current 32
[1] mmap information:
[1] frames=4
[1] 0 length=202752
[1] 1 length=202752
[1] 2 length=202752
[1] 3 length=202752
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
Some time later
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 1): Input/output error
Some time later
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0): Input/output error
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 2): Input/output error
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[0] Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] Calling vid_close() from motion_cleanup
[0] Closing video device /dev/video0
The only way I seem to be able to recover is a reboot after this.
Other information
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 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
The Pi has its own RS power supply and the camera is off a 4 port powered USB hub to negate any PSU issues.
Can someone help by telling me if this looks like a V4L2 problem, or a motion problem, or how to get more information to determine?
Cheers
Adrian