How to use a PVR-150 with Motion

Posted: 2009-10-28 07:58:47
Modified: 2010-02-27 06:38:18

Note: This is not finished yet.

I wanted to use my PVR-150 with a motion detection program called Motion but it does not support MPEG encoder cards. There is a patch but it seems it only supports the older versions so I came up with another solution.

To make it work with motion is somewhat of a hack. What you need to do is download and install ffserver.

If you are using Debian or Ubuntu just do:

# sudo apt-get install ffmpeg

Here is my configuration file:

Port 9291
BindAddress 0.0.0.0

#MaxHTTPConnections 100

MaxClients 20

MaxBandwidth 2000

NoDaemon

<Feed cam.ffm>
 File /dev/shm/camm.ffm
 FileMaxSize 200K
 ACL allow 127.0.0.1
 Launch ffmpeg -i /dev/video0 -deinterlace
</Feed>

<Stream cam.mjpg>
 Feed cam.ffm
 Format mpjpeg
 VideoFrameRate 5
 VideoIntraOnly
 VideoBitRate 500K
 VideoSize 640x480
 NoAudio
 Strict -1
</Stream>

<Stream stat.html>
 Format status
</Stream>

Now you need to setup Motion to use ffserver as an ip camera. This is fairly simple and I will add more later.

More soon...


Comments



blog comments powered by Disqus