Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2009 23:31:12 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Kevin Kinsey <kdk@daleco.biz>
Cc:        questions@freebsd.org
Subject:   Re: Security cams/DVR, using FBSD?
Message-ID:  <20090821233112.339b6ad7.freebsd@edvax.de>
In-Reply-To: <4A8EB6DE.4080603@daleco.biz>
References:  <4A8EB6DE.4080603@daleco.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Aug 2009 10:01:50 -0500, Kevin Kinsey <kdk@daleco.biz> wrote:
> I'd like to set up a box or two with a camera feeding an HDD for
> later review.  Is there a hardware/software combination you=20
> use or recommend for video monitoring?

There are very simple but still powerful tools. Sadly, you need
very specific hardware to use them.

First of all, you need to find a video grabber card, usually
PCI, that is supported by FreeBSD's bktr driver. See "man
bktr" for more information. Those models are currently
supported:

     =B7   AOpen VA1000
     =B7   AVerMedia AVerTV Studio
     =B7   AVerMedia TF/FM-98
     =B7   ATI TV Wonder VE
     =B7   Hauppauge WinCast/TV
     =B7   Hauppauge WinTV-Go-FM
     =B7   Hauppauge WinTV-pci
     =B7   Hauppauge WinTV-radio
     =B7   Intel Smart Video Recorder III
     =B7   KWORLD PCI TV Tuner
     =B7   Miro PC TV
     =B7   Pinnacle PCTV Pro
     =B7   Pinnacle PCTV Rave
     =B7   PixelView PlayTV PAK
     =B7   PixelView PlayTV Pro (rev 4C, 9D)
     =B7   SIGMA TV II
     =B7   STB TV PCI Television Tuner
     =B7   Super TV Tuner
     =B7   TerraTec TValue
     =B7   V-Stream XPERT TV-PVR 878
     =B7   Video Highway XTreme
     =B7   VideoLogic Captivator PCI

I have such a card myself, and it works excellently with FreeBSD.

Now for the softwar. If you don't need stuff like motion triggers
or audio triggers, you can simply use mencoder to record from
the video-in source of the card. In case you have two cards, you
can use one mencoder command per card. In case you are able to
connect one camera via video, the other one via RF (antenna)
signal, you can use one mencoder command per input.

In principle, it works like this: You tell mplayer to record from
the given source into a file. You can specify the codec that should
be used in order to have files that are "small enough" not to fill
your hard disk within few hours, but are still "good enough" to
see something.

Refer to the good "man mencoder" manpage for examples how to do
that. You would probably use something like this:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=3Dxvcd -af lavcresam=
ple=3D44100 -lavcopts vcodec=3Dmpeg1video:keyint=3D15:vrc_buf_size=3D327:vr=
c_minrate=3D1152:vbitrate=3D1152:vrc_maxrate=3D1152:acodec=3Dmp2:abitrate=
=3D224 -ofps 25 -o video1.mpg tv://0

Don't get scared by the many options. I'm sure you'll only need
half of them.

Finally, I'm not quite sure if mplayer or mencoder is the correct
program for that. Maybe it's simple mplayer...



--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090821233112.339b6ad7.freebsd>