From: tosiara <to...@gm...> - 2013-07-16 13:14:48
|
Hi, I'm having strange issue when motion fails with error: Video device fatal error - Closing video device Closing video device /dev/video0 Since that motion fails to open camera even if I kill it and start again. I get this infinite sequence: root@mk808:/root# motion -c motion.conf -n [0] Processing thread 0 - config file motion.conf [0] Motion 3.2.12 Started [0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784 [0] Thread 1 is from motion.conf [1] Thread 1 started [0] motion-httpd/3.2.12 running, accepting connections [1] cap.driver: "uvcvideo" [1] cap.card: "UVC Camera (046d:080a)" [1] cap.bus_info: "usb-usb20_host-1" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [0] motion-httpd: waiting for data on port TCP 8080 [1] Config palette index 2 (MJPG) doesn't work. [1] Supported palettes: [1] 0: YUYV (YUV 4:2:2 (YUYV)) [1] 1: MJPG (MJPEG) [1] Selected palette YUYV [1] VIDIOC_TRY_FMT failed for format YUYV: Input/output error [1] Unable to find a compatible palette format. [1] ioctl (VIDIOCGCAP): Invalid argument [1] Could not fetch initial image from camera [1] Motion continues using width and height from config file(s) [1] Resizing pre_capture buffer to 1 items [1] Started stream webcam server in port 8081 [1] Resizing pre_capture buffer to 5 items [1] Retrying until successful connection with camera [1] cap.driver: "uvcvideo" [1] cap.card: "UVC Camera (046d:080a)" [1] cap.bus_info: "usb-usb20_host-1" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Config palette index 2 (MJPG) doesn't work. [1] Supported palettes: [1] 0: YUYV (YUV 4:2:2 (YUYV)) [1] 1: MJPG (MJPEG) [1] Selected palette YUYV [1] VIDIOC_TRY_FMT failed for format YUYV: Input/output error [1] Unable to find a compatible palette format. [1] ioctl (VIDIOCGCAP): Invalid argument [1] Retrying until successful connection with camera [1] cap.driver: "uvcvideo" [1] cap.card: "UVC Camera (046d:080a)" [1] cap.bus_info: "usb-usb20_host-1" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING There is workaround to unplug and replug the camera. But I can't do this remotely. I noticed, if I run VLC and capture some frames from the camera - after that I again can use motion - it starts without any issues. Some time ago I have posted this to SupportRequest of Kenneth Lavrsen home page, but did not receive any suggestion: http://www.lavrsen.dk/foswiki/bin/view/Motion/SupportQuestion2012x01x28x093058 This happens on both x86 PC and ARM stick MK808 using same camera - Logitech C905 So anybody knows why motion fails and why VLC is able to fix it? Thanks |