Motion - Support Question 2009x 10x 01x 210634

Freebsd default motion port almost works.

Question

I'm on Freebsd 7.1 Release. I just installed motion from /usr/ports/multimedia/motion the driver I'm using is gspca on a usb quickcam. Camera lights up and seems to work with this driver.

However, I am getting an error on startup. Can I get some help with this? It's so close but I don't know where to look. motion.conf available on request.

> motion
[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Motion 3.2.11.1 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412992 LIBAVFORMAT_BUILD 3415808
[0] Motion running in setup mode.
[0] Thread 1 is from /usr/local/etc/motion.conf
[0] Thread 1 is device: /dev/video0 input 8
[0] Webcam port 8081
[0] Waiting for threads to finish, pid: 29335
[1] Thread 1 started
[0] motion-httpd/3.2.11.1 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map
[1] V4L capturing using read is deprecated!
[1] Motion only supports mmap.
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 21
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 21
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 16
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 16
[1] Retrying until successful connection with camera
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map
[1] V4L capturing using read is deprecated!
[1] Motion only supports mmap.
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 13
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 12
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 12
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Retrying until successful connection with camera
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map
[1] V4L capturing using read is deprecated!
[1] Motion only supports mmap.
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
^C
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[1] End of event 1
[1] Raw changes:     0 - changes after 'EedDl':     0 - labels:   0 - noise level: 11
[1] Thread exiting
[1] Closing webcam listen socket
[1] Closing active webcam sockets
[0] Threads finished
[0] Motion terminating

Environment

Motion version: 3.2.11.1
ffmpeg version: FFmpeg ver 0.5
Libraries: ffmpeg, mysql, postgresql
Server OS: FreeBSD 7.1

-- NiteFall - 01 Oct 2009

Follow up

Motion port to BSD , only was tested with pwcbsd kernel module using mmap() not read() , looks that gspca port for bsd still doesn't support mmap().

I've no info about gspca in bsd , but in linux was already improved to support mmap() , so a good idea could be ask to bsd ported of gspca.

-- AngelCarpintero - 08 Oct 2009

Answer

Topic revision: r2 - 08 Oct 2009, AngelCarpintero
Copyright © 1999-2021 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.