Motion - Howto Motion Pwc Free BSD

Howto use Motion with pwc port in FreeBSD

Get the pwc port

cd /usr/ports/multimedia/pwcbsd/
make install
kldload pwc ( now plug your webcam, if it's plugged then unplug & plug )

Enable mmap support to allow work with motion

Load the module , please take a look to README file for further details.

Get v4l_compat port

cd  /usr/ports/multimedia/v4l_compat
make install 

Get Motion

- via SVN

1) Get svn version

mkdir motion
cd motion
svn co http://www.lavrsen.dk/svn/motion/tags/3.2.10 .

2) compile with pwcbsd support

autoconf
./configure --with-pwcbsd
gmake ; gmake install

3) Setup motion

Make sure to use the right video device (pwc uses /dev/video0), also check that the resolution in motion is set to the same resolution of the pwcbsd driver.
Optional pwcbsd settings:

you can modify /boot/device.hints and add the following line
hint.pwc.0.stats="1"







to get frame statistics when closing connection to webcam. Reboot after editing (see also 'man pwc' for webcam LEDs and Frame buffer options)

-- KristenSchat - 08 May 2008

- via Freebsd Port tree

1) Get motion port from FreeBSD

( only for 3.2.9 , 3.2.10 already include it ) 

cd /usr/port/multimedia/motion 
make deinstall
make distclean
make config #( leave BKTR checked )# 
make configure

2) Get this patch and apply it.

patch -p1 < FreeBSD-pwc-patch.diff

3) Compile motion:

make install clean

4) Setup motion

Remember to follow webcam information , i.ex pwc uses /dev/video0 as video device but not sure others modules.

-- AngelCarpintero - 13 Jan 2008
Topic revision: r16 - 21 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.