Motion - Support Question 2009x 07x 10x 173859

Many destroyed frames ==> permanent motion detect

Question

First of all let me say thanks to this very powerfull program and all the time you've probably spent to realise it !

I'am not sure if it is a bug - and because it is the first time I'am posting to your wiki I think this here is an appropriate place to send this ......

I tried to install it on an EEEPC 701, which ist running EasyPeasy (= Ubuntu 8.10). Kernel 2.6.27-11-eeepc #3 SMP Sat Feb 7 14:18:54 MST 2009 i686 GNU/Linux

The internal WebCam is driven by uvcvideo (see below). I first took the motion package from ubuntu 8.10 - currently: 3.2.9-7 0 500 http://de.archive.ubuntu.com intrepid/universe Packages

Cause of the problems with motion I took the actual version 3.2.11 via svn and compiled it myself. During my experiments I've updated the kernel-image to the latest version cause of the uvcvideo driver.

But nothing solved the situation.

The problem is that motion is grabbing frequently destroyed frames - green and violet pictures, or pictures divided into 4 parts. Of course these pictures are marked as an motion detection. So you can't use motion on that eeepc machine.

It seems to depend on the light situation. Indoor with neon light this occurs not very often, but observing outdoor its massive, nearly unuseable.

I played around with nearly all parameters of motion.conf, but did not find a way to fix it with my possiblities.

CPU load of motion is between 3 to 8 %.

Pehaps (probably) it is a driver issue - there is a parameter quirks, I tried it out with different values without success, but the truth is that didn't find an explanation of its usage.

Last action today:

I've compiled the svn for Xandros (EEE PC original os) cause they are using other drivers. hell to fullfill all dependencies but at the end same result. Many destroyed pictures.....

EDIT: Really last action today:

I've connected an

Bus 001 Device 002: ID 046d:08d9 Logitech, Inc. QuickCam IM/Connect

to the eeepc which is served by gspca driver - and with that device motion is running perfectly !!!

greetz

klaus

[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2-branch-r430 Started
[0] ffmpeg LIBAVCODEC_BUILD 3355136 LIBAVFORMAT_BUILD 3409664
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "UVC Camera (eb1a:2761)"
[1] cap.bus_info: "0000:00:1d.7"
[1] cap.capabilities=0x04000001
[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] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] 1: UYVY (YUV 4:2:2 (UYVY))
[1] index_format 5 Test palette UYVY (352x288)
[0] motion-httpd/3.2-branch-r430 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Using palette UYVY (352x288) bytesperlines 704 sizeimage 202752 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,255
[1]     "Brightness", default 128, current 165
[1] found control 0x00980901, "Contrast", range 0,31
[1]     "Contrast", default 16, current 16
[1] found control 0x00980902, "Saturation", range 0,31
[1]     "Saturation", default 18, current 16
[1] found control 0x00980910, "Gamma", range 0,63
[1]     "Gamma", default 32, 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
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] event_ffmpeg_newfile FPS 2
[1] ffmpeg_open FPS 2
[1] File of type 8 saved to: /tmp/motion/swf/01-20090710170648.swf
[1] File of type 1 saved to: /tmp/motion/01-20090710170648-01.jpg
^C
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 1
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] DEBUG-1 threads_running 0 motion_threads_running 0 , finish 1
[0] Motion terminating

lsusb:
Bus 004 Device 003: ID eb1a:2761 eMPIA Technology, Inc.

modinfo uvcvideo:
filename:       /lib/modules/2.6.27-8-eeepc/kernel/drivers/media/video/uvc/uvcvideo.ko
version:        v0.1.0
license:        GPL
description:    USB Video Class driver
author:         Laurent Pinchart <laurent.pinchart@skynet.be>
srcversion:     823C9DC857D42B407CD9FC1
alias:          usb:v*p*d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v064EpA115d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0303d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0300d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0200d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0141d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0102d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0101d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0100d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v1C4Fp3000d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v19ABp1000d00*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v19ABp1000d01[0-1]*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v19ABp1000d012[0-6]dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v18CDpCAFEd*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v174Fp8A33d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v174Fp8A31d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v174Fp5212d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v0E8Dp0004d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v090CpB371d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v05E3p0505d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v05ACp8501d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v046Dp08C7d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C6d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C5d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C3d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C2d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C1d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v045Ep0723d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v045Ep00F8d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v041Ep4057d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v0402p5606d*dc*dsc*dp*ic0Eisc01ip00*
depends:        usbcore,videodev,v4l1-compat,compat_ioctl32
vermagic:       2.6.27-8-eeepc SMP mod_unload modversions PENTIUMM
parm:           quirks:Forced device quirks (uint)
parm:           trace:Trace level bitmask (uint)


uname -a
Linux ubu-laptop 2.6.27-8-eeepc #1 SMP Sun Nov 16 12:02:12 MST 2008 i686 GNU/Linux


and on Xandros

Linux asus-242964457 2.6.21.4-eeepc #6 Mon May 5 11:38:34 EDT 2008 i686 GNU/Linux

asus-242964457:/etc/motion> modinfo uvcvideo
filename:       /lib/modules/2.6.21.4-eeepc/uvcvideo/uvcvideo.ko
author:         Laurent Pinchart <laurent.pinchart@skynet.be> Mod rv189
description:    USB Video Class driver
description:    SVN r2008.02.27
license:        GPL
vermagic:       2.6.21.4-eeepc mod_unload PENTIUMM
depends:        usbcore,videodev,v4l2-common,v4l1-compat,compat_ioctl32
alias:          usb:v0402p5606d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v041Ep4057d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v045Ep00F8d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v046Dp08C1d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C2d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C3d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C5d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C6d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v046Dp08C7d*dc*dsc*dp*icFFisc01ip00*
alias:          usb:v05ACp8501d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v05E3p0505d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v090CpB371d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v0E8Dp0004d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v05E3p0505d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v18CDpCAFEd*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v19ABp1000d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0100d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0102d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v5986p0200d*dc*dsc*dp*ic0Eisc01ip00*
alias:          usb:v*p*d*dc*dsc*dp*ic0Eisc01ip00*
parm:           trace:uint
parm:           quirks:uint






Environment

Motion version: 3.2.11
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS: Ubuntu 8.10 / Xandros 4

-- KlausDeiss - 10 Jul 2009

Answer

- Firstly read here : http://www.lavrsen.dk/foswiki/bin/view/Motion/WorkingDevices

http://www.lavrsen.dk/foswiki/bin/view/Motion/SupportQuestion2008x11x09x151456

-- FlorinAnton - 11 Jul 2009

Answer

Thanks for your answer. But I don't understand what you want to say.

a) Of course I've checked http://www.lavrsen.dk/foswiki/bin/view/Motion/WorkingDevices

None of my devices is listed there

But:

046d:08d9 is not listed, but working fine
eb1a:2761 is not listed, but has the described problem

By the way: eb1a:2761 (the internal EEE PC Cam) is listed on http://linux-uvc.berlios.de/#devices as an full working device ....

b) The problem described here (http://www.lavrsen.dk/foswiki/bin/view/Motion/SupportQuestion2008x11x09x151456) is related to a cam with ID eb1a:2751 and has (in my opinion) nothing to do with that problem here.

-- KlausDeiss - 11 Jul 2009

Answer

- My personal opinions :

1. The latest Motion svn version seems to be Revision447: /branches/3.2 (on July 11 , 2009) and not r430.

2. Before experimenting with Motion, you must be sure that your video camera + capture card + P.C. + driver is working O.K. (you must see the correct video stream from your camera displayed on your monitor via xawtv program or similar), Motion has nothing to do with drivers for cameras.

3. Try to present your actual problem to the mailing list (http://sourceforge.net/mailarchive/forum.php?forum_name=motion-user)

-- FlorinAnton - 11 Jul 2009


Agree with Florin , please run stable or latest svn run a old svn revision.

-- AngelCarpintero - 11 Jul 2009

Question

I would like to update but whats that ??

root@d-devel:/usr/src/motion/svn447# svn co http://www.lavrsen.dk/svn/motion/branches/3.2/ . -r447
A webcam.c
....
A netcam_wget.c
Checked out revision 447.


root@d-devel:/usr/src/motion/svn447# ./configure
checking for Darwin... no
checking for *BSD... no
......
config.status: creating config.h

*******************************
Configure status
motion 3.2-branch-r430
*******************************

OS : Linux
pthread Support: Yes
jpeg Support: Yes
V4L included: Yes
V4L2 supported: Yes
FFmpeg Support: Yes
MYSQL Support: Yes
PostgreSQL Support: Yes

root@d-devel:/usr/src/motion/svn447# svn info
.........
Revision: 447
Node Kind: directory
Schedule: normal
Last Changed Author: AngelCarpintero
Last Changed Rev: 431
Last Changed Date: 2008-10-13 02:26:18 +0200 (Mon, 13 Oct 2008)

root@d-devel:/usr/src/motion/svn447# make
Welcome to the setup ....
......
Build complete, run "make install" to install Motion!


AND THEN OF COURSE:

./motion
[0] could not open configfile /usr/local/etc/motion.conf: No such file or directory
[0] Not config file to process using default values
[0] Motion 3.2-branch-r430 Started
[0] ffmpeg LIBAVCODEC_BUILD 3355136 LIBAVFORMAT_BUILD 3409664
[1] Thread 1 started

?? Whats the way to make 447 ??

Thx Klaus

Answer

Ok i took that here: http://www.lavrsen.dk/sources/motion-daily//motion-daily-last.tar.gz

Seems to be 445.

Has the same problem .........

Klaus


Trunk is :

http://www.lavrsen.dk/svn/motion/trunk

So you can get it doing ( if you want revision 447 ) :

svn co -r447 http://www.lavrsen.dk/svn/motion/trunk

or

to get latest :

svn co http://www.lavrsen.dk/svn/motion/trunk

then :
 autoconf ; ./configure ; make 

To build latest from svn copy :
make current 

-- AngelCarpintero - 12 Jul 2009
Topic revision: r8 - 12 Jul 2009, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.