BUG: Problem with "grey" video from motion
Video goes to the grey screen with message "Unable to open Video Device since <date>" printed top left after random time of motion running. Grey video may has a long time period or just a few seconds. If you kill motion and start again during "Grey" video period it becomes normal video again. When video goes to grey I have such log as below.
Please help me with grey screen . I used different builds of motion and ffmpeg and always got such result.
ct 1 11:18:57 artixvideo motion: [0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
Oct 1 11:18:57 artixvideo motion: [0] Thread 1 is from /etc/motion/motion.conf
Oct 1 11:18:57 artixvideo motion: [0] motion-httpd/3.2.11 running, accepting connections
Oct 1 11:18:57 artixvideo motion: [0] motion-httpd: waiting for data on port TCP 8080
Oct 1 11:18:57 artixvideo motion: [1] Thread 1 started
Oct 1 11:18:57 artixvideo motion: [1] cap.driver: "uvcvideo"
Oct 1 11:18:57 artixvideo motion: [1] cap.card: "USB2.0 PC CAMERA"
Oct 1 11:18:57 artixvideo motion: [1] cap.bus_info: "usb-0000:00:10.0-2"
Oct 1 11:18:57 artixvideo motion: [1] cap.capabilities=0x04000001
Oct 1 11:18:57 artixvideo motion: [1] - VIDEO_CAPTURE
Oct 1 11:18:57 artixvideo motion: [1] - STREAMING
Oct 1 11:18:57 artixvideo motion: [1] Supported palettes:
Oct 1 11:18:57 artixvideo motion: [1] 0: MJPG (MJPEG)
Oct 1 11:18:57 artixvideo motion: [1] index_format 2 Test palette MJPG (320x240)
Oct 1 11:18:57 artixvideo motion: [1] Using palette MJPG (320x240) bytesperlines 0 sizeimage 153600 colorspace 00000000
Oct 1 11:18:57 artixvideo motion: [1] VIDIOC_G_JPEGCOMP not supported but it should be (does your webcam driver support this ioctl?)
Oct 1 11:18:57 artixvideo motion: [1] found control 0x00980900, "Brightness", range 0,255
Oct 1 11:18:57 artixvideo motion: [1] #011"Brightness", default 127, current 127
Oct 1 11:18:57 artixvideo motion: [1] found control 0x00980901, "Contrast", range 0,255
Oct 1 11:18:57 artixvideo motion: [1] #011"Contrast", default 127, current 127
Oct 1 11:18:57 artixvideo motion: [1] found control 0x00980902, "Saturation", range 0,255
Oct 1 11:18:57 artixvideo motion: [1] #011"Saturation", default 127, current 127
Oct 1 11:18:57 artixvideo motion: [1] found control 0x00980903, "Hue", range -128,127
Oct 1 11:18:57 artixvideo motion: [1] #011"Hue", default -5, current -5
Oct 1 11:18:57 artixvideo motion: [1] found control 0x00980910, "Gamma", range 1,16
Oct 1 11:18:57 artixvideo motion: [1] #011"Gamma", default 9, current 9
Oct 1 11:18:57 artixvideo motion: [1] found control 0x00980913, "Gain", range 0,65535
Oct 1 11:18:57 artixvideo motion: [1] #011"Gain", default 16, current 0
Oct 1 11:18:57 artixvideo motion: [1] mmap information:
Oct 1 11:18:57 artixvideo motion: [1] frames=4
Oct 1 11:18:57 artixvideo motion: [1] 0 length=153600
Oct 1 11:18:57 artixvideo motion: [1] 1 length=153600
Oct 1 11:18:57 artixvideo motion: [1] 2 length=153600
Oct 1 11:18:57 artixvideo motion: [1] 3 length=153600
Oct 1 11:18:57 artixvideo kernel: [ 1401.857895] uvcvideo: device USB2.0 PC CAMERA requested null bandwidth, defaulting to lowest.
Oct 1 11:18:57 artixvideo motion: [1] Resizing pre_capture buffer to 1 items
Oct 1 11:18:59 artixvideo motion: [1] Started stream webcam server in port 8088
Oct 1 11:18:59 artixvideo motion: [1] Resizing pre_capture buffer to 4 items
Oct 1 11:39:01 artixvideo CRON[1595]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Oct 1 12:03:08 artixvideo motion: [1] Video device fatal error - Closing video device
Oct 1 12:03:08 artixvideo motion: [1] Closing video device /dev/video0
Oct 1 12:03:10 artixvideo motion: [1] Retrying until successful connection with camera
Oct 1 12:03:10 artixvideo motion: [1] cap.driver: "uvcvideo"
Oct 1 12:03:10 artixvideo motion: [1] cap.card: "USB2.0 PC CAMERA"
Oct 1 12:03:10 artixvideo motion: [1] cap.bus_info: "usb-0000:00:10.0-2"
Oct 1 12:03:10 artixvideo motion: [1] cap.capabilities=0x04000001
Oct 1 12:03:10 artixvideo motion: [1] - VIDEO_CAPTURE
Oct 1 12:03:10 artixvideo motion: [1] - STREAMING
Oct 1 12:03:10 artixvideo motion: [1] Supported palettes:
Oct 1 12:03:10 artixvideo motion: [1] 0: MJPG (MJPEG)
Oct 1 12:03:10 artixvideo motion: [1] index_format 2 Test palette MJPG (320x240)
Oct 1 12:03:10 artixvideo motion: [1] Using palette MJPG (320x240) bytesperlines 0 sizeimage 153600 colorspace 00000000
Oct 1 12:03:10 artixvideo motion: [1] VIDIOC_G_JPEGCOMP not supported but it should be (does your webcam driver support this ioctl?)
Oct 1 12:03:10 artixvideo motion: [1] found control 0x00980900, "Brightness", range 0,255
Oct 1 12:03:10 artixvideo motion: [1] #011"Brightness", default 127, current 127
Oct 1 12:03:10 artixvideo motion: [1] found control 0x00980901, "Contrast", range 0,255
Oct 1 12:03:10 artixvideo motion: [1] #011"Contrast", default 127, current 127
Oct 1 12:03:10 artixvideo motion: [1] found control 0x00980902, "Saturation", range 0,255
Oct 1 12:03:10 artixvideo motion: [1] #011"Saturation", default 127, current 127
Oct 1 12:03:10 artixvideo motion: [1] found control 0x00980903, "Hue", range -128,127
Oct 1 12:03:10 artixvideo motion: [1] #011"Hue", default -5, current -5
Oct 1 12:03:10 artixvideo motion: [1] found control 0x00980910, "Gamma", range 1,16
Oct 1 12:03:10 artixvideo motion: [1] #011"Gamma", default 9, current 9
Oct 1 12:03:10 artixvideo motion: [1] found control 0x00980913, "Gain", range 0,65535
Oct 1 12:03:10 artixvideo motion: [1] #011"Gain", default 16, current 0
Oct 1 12:03:10 artixvideo motion: [1] mmap information:
Oct 1 12:03:10 artixvideo motion: [1] frames=4
Oct 1 12:03:10 artixvideo motion: [1] 0 length=153600
Oct 1 12:03:10 artixvideo motion: [1] 1 length=153600
Oct 1 12:03:10 artixvideo motion: [1] 2 length=153600
Oct 1 12:03:10 artixvideo motion: [1] 3 length=153600
Oct 1 12:03:10 artixvideo kernel: [ 4054.318069] uvcvideo: device USB2.0 PC CAMERA requested null bandwidth, defaulting to lowest.
Oct 1 12:03:10 artixvideo motion: [1] Video device fatal error - Closing video device
Oct 1 12:03:10 artixvideo motion: [1] Closing video device /dev/video0
Oct 1 12:03:20 artixvideo motion: [1] Retrying until successful connection with camera
Oct 1 12:03:20 artixvideo motion: [1] cap.driver: "uvcvideo"
Oct 1 12:03:20 artixvideo motion: [1] cap.card: "USB2.0 PC CAMERA"
Oct 1 12:03:20 artixvideo motion: [1] cap.bus_info: "usb-0000:00:10.0-2"
Oct 1 12:03:20 artixvideo motion: [1] cap.capabilities=0x04000001
Oct 1 12:03:20 artixvideo motion: [1] - VIDEO_CAPTURE
Oct 1 12:03:20 artixvideo motion: [1] - STREAMING
Environment
Motion version: |
3.2.11 |
ffmpeg version: |
SVN-r0.5.1-4:0.5.1-1ubuntu1 |
Shared libraries: |
ffmpeg, mysql |
Server OS: |
Ubuntu 10.04, kernel |
--
AndreyChayka - 01 Oct 2010
Follow up
Fix record