PiKrellCam is an audio/video recording motion detect program with an OSD web interface that detects motion using the Raspberry Pi camera MMAL motion vectors.
Read about it and install instructions at: PiKrellCam webpage
Git download with: $ git clone https://github.com/billw2/pikrellcam