Send Motion-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: Pi & Logitech C920 (Dave Howorth)
----------------------------------------------------------------------
Message: 1
Date: Sun, 27 Sep 2015 18:29:34 +0100
From: Dave Howorth <[email protected]>
Subject: Re: [Motion-user] Pi & Logitech C920
To: Motion discussion list <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"
Short story: it now works. Hurrah!
Thanks very much,
Dave
Longer story. I upgraded raspbian first to be sure. (sorry about that,
now we don't know whether it was a necessary step :( )
Then I installed some dev libraries and reconfigured as you suggested
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install libav-tools libavformat-dev libavcodec-dev
libavutil-dev libswscale-dev
$ ./configure --with-ffmpeg=/usr/lib/arm-linux-gnueabihf
$ make
$ sudo make install
The camera reports it does support the resolution:
$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUV 4:2:2 (YUYV)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x90
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x180
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1600x896
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 2304x1296
Interval: Discrete 0.500s (2.000 fps)
Size: Discrete 2304x1536
Interval: Discrete 0.500s (2.000 fps)
Index : 1
Type : Video Capture
Pixel Format: 'H264' (compressed)
Name : H.264
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x90
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x180
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1600x896
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Index : 2
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x90
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x180
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1600x896
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
On Sat, 2015-09-26 at 12:52 -0600, Mr Dave wrote:
> I wouldn't go so far as saying completely different. The old
> configuration options were from the 2010 release, the new options were
> introduced by the maintainers in their source trees and are also
> included in newer apt repos. There was a discussion on the mailing
> list of releases last year and again last month for those interested
> in knowing more.
>
> On your issues I think there may be two.
>
> First, I think that you may need to go back and validate the configure
> was able to locate the ffmpeg installed on the pi. On my pi, I need
> to run the configure step as:
>
> /configure --with-ffmpeg=/usr/lib/arm-linux-gnueabihf
>
> At the end of this step, it reports the options that it found and
> you'll need to validate that it is reporting: ffmpeg support: Yes
>
> Next, on the 720 resolution, Motion is stopping on not being able to
> open the camera. I looked at the history here and I didn't see that
> there was validation that the camera supports the format and
> resolution combination. The only way that I know how to do this is
> via the v4l2-ctl tool (which may need to be installed). Running the
> following command will indicate whether the camera supports the 720
> resolution for the YUYV palette.
>
> v4l2-ctl -d /dev/video2 --list-framesizes=YUYV
>
> If the 720 is listed in there, I think we'd need to have you change
> the log level to DBG in the configuration file and log this as a new
> error. If 720 is NOT listed there, then that is the underlying
> issue(Camera doesn't support the combination of palette and
> resolution). But since the camera does list a MJPG palette being
> available so you should check that as well.
>
> v4l2-ctl -d /dev/video2 --list-framesizes=MJPG
>
> If it is listed, then you can revise the motion config to indicate to
> use the MJPG palette.
>
> Finally, if the 720 is only listed as being available under the H264
> palette via the v4l2-ctl then that is going to be a different error
> since that isn't a palette that is currently built into Motion.
>
> Dave
>
>
>
> On 9/26/2015 10:01 AM, Dave Howorth wrote:
>
> > Hello again,
> >
> > I now understand that the version of motion from your repository is
> > completely different. I had thought it was just the released version
> > with some bug fixes applied. But now I understand that the released
> > version is five years old and there has been considerable development
> > since. So please accept my apologies for the misunderstanding.
> >
> > I've now copied /usr/local/etc/motion/motion-dist.conf
> > to /usr/local/etc/motion/motion.conf and then edited it:
> >
> > $ diff motion/motion-dist.conf motion/motion.conf 3a4
> > > # and edited by djh on 2015-09-26
> > 68c69,70
> > < v4l2_palette 17
> > ---
> > > #v4l2_palette 17
> > > v4l2_palette 15
> > 100c102,103
> > < width 320
> > ---
> > > #width 320
> > > #width 1280
> > 103c106,107
> > < height 240
> > ---
> > > #height 240
> > > #height 720
> > 233c237
> > < pre_capture 0
> > ---
> > > pre_capture 1
> > 236c240
> > < post_capture 0
> > ---
> > > post_capture 1
> > 270c274
> > < quality 75
> > ---
> > > quality 85
> > 439c443
> > < #target_dir /tmp/motion
> > ---
> > > target_dir /home/motion
> > 448c452
> > < snapshot_filename %v-%Y%m%d%H%M%S-snapshot
> > ---
> > > snapshot_filename %v-%Y%m%d-%H%M%S-snapshot
> > 457c461
> > < picture_filename %v-%Y%m%d%H%M%S-%q
> > ---
> > > picture_filename %v-%Y%m%d-%H%M%S-%q
> > 462c466
> > < movie_filename %v-%Y%m%d%H%M%S
> > ---
> > > movie_filename %v-%Y%m%d-%H%M%S
> > 480c484,485
> > < stream_port 8081
> > ---
> > > #stream_port 8081
> > > stream_port 0
> > 523c528,529
> > < webcontrol_port 8080
> > ---
> > > #webcontrol_port 8080
> > > webcontrol_port 0
> > When I run it with the config file as above, it stores jpg files when
> > there is movement, but no avi file.
> >
> > $ motion
> > [0] [NTC] [ALL] conf_load: Processing thread 0 - config
> > file /usr/local/etc/motion/motion.conf
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_output_movies"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_output_debug_movies"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_timelapse"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_timelapse_mode"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_bps"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_variable_bitrate"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_video_codec"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_duplicate_frames"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "movie_filename"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "timelapse_filename"
> > [0] [NTC] [ALL] motion_startup: Motion Unofficial-Git-UNKNOWN Started
> > [0] [NTC] [ALL] motion_startup: Logging to syslog
> > [0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
> > [0] [NTC] [ALL] main: Thread 1 is from /usr/local/etc/motion/motion.conf
> > [0] [NTC] [ALL] main: Thread 1 is device: /dev/video0 input -1
> > [0] [NTC] [ALL] main: Stream port 0
> > [0] [NTC] [ALL] main: Waiting for threads to finish, pid: 8765
> > [1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
> > [1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input
> > -1
> > [1] [NTC] [VID] v4l2_get_capability:
> > ------------------------
> > cap.driver: "uvcvideo"
> > cap.card: "HD Pro Webcam C920"
> > cap.bus_info: "usb-bcm2708_usb-1.2"
> > cap.capabilities=0x04000001
> > ------------------------
> > [1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
> > [1] [NTC] [VID] v4l2_get_capability: - STREAMING
> > [1] [NTC] [VID] v4l2_select_input: name = "Camera 1", type 0x00000002,
> > status 00000000
> > [1] [NTC] [VID] v4l2_select_input: - CAMERA
> > [1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD
> > [1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV (352x288)
> > [1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV (352x288)
> > bytesperlines 704 sizeimage 202752 colorspace 00000008
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900,
> > "Brightness", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Brightness", default -8193,
> > current 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901,
> > "Contrast", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Contrast", default 57343,
> > current
> > 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902,
> > "Saturation", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Saturation", default 57343,
> > current 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980918, "Power
> > Line Frequency", range 0,2
> > [1] [NTC] [VID] v4l2_scan_controls: "Power Line Frequency", default
> > 2,
> > current 2
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, "Gain",
> > range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Gain", default 57343, current 0
> > [1] [NTC] [VID] vid_v4lx_start: Using V4L2
> > [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1
> > items
> > [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 2
> > items
> > [1] [NTC] [EVT] event_new_video FPS 2
> > [1] [NTC] [ALL] motion_detected: Motion detected - starting event 1
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164437-00.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164437-01.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164438-00.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164438-01.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164439-00.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164439-01.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164440-00.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164440-01.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164441-00.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164441-01.jpg
> > [1] [NTC] [EVT] event_newfile: File of type 1 saved
> > to: /home/motion/01-20150926-164442-00.jpg
> > [1] [NTC] [ALL] motion_loop: End of event 1
> > ^C[1] [NTC] [ALL] motion_loop: End of event 2
> > [1] [NTC] [ALL] motion_loop: Thread exiting
> > [1] [NTC] [VID] vid_close: Closing video device /dev/video0
> > [0] [NTC] [ALL] main: Threads finished
> > [0] [NTC] [ALL] main: Motion terminating
> >
> >
> > If I change it so the width is 1280 and the height 720, it doesn't
> > capture any files:
> >
> > $ motion
> > [0] [NTC] [ALL] conf_load: Processing thread 0 - config
> > file /usr/local/etc/motion/motion.conf
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_output_movies"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_output_debug_movies"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_timelapse"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_timelapse_mode"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_bps"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_variable_bitrate"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_video_codec"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "ffmpeg_duplicate_frames"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "movie_filename"
> > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > "timelapse_filename"
> > [0] [NTC] [ALL] motion_startup: Motion Unofficial-Git-UNKNOWN Started
> > [0] [NTC] [ALL] motion_startup: Logging to syslog
> > [0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
> > [0] [NTC] [ALL] main: Thread 1 is from /usr/local/etc/motion/motion.conf
> > [0] [NTC] [ALL] main: Thread 1 is device: /dev/video0 input -1
> > [0] [NTC] [ALL] main: Stream port 0
> > [0] [NTC] [ALL] main: Waiting for threads to finish, pid: 8799
> > [1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
> > [1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input
> > -1
> > [1] [NTC] [VID] v4l2_get_capability:
> > ------------------------
> > cap.driver: "uvcvideo"
> > cap.card: "HD Pro Webcam C920"
> > cap.bus_info: "usb-bcm2708_usb-1.2"
> > cap.capabilities=0x04000001
> > ------------------------
> > [1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
> > [1] [NTC] [VID] v4l2_get_capability: - STREAMING
> > [1] [NTC] [VID] v4l2_select_input: name = "Camera 1", type 0x00000002,
> > status 00000000
> > [1] [NTC] [VID] v4l2_select_input: - CAMERA
> > [1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD
> > [1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV (1280x720)
> > [1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV (1280x720)
> > bytesperlines 2560 sizeimage 1843200 colorspace 00000008
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900,
> > "Brightness", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Brightness", default -8193,
> > current 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901,
> > "Contrast", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Contrast", default 57343,
> > current
> > 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902,
> > "Saturation", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Saturation", default 57343,
> > current 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980918, "Power
> > Line Frequency", range 0,2
> > [1] [NTC] [VID] v4l2_scan_controls: "Power Line Frequency", default
> > 2,
> > current 2
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, "Gain",
> > range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Gain", default 57343, current 0
> > [1] [NTC] [VID] vid_v4lx_start: Using V4L2
> > [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1
> > items
> > [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 2
> > items
> > [0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, trying to do a
> > graceful restart
> > [1] [NTC] [ALL] motion_loop: Thread exiting
> > [1] [NTC] [VID] vid_close: Closing video device /dev/video0
> > [0] [NTC] [ALL] main: Motion thread 1 restart
> > [1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
> > [1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input
> > -1
> > [1] [NTC] [VID] v4l2_get_capability:
> > ------------------------
> > cap.driver: "uvcvideo"
> > cap.card: "HD Pro Webcam C920"
> > cap.bus_info: "usb-bcm2708_usb-1.2"
> > cap.capabilities=0x04000001
> > ------------------------
> > [1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
> > [1] [NTC] [VID] v4l2_get_capability: - STREAMING
> > [1] [NTC] [VID] v4l2_select_input: name = "Camera 1", type 0x00000002,
> > status 00000000
> > [1] [NTC] [VID] v4l2_select_input: - CAMERA
> > [1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD
> > [1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV (1280x720)
> > [1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV (1280x720)
> > bytesperlines 2560 sizeimage 1843200 colorspace 00000008
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900,
> > "Brightness", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Brightness", default -8193,
> > current 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901,
> > "Contrast", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Contrast", default 57343,
> > current
> > 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902,
> > "Saturation", range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Saturation", default 57343,
> > current 128
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980918, "Power
> > Line Frequency", range 0,2
> > [1] [NTC] [VID] v4l2_scan_controls: "Power Line Frequency", default
> > 2,
> > current 2
> > [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, "Gain",
> > range 0,255
> > [1] [NTC] [VID] v4l2_scan_controls: "Gain", default 57343, current 0
> > [1] [NTC] [VID] vid_v4lx_start: Using V4L2
> > [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1
> > items
> >
> >
> > So we're almost back to where we started with the release version but
> > not quite (no avi) though hopefully you're in a better position now to
> > see what we might need to change to fix my original resolution problem.
> >
> > Cheers, Dave
> >
> > On Thu, 2015-09-24 at 17:41 -0600, Mr Dave wrote:
> > > Ok. That is fair. I was indicating it was good because it compiled and
> > > started and that it appeared that only the parameters needed slight
> > > modifications. Seeing now that it still doesn't work for you I'd
> > > agree..it is still bad.
> > >
> > > The problem still appears to be the configuration parameters. The
> > > configuration options changed significantly between the 3.12 version and
> > > the versions in apt/trunk and the git version you just compiled. So
> > > when you copied over your previously working version of the
> > > motion.config, it has the old configuration parameter names and we need
> > > to be using the new ones. (This was a change before I arrived). And
> > > not only did the names change but also the parameters to specify. The
> > > option of "input 8" used to mean webcam but in the latest versions, the
> > > appropriate specification is now "input -1". Technically, you could go
> > > through the old configuration file and change them one by one to the new
> > > options and selections but with the extent of the changes, I'd recommend
> > > starting with the motion-dist.conf, renaming it to motion.conf and
> > > making the changes from that starting point.
> > >
> > > Dave
> > >
> > >
> > > On 9/24/2015 1:52 PM, Dave Howorth wrote:
> > > > I'm not having a good day, I'm afraid. I see what you say about it using
> > > > defaults, but in that case the pre-built version works and captures
> > > > video so I'm not sure how it's good that the new version doesn't?
> > > >
> > > > Poking about I see that it wants the config file
> > > > in /usr/local/etc/motion/ so I copied the previously
> > > > working /etc/motion/motion.conf there. Then I edited it so it doesn't
> > > > try to start as a daemon and changed permissions so it was readable, but
> > > > when I then start motion from the command line it says:
> > > >
> > > > $ motion
> > > > [0] [NTC] [ALL] conf_load: Processing thread 0 - config
> > > > file /usr/local/etc/motion/motion.conf
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "despeckle"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "gap"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "max_mpeg_time"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_all"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_normal"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_motion"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ppm"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_new"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_motion"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_timelapse"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > > > "ffmpeg_timelapse_mode"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_bps"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > > > "ffmpeg_variable_bitrate"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > > > "ffmpeg_video_codec"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > > > "ffmpeg_deinterlace"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "locate"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "jpeg_filename"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "movie_filename"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > > > "timelapse_filename"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_port"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_quality"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_motion"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_maxrate"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_localhost"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_limit"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_localhost"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option
> > > > "control_html_output"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_image"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_snapshot"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_mpeg"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_timelapse"
> > > > [0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_query"
> > > > [0] [NTC] [ALL] motion_startup: Using default log level (NTC) (6)
> > > > [0] [NTC] [ALL] motion_startup: Motion Unofficial-Git-UNKNOWN Started
> > > > [0] [NTC] [ALL] motion_startup: Logging to syslog
> > > > [0] [NTC] [ALL] motion_startup: Using default log type (ALL)
> > > > [0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
> > > > [0] [NTC] [ALL] main: Thread 1 is from /usr/local/etc/motion/motion.conf
> > > > [0] [NTC] [ALL] main: Thread 1 is device: /dev/video0 input 8
> > > > [0] [NTC] [ALL] main: Stream port 0
> > > > [0] [NTC] [ALL] main: Waiting for threads to finish, pid: 7984
> > > > [1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
> > > > [1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input
> > > > 8
> > > > [1] [NTC] [VID] v4l2_get_capability:
> > > > ------------------------
> > > > cap.driver: "uvcvideo"
> > > > cap.card: "HD Pro Webcam C920"
> > > > cap.bus_info: "usb-bcm2708_usb-1.2"
> > > > cap.capabilities=0x04000001
> > > > ------------------------
> > > > [1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
> > > > [1] [NTC] [VID] v4l2_get_capability: - STREAMING
> > > > [1] [ERR] [VID] v4l2_select_input: Unable to query input 8.
> > > > VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
> > > > Invalid argument
> > > > [1] [NTC] [VID] vid_v4lx_start: Using V4L1
> > > > [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1
> > > > items
> > > > [1] [ERR] [ALL] motion_init: Error capturing first image
> > > > [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 3
> > > > items
> > > > [1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video
> > > > device
> > > > [1] [NTC] [VID] vid_close: Closing video device /dev/video0
> > > > [1] [WRN] [ALL] motion_loop: Retrying until successful connection with
> > > > camera
> > > > [1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input
> > > > 8
> > > >
> > > > The last stanza then repeats every few seconds until I terminate the
> > > > program. I don't understand what I've done to make it not recognize the
> > > > configuration options.
> > > >
> > > > Cheers, Dave
> > > >
> > > >
> > > >
> > > > On Wed, 2015-09-23 at 19:11 -0600, Mr Dave wrote:
> > > > > OK. That is good. It looks like it is up, found your camera, started
> > > > > working, detected motion. Then quit cleanly. The issue now appears
> > > > > that it is within the parameters. From the log posted, it appears
> > > > > that
> > > > > it is still using the defaults (see the resolution reported when it is
> > > > > looking at the PIX format). So you may want to check that you changed
> > > > > the right file. (Look where it installed via the messages from the
> > > > > make
> > > > > install step). Also check all the other parameters like target_dir
> > > > > and
> > > > > possibly try it in non-daemon mode first for testing /debugging
> > > > >
> > > > > Dave
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 9/23/2015 1:52 PM, Dave Howorth wrote:
> > > > > > I tried autoreconf -f and it built without error. I edited the init
> > > > > > script to use /etc/local/bin/motion for DAEMON and changed
> > > > > > motion.conf
> > > > > > to be 1280x720 and restarted the service.
> > > > > >
> > > > > > Sadly, it detected motion and exited but did not create any image or
> > > > > > video files:
> > > > > >
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] motion_startup:
> > > > > > Using default log level (NTC) (6)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] motion_startup:
> > > > > > Motion Unofficial-Git-UNKNOWN Started
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] motion_startup:
> > > > > > Logging to syslog
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] motion_startup:
> > > > > > Using default log type (ALL)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] motion_startup:
> > > > > > Using log type (ALL) log level (NTC)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] main: Thread 1
> > > > > > is
> > > > > > device: /dev/video0 input -1
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] main: Stream
> > > > > > port 0
> > > > > > Sep 23 20:36:02 raspberrypi motion: [0] [NTC] [ALL] main: Waiting
> > > > > > for
> > > > > > threads to finish, pid: 7205
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [ALL] motion_init:
> > > > > > Thread
> > > > > > 1 started , motion detection Enabled
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID] vid_v4lx_start:
> > > > > > Using videodevice /dev/video0 and input -1
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_get_capability:
> > > > > > #012------------------------#012cap.driver: "uvcvideo"#012cap.card:
> > > > > > "HD
> > > > > > Pro Webcam C920"#012cap.bus_info:
> > > > > > "usb-bcm2708_usb-1.2"#012cap.capabilities=0x04000001#012------------------------
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_get_capability:
> > > > > > - VIDEO_CAPTURE
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_get_capability:
> > > > > > - STREAMING
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_select_input:
> > > > > > name = "Camera 1", type 0x00000002, status 00000000
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_select_input: -
> > > > > > CAMERA
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [WRN] [VID]
> > > > > > v4l2_select_input:
> > > > > > Device doesn't support VIDIOC_G_STD
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > Config palette index 17 (YU12) doesn't work.
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > Supported palettes:
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > (0) YUYV (YUV 4:2:2 (YUYV))
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > 0 - YUV 4:2:2 (YUYV) (compressed : 0) (0x56595559)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > (1) H264 (H.264)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > 1 - H.264 (compressed : 1) (0x34363248)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > (2) MJPG (MJPEG)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format:
> > > > > > 2 - MJPEG (compressed : 1) (0x47504a4d)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_set_pix_format
> > > > > > Selected palette YUYV
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_do_set_pix_format: Testing palette YUYV (352x288)
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_do_set_pix_format: Using palette YUYV (352x288) bytesperlines
> > > > > > 704
> > > > > > sizeimage 202752 colorspace 00000008
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > found control 0x00980900, "Brightness", range 0,255
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > #011"Brightness", default -8193, current 128
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > found control 0x00980901, "Contrast", range 0,255
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > #011"Contrast", default 57343, current 128
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > found control 0x00980902, "Saturation", range 0,255
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > #011"Saturation", default 57343, current 128
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > found control 0x00980918, "Power Line Frequency", range 0,2
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > #011"Power Line Frequency", default 2, current 2
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > found control 0x00980913, "Gain", range 0,255
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID]
> > > > > > v4l2_scan_controls:
> > > > > > #011"Gain", default 57343, current 0
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [VID] vid_v4lx_start:
> > > > > > Using V4L2
> > > > > > Sep 23 20:36:02 raspberrypi motion: [1] [NTC] [ALL]
> > > > > > image_ring_resize:
> > > > > > Resizing pre_capture buffer to 1 items
> > > > > > Sep 23 20:37:29 raspberrypi motion: [1] [NTC] [EVT] event_new_video
> > > > > > FPS
> > > > > > 14
> > > > > > Sep 23 20:37:29 raspberrypi motion: [1] [NTC] [ALL] motion_detected:
> > > > > > Motion detected - starting event 1
> > > > > > Sep 23 20:37:29 raspberrypi motion: [1] [NTC] [ALL] motion_loop:
> > > > > > Thread
> > > > > > exiting
> > > > > > Sep 23 20:37:29 raspberrypi motion: [1] [NTC] [VID] vid_close:
> > > > > > Closing
> > > > > > video device /dev/video0
> > > > > > Sep 23 20:37:29 raspberrypi motion: [0] [NTC] [ALL] main: Threads
> > > > > > finished
> > > > > > Sep 23 20:37:30 raspberrypi motion: [0] [NTC] [ALL] main: Motion
> > > > > > terminating
> > > > > >
> > > > > >
> > > > > > Also $ lsb_release -a
> > > > > > No LSB modules are available.
> > > > > > Distributor ID: Debian
> > > > > > Description: Debian GNU/Linux 7.0 (wheezy)
> > > > > > Release: 7.0
> > > > > > Codename: wheezy
> > > > > >
> > > > > >
> > > > > > Cheers, Dave
> > > > > >
> > > > > > On Tue, 2015-09-22 at 20:12 -0600, Mr Dave wrote:
> > > > > > > I have just checked this on my PI and it appears to function
> > > > > > > correctly.
> > > > > > >
> > > > > > > Can you tell us the image that you are using so we can test it?
> > > > > > >
> > > > > > > Also, you may want to check the motion_guide.html and INSTALL
> > > > > > > files
> > > > > > > distributed with the source code. I have updated them to have
> > > > > > > current
> > > > > > > building/installing instructions as well as all the new and
> > > > > > > different
> > > > > > > options. It may be as simple as using the
> > > > > > >
> > > > > > > autoreconf -f
> > > > > > >
> > > > > > > option instead of the sequence that you've indicated.
> > > > > > >
> > > > > > > MrDave
> > > > > > >
> > > > > > > On 9/22/2015 5:54 PM, Mr Dave wrote:
> > > > > > > > Yes, that is definitely broken. Sorry about that. I'm pretty
> > > > > > > > sure
> > > > > > > > that this change is only on the unstable branch which is in
> > > > > > > > testing.
> > > > > > > > Can you switch to the master branch and test it again? The
> > > > > > > > following
> > > > > > > > switches your sources over to master which doesn't have the
> > > > > > > > offending
> > > > > > > > code but does have the changes I think you are looking for.
> > > > > > > >
> > > > > > > > git checkout master
> > > > > > > > autoreconf
> > > > > > > > ./configure
> > > > > > > > make
> > > > > > > > make install
> > > > > > > >
> > > > > > > >
> > > > > > > > MrDave
> > > > > > > >
> > > > > > > >
> > > > > > > > On 9/22/2015 4:14 PM, Dave Howorth wrote:
> > > > > > > > > Thanks for that. I've just downloaded it and am trying to
> > > > > > > > > compile it but
> > > > > > > > > I ran into something I don't understand. It's the first time
> > > > > > > > > I tried to
> > > > > > > > > compile something on the pi. I ran:
> > > > > > > > >
> > > > > > > > > $ autoheader
> > > > > > > > > $ autoconf configure.ac > configure
> > > > > > > > > $ sudo apt-get install libjpeg-dev
> > > > > > > > >
> > > > > > > > > but when I
> > > > > > > > > $ ./configure
> > > > > > > > > it says
> > > > > > > > >
> > > > > > > > > checking for gcc... gcc
> > > > > > > > > checking whether the C compiler works... yes
> > > > > > > > > checking for C compiler default output file name... a.out
> > > > > > > > > checking for suffix of executables...
> > > > > > > > > checking whether we are cross compiling... no
> > > > > > > > > checking for suffix of object files... o
> > > > > > > > > checking whether we are using the GNU C compiler... yes
> > > > > > > > > checking whether gcc accepts -g... yes
> > > > > > > > > checking for gcc option to accept ISO C89... none needed
> > > > > > > > > checking how to run the C preprocessor... gcc -E
> > > > > > > > > checking for grep that handles long lines and -e... /bin/grep
> > > > > > > > > checking for egrep... /bin/grep -E
> > > > > > > > > checking for ANSI C header files... yes
> > > > > > > > > checking for sys/types.h... yes
> > > > > > > > > checking for sys/stat.h... yes
> > > > > > > > > checking for stdlib.h... yes
> > > > > > > > > checking for string.h... yes
> > > > > > > > > checking for memory.h... yes
> > > > > > > > > checking for strings.h... yes
> > > > > > > > > checking for inttypes.h... yes
> > > > > > > > > checking for stdint.h... yes
> > > > > > > > > checking for unistd.h... yes
> > > > > > > > > checking minix/config.h usability... no
> > > > > > > > > checking minix/config.h presence... no
> > > > > > > > > checking for minix/config.h... no
> > > > > > > > > checking whether it is safe to define __EXTENSIONS__... yes
> > > > > > > > > checking for gcc... (cached) gcc
> > > > > > > > > checking whether we are using the GNU C compiler... (cached)
> > > > > > > > > yes
> > > > > > > > > checking whether gcc accepts -g... (cached) yes
> > > > > > > > > checking for gcc option to accept ISO C89... (cached) none
> > > > > > > > > needed
> > > > > > > > > checking for Darwin... no
> > > > > > > > > checking for *BSD... no
> > > > > > > > > checking for gcc... (cached) gcc
> > > > > > > > > checking whether we are using the GNU C compiler... (cached)
> > > > > > > > > yes
> > > > > > > > > checking whether gcc accepts -g... (cached) yes
> > > > > > > > > checking for gcc option to accept ISO C89... (cached) none
> > > > > > > > > needed
> > > > > > > > > checking threads... yes
> > > > > > > > > checking for sdl... no
> > > > > > > > > checking for libjpeg-turbo... skipping
> > > > > > > > > checking for libjpeg-mmx... skipping
> > > > > > > > > checking for jpeg_set_defaults in -ljpeg... yes
> > > > > > > > > ./configure: line 5287: syntax error near unexpected token
> > > > > > > > > `FFMPEG,'
> > > > > > > > > ./configure: line 5287: ` PKG_CHECK_MODULES(FFMPEG,
> > > > > > > > > libavutil
> > > > > > > > > libavformat libavcodec libswscale, HAVE_FFMPEG=yes)'
> > > > > > > > >
> > > > > > > > > A syntax error makes me think something is broken somewhere
> > > > > > > > > but I'm not
> > > > > > > > > sure whether I've caused the problem?
> > > > > > > > >
> > > > > > > > > Cheers, Dave
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Fri, 2015-09-18 at 09:15 +0300, ?ydr?nas Urbonas wrote:
> > > > > > > > > > Hey, try compiling latest Mr-Dave fork, it contains a fix
> > > > > > > > > > for
> > > > > > > > > > C910/C920 cameras
> > > > > > > > > > https://github.com/Mr-Dave/motion/commits/unstable
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Thu, Sep 17, 2015 at 9:03 PM, Dave Howorth
> > > > > > > > > > <[email protected]>
> > > > > > > > > > wrote:
> > > > > > > > > > Hello,
> > > > > > > > > > I'm trying to set up motion with a
> > > > > > > > > > Logitech HD Pro
> > > > > > > > > > Webcam C920
> > > > > > > > > > connected
> > > > > > > > > > to a Raspberry PI. It sort of works but not
> > > > > > > > > > properly so I'd
> > > > > > > > > > appreciate
> > > > > > > > > > some pointers.
> > > > > > > > > > The Pi has raspberrypi 3.2.27+ #250
> > > > > > > > > > PREEMPT
> > > > > > > > > > motion is Version 3.2.12
> > > > > > > > > > I'm sshed to the pi; there's no display
> > > > > > > > > > on it. I
> > > > > > > > > > have motion
> > > > > > > > > > set up as a
> > > > > > > > > > service started on boot.
> > > > > > > > > > I have two issues that I'd like to
> > > > > > > > > > resolve:
> > > > > > > > > > (1) motion happily captures
> > > > > > > > > > video when
> > > > > > > > > > there is motion and
> > > > > > > > > > records an
> > > > > > > > > > avi file and a bunch of jpegs. But it only does
> > > > > > > > > > this if I
> > > > > > > > > > leave the
> > > > > > > > > > width and height at their default. If I set 1280
> > > > > > > > > > x 720 or 1920
> > > > > > > > > > x
> > > > > > > > > > 1080 resolution, nothing gets captured.
> > > > > > > > > > I have tried running cheese and that is
> > > > > > > > > > able to show
> > > > > > > > > > high-resolution
> > > > > > > > > > video, so I know its not a hardware problem.
> > > > > > > > > > There's a lot of
> > > > > > > > > > stuff
> > > > > > > > > > in /var/log/messages but I don't understand it:
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [0]
> > > > > > > > > > Motion
> > > > > > > > > > thread 1
> > > > > > > > > > restart
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > cap.driver: "uvcvideo"
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > cap.card: "HD Pro
> > > > > > > > > > Webcam C920"
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > cap.bus_info:
> > > > > > > > > > "usb-bcm2708_usb-1.2"
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > cap.capabilities=0x04000001
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] -
> > > > > > > > > > VIDEO_CAPTURE
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] -
> > > > > > > > > > STREAMING
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] Config
> > > > > > > > > > palette index 8
> > > > > > > > > > (YU12)
> > > > > > > > > > doesn't work.
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > Supported palettes:
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] 0: YUYV
> > > > > > > > > > (YUV 4:2:2
> > > > > > > > > > (YUYV))
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] 1: H264
> > > > > > > > > > (H.264)
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] 2: MJPG
> > > > > > > > > > (MJPEG)
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] Selected
> > > > > > > > > > palette YUYV
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] Test
> > > > > > > > > > palette YUYV
> > > > > > > > > > (1280x720)
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] Using
> > > > > > > > > > palette YUYV
> > > > > > > > > > (1280x720)
> > > > > > > > > > bytesperlines 2560 sizeimage 1843200 colorspace
> > > > > > > > > > 00000008
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] found
> > > > > > > > > > control
> > > > > > > > > > 0x00980900,
> > > > > > > > > > "Brightness", range 0,255
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > #011"Brightness",
> > > > > > > > > > default -8193,
> > > > > > > > > > current 128
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] found
> > > > > > > > > > control
> > > > > > > > > > 0x00980901,
> > > > > > > > > > "Contrast", range 0,255
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > #011"Contrast",
> > > > > > > > > > default 57343,
> > > > > > > > > > current 128
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] found
> > > > > > > > > > control
> > > > > > > > > > 0x00980902,
> > > > > > > > > > "Saturation", range 0,255
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > #011"Saturation",
> > > > > > > > > > default 57343,
> > > > > > > > > > current 128
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] found
> > > > > > > > > > control
> > > > > > > > > > 0x00980913,
> > > > > > > > > > "Gain", range 0,255
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1]
> > > > > > > > > > #011"Gain", default
> > > > > > > > > > 57343,
> > > > > > > > > > current 0
> > > > > > > > > > Sep 17 18:56:41 raspberrypi motion: [1] Resizing
> > > > > > > > > > pre_capture
> > > > > > > > > > buffer to 1
> > > > > > > > > > items
> > > > > > > > > > Sep 17 18:57:03 raspberrypi motion: [1] Resizing
> > > > > > > > > > pre_capture
> > > > > > > > > > buffer to 3
> > > > > > > > > > items
> > > > > > > > > > (2) motion exits if I try to
> > > > > > > > > > access the
> > > > > > > > > > web stream at
> > > > > > > > > > http://pi:8081/.
> > > > > > > > > > I'm not too concerned about this issue because
> > > > > > > > > > it's not
> > > > > > > > > > something I
> > > > > > > > > > intend to use once it all works.
> > > > > > > > > > Cheers, Dave
> >
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > Motion-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/motion-user
> > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
------------------------------
------------------------------------------------------------------------------
------------------------------
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
End of Motion-user Digest, Vol 112, Issue 33
********************************************