mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-07 05:22:06 -05:00
This commit includes: 1. Consolidate functions into appropriate modules 2. Rename modules to reflect contents (v4l2, bktr, common) 3. Combines v4l2 and bktr so they can be used together 4. Implements functional prefixes 5. Uses HAVE_V4L2, HAVE_BKTR instead of WITHOUT_ 6. Include pthread_np.h for FreeBSD
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
The following file explains how to build and run
|
|
Motion on FreeBSD. It was tested on FreeBSD 11.0
|
|
|
|
To build Motion on FreeBSD, you need the following packages:
|
|
* pkg install autoconf pkgconf automake gmake
|
|
|
|
For database backend support, also install one of the following:
|
|
* mysql57-client
|
|
* postgresql95-contrib
|
|
* sqlite3
|
|
|
|
For webcams:
|
|
* pkg install v4l_compat webcamd
|
|
* Add cuse_load="YES" in /boot/loader.conf
|
|
* Add webcamd_enable="YES" in the /etc/rc.conf
|
|
* chmod 666 /dev/video0
|
|
|
|
Then, run the following commands:
|
|
autoreconf
|
|
./configure
|
|
gmake
|
|
gmake install
|
|
|
|
|
|
To set up your capture device:
|
|
|
|
1. Load the bktr modules
|
|
|
|
Type as root:
|
|
kldload bktr_mem.ko
|
|
kldload bktr.ko
|
|
|
|
You can setup this in your /boot/loader.conf adding:
|
|
bktr_mem_load="YES"
|
|
bktr_load="YES"
|
|
|
|
2. Configure your card settings (tuner type, format, and card)
|
|
|
|
Type as root:
|
|
sysctl hw.bt848.card=1 ( Miro pctv )
|
|
sysctl hw.bt848.tuner=10 ( PHILIPS_FR1216_PAL )
|
|
sysctl hw.bt848.format=0 ( PAL )
|
|
|
|
or add to /etc/sysctl.conf adding:
|
|
hw.bt848.card=1
|
|
hw.bt848.tuner=10
|
|
hw.bt848.format=0
|