Motion captures corrupted image
Question
I am seeing corrupted images triggering motion detection. It does not always happen and not easy to reproduce, but it does trigger motion detection and I was wondering if there is anything i can do to prevent this.
Here is a copy of the image:
http://img.ly/DOEG
No error messages in the log or console
sudo /usr/bin/motion motion -n -d 100
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[0] motion-httpd/3.2.12 running, accepting connections
[1] cap.card: "USB 2.0 Camera"
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.bus_info: "usb-3f980000.usb-1.2"
[1] cap.capabilities=0x84200001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[1] - CAMERA
[1] Device doesn't support VIDIOC_G_STD
[1] Config palette index 7 (422P) doesn't work.
[1] Supported palettes:
[1] 0: MJPG (MJPEG)
[1] 1: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] Test palette YUYV (1280x1024)
[1] Adjusting resolution from 1280x1024 to 1280x720.
[1] Using palette YUYV (1280x720) bytesperlines 2560 sizeimage 1843200 colorspace 00000008
[1] found control 0x00980900, "Brightness", range -128,127
[1] "Brightness", default -8193, current 0
[1] found control 0x00980901, "Contrast", range 0,255
[1] "Contrast", default 57343, current 128
[1] found control 0x00980902, "Saturation", range 1,128
[1] "Saturation", default 57343, current 64
[1] found control 0x00980903, "Hue", range -40,40
[1] "Hue", default -8193, current 0
[1] found control 0x00980910, "Gamma", range 72,500
[1] "Gamma", default 57343, current 100
[1] found control 0x00980913, "Gain", range 0,100
[1] "Gain", default 57343, current 0
[1] mmap information:
[1] frames=4
[1] 0 length=1843200
[1] 1 length=1843200
[1] 2 length=1843200
[1] 3 length=1843200
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] Started stream webcam server in port 8081
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
0.8.17-6:0.8.17-1+rpi1 |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
RPI debian |
--
MishaBirman - 29 Jul 2016
Answer