From: <ham...@mc...> - 2006-07-15 00:11:25
|
Robert Crosbie wrote: > Hi, > > I'm just wondering if others are working on the video4linux2 patches. > I tried both motion-v42L-svn.diff and video2.c and video2.h from the > motionSourceTree. Both die in the same place for me: > > video2.c: > [1] Thread started > [1] v4l2_start: Opening /dev/video1 as a V4L2 device > [1] v4l2_start: Buffer length: 737280, offset: 0 > [1] v4l2_start: Unable to map buffer.: Invalid argument > > motion-v42L-svn.diff: > [1] Thread started > Opening /dev/video1 as a V4L2 device...length: 737280 offset: 0 > Unable to map buffer (22) > V4L2 init failed. > > > I'm just beginning my investigation into this, but I was wondering how > others were faring. I'm assuming offset should be non 0 and that is > what mmap doesn't like? > > BTW, I found there was a missing quote on line 412 in the video2.c > from the motionSourceTree. It's obvious when you try to compile it. > > Cheers, I managed to get it working only for video of size 640x480. Attached is the my video.c. Sincerely, Andrew Hamilton |